From 503cb8e63a06ab62ca814bcf79ef9971bdaa745a Mon Sep 17 00:00:00 2001 From: Marco Paniconi Date: Thu, 28 Feb 2019 19:58:08 -0800 Subject: [PATCH] vp9-rtc: Set init noise level based on resoln Avoid the kLow init level for lower resolns. Change-Id: I1c9968a6891668b5887e35695f2a44158a4b3a18 --- vp9/encoder/vp9_noise_estimate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vp9/encoder/vp9_noise_estimate.c b/vp9/encoder/vp9_noise_estimate.c index d661a66aa..bd98d221a 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 = kLow; + ne->level = (width * height < 1280 * 720) ? kLowLow : kLow; ne->value = 0; ne->count = 0; ne->thresh = 90; -- 2.40.0