a8beacd98cad9b5dd8a33a824bb5f3f71934a49a
[mardrone] / mardrone / ARDrone_SDK_Version_1_8_20110726 / ARDroneLib / VLIB / Platform / arm9 / video_config.h
1 #ifndef _VIDEO_CONFIG_ARM9_H_
2 #define _VIDEO_CONFIG_ARM9_H_
3
4 # define CACHE_DLINESIZE (32)
5
6 /* Default configuration for P5+ platform */
7
8 #define VIDEO_DCT_INTERRUPT_ENABLE    (0)
9
10 #define VIDEO_DCT_USE_INTRAM          (0)
11
12 #define DEFAULT_QUANTIZATION          (6)
13
14 /*
15   Help on finding a good MAX_NUM_MACRO_BLOCKS_PER_CALL on P5P
16   Maximum is 10 macroblocks because P5P DCT can only handle 64 blocks at once
17   This parameter is important and has to be adapted to your resolution
18   (CIF, VGA,... ) in order to minimize waiting time between two calls.
19   For example case like a call with a lot of blocks followed by a call
20   with a small number of blocks need to be avoided.
21   Ex: In QVGA a value of 6 is not optimal because there's 20 macroblocks per GOB
22   so there will be 3 calls with 6 macroblocks and a call with 2 macroblocks
23   (you can check with RTMON to monitor the waiting time represendted by event VIDEO_VLIB_DCT_WAIT_UEVENT)
24   In the QVGA case this is a better choice to choose a value of 7 to have two calls for 7 macroblocks and
25   a call for 6 macroblocks (of course 10 seems to be the better value - 2 calls - from an hardware DCT point of view).
26 */
27 #define MAX_NUM_MACRO_BLOCKS_PER_CALL (6)
28
29 #define DEFAULT_INTERNAL_STREAM_SIZE  (1024 * 8)
30
31 #define VLIB_ALLOC_ALIGN              CACHE_DLINESIZE
32
33 #endif // _VIDEO_CONFIG_ARM9_H_