pub fn prepare_gpu(
renderer: &Renderer,
size: RenderSize,
color: ColorPolicy,
frame: &DecodedVideoFrame,
) -> Result<GpuSource, String>Expand description
Uploads a decoded frame for the GPU renderer, drawn at size.
ยงErrors
An HDR frame the color policy refuses, a plane count that does not match the pixel format, an unsupported format, or a renderer failure.