Converts samples from 8-bit μ-law encoded format to 8-bit A-law encoded format.
IppStatus ippsMuLawToALaw_8u(const Ipp8u* pSrc, Ipp8u* pDst, int len);
pSrc |
Pointer to the source vector. |
pDst |
Pointer to the destination vector. |
len |
Number of samples in the vector. |
The function ippsMuLawToALaw is declared in the ipps.h file. This function converts signal samples from 8-bit μ-law encoded format in the vector pSrc to 8-bit A-law encoded format and stores them in the vector pDst.
The conversion of μ-law format to A-law format is usually performed using look-up Table 3/G.711 shown in the CCITT specification G.711 [CCITT]. Refer to the G.711 specification for details.
Code example shows how to use the function ippsMuLawToALaw_8u.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error when the pDst or pSrc pointer is NULL. |
ippStsSizeErr |
Indicates an error when len is less than or equal to 0. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.