pub fn frame_to_encoded_buffer<FMT>(
frame: &dyn HasRowChunksExact<FMT>,
opts: EncoderOptions,
) -> Result<Vec<u8>, Error>where
FMT: PixelFormat,Expand description
Convert any type implementing HasRowChunksExact to a Jpeg or Png buffer using the EncoderOptions specified.