[Ffmpeg-cvslog] r6829 - trunk/libavcodec/motion_est.c
michael
subversion
Sat Oct 28 22:00:06 CEST 2006
Author: michael
Date: Sat Oct 28 22:00:05 2006
New Revision: 6829
Modified:
trunk/libavcodec/motion_est.c
Log:
CANDIDATE_MB_TYPE_INTER heuristic doesnt work at really low quality where the distortion becomes less relevant then the overhead of intra blocks
Modified: trunk/libavcodec/motion_est.c
==============================================================================
--- trunk/libavcodec/motion_est.c (original)
+++ trunk/libavcodec/motion_est.c Sat Oct 28 22:00:05 2006
@@ -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)
More information about the ffmpeg-cvslog
mailing list