Computes the adaptive codebook gain.
IppStatus ippsAdaptiveCodebookGainCoeff_AMRWB_16s(const Ipp16s* pSrcAdptTarget, const Ipp16s* pSrcFltAdptVector, Ipp16s* pAdptGainCoeffs, Ipp16s* pResultAdptGain, int len);
pSrcAdptTarget |
Pointer to the adaptive-codebook vector. |
pSrcFltAdptVector |
Pointer to the input filtered adaptive-codebook vector. |
pResultAdptGain |
Pointer to the adaptive-codebook gain in the length of 1. |
pAdptGainCoeffs |
Pointer to the output vector in the length 4; represents the adaptive-codebook gain as a fraction. |
len |
Length of vectors. |
This function ippsAdaptiveCodebookGainCoeff_AMRWB is declared in ippsc.h file. The adaptive codebook gain is found by:
bounded by 0 ≤ gp ≤ 1.2.
Additionally, the function returns the gain in a different representation given by the following formula:
The mantissas Cxy , Cyy and exponents expxy , expyy for both the normalized denominator and normalized numerator are returned in the pAdptGainCoeffs vector:
pAdptGainCoeffs[0] = Cyy
pAdptGainCoeffs[1] = expyy
pAdptGainCoeffs[2] = Cxy
pAdptGainCoeffs[3] = expxy
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error when one of the specified pointers is NULL. |
ippStsSizeErr |
Indicates an error when len is less than or equal to zero. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.