pub fn encode_gray(
gray: &[u8],
width: u32,
height: u32,
cfg: &EncodeConfig,
) -> Result<Vec<u8>, EncodeError>Expand description
Encode a packed 8-bit grayscale image to HEIC (monochrome, no chroma).
gray must hold exactly width * height bytes.