[][src]Function stainless_ffmpeg_sys::av_fifo_generic_write

pub unsafe extern "C" fn av_fifo_generic_write(
    f: *mut AVFifoBuffer,
    src: *mut c_void,
    size: c_int,
    func: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_void, arg3: c_int) -> c_int>
) -> c_int

Feed data from a user-supplied callback to an AVFifoBuffer. @param f AVFifoBuffer to write to @param src data source; non-const since it may be used as a modifiable context by the function defined in func @param size number of bytes to write @param func generic write function; the first parameter is src, the second is dest_buf, the third is dest_buf_size. func must return the number of bytes written to dest_buf, or <= 0 to indicate no more data available to write. If func is NULL, src is interpreted as a simple byte array for source data. @return the number of bytes written to the FIFO