Disable upsampled references for resolutions above 1080p.

Upsampled references currently increase the size of references by
64 times. This patch limits the memory used by the encoder to
about 3GB when encoding high bit depth content.

This should be re-evaluated in the future, if doing 8-tap
resampling in the motion search becomes reasonably fast, or if
the upsampled references are reduced in size (by omitting some
subpel positions and interpolating them instead).

Change-Id: I6d84ff0d6202ec46f4fa53e268e68aa808e5df85
This commit is contained in:
Thomas Daede 2016-10-18 17:02:39 -07:00
Родитель 0fcd3e1013
Коммит f330ca8ca8
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -69,6 +69,11 @@ static void set_good_speed_feature_framesize_dependent(AV1_COMP *cpi,
int speed) {
AV1_COMMON *const cm = &cpi->common;
// Limit memory usage for high resolutions
if (AOMMIN(cm->width, cm->height) > 1080) {
sf->use_upsampled_references = 0;
}
if (speed >= 1) {
if (AOMMIN(cm->width, cm->height) >= 720) {
sf->disable_split_mask =