]> granicus.if.org Git - libvpx/commitdiff
vp9-svc: Adjust search step param for spatial layers
authorMarco Paniconi <marpan@google.com>
Mon, 17 Dec 2018 23:12:04 +0000 (15:12 -0800)
committerMarco Paniconi <marpan@google.com>
Mon, 17 Dec 2018 23:24:59 +0000 (15:24 -0800)
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

vp9/encoder/vp9_speed_features.c

index d7620d7e00311f345c60cfaa30317e59789bde83..c960b8af5209a058559f0a96f6daff63341d4071 100644 (file)
@@ -799,7 +799,9 @@ static void set_rt_speed_feature_framesize_independent(
       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;
   }
 }