]> granicus.if.org Git - libvpx/commitdiff
vp9-rtc: Change init level of denoiser & noise level
authorMarco Paniconi <marpan@google.com>
Thu, 28 Feb 2019 00:19:33 +0000 (16:19 -0800)
committerMarco Paniconi <marpan@google.com>
Thu, 28 Feb 2019 00:25:22 +0000 (16:25 -0800)
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

vp9/encoder/vp9_denoiser.c
vp9/encoder/vp9_noise_estimate.c

index 65ce15ff7d0bf2e31399c11da09c7c281cb3014b..3d171c7dad574f801c529db2503072ce87fd3fc9 100644 (file)
@@ -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;
index 9a6535d5f71428eb2611ccb81825bd18d7651e57..d661a66aae5b7b528d0233ff72c35514b95b9baf 100644 (file)
@@ -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;