ref: 503cb8e63a06ab62ca814bcf79ef9971bdaa745a
parent: b4fa2bdd923a272f1b2713e74b8109d7314c8428
author: Marco Paniconi <[email protected]>
date: Thu Feb 28 14:58:08 EST 2019
vp9-rtc: Set init noise level based on resoln Avoid the kLow init level for lower resolns. Change-Id: I1c9968a6891668b5887e35695f2a44158a4b3a18
--- a/vp9/encoder/vp9_noise_estimate.c
+++ b/vp9/encoder/vp9_noise_estimate.c
@@ -32,7 +32,7 @@
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;