diff options
author | Marco <marpan@google.com> | 2016-12-16 16:01:59 -0800 |
---|---|---|
committer | Marco <marpan@google.com> | 2016-12-19 10:05:54 -0800 |
commit | 6e8dbc76ad0906666cf46461a79df952e8ba28e3 (patch) | |
tree | fa7dd18de9d9703b7e5932982eebf316c1a00bea /vp9/encoder/vp9_noise_estimate.c | |
parent | 7e23f895ca868a5b3ad5ec8eda3433a19a58d750 (diff) | |
download | libvpx-6e8dbc76ad0906666cf46461a79df952e8ba28e3.tar.gz |
vp9: With denoising on, only estimate noise level for higher resolns.
Allow it for resolns above 640x360 for now.
Change-Id: I087d0d8173f96b316164fdd4a499110ce2e7a233
Diffstat (limited to 'vp9/encoder/vp9_noise_estimate.c')
-rw-r--r-- | vp9/encoder/vp9_noise_estimate.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vp9/encoder/vp9_noise_estimate.c b/vp9/encoder/vp9_noise_estimate.c index 0e5d8ade4..caf48d8c1 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. |