From e6332e04f20277de7db0314f95a0d8f6a841f10d Mon Sep 17 00:00:00 2001 From: Jerome Jiang Date: Tue, 20 Nov 2018 11:52:09 -0800 Subject: [PATCH] Disable partition scaling on 1080p and above. BUG=webm:1578 Change-Id: I7c8014b7ab96d372d486433bce24d058a60fdc85 --- vp9/encoder/vp9_speed_features.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vp9/encoder/vp9_speed_features.c b/vp9/encoder/vp9_speed_features.c index 9f2dc144e..bf0a6bf5a 100644 --- a/vp9/encoder/vp9_speed_features.c +++ b/vp9/encoder/vp9_speed_features.c @@ -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. -- 2.40.0