[−][src]Function libaom_sys::aom_codec_peek_stream_info
pub unsafe extern "C" fn aom_codec_peek_stream_info(
iface: *mut aom_codec_iface_t,
data: *const u8,
data_sz: usize,
si: *mut aom_codec_stream_info_t
) -> aom_codec_err_t
Parse stream info from a buffer
Performs high level parsing of the bitstream. Construction of a decoder context is not necessary. Can be used to determine if the bitstream is of the proper format, and to extract information from the stream.
\param[in] iface Pointer to the algorithm interface \param[in] data Pointer to a block of data to parse \param[in] data_sz Size of the data buffer \param[in,out] si Pointer to stream info to update. The is_annexb member \ref MUST be properly initialized. This function sets the rest of the members.
\retval #AOM_CODEC_OK Bitstream is parsable and stream information updated. \retval #AOM_CODEC_INVALID_PARAM One of the arguments is invalid, for example a NULL pointer. \retval #AOM_CODEC_UNSUP_BITSTREAM The decoder didn't recognize the coded data, or the buffer was too short.