summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_noise_estimate.c
diff options
context:
space:
mode:
authorMarco Paniconi <marpan@google.com>2019-02-21 19:32:07 -0800
committerMarco Paniconi <marpan@google.com>2019-02-21 19:34:37 -0800
commitd84bf53f607982f002f1900e4c5894ba9b470770 (patch)
tree1587e3466dfa9fb7e0bd64c11f86026991299c54 /vp9/encoder/vp9_noise_estimate.c
parent986b2bef7f475543a441cf9aa5a3ca55dd57ccae (diff)
downloadlibvpx-d84bf53f607982f002f1900e4c5894ba9b470770.tar
libvpx-d84bf53f607982f002f1900e4c5894ba9b470770.tar.gz
libvpx-d84bf53f607982f002f1900e4c5894ba9b470770.tar.bz2
libvpx-d84bf53f607982f002f1900e4c5894ba9b470770.zip
vp9-rtc: Adjust thresholds for noise estimation.
Lower the frame_motion and consec_zeromv thresholds, this make the noise estimation and denoiser have more effect on noisy clips. Change-Id: I49cf5d78a04d00fcf8538bee6f3b2980efe6b3b5
Diffstat (limited to 'vp9/encoder/vp9_noise_estimate.c')
-rw-r--r--vp9/encoder/vp9_noise_estimate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vp9/encoder/vp9_noise_estimate.c b/vp9/encoder/vp9_noise_estimate.c
index fc189dbb1..fdafefd33 100644
--- a/vp9/encoder/vp9_noise_estimate.c
+++ b/vp9/encoder/vp9_noise_estimate.c
@@ -125,7 +125,7 @@ void vp9_update_noise_estimate(VP9_COMP *const cpi) {
// Tune these thresholds for different resolutions when denoising is
// enabled.
if (cm->width > 640 && cm->width < 1920) {
- thresh_consec_zeromv = 4;
+ thresh_consec_zeromv = 2;
thresh_sum_diff = 200;
thresh_sum_spatial = (120 * 120) << 8;
thresh_spatial_var = (48 * 48) << 8;
@@ -151,7 +151,7 @@ void vp9_update_noise_estimate(VP9_COMP *const cpi) {
} else if (frame_counter > 60 && cpi->svc.num_encoded_top_layer > 1 &&
cpi->rc.frames_since_key > cpi->svc.number_spatial_layers &&
cpi->svc.spatial_layer_id == cpi->svc.number_spatial_layers - 1 &&
- cpi->rc.avg_frame_low_motion < (low_res ? 70 : 50)) {
+ cpi->rc.avg_frame_low_motion < (low_res ? 60 : 40)) {
// Force noise estimation to 0 and denoiser off if content has high motion.
ne->level = kLowLow;
ne->count = 0;