DecodeGain_AMRWB

Decodes adaptive and fixed-codebook gains.

Syntax

IppStatus ippsDecodeGain_AMRWB_16s(int valQIndex, Ipp32s valEnergy, Ipp16s* pDstPitchGain, int* pDstCodeGain, int bfi, int prevBfi, Ipp16s* pSrcDstPastEnergy, Ipp16s* pPrevCodeGain, Ipp16s* pSrcDstPastCodeGain, IppSpchBitRate mode);

Parameters

valQIndex

Index of quantization.

valEnergy

Pointer to the input filtered adaptive codebook vector y(n).

pDstPitchGain

Pointer to the decoded pitch gain.

pDstCodeGain

Pointer to the decoded code gain.

bfi

Bad frame indicator.

prevBfi

Bad frame indicator of the previous frame.

pSrcDstPastEnergy

Past quantized energies.

pPrevCodeGain

Past code gain.

pSrcDstPastCodeGain

Past code gain for frame erasures.

mode

Decoding mode.

Description

The function ippsDecodeGain_AMRWB is declared in ippsc.h file.

If there are no errors detected in the frame, the function computes predicted and fixed codebook gains.

In case of frame erasure, the gains are the attenuated versions of the previous gains.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

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

ippStsRangeErr

Indicates an error when mode is not a valid element of the enumerated type IppSpchBitRate.

Submit feedback on this help topic

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