Similar to #86 for encoding, it would be great if an enhancement was made to implement a function similar to charls_jpegls_encoder_rewind, except on the decoding side of things.
The ideal state would be if, when decoding multiple same-sized images, no additional new/delete calls are made. This would be achieved in part by not needing to create and destroy a charls_jpegls_decoder object for each image that needs decoding.
Or, if it is possible to calculate memory needs for the encode/decode operation, enabling custom allocators would solve this as well. But that seems like a longer-term enhancement.