Define struct subchunk_config_t to compute subchunks sizes for
compression and decoding. Use the subchunk_config_t parameters to
determine whether if subchunk size is smaller than the remaining
rows/heights of data.
Const the chunk buffer data pointer (i.e. const uint8_t) whenever
possible to prevent new bugs.
Hide all internal functions with compiler flag -fvisibility=hidden.
When jpegls encoded size is larger than the source data size, reallocate buffer memory to increase size.
Define struct
subchunk_config_t
to compute subchunks sizes for compression and decoding. Use the subchunk_config_t parameters to determine whether if subchunk size is smaller than the remaining rows/heights of data.Const the chunk buffer data pointer (i.e.
const uint8_t
) whenever possible to prevent new bugs.Hide all internal functions with compiler flag
-fvisibility=hidden
.When jpegls encoded size is larger than the source data size, reallocate buffer memory to increase size.