comparison dv.c @ 1895:e5687117cc7f libavcodec

* removing casualties of battle of the wits and English language
author romansh
date Thu, 18 Mar 2004 04:19:34 +0000
parents 85fe2f4633ec
children 129236143f2e
comparison
equal deleted inserted replaced
1894:3135de68d556 1895:e5687117cc7f
237 static const int mb_area_start[5] = { 1, 6, 21, 43, 64 }; 237 static const int mb_area_start[5] = { 1, 6, 21, 43, 64 };
238 238
239 #ifndef ALT_BITSTREAM_READER 239 #ifndef ALT_BITSTREAM_READER
240 #warning only works with ALT_BITSTREAM_READER 240 #warning only works with ALT_BITSTREAM_READER
241 #endif 241 #endif
242
243 static inline int get_bits_left(GetBitContext *s)
244 {
245 return s->size_in_bits - get_bits_count(s);
246 }
247
248 static inline int get_bits_size(GetBitContext *s)
249 {
250 return s->size_in_bits;
251 }
252
253 static inline int put_bits_left(PutBitContext* s)
254 {
255 return (s->buf_end - s->buf) * 8 - put_bits_count(s);
256 }
242 257
243 /* decode ac coefs */ 258 /* decode ac coefs */
244 static void dv_decode_ac(GetBitContext *gb, BlockInfo *mb, DCTELEM *block) 259 static void dv_decode_ac(GetBitContext *gb, BlockInfo *mb, DCTELEM *block)
245 { 260 {
246 int last_index = get_bits_size(gb); 261 int last_index = get_bits_size(gb);