diff options
author | Marco <marpan@google.com> | 2018-01-04 14:20:59 -0800 |
---|---|---|
committer | Marco <marpan@google.com> | 2018-01-04 14:29:27 -0800 |
commit | 55db4f033f637e3e5ef326da5cf27e708b1336c0 (patch) | |
tree | 7cca19e9c2ec54827e7b471dfceaba1d05409997 /vp9/encoder | |
parent | 8a4336ed2edea09b67f49828df1f8c526a85a7a6 (diff) | |
download | libvpx-55db4f033f637e3e5ef326da5cf27e708b1336c0.tar libvpx-55db4f033f637e3e5ef326da5cf27e708b1336c0.tar.gz libvpx-55db4f033f637e3e5ef326da5cf27e708b1336c0.tar.bz2 libvpx-55db4f033f637e3e5ef326da5cf27e708b1336c0.zip |
vp9: Increase convergence speed of noise estimation.
Increase the recursive average factor from 15/16 to 3/4
to make the noise estimation respond faster.
Small/neglible change on low noise content, but better
denoising for noisy content.
Also encoder speedup of ~2-3% observed on some noisy clips.
Change-Id: I9dd02fe961ca24b411fe4c2732f814bf1e9a7f9f
Diffstat (limited to 'vp9/encoder')
-rw-r--r-- | vp9/encoder/vp9_noise_estimate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vp9/encoder/vp9_noise_estimate.c b/vp9/encoder/vp9_noise_estimate.c index 276a0c785..249e03760 100644 --- a/vp9/encoder/vp9_noise_estimate.c +++ b/vp9/encoder/vp9_noise_estimate.c @@ -258,7 +258,7 @@ void vp9_update_noise_estimate(VP9_COMP *const cpi) { // Normalize. avg_est = avg_est / num_samples; // Update noise estimate. - ne->value = (int)((15 * ne->value + avg_est) >> 4); + ne->value = (int)((3 * ne->value + avg_est) >> 2); ne->count++; if (ne->count == ne->num_frames_estimate) { // Reset counter and check noise level condition. |