Add palette and spatial for q >= 75 and -m 5

Change-Id: I12198b7eb82a4247e606bc60342595abf4d6eee0
This commit is contained in:
Vincent Rabaud 2020-06-17 12:49:25 +02:00
parent f0110baec0
commit cf2f88b38f

View File

@ -425,6 +425,15 @@ static int EncoderAnalyze(VP8LEncoder* const enc,
// Only choose the guessed best transform.
*crunch_configs_size = 1;
crunch_configs[0].entropy_idx_ = min_entropy_ix;
if (config->quality >= 75 && method == 5) {
// Test with and without color cache.
do_no_cache = 1;
// If we have a palette, also check in combination with spatial.
if (min_entropy_ix == kPalette) {
*crunch_configs_size = 2;
crunch_configs[1].entropy_idx_ = kPaletteAndSpatial;
}
}
}
}
// Fill in the different LZ77s.