Commit 064a9eca authored by Marco's avatar Marco
Browse files

Non-rd partition: reduce variance threshold low resolutions.

Change-Id: I06306905d187948a92f839357df5d21413823808
parent 79a19469
...@@ -497,10 +497,10 @@ static void set_vbp_thresholds(VP9_COMP *cpi, int64_t thresholds[], int q) { ...@@ -497,10 +497,10 @@ static void set_vbp_thresholds(VP9_COMP *cpi, int64_t thresholds[], int q) {
if (cpi->noise_estimate.level == kMedium) if (cpi->noise_estimate.level == kMedium)
threshold_base = threshold_base << 1; threshold_base = threshold_base << 1;
} }
thresholds[1] = threshold_base;
if (cm->width <= 352 && cm->height <= 288) { if (cm->width <= 352 && cm->height <= 288) {
thresholds[0] = threshold_base >> 2; thresholds[0] = threshold_base >> 3;
thresholds[2] = threshold_base << 3; thresholds[1] = threshold_base >> 1;
thresholds[2] = threshold_base << 2;
} else { } else {
thresholds[0] = threshold_base; thresholds[0] = threshold_base;
thresholds[1] = (5 * threshold_base) >> 2; thresholds[1] = (5 * threshold_base) >> 2;
...@@ -526,7 +526,7 @@ void vp9_set_variance_partition_thresholds(VP9_COMP *cpi, int q) { ...@@ -526,7 +526,7 @@ void vp9_set_variance_partition_thresholds(VP9_COMP *cpi, int q) {
cpi->vbp_bsize_min = BLOCK_8X8; cpi->vbp_bsize_min = BLOCK_8X8;
} else { } else {
if (cm->width <= 352 && cm->height <= 288) if (cm->width <= 352 && cm->height <= 288)
cpi->vbp_threshold_sad = 100; cpi->vbp_threshold_sad = 10;
else else
cpi->vbp_threshold_sad = (cpi->y_dequant[q][1] << 1) > 1000 ? cpi->vbp_threshold_sad = (cpi->y_dequant[q][1] << 1) > 1000 ?
(cpi->y_dequant[q][1] << 1) : 1000; (cpi->y_dequant[q][1] << 1) : 1000;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment