Function convert_image::encode_y4m_frame
source · pub fn encode_y4m_frame<FMT>(
frame: &dyn ImageStride<FMT>,
out_colorspace: Y4MColorspace,
forced_block_size: Option<u32>
) -> Result<Y4MFrame, Error>where
FMT: PixelFormat,
Expand description
Convert any type implementing ImageStride<FMT>
to a y4m buffer.
The y4m format is described at http://wiki.multimedia.cx/index.php?title=YUV4MPEG2