Merge "vp9; Adjust noise estimation thresholds."

This commit is contained in:
Marco Paniconi
2017-05-11 21:58:40 +00:00
committed by Gerrit Code Review

View File

@@ -32,7 +32,7 @@ void vp9_noise_estimate_init(NOISE_ESTIMATE *const ne, int width, int height) {
if (width * height >= 1920 * 1080) { if (width * height >= 1920 * 1080) {
ne->thresh = 200; ne->thresh = 200;
} else if (width * height >= 1280 * 720) { } else if (width * height >= 1280 * 720) {
ne->thresh = 150; ne->thresh = 140;
} else if (width * height >= 640 * 360) { } else if (width * height >= 640 * 360) {
ne->thresh = 100; ne->thresh = 100;
} }
@@ -116,7 +116,7 @@ void vp9_update_noise_estimate(VP9_COMP *const cpi) {
// Tune these thresholds for different resolutions when denoising is // Tune these thresholds for different resolutions when denoising is
// enabled. // enabled.
if (cm->width > 640 && cm->width < 1920) { if (cm->width > 640 && cm->width < 1920) {
thresh_consec_zeromv = 5; thresh_consec_zeromv = 4;
thresh_sum_diff = 200; thresh_sum_diff = 200;
thresh_sum_spatial = (120 * 120) << 8; thresh_sum_spatial = (120 * 120) << 8;
thresh_spatial_var = (48 * 48) << 8; thresh_spatial_var = (48 * 48) << 8;