diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-09-05 10:26:11 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-09-05 10:26:11 +0000 |
commit | f79432a26edf0fa5d7ca76680ff6f4eb5e048223 (patch) | |
tree | d6343814056336ae87a73acb58e6c098a93ebf52 /libavcodec/svq1.c | |
parent | 1cef211dcaaf27a42f3dc60dcb7e4ebd008cd00b (diff) | |
download | ffmpeg-f79432a26edf0fa5d7ca76680ff6f4eb5e048223.tar.gz |
set a few variables correctly
Originally committed as revision 4560 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/svq1.c')
-rw-r--r-- | libavcodec/svq1.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libavcodec/svq1.c b/libavcodec/svq1.c index e59f1c731b..b94472e343 100644 --- a/libavcodec/svq1.c +++ b/libavcodec/svq1.c @@ -1118,8 +1118,15 @@ static int svq1_encode_plane(SVQ1Context *s, int plane, unsigned char *src_plane s->m.b8_stride= 2*s->m.mb_width+1; s->m.f_code=1; s->m.pict_type= s->picture.pict_type; - s->m.qscale= s->picture.quality/FF_QP2LAMBDA; s->m.me_method= s->avctx->me_method; + s->m.me.scene_change_score=0; + s->m.flags= s->avctx->flags; +// s->m.out_format = FMT_H263; +// s->m.unrestricted_mv= 1; + + s->m.lambda= s->picture.quality; + s->m.qscale= (s->m.lambda*139 + FF_LAMBDA_SCALE*64) >> (FF_LAMBDA_SHIFT + 7); + s->m.lambda2= (s->m.lambda*s->m.lambda + FF_LAMBDA_SCALE/2) >> FF_LAMBDA_SHIFT; if(!s->motion_val8[plane]){ s->motion_val8 [plane]= av_mallocz((s->m.b8_stride*block_height*2 + 2)*2*sizeof(int16_t)); |