Expand description
Pure-Rust LERC decoder.
The public API distinguishes strict single-blob entry points from concatenated-band helpers:
- inspect a single blob with
get_blob_info - inspect only the first blob with
inspect_first - pass an explicit shared or external mask with the
*_with_masksingle-blob variants - count concatenated blobs with
get_band_count - decode a single blob with
decode - decode only the first blob with
decode_first - decode concatenated band sets with
decode_band_set - seed a first-band external mask with the band-set
*_with_maskvariants - decode promoted
f64buffers withdecode_to_f64 - decode only the first promoted
f64blob withdecode_first_to_f64 - decode directly into
ndarray::ArrayDwith the defaultndarrayfeature
Structs§
- Decoded
- Native-typed pixels, validated metadata, and an optional validity mask for one blob.
- Decoded
Band Set - Native-typed bands, per-band masks, and shared band-set metadata.
- Decoded
F64 - Promoted
f64pixels, validated metadata, and an optional mask for one blob. - Inspect
Options - Controls optional work performed while inspecting a blob.
Enums§
- Band
Element Kind - Runtime discriminator for supported homogeneous band output types.
Traits§
- Band
Element - Sealed primitive types accepted by homogeneous band-set decode APIs.
- NdArray
Element - Sealed primitive types accepted by single-blob ndarray decode APIs.
Functions§
- decode
- Strictly decodes exactly one blob into its native sample type.
- decode_
band_ mask_ ndarray - Returns decoded band masks as an ndarray without decoding pixel values.
- decode_
band_ mask_ ndarray_ with_ mask - Returns band masks seeded by an external mask as an ndarray.
- decode_
band_ set - Decodes every concatenated blob as a native-typed band set.
- decode_
band_ set_ from_ reader - Reads concatenated blobs through clean EOF and decodes them as a band set.
- decode_
band_ set_ from_ reader_ with_ mask - Streams a band set through EOF with an initial external mask.
- decode_
band_ set_ into - Decodes a band set directly into an exactly sized output slice.
- decode_
band_ set_ into_ with_ mask - Decodes an externally masked band set directly into an output slice.
- decode_
band_ set_ ndarray - Decodes a band set into an interleaved ndarray.
- decode_
band_ set_ ndarray_ f64 - Decodes and promotes a band set into an interleaved
f64ndarray. - decode_
band_ set_ ndarray_ f64_ with_ layout - Decodes and promotes a band set into an
f64ndarray usinglayout. - decode_
band_ set_ ndarray_ f64_ with_ layout_ and_ mask - Decodes and promotes an externally masked band set using
layout. - decode_
band_ set_ ndarray_ f64_ with_ mask - Decodes and promotes an externally masked band set into an
f64ndarray. - decode_
band_ set_ ndarray_ with_ layout - Decodes a band set into an ndarray using
layout. - decode_
band_ set_ ndarray_ with_ layout_ and_ mask - Decodes an externally masked band set into an ndarray using
layout. - decode_
band_ set_ ndarray_ with_ mask - Decodes an externally masked band set into an interleaved ndarray.
- decode_
band_ set_ vec - Decodes a band set into a homogeneous vector in the requested layout.
- decode_
band_ set_ vec_ with_ mask - Decodes an externally masked band set into a homogeneous vector.
- decode_
band_ set_ with_ mask - Decodes a band set, seeding the first blob with an external mask.
- decode_
first - Decodes the first blob and permits trailing bytes.
- decode_
first_ to_ f64 - Decodes the first blob as promoted
f64samples and permits trailing bytes. - decode_
first_ to_ f64_ with_ mask - Decodes the first externally masked blob as
f64and permits trailing bytes. - decode_
first_ with_ mask - Decodes the first blob with an initial external mask and permits trailing bytes.
- decode_
from_ reader - Reads and decodes exactly one blob, leaving subsequent stream bytes unread.
- decode_
from_ reader_ with_ mask - Reads and decodes one blob with an initial external mask.
- decode_
mask_ ndarray - Strictly decodes one blob’s validity mask as an ndarray.
- decode_
mask_ ndarray_ with_ mask - Strictly decodes one blob’s externally seeded mask as an ndarray.
- decode_
ndarray - Strictly decodes one native-typed blob into an ndarray.
- decode_
ndarray_ f64 - Strictly decodes one blob into a promoted
f64ndarray. - decode_
ndarray_ f64_ with_ mask - Strictly decodes one externally masked blob into an
f64ndarray. - decode_
ndarray_ with_ mask - Strictly decodes one externally masked blob into an ndarray.
- decode_
to_ f64 - Strictly decodes one blob and promotes every sample to
f64. - decode_
to_ f64_ from_ reader - Reads and decodes one blob as
f64, leaving later stream bytes unread. - decode_
to_ f64_ from_ reader_ with_ mask - Reads and decodes one externally masked blob as
f64. - decode_
to_ f64_ with_ mask - Strictly decodes one externally masked blob as promoted
f64samples. - decode_
with_ mask - Strictly decodes one blob with an initial external mask.
- get_
band_ count - Counts validated blobs in a concatenated band payload.
- get_
blob_ info - Strictly inspects one blob and rejects trailing bytes.
- get_
blob_ info_ with_ mask - Strictly inspects one externally masked blob and rejects trailing bytes.
- inspect_
first - Inspects the first blob and computes exact Lerc1 value ranges.
- inspect_
first_ with_ mask - Inspects the first blob using
maskwhen it omits its own validity mask. - inspect_
first_ with_ options - Inspects the first blob with configurable Lerc1 range computation.