Mercurial > libavcodec.hg
comparison dv.c @ 7614:1afa1171b7b2 libavcodec
Introducing DV_MAX_BPM macro instead of a hardcoded value for the
highest number of blocks per macroblock
author | romansh |
---|---|
date | Tue, 19 Aug 2008 16:00:26 +0000 |
parents | 06c291f42d5f |
children | 290fd3ae1219 |
comparison
equal
deleted
inserted
replaced
7613:ff395fe35161 | 7614:1afa1171b7b2 |
---|---|
358 uint8_t *y_ptr; | 358 uint8_t *y_ptr; |
359 void (*idct_put)(uint8_t *dest, int line_size, DCTELEM *block); | 359 void (*idct_put)(uint8_t *dest, int line_size, DCTELEM *block); |
360 const uint8_t *buf_ptr; | 360 const uint8_t *buf_ptr; |
361 PutBitContext pb, vs_pb; | 361 PutBitContext pb, vs_pb; |
362 GetBitContext gb; | 362 GetBitContext gb; |
363 BlockInfo mb_data[5 * 6], *mb, *mb1; | 363 BlockInfo mb_data[5 * DV_MAX_BPM], *mb, *mb1; |
364 DECLARE_ALIGNED_16(DCTELEM, sblock[5*6][64]); | 364 DECLARE_ALIGNED_16(DCTELEM, sblock[5*DV_MAX_BPM][64]); |
365 DECLARE_ALIGNED_8(uint8_t, mb_bit_buffer[80 + 4]); /* allow some slack */ | 365 DECLARE_ALIGNED_8(uint8_t, mb_bit_buffer[80 + 4]); /* allow some slack */ |
366 DECLARE_ALIGNED_8(uint8_t, vs_bit_buffer[5 * 80 + 4]); /* allow some slack */ | 366 DECLARE_ALIGNED_8(uint8_t, vs_bit_buffer[5 * 80 + 4]); /* allow some slack */ |
367 const int log2_blocksize= 3-s->avctx->lowres; | 367 const int log2_blocksize= 3-s->avctx->lowres; |
368 | 368 |
369 assert((((int)mb_bit_buffer)&7)==0); | 369 assert((((int)mb_bit_buffer)&7)==0); |