ref: a257e469e170db485faf870472a1f31b3aa06413
parent: 3a7bc161560d9aaeaadf3a6efeb19e1f0768e4e2
author: Yunqing Wang <[email protected]>
date: Mon Apr 27 08:40:00 EDT 2015
Adjust the vbp early termination threshold slightly Calculated cpi->vbp_threshold_sad from this frame's dequant value. The encoding quality and speed didn't change much. Borg test result: PSNR: -0.002%, SSIM: -0.003%. Change-Id: I97c9826986f39582f29910d637d08a69c90afdee
--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -499,7 +499,8 @@
cpi->vbp_thresholds[0] = threshold_base;
cpi->vbp_thresholds[1] = (5 * threshold_base) >> 2;
cpi->vbp_thresholds[2] = threshold_base << cpi->oxcf.speed;
- cpi->vbp_threshold_sad = 1000;
+ cpi->vbp_threshold_sad = (cpi->y_dequant[q][1] << 1) > 1000 ?
+ (cpi->y_dequant[q][1] << 1) : 1000;
}
cpi->vbp_bsize_min = BLOCK_16X16;
}