Add dedicated zlib codec option#578
Conversation
|
I've added unit tests for |
|
@jwlodek this is great. For consistency with other plugins I think it also needs:
|
|
That looks fine. I will be happy to do the autoconversion as soon as this is merged. |
|
|
|
Ok, so everything is working except writing Zlib pre-compressed arrays with the HDF5 plugin. Need to double check that. |
That could be due to a similar issue with lz4 and bslz4 where one needs to add a header to the compressed data block: ADCore/ADApp/pluginSrc/NDFileHDF5Dataset.cpp Line 299 in 08a54db ADCore/ADApp/pluginSrc/NDFileHDF5Dataset.cpp Line 316 in 08a54db |
|
Ok, I was able to resolve it. The issue was I was setting Essentially the |
|
This looks good to me. I will merge it. |
|
I tested with ADSimDetector and was able to display zlib compressed data in ImageJ and stream to an HDF5 file. h5dump reported the correct information: |
|
I tweaked NDPCodec.adl and did the autoconverts to other OPIs. Pushed to master. |





Working with a detector that produces zlib compressed arrays, would like to allow for marking the NDArray as ZLIB compressed.
Still a WIP, needs testing.Tested with arrays directly from detector and with NDPluginCodec, with decompression in ImageJ.