shithub: libvpx

Download patch

ref: bff94472a66167ad9ba40ee3c5ad554cda1c8ed8
parent: 41bb11cf7e51c8fa471578817f41aa8f0ea2a406
author: Marco Paniconi <marpan@google.com>
date: Wed Nov 21 10:01:04 EST 2018

vp9 screen-content: Keep lower step_param for quality layers.

Issue with step_param = 2 seems specific to lower layers
with different resolution.

Change-Id: I26405488ac7691b3e471e98e794d4b1d8098a91d

--- a/vp9/encoder/vp9_speed_features.c
+++ b/vp9/encoder/vp9_speed_features.c
@@ -804,8 +804,12 @@
       cpi->svc.spatial_layer_id == 0 &&
       (cpi->rc.high_num_blocks_with_motion || cpi->svc.last_layer_dropped[0])) {
     sf->mv.search_method = NSTEP;
-    // TODO(marpan/jianj): Investigate issue for lower setting of step_param.
-    sf->mv.fullpel_search_step_param = 4;
+    sf->mv.fullpel_search_step_param = 2;
+    // TODO(marpan/jianj): Investigate issue for lower setting of step_param
+    // for spatial layers (namely on lower layers).
+    if (cpi->use_svc && cm->width != cpi->oxcf.width &&
+        cm->height != cpi->oxcf.height)
+      sf->mv.fullpel_search_step_param = 4;
   }
 }