ref: d004c640133b5def534b219cbf66fce9784581e6
parent: 4736e5f9d148ae15344383596aeefdc949af274b
parent: 8cbd4f87011efff05efab2fd99c18abd5baaaa2a
author: Jacky Chen <jackychen@google.com>
date: Tue Jun 28 16:54:06 EDT 2016
Merge "vp9: Increase thr_var for 32x32 blocks in var-based partitioning."
--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -503,16 +503,18 @@
else if (noise_level < kLow)
threshold_base = (7 * threshold_base) >> 3;
}
+ thresholds[0] = threshold_base;
+ thresholds[2] = threshold_base << cpi->oxcf.speed;
if (cm->width <= 352 && cm->height <= 288) {
thresholds[0] = threshold_base >> 3;
thresholds[1] = threshold_base >> 1;
thresholds[2] = threshold_base << 3;
- } else {
- thresholds[0] = threshold_base;
+ } else if (cm->width < 1280 && cm->height < 720) {
thresholds[1] = (5 * threshold_base) >> 2;
- if (cm->width >= 1920 && cm->height >= 1080)
- thresholds[1] = (7 * threshold_base) >> 2;
- thresholds[2] = threshold_base << cpi->oxcf.speed;
+ } else if (cm->width < 1920 && cm->height < 1080) {
+ thresholds[1] = threshold_base << 1;
+ } else {
+ thresholds[1] = (5 * threshold_base) >> 1;
}
}
}