diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-05-07 11:48:07 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-05-07 11:48:07 +0000 |
commit | 1dd509b1576e9fcac45ea63a664abf29ee419ded (patch) | |
tree | 5da894f614107fe5e10f3d54b1eb98a738c6f7f4 /libavcodec/motion_est_template.c | |
parent | 60827a1a802f0608852b1bd2184fc7d4bcd71cd4 (diff) | |
download | ffmpeg-1dd509b1576e9fcac45ea63a664abf29ee419ded.tar.gz |
make zero motion vector threshold user setable
Originally committed as revision 5348 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/motion_est_template.c')
-rw-r--r-- | libavcodec/motion_est_template.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/motion_est_template.c b/libavcodec/motion_est_template.c index 23ead283c8..16d34bb881 100644 --- a/libavcodec/motion_est_template.c +++ b/libavcodec/motion_est_template.c @@ -896,7 +896,8 @@ static always_inline int epzs_motion_search_internal(MpegEncContext * s, int *mx 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; |