For non-rd variance partition, avoid the chrome check
unless y_sad is below some threshold.
Small decrease in avgPSNR (~0.3) on RTC set.
Small/negligible decrease on RTC_derf.
Change-Id: I7af44235af514058ccf9a4f10bb737da9d720866
unsigned int y_sad, int is_key_frame) {
int i;
MACROBLOCKD *xd = &x->e_mbd;
- if (is_key_frame) return;
+ // For speed >= 8, avoid the chroma check if y_sad is above threshold.
+ if (is_key_frame || (cpi->oxcf.speed >= 8 && y_sad > cpi->vbp_thresholds[1]))
+ return;
for (i = 1; i <= 2; ++i) {
unsigned int uv_sad = UINT_MAX;