Skip to main content

decode_slice

Function decode_slice 

Source
pub fn decode_slice<T: Sample>(blob: &[u8]) -> Result<DecodedSlice<T>>
Expand description

Decode a single-band, single-depth LERC blob into a DecodedSlice<T> containing the typed pixel data, validity mask, and image dimensions.

The pixel type T must match the blob’s data type. Returns an error on type mismatch or if the blob contains multiple bands or depths (use decode for multi-band/multi-depth blobs to get full shape and per-band masks).