Function libdav1d_sys::dav1d_send_data

source ·
pub unsafe extern "C" fn dav1d_send_data(
    c: *mut Dav1dContext,
    in_: *mut Dav1dData,
) -> c_int
Expand description

Feed bitstream data to the decoder, in the form of one or multiple AV1 Open Bitstream Units (OBUs).

@param c Input decoder instance. @param in Input bitstream data. On success, ownership of the reference is passed to the library.

@return 0: Success, and the data was consumed. DAV1D_ERR(EAGAIN): The data can’t be consumed. dav1d_get_picture() should be called to get one or more frames before the function can consume new data. Other negative DAV1D_ERR codes: Error during decoding or because of invalid passed-in arguments. The reference remains owned by the caller.