vp8-denoiser: Update some denoiser thresholds.
authorMarco <marpan@google.com>
Tue, 16 Feb 2016 21:15:03 +0000 (13:15 -0800)
committerMarco <marpan@google.com>
Wed, 17 Feb 2016 18:38:35 +0000 (10:38 -0800)
Change-Id: I67090d72c0fefd3105ac380415249599e053d3bd

vp8/encoder/denoising.c
vp8/encoder/denoising.h

index 2a21943..f50d9a8 100644 (file)
@@ -23,7 +23,7 @@ static const unsigned int NOISE_MOTION_THRESHOLD = 25 * 25;
  */
 static const unsigned int SSE_DIFF_THRESHOLD = 16 * 16 * 20;
 static const unsigned int SSE_THRESHOLD = 16 * 16 * 40;
-static const unsigned int SSE_THRESHOLD_HIGH = 16 * 16 * 60;
+static const unsigned int SSE_THRESHOLD_HIGH = 16 * 16 * 80;
 
 /*
  * The filter function was modified to reduce the computational complexity.
index 9a379a6..f13d52f 100644 (file)
@@ -18,8 +18,8 @@
 extern "C" {
 #endif
 
-#define SUM_DIFF_THRESHOLD (16 * 16 * 2)
-#define SUM_DIFF_THRESHOLD_HIGH (600)  // ~(16 * 16 * 1.5)
+#define SUM_DIFF_THRESHOLD 384
+#define SUM_DIFF_THRESHOLD_HIGH 512
 #define MOTION_MAGNITUDE_THRESHOLD (8*3)
 
 #define SUM_DIFF_THRESHOLD_UV (96)   // (8 * 8 * 1.5)