Performs Sub-Band ADPCM encoding of the synthesis QMF samples.
IppStatus ippsSBADPCMEncode_G722_16s (const Ipp16s* pSrc, Ipp16s* pDst, int len, IppsEncoderState_G722_16s* pEncMem);
pSrc |
Pointer to the input vector of synthesis QMF samples. |
pDst |
Pointer to the ADPCM bit-stream output vector. |
len |
The length of input vector, must be a multiple of two. |
pEncMem |
Pointer to the state memory of the Sub-Band ADPCM encoder. |
The function ippsSBADPCMEncode_G722_16s is declared in the ippsc.h file.
This function performs the Sub-Band ADPCM compression (encoding) of the synthesized Quadrature Mirror Filter (QMF) samples within a bit rate of 64 kbps. The function uses the state memory referenced by pEncMem to encode the input data and update it accordingly. Before using this function, you must initialize the state memory by calling the ippsSBADPCMEncodeInit_G722 function. The function ippsSBADPCMEncode_G722 splits the frequency band of the input signal into two sub-bands (higher and lower) and encodes the signals in each sub-band using ADPCM compression. Each element of the output vector contains six binary digits of the lower sub-band and two binary digits of the higher sub-band for the 64 kbps bit rate ADPCM encoding.
ippStsNoErr |
Indicates no error. |
ippStsBadArgErr |
Indicates an error when len is less than or equal to 0. |
ippStsSizeErr |
Indicates an error when len is not a multiple of two. |
ippStsNullPtrErr |
Indicates an error when one of the specified pointers is NULL. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.