changeset 4100:bfab45292f1b libavcodec

CANDIDATE_MB_TYPE_INTER heuristic doesnt work at really low quality where the distortion becomes less relevant then the overhead of intra blocks
author michael
date Sat, 28 Oct 2006 20:00:05 +0000
parents 5e5c34470242
children a15abf56debf
files motion_est.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/motion_est.c	Sat Oct 28 18:30:20 2006 +0000
+++ b/motion_est.c	Sat Oct 28 20:00:05 2006 +0000
@@ -1299,7 +1299,8 @@
 
         if (vard*2 + 200*256 > varc)
             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;
             c->sub_motion_search(s, &mx, &my, dmin, 0, 0, 0, 16);
             if(s->flags&CODEC_FLAG_MV0)