From: Marco Date: Sat, 17 Dec 2016 00:01:59 +0000 (-0800) Subject: vp9: With denoising on, only estimate noise level for higher resolns. X-Git-Tag: v1.6.1~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e8dbc76ad0906666cf46461a79df952e8ba28e3;p=platform%2Fupstream%2Flibvpx.git vp9: With denoising on, only estimate noise level for higher resolns. Allow it for resolns above 640x360 for now. Change-Id: I087d0d8173f96b316164fdd4a499110ce2e7a233 --- diff --git a/vp9/encoder/vp9_noise_estimate.c b/vp9/encoder/vp9_noise_estimate.c index 0e5d8ad..caf48d8 100644 --- a/vp9/encoder/vp9_noise_estimate.c +++ b/vp9/encoder/vp9_noise_estimate.c @@ -38,9 +38,11 @@ void vp9_noise_estimate_init(NOISE_ESTIMATE *const ne, int width, int height) { } static int enable_noise_estimation(VP9_COMP *const cpi) { -// Enable noise estimation if denoising is on. +// Enable noise estimation if denoising is on, but not for low resolutions. #if CONFIG_VP9_TEMPORAL_DENOISING - if (cpi->oxcf.noise_sensitivity > 0) return 1; + if (cpi->oxcf.noise_sensitivity > 0 && cpi->common.width >= 640 && + cpi->common.height >= 360) + return 1; #endif // Only allow noise estimate under certain encoding mode. // Enabled for 1 pass CBR, speed >=5, and if resolution is same as original.