pub fn encode_gray_alpha(
ya: &[u8],
width: u32,
height: u32,
cfg: &EncodeConfig,
) -> Result<Vec<u8>, EncodeError>Expand description
Encode a packed 8-bit grayscale + alpha image to HEIC. Alpha is discarded.
Use encode_gray_alpha_with_alpha to preserve it.
ya must hold exactly width * height * 2 bytes in Y, A order.