Mercurial > libavcodec.hg
changeset 4312:eb0ae1ce40a5 libavcodec
dont favor the zero MV if mv0 is used (psnr per bitrate gains ranging from 0 to 0.14, most are <=0.04 though)
author | michael |
---|---|
date | Wed, 20 Dec 2006 01:30:17 +0000 |
parents | f9325f2bc762 |
children | 13c897abcab3 |
files | motion_est_template.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/motion_est_template.c Mon Dec 18 22:43:09 2006 +0000 +++ b/motion_est_template.c Wed Dec 20 01:30:17 2006 +0000 @@ -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) {