diff options
author | Marco <marpan@google.com> | 2014-10-17 15:55:30 -0700 |
---|---|---|
committer | Marco <marpan@google.com> | 2014-10-17 15:57:25 -0700 |
commit | 6f77bff6aab085af8a8f3364ce842194e88a9bfb (patch) | |
tree | d4c049d1b92a7941685d37c00d56f763571d633a /vp8/encoder/denoising.c | |
parent | b671491ad473436d74c7a54a7693efcb1484a23c (diff) | |
download | libvpx-6f77bff6aab085af8a8f3364ce842194e88a9bfb.tar libvpx-6f77bff6aab085af8a8f3364ce842194e88a9bfb.tar.gz libvpx-6f77bff6aab085af8a8f3364ce842194e88a9bfb.tar.bz2 libvpx-6f77bff6aab085af8a8f3364ce842194e88a9bfb.zip |
Updates to aggressive denoising mode.
Fix to the noise level and bitrate threshold settings per resolution.
Change-Id: I25524b7f78afa1aeb76edef7be13c17bc8976508
Diffstat (limited to 'vp8/encoder/denoising.c')
-rw-r--r-- | vp8/encoder/denoising.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/vp8/encoder/denoising.c b/vp8/encoder/denoising.c index 12f9734a1..75b2a3be4 100644 --- a/vp8/encoder/denoising.c +++ b/vp8/encoder/denoising.c @@ -390,9 +390,9 @@ void vp8_denoiser_set_parameters(VP8_DENOISER *denoiser, int mode) { denoiser->denoise_pars.scale_motion_thresh = 16; denoiser->denoise_pars.scale_increase_filter = 1; denoiser->denoise_pars.denoise_mv_bias = 60; - denoiser->denoise_pars.pickmode_mv_bias = 60; - denoiser->denoise_pars.qp_thresh = 100; - denoiser->denoise_pars.consec_zerolast = 10; + denoiser->denoise_pars.pickmode_mv_bias = 75; + denoiser->denoise_pars.qp_thresh = 85; + denoiser->denoise_pars.consec_zerolast = 15; denoiser->denoise_pars.spatial_blur = 20; } } @@ -453,17 +453,17 @@ int vp8_denoiser_allocate(VP8_DENOISER *denoiser, int width, int height, // Bitrate thresholds and noise metric (nmse) thresholds for switching to // aggressive mode. // TODO(marpan): Adjust thresholds, including effect on resolution. - denoiser->bitrate_threshold = 200000; // (bits/sec). + denoiser->bitrate_threshold = 300000; // (bits/sec). denoiser->threshold_aggressive_mode = 35; - if (width * height > 640 * 480) { - denoiser->bitrate_threshold = 500000; - denoiser->threshold_aggressive_mode = 100; + if (width * height > 1280 * 720) { + denoiser->bitrate_threshold = 2000000; + denoiser->threshold_aggressive_mode = 1400; } else if (width * height > 960 * 540) { denoiser->bitrate_threshold = 800000; denoiser->threshold_aggressive_mode = 150; - } else if (width * height > 1280 * 720) { - denoiser->bitrate_threshold = 2000000; - denoiser->threshold_aggressive_mode = 1400; + } else if (width * height > 640 * 480) { + denoiser->bitrate_threshold = 500000; + denoiser->threshold_aggressive_mode = 100; } return 0; } |