shithub: libvpx

Download patch

ref: 349c3118bd4ae5009c2ab82742fa32a4f8440394
parent: 04e9456567790666b65de4c1989cc1b5a5b8480d
author: Marco <marpan@google.com>
date: Thu Apr 6 12:35:01 EDT 2017

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

--- a/vp9/encoder/vp9_noise_estimate.c
+++ b/vp9/encoder/vp9_noise_estimate.c
@@ -132,8 +132,10 @@
     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 {