Function rsmpeg::ffi::av_fifo_generic_write

source ยท
pub unsafe extern "C" fn av_fifo_generic_write(
    f: *mut AVFifoBuffer,
    src: *mut c_void,
    size: i32,
    func: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: i32) -> i32>,
) -> i32
Expand description

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 or a negative error code on failure

@deprecated use the new AVFifo-API with av_fifo_write() when func == NULL, av_fifo_write_from_cb() otherwise