From: Marco Paniconi Date: Thu, 28 Feb 2019 00:19:33 +0000 (-0800) Subject: vp9-rtc: Change init level of denoiser & noise level X-Git-Tag: v1.8.1~225^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=75da091036823af9df1dbffc906ad27a877df3f8;p=libvpx vp9-rtc: Change init level of denoiser & noise level Change to init/reset level of the denoiser from kDenLow to kDenMedium, and the init noise level to kLow. This affects the denoiser level during the initialization stage of the noise estimation. Improves denoising for noisy content during init stage of noise estimation, with little effect for low noise/clean content. Change-Id: I247a17b0f01f646fc2e91a4a070ad69bdb788cae --- diff --git a/vp9/encoder/vp9_denoiser.c b/vp9/encoder/vp9_denoiser.c index 65ce15ff7..3d171c7da 100644 --- a/vp9/encoder/vp9_denoiser.c +++ b/vp9/encoder/vp9_denoiser.c @@ -689,8 +689,8 @@ int vp9_denoiser_alloc(VP9_COMMON *cm, struct SVC *svc, VP9_DENOISER *denoiser, make_grayscale(&denoiser->running_avg_y[i]); #endif denoiser->frame_buffer_initialized = 1; - denoiser->denoising_level = kDenLow; - denoiser->prev_denoising_level = kDenLow; + denoiser->denoising_level = kDenMedium; + denoiser->prev_denoising_level = kDenMedium; denoiser->reset = 0; denoiser->current_denoiser_frame = 0; return 0; diff --git a/vp9/encoder/vp9_noise_estimate.c b/vp9/encoder/vp9_noise_estimate.c index 9a6535d5f..d661a66aa 100644 --- a/vp9/encoder/vp9_noise_estimate.c +++ b/vp9/encoder/vp9_noise_estimate.c @@ -32,7 +32,7 @@ static INLINE int noise_est_svc(const struct VP9_COMP *const cpi) { void vp9_noise_estimate_init(NOISE_ESTIMATE *const ne, int width, int height) { ne->enabled = 0; - ne->level = kLowLow; + ne->level = kLow; ne->value = 0; ne->count = 0; ne->thresh = 90;