Skip to main content

av_frame_to_image_frame

Function av_frame_to_image_frame 

Source
pub unsafe fn av_frame_to_image_frame(
    av_frame: *const AVFrame,
    limits: FrameLimits,
) -> Result<ImageFrame<PixelFormat, ImageFrameExtra, FfmpegBuffer>, ConvertError>
Expand description

[av_frame_to_image_frame_as] on the view lane.

ยงSafety

As the crate-private worker: a live source for the duration of the call, and โ€” on this lane โ€” no handle capable of mutating its buffers may outlive the returned carriers.