Skip to main content

Crate lerc_writer

Crate lerc_writer 

Source
Expand description

Pure-Rust Lerc2 writer for single-blob rasters and concatenated band sets.

Structs§

BandSetView
Borrowed, dimension-checked view of a multi-band raster.
EncodeOptions
Controls the accuracy and representation of a newly encoded LERC blob.
MaskView
Borrowed, dimension-checked validity mask; zero is invalid and nonzero is valid.
RasterView
Borrowed, dimension-checked view of one pixel-interleaved raster band.

Functions§

encode
Encodes one raster as a self-contained Lerc2 blob.
encode_band_set
Encodes a multi-band raster as concatenated Lerc2 blobs.
encode_band_set_into
Encodes a multi-band raster directly into a caller-provided byte slice.
encode_into
Encodes one raster directly into a caller-provided byte slice.
encoded_band_set_len_upper_bound
Returns the exact output-buffer size required to encode a concatenated band set.
encoded_len_upper_bound
Returns the exact output-buffer size required to encode one raster.