# HG changeset patch # User michael # Date 1162065605 0 # Node ID bfab45292f1bbb1a28bba10c08d86ff9abffa49d # Parent 5e5c344702420d9387f7cbcb6cc20f6028a97149 CANDIDATE_MB_TYPE_INTER heuristic doesnt work at really low quality where the distortion becomes less relevant then the overhead of intra blocks diff -r 5e5c34470242 -r bfab45292f1b motion_est.c --- 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)