Skip to main content

image_frame_from

Function image_frame_from 

Source
pub fn image_frame_from(
    frame: &Frame,
    limits: FrameLimits,
) -> Result<ImageFrame<PixelFormat, ImageFrameExtra, FfmpegBytes>, ConvertError>
Expand description

Safe wrapper around av_frame_to_image_frame taking a borrowed ffmpeg::Frame.

Owned-lane, for the reason video_frame_from states: a borrowed frame cannot be safely viewed.