Expand description
Pure-Rust ports of the HDF5 N-bit (filter id 5) and Scale-offset (filter id 6) filters.
Both ports are byte-exact with libhdf5’s H5Znbit.c and
H5Zscaleoffset.c. The bit-packing helpers mirror the C routines
line-for-line so that crate-decoded chunks match libhdf5 element-exact.
Functions§
- apply_
datatype_ conversion - Apply the post-filter datatype conversion in place to a fully-decoded output buffer.
- apply_
nbit - Apply the HDF5 N-bit filter.
- datatype_
needs_ bit_ conversion - True if the filter-pipeline / on-disk output for
dtneeds a post-filter datatype conversion before the element values are usable. - reverse_
scaleoffset - Reverse the HDF5 scale-offset filter (decompress only).