Skip to main content

present_decoded

Function present_decoded 

Source
pub fn present_decoded(
    renderer: &CpuRenderer,
    size: RenderSize,
    color: ColorPolicy,
    frame: Arc<DecodedVideoFrame>,
) -> Result<CpuSource, String>
Expand description

Lends a decoded frame’s planes to the CPU renderer, drawn at size.

§Errors

An HDR frame the color policy refuses, a plane count that does not match the pixel format, or a renderer failure.