Mercurial > libavcodec.hg
diff mpegvideo.c @ 320:cda7d0857baf libavcodec
- ME setting moved to AVCodecContext/MpegEncContext, no longer a global.
- EPZS ME algo used by default.
- HQ flag activated for ffmpeg.
- Cosmetics ...
author | pulento |
---|---|
date | Sun, 14 Apr 2002 18:57:51 +0000 |
parents | 40d8092e2ff0 |
children | 2b00e171b1d4 |
line wrap: on
line diff
--- a/mpegvideo.c Fri Apr 12 14:01:10 2002 +0000 +++ b/mpegvideo.c Sun Apr 14 18:57:51 2002 +0000 @@ -313,8 +313,10 @@ } else { s->intra_only = 0; } - s->full_search = motion_estimation_method; - + + /* ME algorithm */ + s->me_method = avctx->me_method; + /* Fixed QSCALE */ s->fixed_qscale = (avctx->flags & CODEC_FLAG_QSCALE); switch(avctx->codec->id) { @@ -413,7 +415,7 @@ mpeg1_encode_init(s); /* dont use mv_penalty table for crap MV as it would be confused */ - if(s->full_search<4) s->mv_penalty= default_mv_penalty; + if (s->me_method < 0) s->mv_penalty = default_mv_penalty; s->encoding = 1; @@ -1344,7 +1346,7 @@ } /* find best f_code for ME which do unlimited searches */ - if(s->pict_type==P_TYPE && s->full_search>3){ + if(s->pict_type == P_TYPE && s->me_method >= 0){ int mv_num[8]; int i; int loose=0;