vp9: Speed 8: Turn off 4x4avg for low-res non-key frames.

Changes only affects speed = 8 for low resolutions.

Metrics for avgPSNR/SSIM on rtc_derf (low resolutions) show loss of
0.5/0.6%.
On Nexus 6, the encoding time is reduced by ~5.9% on average across all
low-res clips.
Visually little/no change on rtc_derf clips.

Change-Id: I68dd50e558d72dcc1af8317d224bfae5e3bd872d
This commit is contained in:
Jerome Jiang 2016-11-14 10:22:00 -08:00
parent a3128ad33a
commit eff68a3a4d

View File

@ -834,8 +834,8 @@ static int choose_partitioning(VP9_COMP *cpi, const TileInfo *const tile,
}
}
threshold_4x4avg =
(cpi->oxcf.speed < 8) ? thresholds[1] << 1 : thresholds[2] >> 1;
// For non keyframes, disable 4x4 average for low resolution when speed = 8
threshold_4x4avg = (cpi->oxcf.speed < 8) ? thresholds[1] << 1 : INT64_MAX;
memset(x->variance_low, 0, sizeof(x->variance_low));