mbuf_coded_video_frame_new

Function mbuf_coded_video_frame_new 

Source
pub unsafe extern "C" fn mbuf_coded_video_frame_new(
    frame_info: *mut vdef_coded_frame,
    ret_obj: *mut *mut mbuf_coded_video_frame,
) -> c_int
Expand description

Create a new coded frame based on the given infos.

The frame_info structure is copied internally and doesn’t need to stay valid for the lifetime of the frame. The frame should only be used by a single thread until it is finalized by calling mbuf_coded_video_frame_finalize().

@param frame_info: Parameters for the new frame. @param ret_obj: [out] Pointer to the new frame object.

@return 0 on success, negative errno on error.