From 4800e179fea60bd5b79825a1e6c96e2df7252dec Mon Sep 17 00:00:00 2001 From: Marco Date: Wed, 20 Jan 2016 13:46:39 -0800 Subject: [PATCH] vp8-denoiser: Fix threshold for skin map. Make it consistent with the comment/intended behavior, that is, only denoise if current block is zero_mv. Change-Id: I3909761e802e80089752a493ab3646dc32698ded --- vp8/encoder/denoising.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vp8/encoder/denoising.c b/vp8/encoder/denoising.c index d197f8f81..2a21943fe 100644 --- a/vp8/encoder/denoising.c +++ b/vp8/encoder/denoising.c @@ -604,10 +604,9 @@ void vp8_denoiser_denoise_mb(VP8_DENOISER *denoiser, NOISE_MOTION_THRESHOLD; // If block is considered to be skin area, lower the motion threshold. - // In current version set threshold = 1, so only denoise very low - // (i.e., zero) mv on skin. + // In current version set threshold = 0, so only denoise zero mv on skin. if (x->is_skin) - motion_threshold = 1; + motion_threshold = 0; if (motion_magnitude2 < denoiser->denoise_pars.scale_increase_filter * NOISE_MOTION_THRESHOLD)