Type Alias AVFifoCB
pub type AVFifoCB = Option<unsafe extern "C" fn(*mut c_void, *mut c_void, *mut usize) -> i32>;
Expand description
Callback for writing or reading from a FIFO, passed to (and invoked from) the av_fifo_cb() functions. It may be invoked multiple times from a single av_fifo_cb() call and may process less data than the maximum size indicated by nb_elems.
@param opaque the opaque pointer provided to the av_fifo_cb() function @param buf the buffer for reading or writing the data, depending on which av_fifo_cb function is called @param nb_elems On entry contains the maximum number of elements that can be read from / written into buf. On success, the callback should update it to contain the number of elements actually written.
@return 0 on success, a negative error code on failure (will be returned from the invoking av_fifo_*_cb() function)
Aliased Type§
enum AVFifoCB {
None,
Some(unsafe extern "C" fn(*mut c_void, *mut c_void, *mut usize) -> i32),
}