pub fn encode_slice_masked<T: Sample>(
width: u32,
height: u32,
data: &[T],
mask: &BitMask,
precision: Precision<T>,
) -> Result<Vec<u8>>Expand description
Encode a single-band image with a validity mask.
The pixel type T determines the LERC data type automatically via Sample.
Returns an error if data.len() != width * height or if the mask size does not match.