threshold_base = 3 * threshold_base;
else if (noise_level == kMedium)
threshold_base = threshold_base << 1;
- else if (noise_level == kLowLow)
+ else if (noise_level < kLow)
threshold_base = (7 * threshold_base) >> 3;
}
if (cm->width <= 352 && cm->height <= 288) {
int width,
int height) {
ne->enabled = 0;
- ne->level = kUnknown;
+ ne->level = kLowLow;
ne->value = 0;
ne->count = 0;
ne->thresh = 90;
}
NOISE_LEVEL vp9_noise_estimate_extract_level(NOISE_ESTIMATE *const ne) {
- int noise_level = kUnknown;
+ int noise_level = kLowLow;
if (ne->value > (ne->thresh << 1)) {
noise_level = kHigh;
} else {
#endif
typedef enum noise_level {
- kUnknown,
kLowLow,
kLow,
kMedium,