Skip to main content

encode_gray_alpha10

Function encode_gray_alpha10 

Source
pub fn encode_gray_alpha10(
    ya: &[u16],
    width: u32,
    height: u32,
    cfg: &EncodeConfig,
) -> Result<Vec<u8>, EncodeError>
Expand description

Encode a 10-bit interleaved grayscale+alpha image (u16 Y, A pairs) to a HEIF file, preserving alpha as a 10-bit monochrome auxiliary image.