Skip to main content

downsample_444_to_420_frame

Function downsample_444_to_420_frame 

Source
pub fn downsample_444_to_420_frame(frame: &VideoFrame) -> Result<VideoFrame>
Expand description

High-level frame-shaped wrapper. Takes a Yuv444p10le / Yuva444p10le VideoFrame and returns a Yuv420p10le VideoFrame ready for the 10-bit AV1 encoder. Alpha plane (if present) is dropped with a warn-log — see module docstring for rationale. 8-bit equivalent (Yuv444pYuv420p) follows the same pattern, plumbed through downsample_chroma_444_to_420.

Errors if the source format is not 4:4:4.