shithub: libvpx

Download patch

ref: 6e8dbc76ad0906666cf46461a79df952e8ba28e3
parent: 7e23f895ca868a5b3ad5ec8eda3433a19a58d750
author: Marco <marpan@google.com>
date: Fri Dec 16 11:01:59 EST 2016

vp9: With denoising on, only estimate noise level for higher resolns.

Allow it for resolns above 640x360 for now.

Change-Id: I087d0d8173f96b316164fdd4a499110ce2e7a233

--- a/vp9/encoder/vp9_noise_estimate.c
+++ b/vp9/encoder/vp9_noise_estimate.c
@@ -38,9 +38,11 @@
 }
 
 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.