Skip to main content

packed_frame

Function packed_frame 

Source
pub fn packed_frame(
    width: u32,
    height: u32,
    layout: PixelLayout,
) -> Result<Yuv420pFrameBuffer, BridgeError>
Expand description

A reusable encoder frame for width x height pictures of layout, its planes in the layout’s storage order.

§Errors

Returns an error for a size that does not fit a frame or a failed allocation.