Function libdav1d_sys::dav1d_parse_sequence_header
source · pub unsafe extern "C" fn dav1d_parse_sequence_header(
out: *mut Dav1dSequenceHeader,
buf: *const u8,
sz: usize
) -> c_int
Expand description
Parse a Sequence Header OBU from bitstream data.
@param out Output Sequence Header. @param buf The data to be parser. @param sz Size of the data.
@return 0: Success, and out is filled with the parsed Sequence Header OBU parameters. DAV1D_ERR(ENOENT): No Sequence Header OBUs were found in the buffer. Other negative DAV1D_ERR codes: Invalid data in the buffer, invalid passed-in arguments, and other errors during parsing.
@note It is safe to feed this function data containing other OBUs than a Sequence Header, as they will simply be ignored. If there is more than one Sequence Header OBU present, only the last will be returned.