ref: f0b4868625e67f8c4cf6ba917a74404ef7226b1c
parent: bd990cad72ecdc864ebfd4470dbbd747974f3aa9
author: Marco <marpan@google.com>
date: Tue Nov 28 09:28:26 EST 2017
vp9-svc: Fix condition for setting downsampling filter. Use (width * height) for setting downsampling filter type. Change-Id: If4acfde7ff9339e0584155f8a4d15b2f134211f2
--- a/vp9/encoder/vp9_svc_layercontext.c
+++ b/vp9/encoder/vp9_svc_layercontext.c
@@ -656,9 +656,9 @@
lc->scaling_factor_num, lc->scaling_factor_den, &width,
&height);
- // For low resolutions: set phase of the filter = 8 (for symmetric averaging
- // filter), use bilinear for now.
- if (width <= 320 && height <= 240) {
+ // For resolutions <= QVGA: set phase of the filter = 8 (for symmetric
+ // averaging filter), use bilinear for now.
+ if (width * height <= 320 * 240) {
cpi->svc.downsample_filter_type[cpi->svc.spatial_layer_id] = BILINEAR;
cpi->svc.downsample_filter_phase[cpi->svc.spatial_layer_id] = 8;
}