Skip to main content

Module nbit_scaleoffset

Module nbit_scaleoffset 

Source
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 dt needs a post-filter datatype conversion before the element values are usable.
reverse_scaleoffset
Reverse the HDF5 scale-offset filter (decompress only).