shithub: libvpx

Download patch

ref: ff9395eb3bfd215e75f9759a055d505db5d6cf09
parent: b5055002d7a57ed21badf870f2af384193ac89b6
author: Marco <marpan@google.com>
date: Sun May 21 18:12:38 EDT 2017

vp9: Speed >= 8: Modify condition for low-resoln.

No change on RTC metrics.

Change-Id: I5abc573cb56572188d900645d13ba479f55a1ea0

--- a/vp9/encoder/vp9_speed_features.c
+++ b/vp9/encoder/vp9_speed_features.c
@@ -578,7 +578,7 @@
 
     if (content == VP9E_CONTENT_SCREEN)
       sf->mv.subpel_force_stop = 3;
-    else if (cm->width > 352 && cm->height > 288)
+    else if (cm->width * cm->height > 352 * 288)
       sf->mv.subpel_force_stop = 2;
 
     if (content == VP9E_CONTENT_SCREEN) sf->lpf_pick = LPF_PICK_MINIMAL_LPF;
@@ -602,7 +602,7 @@
       }
       // Since the short_circuit_low_temp_var is used, reduce the
       // adaptive_rd_thresh level.
-      if (cm->width > 352 && cm->height > 288)
+      if (cm->width * cm->height > 352 * 288)
         sf->adaptive_rd_thresh = 1;
       else
         sf->adaptive_rd_thresh = 2;