Mercurial > libavcodec.hg
comparison mpegvideo.c @ 1652:834922115010 libavcodec
cleanup
author | michael |
---|---|
date | Wed, 03 Dec 2003 16:47:17 +0000 |
parents | ccf7c96a630f |
children | c92147a61d97 |
comparison
equal
deleted
inserted
replaced
1651:ccf7c96a630f | 1652:834922115010 |
---|---|
3121 if((s->mv_dir&MV_DIRECT) || s->mv_type==MV_TYPE_8X8) | 3121 if((s->mv_dir&MV_DIRECT) || s->mv_type==MV_TYPE_8X8) |
3122 s->dquant=0; | 3122 s->dquant=0; |
3123 } | 3123 } |
3124 } | 3124 } |
3125 } | 3125 } |
3126 s->qscale= last_qp + s->dquant; | 3126 ff_set_qscale(s, last_qp + s->dquant); |
3127 s->chroma_qscale= s->chroma_qscale_table[ s->qscale ]; | |
3128 s->y_dc_scale= s->y_dc_scale_table[ s->qscale ]; | |
3129 s->c_dc_scale= s->c_dc_scale_table[ s->chroma_qscale ]; | |
3130 } | 3127 } |
3131 | 3128 |
3132 if (s->mb_intra) { | 3129 if (s->mb_intra) { |
3133 uint8_t *ptr; | 3130 uint8_t *ptr; |
3134 int wrap_y; | 3131 int wrap_y; |
3862 s->ptr_lastgob = s->pb.buf; | 3859 s->ptr_lastgob = s->pb.buf; |
3863 for(mb_y=0; mb_y < s->mb_height; mb_y++) { | 3860 for(mb_y=0; mb_y < s->mb_height; mb_y++) { |
3864 s->mb_x=0; | 3861 s->mb_x=0; |
3865 s->mb_y= mb_y; | 3862 s->mb_y= mb_y; |
3866 | 3863 |
3867 s->chroma_qscale= s->chroma_qscale_table[ s->qscale ]; | 3864 ff_set_qscale(s, s->qscale); |
3868 s->y_dc_scale= s->y_dc_scale_table[ s->qscale ]; | |
3869 s->c_dc_scale= s->c_dc_scale_table[ s->chroma_qscale ]; | |
3870 ff_init_block_index(s); | 3865 ff_init_block_index(s); |
3871 | 3866 |
3872 for(mb_x=0; mb_x < s->mb_width; mb_x++) { | 3867 for(mb_x=0; mb_x < s->mb_width; mb_x++) { |
3873 const int xy= mb_y*s->mb_stride + mb_x; | 3868 const int xy= mb_y*s->mb_stride + mb_x; |
3874 int mb_type= s->mb_type[xy]; | 3869 int mb_type= s->mb_type[xy]; |