]> granicus.if.org Git - libvpx/commitdiff
Disable partition scaling on 1080p and above.
authorJerome Jiang <jianj@google.com>
Tue, 20 Nov 2018 19:52:09 +0000 (11:52 -0800)
committerJerome Jiang <jianj@google.com>
Tue, 20 Nov 2018 20:29:51 +0000 (12:29 -0800)
BUG=webm:1578
Change-Id: I7c8014b7ab96d372d486433bce24d058a60fdc85

vp9/encoder/vp9_speed_features.c

index 9f2dc144e4599f255c742e5c5918a2dcff803f29..bf0a6bf5a5bc878fc2dd730ffd98003f0385f0c4 100644 (file)
@@ -710,9 +710,11 @@ static void set_rt_speed_feature_framesize_independent(
     // 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.