opus_dred_parse

Function opus_dred_parse 

Source
pub unsafe extern "C" fn opus_dred_parse(
    dred_dec: *mut OpusDREDDecoder,
    dred: *mut OpusDRED,
    data: *const c_uchar,
    len: opus_int32,
    max_dred_samples: opus_int32,
    sampling_rate: opus_int32,
    dred_end: *mut c_int,
    defer_processing: c_int,
) -> c_int
Expand description

Decode an Opus DRED packet. @param [in] dred_dec OpusDRED*: DRED Decoder state @param [in] dred OpusDRED*: DRED state @param [in] data char*: Input payload @param [in] len opus_int32: Number of bytes in payload @param [in] max_dred_samples opus_int32: Maximum number of DRED samples that may be needed (if available in the packet). @param [in] sampling_rate opus_int32: Sampling rate used for max_dred_samples argument. Needs not match the actual sampling rate of the decoder. @param [out] dred_end opus_int32*: Number of non-encoded (silence) samples between the DRED timestamp and the last DRED sample. @param [in] defer_processing int: Flag (0 or 1). If set to one, the CPU-intensive part of the DRED decoding is deferred until opus_dred_process() is called. @returns Offset (positive) of the first decoded DRED samples, zero if no DRED is present, or @ref opus_errorcodes