shithub: libvpx

Download patch

ref: f1283ca4c60f49ee8ac75621067c888c5b05ae29
parent: ae145ca3a403c817c6392cfc92446f0fc57a50a8
parent: 4b7baf805f1577daa47b874d291d5bc242a7d03c
author: Marco Paniconi <marpan@google.com>
date: Fri Apr 24 20:20:42 EDT 2020

Merge "vp9-rtc: Some speedups to speed 5 real-time mode"

--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -5090,8 +5090,8 @@
 
   (void)*tp_orig;
 
-  // Avoid checking for rectangular partitions for speed >= 6.
-  if (cpi->oxcf.speed >= 6) do_rect = 0;
+  // Avoid checking for rectangular partitions for speed >= 5.
+  if (cpi->oxcf.speed >= 5) do_rect = 0;
 
   assert(num_8x8_blocks_wide_lookup[bsize] ==
          num_8x8_blocks_high_lookup[bsize]);
--- a/vp9/encoder/vp9_speed_features.c
+++ b/vp9/encoder/vp9_speed_features.c
@@ -634,6 +634,7 @@
       sf->use_compound_nonrd_pickmode = 1;
     }
     if (cm->width * cm->height > 1280 * 720) sf->cb_pred_filter_search = 1;
+    if (!cpi->external_resize) sf->use_source_sad = 1;
   }
 
   if (speed >= 6) {
@@ -645,8 +646,6 @@
     sf->mv.search_method = NSTEP;
     sf->mv.reduce_first_step_size = 1;
     sf->skip_encode_sb = 0;
-
-    if (!cpi->external_resize) sf->use_source_sad = 1;
 
     if (sf->use_source_sad) {
       sf->adapt_partition_source_sad = 1;