Skip to main content

encode

Function encode 

Source
pub fn encode(argb: &[u32], dims: Dimensions) -> Result<Vec<u8>>
Expand description

Encodes an ARGB image (scan order, 0xAARRGGBB) to a VP8L bitstream body — the bytes that go inside the VP8L chunk, signature byte included.

§Errors

Returns Error::InvalidInput if argb.len() does not equal width * height, or the dimensions are out of the VP8L range.