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

Decides whether source’s decoded pictures can become a widthxheight output’s frames as they are, with no conversion: the file side of a YUV transcode, whose project side is the same untouched tiling a copy needs.

Unlike a copy, any container and codec qualify, and the frame grid is free: the decoder picks each frame’s picture exactly as it does for a render, so only what the render would have changed (size, orientation, pixel shape, color, sampling, and where the chroma samples sit) decides. The output is encoded as encoding.

§Errors

Names what the render would have changed.