shithub: libvpx

Download patch

ref: a3d22aa2a4e9946f5dd5e0e77c351511fb5d97ec
parent: 0e3f494b217bde5e1d47107cdfbb044e4d801cec
author: Yunqing Wang <yunqingwang@google.com>
date: Tue Aug 4 08:06:21 EDT 2015

Small improvement in sub-pixel motion search

If the current best mv(namely, the search center) is still the best mv
after the first level search, the second level checks is skipped. This
patch doesn't change the bitstream. At speed 0, it speeds up the encoder
by 1% - 2%.

Change-Id: I054c91b884d3f7aef157436c061744562bd6506d

--- a/vp9/encoder/vp9_mcomp.c
+++ b/vp9/encoder/vp9_mcomp.c
@@ -735,7 +735,7 @@
       bc = tc;
     }
 
-    if (iters_per_step > 1)
+    if (iters_per_step > 1 && best_idx != -1)
       SECOND_LEVEL_CHECKS;
 
     tr = br;