Skip to main content

present_for_extraction

Function present_for_extraction 

Source
pub fn present_for_extraction(
    renderer: &CpuRenderer,
    frame: Arc<DecodedVideoFrame>,
    size: u32,
) -> Result<SuppliedFrame, String>
Expand description

A decoded frame presented on the CPU renderer as an extraction delivery: display-oriented, contain-fit to at most size on the long edge, straight-alpha sRGB RGBA8. HDR is tone-mapped with the default tone map.

ยงErrors

A frame the renderer cannot present.