Computes pre-emphasis of a post filter.
IppStatus ippsPreemphasize_G729A_16s (Ipp16s gamma, const Ipp16s* pSrc, Ipp16s* pDst, int len, Ipp16s* pMem);
IppStatus ippsPreemphasize_G729A_16s_I (Ipp16s gamma, Ipp16s* pSrcDst, int len, Ipp16s* pMem);
IppStatus ippsPreemphasize_32f_I(Ipp32f gamma, Ipp32f* pSrcDst, int len, Ipp32f* pMem);
gamma |
The filter coefficient, in Q15 for 16s data. |
pSrc |
Pointer to the source vector, in Q0. |
pDst |
Pointer to the destination vector, in Q0. |
pSrcDst |
Pointer to the source and destination vector, in Q0. |
len |
Number of elements in the source and destination vectors. |
pMem |
Pointer to the filter memory [1]. |
These functions are declared in the ippsc.h file and compute pre-emphasis of a post filter.
The computation is performed according to the difference signal pre-emphasis equation:
H(z) = 1-gamma *z-1)
The filter memory pMem must be initialized to zero and then be constantly updated while filtering.
The functions ippsPreemphasize_G729A perform no rounding (clipping).
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 0. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.