Skip to main content

check_yuv_transcode

Function check_yuv_transcode 

Source
pub fn check_yuv_transcode(
    source: &Path,
    width: u32,
    height: u32,
    encoding: YuvEncoding,
) -> Result<(), String>
Expand description

Whether source’s decoded pictures can become a widthxheight output’s frames with no conversion: the file side of a YUV transcode, encoded as encoding.

Unlike a copy any container, codec and frame grid qualify, since frames are picked exactly as for a render; only size, orientation, pixel shape, color, sampling and chroma siting decide.

§Errors

Names what the render would have changed.