[Ffmpeg-cvslog] r7333 - trunk/libavcodec/motion_est_template.c
michael
subversion
Wed Dec 20 02:30:17 CET 2006
Author: michael
Date: Wed Dec 20 02:30:17 2006
New Revision: 7333
Modified:
trunk/libavcodec/motion_est_template.c
Log:
dont favor the zero MV if mv0 is used (psnr per bitrate gains ranging from 0 to 0.14, most are <=0.04 though)
Modified: trunk/libavcodec/motion_est_template.c
==============================================================================
--- trunk/libavcodec/motion_est_template.c (original)
+++ trunk/libavcodec/motion_est_template.c Wed Dec 20 02:30:17 2006
@@ -1023,6 +1023,8 @@
dmin= cmp(s, 0, 0, 0, 0, size, h, ref_index, src_index, cmpf, chroma_cmpf, flags);
map[0]= map_generation;
score_map[0]= dmin;
+ if(s->flags&CODEC_FLAG_MV0)
+ dmin += (mv_penalty[pred_x] + mv_penalty[pred_y])*penalty_factor;
/* first line */
if (s->first_slice_line) {
More information about the ffmpeg-cvslog
mailing list