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_intExpand description
Decode an Opus DRED packet.
§Arguments
dred_dec[in] - OpusDRED*: DRED Decoder statedred[in] - OpusDRED*: DRED statedata[in] - char*: Input payloadlen[in] - opus_int32: Number of bytes in payloadmax_dred_samples[in] - opus_int32: Maximum number of DRED samples that may be needed (if available in the packet).sampling_rate[in] - opus_int32: Sampling rate used for max_dred_samples argument. Needs not match the actual sampling rate of the decoder.dred_end[out] - opus_int32*: Number of non-encoded (silence) samples between the DRED timestamp and the last DRED sample.defer_processing[in] - 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 [opus_errorcodes]