summaryrefslogtreecommitdiff
path: root/vp9
diff options
context:
space:
mode:
authorMarco <marpan@google.com>2017-12-06 11:21:29 -0800
committerMarco <marpan@google.com>2017-12-06 12:01:24 -0800
commit3562d6b0a2cfccb1fb8fc18f065089f00d300216 (patch)
treec0cfafb4230bafb37e508c507d2d740fd7b53587 /vp9
parent575c1933ea52314b9c17770a4ed7032dcd477ec3 (diff)
downloadlibvpx-3562d6b0a2cfccb1fb8fc18f065089f00d300216.tar
libvpx-3562d6b0a2cfccb1fb8fc18f065089f00d300216.tar.gz
libvpx-3562d6b0a2cfccb1fb8fc18f065089f00d300216.tar.bz2
libvpx-3562d6b0a2cfccb1fb8fc18f065089f00d300216.zip
vp9-svc: Set downsampling filter for VGA layer.
Downsampling filter for SVC was set to subsample (phase 0) for HD -> VGA, and bilinear averaging (phase 8) for VGA -> QVGA. This change makes it bilinear averaging for HD -> VGA. Given the recent commit 9f9d4f8, quality is improved with this change: avgPSNR/SSIM up ~1-3% on HD clips in RTC set. Speed decrease of ~1% for 3 layer SVC. Change-Id: If834a320e372b8b922a6bf7cab4227703b1beae6
Diffstat (limited to 'vp9')
-rw-r--r--vp9/encoder/vp9_svc_layercontext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vp9/encoder/vp9_svc_layercontext.c b/vp9/encoder/vp9_svc_layercontext.c
index 38895be68..d215cf64a 100644
--- a/vp9/encoder/vp9_svc_layercontext.c
+++ b/vp9/encoder/vp9_svc_layercontext.c
@@ -656,9 +656,9 @@ int vp9_one_pass_cbr_svc_start_layer(VP9_COMP *const cpi) {
lc->scaling_factor_num, lc->scaling_factor_den, &width,
&height);
- // For resolutions <= QVGA: set phase of the filter = 8 (for symmetric
+ // For resolutions <= VGA: set phase of the filter = 8 (for symmetric
// averaging filter), use bilinear for now.
- if (width * height <= 320 * 240) {
+ if (width * height <= 640 * 480) {
cpi->svc.downsample_filter_type[cpi->svc.spatial_layer_id] = BILINEAR;
cpi->svc.downsample_filter_phase[cpi->svc.spatial_layer_id] = 8;
}