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
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user