diff options
author | Marco <marpan@google.com> | 2017-04-06 16:35:01 -0700 |
---|---|---|
committer | Marco <marpan@google.com> | 2017-04-07 09:23:30 -0700 |
commit | 349c3118bd4ae5009c2ab82742fa32a4f8440394 (patch) | |
tree | d6cb7f90091456dc936f8b975c6ac6aba91b2e83 /vp9/encoder | |
parent | 04e9456567790666b65de4c1989cc1b5a5b8480d (diff) | |
download | libvpx-349c3118bd4ae5009c2ab82742fa32a4f8440394.tar libvpx-349c3118bd4ae5009c2ab82742fa32a4f8440394.tar.gz libvpx-349c3118bd4ae5009c2ab82742fa32a4f8440394.tar.bz2 libvpx-349c3118bd4ae5009c2ab82742fa32a4f8440394.zip |
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
Diffstat (limited to 'vp9/encoder')
-rw-r--r-- | vp9/encoder/vp9_noise_estimate.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 { |