Skip to main content

ffmpeg_pixel_format

Function ffmpeg_pixel_format 

Source
pub fn ffmpeg_pixel_format(pixfmt: PixFmt) -> Result<&'static str, Error>
Expand description

The ffmpeg raw-video (-f rawvideo) pixel-format name corresponding to a PixFmt, if the bytes can be piped to ffmpeg without any conversion on our side (ffmpeg itself does any conversion the encoder needs).

Returns Err(Error::UnimplementedPixelFormat) for formats that would require us to convert first (e.g. 32-bit float or planar formats).