Skip to main content

decode_slice

Function decode_slice 

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

Decode a single-band, single-depth LERC blob, returning typed pixel data, the validity mask, width, and height.

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).