comparison dv.c @ 3649:3335f51b6cd3 libavcodec

force usage of ALT_BITSTREAM_READER where needed
author aurel
date Mon, 28 Aug 2006 18:46:01 +0000
parents 1deaaa111fbc
children 18113845d891
comparison
equal deleted inserted replaced
3648:c44d798b06b5 3649:3335f51b6cd3
29 29
30 /** 30 /**
31 * @file dv.c 31 * @file dv.c
32 * DV codec. 32 * DV codec.
33 */ 33 */
34 #define ALT_BITSTREAM_READER
34 #include "avcodec.h" 35 #include "avcodec.h"
35 #include "dsputil.h" 36 #include "dsputil.h"
36 #include "mpegvideo.h" 37 #include "mpegvideo.h"
37 #include "simple_idct.h" 38 #include "simple_idct.h"
38 #include "dvdata.h" 39 #include "dvdata.h"
267 }; 268 };
268 /* bit budget for AC only in 5 MBs */ 269 /* bit budget for AC only in 5 MBs */
269 static const int vs_total_ac_bits = (100 * 4 + 68*2) * 5; 270 static const int vs_total_ac_bits = (100 * 4 + 68*2) * 5;
270 /* see dv_88_areas and dv_248_areas for details */ 271 /* see dv_88_areas and dv_248_areas for details */
271 static const int mb_area_start[5] = { 1, 6, 21, 43, 64 }; 272 static const int mb_area_start[5] = { 1, 6, 21, 43, 64 };
272
273 #ifndef ALT_BITSTREAM_READER
274 #warning only works with ALT_BITSTREAM_READER
275 static int re_index; //Hack to make it compile
276 #endif
277 273
278 static inline int get_bits_left(GetBitContext *s) 274 static inline int get_bits_left(GetBitContext *s)
279 { 275 {
280 return s->size_in_bits - get_bits_count(s); 276 return s->size_in_bits - get_bits_count(s);
281 } 277 }