diff motion_est_template.c @ 3293:f1bcb9ae510b libavcodec

make zero motion vector threshold user setable
author michael
date Sun, 07 May 2006 11:48:07 +0000
parents 0b546eab515d
children c8c591fe26f8
line wrap: on
line diff
--- a/motion_est_template.c	Sat May 06 10:57:38 2006 +0000
+++ b/motion_est_template.c	Sun May 07 11:48:07 2006 +0000
@@ -896,7 +896,8 @@
         CHECK_CLIPED_MV((last_mv[ref_mv_xy][0]*ref_mv_scale + (1<<15))>>16,
                         (last_mv[ref_mv_xy][1]*ref_mv_scale + (1<<15))>>16)
     }else{
-        if(dmin<h*h && ( P_LEFT[0]    |P_LEFT[1]
+        if(dmin<((h*h*s->avctx->mv0_threshold)>>8)
+                    && ( P_LEFT[0]    |P_LEFT[1]
                         |P_TOP[0]     |P_TOP[1]
                         |P_TOPRIGHT[0]|P_TOPRIGHT[1])==0){
             *mx_ptr= 0;