oxipng/tests
andrews05 f6c24409f1
If only one filter selected use it for evaluations (#582)
The filters used during reduction evaluations are normally set to None &
Bigrams, regardless of any options. This PR makes a slight change so
that if only one filter is specified in the options, this filter will be
used for reduction evaluations too.

This resolves an odd situation affecting lower levels (when --fast is
enabled) where you may try to force the filter to a specific value but
it actually ends up different because a reduction evaluation was
smaller. It's particularly helpful if you're wanting it to be as fast as
possible by using `-o0 -f0` which will now exclusively use None instead
of trying the slower Bigrams as well.

As another use, you could try to brute force oxipng by iterating each
filter separately, though this may not actually achieve anything 😂

[edit] I also pulled the options out into a separate file, though this
wasn't relevant to the filter change.
2023-12-10 13:15:45 +01:00
..
files If only one filter selected use it for evaluations (#582) 2023-12-10 13:15:45 +01:00
filters.rs Move file-specific options under OutFile (#529) 2023-09-25 11:15:13 +02:00
flags.rs Move file-specific options under OutFile (#529) 2023-09-25 11:15:13 +02:00
interlaced.rs Move file-specific options under OutFile (#529) 2023-09-25 11:15:13 +02:00
interlacing.rs Move file-specific options under OutFile (#529) 2023-09-25 11:15:13 +02:00
lib.rs Move file-specific options under OutFile (#529) 2023-09-25 11:15:13 +02:00
raw.rs Revamp CI workflow to upload artifacts, cross-compile ARM64 binaries, and more (#534) 2023-09-02 11:09:20 -04:00
reduction.rs Move file-specific options under OutFile (#529) 2023-09-25 11:15:13 +02:00
regression.rs Tidy some issue tests 2023-10-10 11:03:08 +13:00
strategies.rs Move file-specific options under OutFile (#529) 2023-09-25 11:15:13 +02:00