]> granicus.if.org Git - libvpx/commitdiff
vp9-svc: Allow for adapt_rd_thresh with row-mt.
authorMarco <marpan@google.com>
Mon, 23 Oct 2017 17:58:28 +0000 (10:58 -0700)
committerMarco <marpan@google.com>
Mon, 23 Oct 2017 18:47:18 +0000 (11:47 -0700)
Set adaptive_row_thresh_mt = 1 at speed >= 7,
for svc when multi-threading is used with row-mt.
This allow the adaptive_rd_thresh feature to be used
in the nonrd-pickmode.

~1-2% speedup for SVC encoding with small quality
loss (< 0.6%) on RTC set.

Change-Id: Iab9878dff117bccdaef3e4d0645165db9808cdfc

vp9/encoder/vp9_speed_features.c

index e5499d6dd4e68a3b767b6fa1fa1febcc951919f3..cebaca7fc61b42493b6bfe7e6694851b2f28f8a5 100644 (file)
@@ -583,6 +583,8 @@ static void set_rt_speed_feature_framesize_independent(
       if (cpi->svc.non_reference_frame)
         sf->mv.subpel_search_method = SUBPEL_TREE_PRUNED_EVENMORE;
     }
+    if (cpi->use_svc && cpi->row_mt && cpi->oxcf.max_threads > 1)
+      sf->adaptive_rd_thresh_row_mt = 1;
     // Enable partition copy. For SVC only enabled for top spatial resolution
     // layer.
     cpi->max_copied_frame = 0;