image-rs / jpeg-decoder

JPEG decoder written in Rust
Apache License 2.0
149 stars 87 forks source link

Lossless spectral selection #209

Closed HeroicKatora closed 2 years ago

HeroicKatora commented 2 years ago

Fixes an issue where images utilizing some spectral selection patterns would get rejected, due to also requiring being valid for lossless decoding. However, in that case the parameter has a different meaning and must be in a list of enumerated values which must not be enforced for non-lossless cases. This was noticed in the image test-suite so the relevant image has been imported.