]> granicus.if.org Git - libvpx/commitdiff
vp9: Enable two speed features for SVC real-time mode.
authorMarco <marpan@google.com>
Thu, 9 Mar 2017 00:10:45 +0000 (16:10 -0800)
committerMarco <marpan@google.com>
Thu, 9 Mar 2017 00:13:59 +0000 (16:13 -0800)
Enable short_circuit_low_temp_var and limit_newmv_early_exit
for SVC, 1 pass CBR mode.

Change-Id: I77df2b2c6cc40657bb8ea76e19dfc2fdaad6389e

vp9/encoder/vp9_speed_features.c

index dfe132cbd2133a2bdca8da7230e65192900762ba..417c19fd90c5ca87026a68b46c6658ec105b49f9 100644 (file)
@@ -472,9 +472,9 @@ static void set_rt_speed_feature_framesize_independent(
       sf->short_circuit_flat_blocks = 1;
     }
     if (cpi->oxcf.rc_mode == VPX_CBR &&
-        cpi->oxcf.content != VP9E_CONTENT_SCREEN && !cpi->use_svc) {
+        cpi->oxcf.content != VP9E_CONTENT_SCREEN) {
       sf->limit_newmv_early_exit = 1;
-      sf->bias_golden = 1;
+      if (!cpi->use_svc) sf->bias_golden = 1;
     }
   }
 
@@ -485,8 +485,7 @@ static void set_rt_speed_feature_framesize_independent(
     sf->mv.search_method = NSTEP;
     sf->mv.reduce_first_step_size = 1;
     sf->skip_encode_sb = 0;
-    if (!cpi->use_svc && cpi->oxcf.rc_mode == VPX_CBR &&
-        content != VP9E_CONTENT_SCREEN) {
+    if (cpi->oxcf.rc_mode == VPX_CBR && content != VP9E_CONTENT_SCREEN) {
       // Enable short circuit for low temporal variance.
       sf->short_circuit_low_temp_var = 1;
     }