Skip to main content

encode_gray

Function encode_gray 

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

Encode grayscale and wrap it in a HEIF container. See encode_gray_266.