]> granicus.if.org Git - libvpx/commitdiff
vp9: With denoising on, only estimate noise level for higher resolns.
authorMarco <marpan@google.com>
Sat, 17 Dec 2016 00:01:59 +0000 (16:01 -0800)
committerMarco <marpan@google.com>
Mon, 19 Dec 2016 18:05:54 +0000 (10:05 -0800)
Allow it for resolns above 640x360 for now.

Change-Id: I087d0d8173f96b316164fdd4a499110ce2e7a233

vp9/encoder/vp9_noise_estimate.c

index 0e5d8ade4ae43da4780ef0e8539e49212dd45bf9..caf48d8c166c9dbbba3ede5ecf0cbb97b7525fe3 100644 (file)
@@ -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.