vp9; Adjust noise estimation thresholds.
authorMarco <marpan@google.com>
Wed, 10 May 2017 23:46:50 +0000 (16:46 -0700)
committerMarco <marpan@google.com>
Wed, 10 May 2017 23:48:10 +0000 (16:48 -0700)
Change-Id: Ia41a11df18e5a58d2b8bbecd11c249d357de2a8f

vp9/encoder/vp9_noise_estimate.c

index c769407..e2239b4 100644 (file)
@@ -32,7 +32,7 @@ void vp9_noise_estimate_init(NOISE_ESTIMATE *const ne, int width, int height) {
   if (width * height >= 1920 * 1080) {
     ne->thresh = 200;
   } else if (width * height >= 1280 * 720) {
-    ne->thresh = 150;
+    ne->thresh = 140;
   } else if (width * height >= 640 * 360) {
     ne->thresh = 100;
   }
@@ -116,7 +116,7 @@ void vp9_update_noise_estimate(VP9_COMP *const cpi) {
     // Tune these thresholds for different resolutions when denoising is
     // enabled.
     if (cm->width > 640 && cm->width < 1920) {
-      thresh_consec_zeromv = 5;
+      thresh_consec_zeromv = 4;
       thresh_sum_diff = 200;
       thresh_sum_spatial = (120 * 120) << 8;
       thresh_spatial_var = (48 * 48) << 8;