comparison h264.h @ 7283:39e81fdd8d23 libavcodec

Move the size of the H264Context delayed_pic array into a #define. This improves readability by getting rid of some magic numbers.
author astrange
date Tue, 15 Jul 2008 21:30:04 +0000
parents 9a31b6a8ae52
children 033d10927d45
comparison
equal deleted inserted replaced
7282:dc5a334c758b 7283:39e81fdd8d23
48 48
49 #define MAX_SPS_COUNT 32 49 #define MAX_SPS_COUNT 32
50 #define MAX_PPS_COUNT 256 50 #define MAX_PPS_COUNT 256
51 51
52 #define MAX_MMCO_COUNT 66 52 #define MAX_MMCO_COUNT 66
53
54 #define MAX_DELAYED_PIC_COUNT 16
53 55
54 /* Compiling in interlaced support reduces the speed 56 /* Compiling in interlaced support reduces the speed
55 * of progressive decoding by about 2%. */ 57 * of progressive decoding by about 2%. */
56 #define ALLOW_INTERLACE 58 #define ALLOW_INTERLACE
57 59
332 Picture *long_ref[32]; 334 Picture *long_ref[32];
333 Picture default_ref_list[2][32]; ///< base reference list for all slices of a coded picture 335 Picture default_ref_list[2][32]; ///< base reference list for all slices of a coded picture
334 Picture ref_list[2][48]; /**< 0..15: frame refs, 16..47: mbaff field refs. 336 Picture ref_list[2][48]; /**< 0..15: frame refs, 16..47: mbaff field refs.
335 Reordered version of default_ref_list 337 Reordered version of default_ref_list
336 according to picture reordering in slice header */ 338 according to picture reordering in slice header */
337 Picture *delayed_pic[18]; //FIXME size? 339 Picture *delayed_pic[MAX_DELAYED_PIC_COUNT+2]; //FIXME size?
338 Picture *delayed_output_pic; 340 Picture *delayed_output_pic;
339 341
340 /** 342 /**
341 * memory management control operations buffer. 343 * memory management control operations buffer.
342 */ 344 */