From 1b59964162729e33cee49b736cddadc8d854879a Mon Sep 17 00:00:00 2001 From: Marco Date: Wed, 10 May 2017 09:36:10 -0700 Subject: [PATCH] vp9: Adjustment to noise estimation. 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vp9/encoder/vp9_noise_estimate.c b/vp9/encoder/vp9_noise_estimate.c index a84beb104..ca0873e4c 100644 --- a/vp9/encoder/vp9_noise_estimate.c +++ b/vp9/encoder/vp9_noise_estimate.c @@ -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) {