summaryrefslogtreecommitdiff
path: root/vp9
diff options
context:
space:
mode:
authorYunqing Wang <yunqingwang@google.com>2015-08-04 12:06:21 -0700
committerYunqing Wang <yunqingwang@google.com>2015-08-04 12:06:21 -0700
commita3d22aa2a4e9946f5dd5e0e77c351511fb5d97ec (patch)
treeba237df29236d4aea61dba76a87486222df6785a /vp9
parent0e3f494b217bde5e1d47107cdfbb044e4d801cec (diff)
downloadlibvpx-a3d22aa2a4e9946f5dd5e0e77c351511fb5d97ec.tar
libvpx-a3d22aa2a4e9946f5dd5e0e77c351511fb5d97ec.tar.gz
libvpx-a3d22aa2a4e9946f5dd5e0e77c351511fb5d97ec.tar.bz2
libvpx-a3d22aa2a4e9946f5dd5e0e77c351511fb5d97ec.zip
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
Diffstat (limited to 'vp9')
-rw-r--r--vp9/encoder/vp9_mcomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vp9/encoder/vp9_mcomp.c b/vp9/encoder/vp9_mcomp.c
index 081b99f9f..6e0c561c3 100644
--- a/vp9/encoder/vp9_mcomp.c
+++ b/vp9/encoder/vp9_mcomp.c
@@ -735,7 +735,7 @@ int vp9_find_best_sub_pixel_tree(const MACROBLOCK *x,
bc = tc;
}
- if (iters_per_step > 1)
+ if (iters_per_step > 1 && best_idx != -1)
SECOND_LEVEL_CHECKS;
tr = br;