vp9: Update threshold for partition copy.
Avoid many visual artifacts. Compression quality is improved by more than 1%. Encode speed is about 4% for QVGA and 6% for VGA faster on android. Change-Id: I4dd0a81429ddf7efdef1e80a191da5fb8de8e8af
This commit is contained in:
parent
f129e09529
commit
2ff2376fbc
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user