shithub: libvpx

Download patch

ref: db41138a09f4fdfe6bb4382e3ec9717ea315635d
parent: 581eed2bc0565f3ddd169c5084cb2afbde188597
author: Marco Paniconi <marpan@google.com>
date: Mon Dec 17 10:12:04 EST 2018

vp9-svc: Adjust search step param for spatial layers

For non-base spatial layer in screen-content mode:
use nstep but with larger step_param value than sl0,
to avoid increase in encode_time.
Some improvement on scrolling slides content.

Change-Id: Ica918ac01664431d1fabb3c674d857cf6ad87414

--- a/vp9/encoder/vp9_speed_features.c
+++ b/vp9/encoder/vp9_speed_features.c
@@ -799,7 +799,9 @@
       svc->spatial_layer_id == 0 &&
       (svc->high_num_blocks_with_motion || svc->last_layer_dropped[0])) {
     sf->mv.search_method = NSTEP;
-    sf->mv.fullpel_search_step_param = 2;
+    // TODO(marpan/jianj): Tune this setting for screensharing. For now use
+    // larger step_param for non-base layer, to avoid increase in encode time.
+    sf->mv.fullpel_search_step_param = (svc->spatial_layer_id == 0) ? 2 : 4;
   }
 }