Extracts delayed pitch contribution.
IppStatus ippsGainControl_G723_16s_I (Ipp32s energy, Ipp16s* pSrcDst, Ipp16s* pGain);
energy |
The input energy coefficient. |
pSrcDst |
Pointer to the input/output post-filtered signal. |
pGain |
Pointer to the input/output gain. |
The function ippsGainControl_G723 is declared in the ippsc.h file. This function first computes the amplitude ratio gs as:
If denominator in this expression is equal to 0, gs is set to 1.
Then the input postfiltered signal is scaled as follows:
pSrcDst[n] = pSrcDst[n]*gn(1+α), n = 0,..., 59,
where gn is updated using the following expression, respectively:
gn = (1-α)gn-1 + α gs , n = 0,..., 59, g-1= 0, and α = 1/16.
The output gain is equal to g59.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error when one of the specified pointers is NULL. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.