shithub: libvpx

Download patch

ref: 30c261b1ebe8f06d687cac5b3b442d51a7839d00
parent: f53b656207daebaee57d2162e8534e34c0b3f6a5
parent: c9ff7b66372581af8960a5dab5ca498999bd538a
author: Marco Paniconi <marpan@google.com>
date: Wed Aug 23 19:09:33 EDT 2017

Merge "vp9: SVC: Skip NEWMV for small blocks for (0, 0) base_mv."

--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -1805,6 +1805,14 @@
               (frame_mv[NEWMV][ref_frame].as_mv.col >> 3);
           cpi->fn_ptr[bsize].vf(x->plane[0].src.buf, x->plane[0].src.stride,
                                 pre_buf, pre_stride, &base_mv_sse);
+
+          // Exit NEWMV search if base_mv is (0,0) && bsize < BLOCK_16x16,
+          // for SVC encoding.
+          if (cpi->use_svc && cpi->svc.use_base_mv && bsize < BLOCK_16X16 &&
+              frame_mv[NEWMV][ref_frame].as_mv.row == 0 &&
+              frame_mv[NEWMV][ref_frame].as_mv.col == 0)
+            continue;
+
           // Exit NEWMV search if base_mv_sse is large.
           if (sf->base_mv_aggressive && base_mv_sse > (best_sse_sofar << scale))
             continue;