mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 13:48:21 +01:00
Add palette and spatial for q >= 75 and -m 5
Change-Id: I12198b7eb82a4247e606bc60342595abf4d6eee0
This commit is contained in:
parent
f0110baec0
commit
cf2f88b38f
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user