From: Marco Paniconi Date: Fri, 1 Mar 2019 03:58:08 +0000 (-0800) Subject: vp9-rtc: Set init noise level based on resoln X-Git-Tag: v1.8.1~222 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=503cb8e63a06ab62ca814bcf79ef9971bdaa745a;p=libvpx vp9-rtc: Set init noise level based on resoln Avoid the kLow init level for lower resolns. Change-Id: I1c9968a6891668b5887e35695f2a44158a4b3a18 --- 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;