mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
CANDIDATE_MB_TYPE_INTER heuristic doesnt work at really low quality where the distortion becomes less relevant then the overhead of intra blocks
Originally committed as revision 6829 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0a4250bc92
commit
95da34cd54
@ -1299,7 +1299,8 @@ void ff_estimate_p_frame_motion(MpegEncContext * s,
|
|||||||
|
|
||||||
if (vard*2 + 200*256 > varc)
|
if (vard*2 + 200*256 > varc)
|
||||||
mb_type|= CANDIDATE_MB_TYPE_INTRA;
|
mb_type|= CANDIDATE_MB_TYPE_INTRA;
|
||||||
if (varc*2 + 200*256 > vard){
|
if (varc*2 + 200*256 > vard || s->qscale > 24){
|
||||||
|
// if (varc*2 + 200*256 + 50*(s->lambda2>>FF_LAMBDA_SHIFT) > vard){
|
||||||
mb_type|= CANDIDATE_MB_TYPE_INTER;
|
mb_type|= CANDIDATE_MB_TYPE_INTER;
|
||||||
c->sub_motion_search(s, &mx, &my, dmin, 0, 0, 0, 16);
|
c->sub_motion_search(s, &mx, &my, dmin, 0, 0, 0, 16);
|
||||||
if(s->flags&CODEC_FLAG_MV0)
|
if(s->flags&CODEC_FLAG_MV0)
|
||||||
|
Loading…
Reference in New Issue
Block a user