Commit 888bb6c1 authored by Marco Paniconi's avatar Marco Paniconi Committed by Gerrit Code Review
Browse files

Merge "vp9: Update threshold for partition copy."

parents d630cda5 2ff2376f
......@@ -527,11 +527,13 @@ void vp9_set_variance_partition_thresholds(VP9_COMP *cpi, int q) {
: 1000;
cpi->vbp_bsize_min = BLOCK_16X16;
if (cm->width <= 352 && cm->height <= 288)
cpi->vbp_threshold_copy = 40960;
cpi->vbp_threshold_copy = 4000;
else if (cm->width <= 640 && cm->height <= 360)
cpi->vbp_threshold_copy = 9000;
else
cpi->vbp_threshold_copy = (cpi->y_dequant[q][1] << 6) > 32000
? (cpi->y_dequant[q][1] << 6)
: 32000;
cpi->vbp_threshold_copy = (cpi->y_dequant[q][1] << 5) > 16000
? (cpi->y_dequant[q][1] << 5)
: 16000;
}
cpi->vbp_threshold_minmax = 15 + (q >> 3);
}
......
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