]> granicus.if.org Git - libvpx/commitdiff
vp9: Adjustment to noise estimation.
authorMarco <marpan@google.com>
Wed, 10 May 2017 16:36:10 +0000 (09:36 -0700)
committerMarco <marpan@google.com>
Wed, 10 May 2017 16:39:08 +0000 (09:39 -0700)
When the noise estimate is forced off due to large motion,
reset the counter and set smaller window for next estimate.

Change-Id: Ifa4ec95396134173a00d48353ad52f1b6a40c217

vp9/encoder/vp9_noise_estimate.c

index a84beb10447a6852fce626cba707ba6003f9333c..ca0873e4c436f46ed36a6e1364ce7b38fc8a5e1b 100644 (file)
@@ -141,6 +141,8 @@ void vp9_update_noise_estimate(VP9_COMP *const cpi) {
              cpi->rc.avg_frame_low_motion < (low_res ? 70 : 50)) {
     // Force noise estimation to 0 and denoiser off if content has high motion.
     ne->level = kLowLow;
+    ne->count = 0;
+    ne->num_frames_estimate = 10;
 #if CONFIG_VP9_TEMPORAL_DENOISING
     if (cpi->oxcf.noise_sensitivity > 0 && denoise_svc(cpi) &&
         cpi->svc.current_superframe > 1) {