Skip to main content

av_frame_to_video_frame

Function av_frame_to_video_frame 

Source
pub unsafe fn av_frame_to_video_frame(
    av_frame: *const AVFrame,
    time_base: Timebase,
    limits: FrameLimits,
) -> Result<VideoFrame<PixelFormat, VideoFrameExtra, FfmpegBuffer>, ConvertError>
Expand description

[av_frame_to_video_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.