pub fn empty() -> Result<Self, Error> {
        let frame = ptr::NonNull::new(unsafe { av_frame_alloc() }).ok_or_else(Error::enomem)?;
        Ok(VideoFrame {
            frame,
            stuff: FrameStuff {
                dims: ImageDimensions {
                    width: 0,
                    height: 0,
                    pix_fmt: PixelFormat(-1),
                },
                data: ptr::null(),
                linesizes: ptr::null(),
                pts: 0,
            },
        })
    }
/// Creates a new `VideoFrame` which is empty: no allocated storage (reference-counted or
/// otherwise). Can be filled via `DecodeContext::decode_video`.
Creates a new `VideoFrame` which is empty: no allocated storage (reference-counted or
otherwise).
Creates a new ` VideoFrame ` which is empty : no allocated storage ( reference - counted or otherwise ) .
pub fn empty() -> Result<Self, Error> {
        let frame = ptr::NonNull::new(unsafe { av_frame_alloc() }).ok_or_else(Error::enomem)?;
        Ok(VideoFrame {
            frame,
            stuff: FrameStuff {
                dims: ImageDimensions {
                    width: 0,
                    height: 0,
                    pix_fmt: PixelFormat(-1),
                },
                data: ptr::null(),
                linesizes: ptr::null(),
                pts: 0,
            },
        })
    }
pub fn empty ( ) -> Result < Self , Error > { let frame = ptr :: NonNull :: new ( unsafe { av_frame_alloc ( ) } ) . ok_or_else ( Error :: enomem ) ? ; Ok ( VideoFrame { frame , stuff : FrameStuff { dims : ImageDimensions { width : 0 , height : 0 , pix_fmt : PixelFormat ( - 1 ) , } , data : ptr :: null ( ) , linesizes : ptr :: null ( ) , pts : 0 , } , } ) }
Creates a new `VideoFrame` which is empty: no allocated storage (reference-counted or
otherwise).
Creates a new ` VideoFrame ` which is empty : no allocated storage ( reference - counted or otherwise ) .