mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-17 16:32:11 +01:00
script: use the smallest dictionary grid at q10/q11 for big inputs
Like the regular grid, qualities 10 and 11 use the smallest dictionary configuration set for inputs longer than 64 KiB.
This commit is contained in:
1 file changed
+4
-1
@@ -1388,7 +1388,10 @@ run_input_dict(const char* name, const uint8_t* data, size_t len) {
|
||||
continue;
|
||||
}
|
||||
for (uint32_t q = g_qmin; q <= g_qmax; q++) {
|
||||
run_dict_configs(name, data, len, q, level);
|
||||
// Qualities 10 and 11 (which are much slower) use the smallest grid
|
||||
// for inputs longer than 64 KiB.
|
||||
run_dict_configs(name, data, len, q,
|
||||
((q >= 10) && (len > (64 << 10))) ? 2 : level);
|
||||
if ((set == 1) && (len >= 1000) && (q >= 5)) {
|
||||
check_smaller(name, data, len, q);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user