Skip to main content

encode_image

Function encode_image 

Source
pub fn encode_image(
    frame: &Frame,
    format: ImageFormat,
    max_width: Option<u32>,
) -> Result<EncodedImage, ComputerError>
Expand description

Resize to max_width when the frame is wider, then encode.

None and Some(0) both keep the source width.