encode_raw_image

Function encode_raw_image 

Source
pub fn encode_raw_image(
    encoder: Encoder,
    image: &[u8],
    width: usize,
    height: usize,
) -> Result<EncodedImage>
Expand description

Encodes a raw image with the AV1 format

§Behavior

The image is encoded with the settings the user passes in with the Encoder argument. The encoded image (EncodedImage) is returned from the raw image.

§Error

If the image had incorrect proerties (Eg.: Invalid size).