Skip to main content

Crate lerc_reader

Crate lerc_reader 

Source
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_mask single-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_mask variants
  • decode promoted f64 buffers with decode_to_f64
  • decode only the first promoted f64 blob with decode_first_to_f64
  • decode directly into ndarray::ArrayD with the default ndarray feature

Structs§

Decoded
Native-typed pixels, validated metadata, and an optional validity mask for one blob.
DecodedBandSet
Native-typed bands, per-band masks, and shared band-set metadata.
DecodedF64
Promoted f64 pixels, validated metadata, and an optional mask for one blob.
InspectOptions
Controls optional work performed while inspecting a blob.

Enums§

BandElementKind
Runtime discriminator for supported homogeneous band output types.

Traits§

BandElement
Sealed primitive types accepted by homogeneous band-set decode APIs.
NdArrayElement
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 f64 ndarray.
decode_band_set_ndarray_f64_with_layout
Decodes and promotes a band set into an f64 ndarray using layout.
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 f64 ndarray.
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 f64 samples and permits trailing bytes.
decode_first_to_f64_with_mask
Decodes the first externally masked blob as f64 and 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 f64 ndarray.
decode_ndarray_f64_with_mask
Strictly decodes one externally masked blob into an f64 ndarray.
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 f64 samples.
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 mask when it omits its own validity mask.
inspect_first_with_options
Inspects the first blob with configurable Lerc1 range computation.