shithub: libvpx

Download patch

ref: e6332e04f20277de7db0314f95a0d8f6a841f10d
parent: 41071cadec1ad24d3c37ce3a81b5ec36801bec2e
author: Jerome Jiang <[email protected]>
date: Tue Nov 20 06:52:09 EST 2018

Disable partition scaling on 1080p and above.

BUG=webm:1578
Change-Id: I7c8014b7ab96d372d486433bce24d058a60fdc85

--- a/vp9/encoder/vp9_speed_features.c
+++ b/vp9/encoder/vp9_speed_features.c
@@ -710,9 +710,11 @@
     // For SVC: enable use of lower resolution partition for higher resolution,
     // only for 3 spatial layers and when config/top resolution is above VGA.
     // Enable only for non-base temporal layer frames.
+    // TODO(jianj): Investigate webm:1578
     if (cpi->use_svc && cpi->svc.use_partition_reuse &&
         cpi->svc.number_spatial_layers == 3 && cpi->svc.temporal_layer_id > 0 &&
-        cpi->oxcf.width * cpi->oxcf.height > 640 * 480)
+        cpi->oxcf.width * cpi->oxcf.height > 640 * 480 &&
+        cpi->oxcf.width * cpi->oxcf.height < 1920 * 1080)
       sf->svc_use_lowres_part = 1;
     // For SVC when golden is used as second temporal reference: to avoid
     // encode time increase only use this feature on base temporal layer.