Skip to main content

Crate ndic_zarr

Crate ndic_zarr 

Source
Expand description

ndic-zarr — Zarr v3 codecs and the codec-series builder.

nd-image-codecs contributes two registered Zarr v3 codecs and composes a third family from existing codecs:

CodecKindCrate
ndic_lift::CODEC_NAME (nd_lift)array → arrayndic-lift
HTJ2K_CODEC_NAME (htj2k)array → bytesndic-htj2k + ndic-codestream
ndic_zfp::CODEC_NAME (zfp)array → bytesndic-zfp

The series module builds complete codec pipelines (“series”) from axis metadata — transpose → decorrelation → plane/block codec — for the three families nd-delta, nd-lift-ht, and nd-zfp. See docs/architecture/codec-series.md.

Codecs register into the zarrs plugin registry via inventory when the zarrs feature is enabled: nd_lift in lift_codec, htj2k in htj2k_codec, nd_zfp in zfp_codec, and — for the nd-delta family, which zarrs cannot otherwise run — numcodecs.delta in [delta_codec].

Modules§

htj2k
The htj2k chunk codec core: chunk bytes ⇄ [header | coefficient-plane index | codestreams…].
lift
The nd_lift chunk transform core: element bytes ⇄ coefficient-plane bytes.
series
Codec-series builder: axis metadata → a complete Zarr v3 codec pipeline.

Constants§

HTJ2K_CODEC_NAME
The registered Zarr v3 array-to-bytes codec identifier for the HTJ2K coefficient-plane codec (independent Part 1 / Part 15 codestreams per trailing 2D plane, plus a coefficient-plane byte index for range access).
ND_LIFT_CODEC_NAME
The registered Zarr v3 array-to-array codec identifier.
ND_ZFP_LEGACY_CODEC_NAME
The deprecated pre-registration codec name, kept as a read alias so stores written before the zfp adoption keep decoding. Configurations under this name may carry the legacy dims member.
ZFP_CODEC_NAME
The Zarr v3 array-to-bytes codec identifier: the name registered in zarr-extensions, whose streams this codec reads and writes.