Function libdav1d_sys::dav1d_data_wrap

source ยท
pub unsafe extern "C" fn dav1d_data_wrap(
    data: *mut Dav1dData,
    buf: *const u8,
    sz: usize,
    free_callback: Option<unsafe extern "C" fn(buf: *const u8, cookie: *mut c_void)>,
    cookie: *mut c_void,
) -> c_int
Expand description

Wrap an existing data array.

@param data Input context. @param buf The data to be wrapped. @param sz Size of the data. @param free_callback Function to be called when we release our last reference to this data. In this callback, $buf will be the $buf argument to this function, and $cookie will be the $cookie input argument to this function. @param cookie Opaque parameter passed to free_callback().

@return 0 on success. A negative DAV1D_ERR value on error.