From: Marco Date: Thu, 6 Apr 2017 23:35:01 +0000 (-0700) Subject: vp9: Fix to noise estimation for temporal denoising. X-Git-Tag: v1.7.0~570^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=349c3118bd4ae5009c2ab82742fa32a4f8440394;p=libvpx vp9: Fix to noise estimation for temporal denoising. If the noise estimation is avoided due to large motion, the last_source for denoising should still be updated. Change-Id: I67155ea7dbe9ac2785978e64a27bdafd7d57aac0 --- diff --git a/vp9/encoder/vp9_noise_estimate.c b/vp9/encoder/vp9_noise_estimate.c index fd6a4eee5..fc2e32448 100644 --- a/vp9/encoder/vp9_noise_estimate.c +++ b/vp9/encoder/vp9_noise_estimate.c @@ -132,8 +132,10 @@ void vp9_update_noise_estimate(VP9_COMP *const cpi) { ne->level = kLowLow; #if CONFIG_VP9_TEMPORAL_DENOISING if (cpi->oxcf.noise_sensitivity > 0 && denoise_svc(cpi) && - cpi->svc.current_superframe > 1) + cpi->svc.current_superframe > 1) { vp9_denoiser_set_noise_level(&cpi->denoiser, ne->level); + copy_frame(&cpi->denoiser.last_source, cpi->Source); + } #endif return; } else {