antonysigma / jpegls-hdf5-filter

Fork of hdf5-jpegls-filter on Sourceforge, by D. Swanepoel & F. van den Bergh
http://dx.doi.org/10.1080/17538947.2017.1301580
MIT License
0 stars 0 forks source link

Implement encoder logic in a separate cpp file #9

Closed antonysigma closed 2 years ago

antonysigma commented 2 years ago

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.

antonysigma commented 2 years ago

Duplicated PR. Closing.