EncDTXSID_GSMAMR

Extracts parameters for the SID frame.

Syntax

IppStatus ippsEncDTXSID_GSMAMR_16s(const Ipp16s* pSrcLspBuffer, const Ipp16s* pSrcLogEnergyBuffer, Ipp16s* pValResultLogEnergyIndex, Ipp16s* pValResultDtxLsfRefIndex, Ipp16s* pSrcDstQLsfIndex, Ipp16s* pSrcDstPredQErr, Ipp16s* pSrcDstPredQErrMR122, Ipp16s sidFlag);

Parameters

pSrcLspBuffer

Pointer to the LSP coefficients of eight consecutive frames marked with VAD = 0, in the length of 80, in Q0.15.

pSrcLogEnergyBuffer

Pointer to the log energy coefficients of eight consecutive frames marked with unvoiced, in the length of 8, in Q5.10.

pValResultLogEnergyIndex

Size of the subframe Pointer to the LSF quantization reference index of last frame. On output, points to the LSF quantization reference index of the current DTX frame.

pValResultDtxLsfRefIndex

Pointer to the LSF quantization reference index of the last frame. On output, points to the LSF quantization reference index of the current DTX frame.

pSrcDstQLsfIndex

Pointer to the LSF residual quantization indices of the last frame, in the length of 3. On output, points to the LSF residual quantization indices of current frame, in the length of 3.

pSrcDstPredQErr

Pointer to the fixed gain prediction error of four previous subframes for non-12.2 Kbps modes, in the length of 4, in Q5.10. On output, points to the updated fixed gain prediction error for non 12.2 Kbps modes, in the length of 4, in Q5.10.

pSrcDstPredQErrMR122

Pointer to the fixed gain prediction error of four previous subframes for 12.2 Kbps, in the length of 4, in Q5.10. On output, points to the updated fixed gain prediction error for 12.2 Kbps mode, in the length of 4, in Q5.10.

sidFLag

The SID flag of the current frame. If it is set to 1, the current frame is a SID frame, and the function will extract the LSF and energy parameters. If it is set to 0, the LSF and energy parameters are copied from the previous frame.

Description

The function ippsEncDTXSID_GSMAMR is declared in ippsc.h file. This function is called only when the current frame is a DTX frame. If the SID flag is on, the function extracts the LSF quantization parameter and the energy index parameter for the SID frame. If the SID flag is off, no operation is needed, and all parameters are copied from the last frame.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when one of the specified pointers is NULL.

Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.