Expand description
Minimal lossless JPEG encoder, used to build synthetic fixtures for tests, fuzzing seeds and malformed-input suites (not optimised).
Functionsยง
- encode
- Encode
samples(heightrows ofwidth * compsinterleaved values) as a lossless JPEG with predictorpsv(1..=7) and a fixed Huffman table. - encode_
with_ restarts encodewith a restart interval ofrestartMCUs (0: none). Intervals must start at row starts; each one resets the first-column predictors, and other predictors keep reading the row above (as the decoder does).