Function av_fifo_peek
pub unsafe extern "C" fn av_fifo_peek(
f: *const AVFifo,
buf: *mut c_void,
nb_elems: usize,
offset: usize,
) -> i32
Expand description
Read data from a FIFO without modifying FIFO state.
Returns an error if an attempt is made to peek to nonexistent elements (i.e. if offset + nb_elems is larger than av_fifo_can_read(f)).
@param f the FIFO buffer @param buf Buffer to store the data. nb_elems * av_fifo_elem_size(f) bytes will be written into buf. @param nb_elems number of elements to read from FIFO @param offset number of initial elements to skip.
@return a non-negative number on success, a negative error code on failure