diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-09-25 23:18:58 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-09-25 23:18:58 +0000 |
commit | 178fcca84883bdbff02d5ae8eb7825bf884b40d8 (patch) | |
tree | daf6d857ef63cf0ad688acdadf1091732507b965 /libavcodec/mpegvideo.h | |
parent | bc133816c03b32d722fa43cfe1d199a273fc65b4 (diff) | |
download | ffmpeg-178fcca84883bdbff02d5ae8eb7825bf884b40d8.tar.gz |
1/2 resolution decoding
Originally committed as revision 3507 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.h')
-rw-r--r-- | libavcodec/mpegvideo.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h index 0c317202c1..19aa1bca2e 100644 --- a/libavcodec/mpegvideo.h +++ b/libavcodec/mpegvideo.h @@ -773,15 +773,17 @@ extern enum PixelFormat ff_yuv420p_list[2]; void ff_init_block_index(MpegEncContext *s); static inline void ff_update_block_index(MpegEncContext *s){ + const int block_size= 8>>s->avctx->lowres; + s->block_index[0]+=2; s->block_index[1]+=2; s->block_index[2]+=2; s->block_index[3]+=2; s->block_index[4]++; s->block_index[5]++; - s->dest[0]+= 16; - s->dest[1]+= 8; - s->dest[2]+= 8; + s->dest[0]+= 2*block_size; + s->dest[1]+= block_size; + s->dest[2]+= block_size; } static inline int get_bits_diff(MpegEncContext *s){ |