pub unsafe extern "C" fn mbuf_coded_video_frame_queue_new_with_args(
args: *mut mbuf_coded_video_frame_queue_args,
ret_obj: *mut *mut mbuf_coded_video_frame_queue,
) -> c_intExpand description
Create a new coded frame queue with specific arguments.
The filter callback will be called each time mbuf_coded_video_frame_queue_push() is called on the returned queue. If the filter returns false, then the push call will be aborted and will return -EPROTO. The filter function can be set to NULL to allow all frames to be accepted by this queue.
The max_frames parameter will limit the number of frames in the queue, dropping the oldest frame in the queue when a new one is pushed. If max_frames is set to zero, then the queue has no limit.
The default values if no argument structure is provided is no filter, and no size limit.
@param args: The argument structure pointer, or NULL to use the default arguments. @param ret_obj: [out] The new queue.
@return 0 on success, negative errno on error.