SBADPCMDecode_G722

Performs decoding of the Sub-Band ADPCM compressed bit-stream.

Syntax

IppStatus ippsSBADPCMDecode_G722_16s (const Ipp16s* pSrc, Ipp16s* pDst, int len, Ipp16s mode, IppsDecoderState_G722_16s* pDecMem);

Parameters

pSrc

Pointer to the input vector that contains the even number of samples. The even element of this vector contains six binary digits of the lower sub-band and the odd element of this vector contains two binary digits of the higher sub-band.

pDst

Pointer to the output vector that contains decoded low-band and high-band portions of the recovered samples.

len

Length of the input vector.

mode

Decode bit rate of the G.722 decoder. The values of mode have the following meaning:

mode = 1 - sets 64 kbps bit rate;

mode = 2 - sets 56 kbps bit rate;

mode = 3 - sets 48 kbps bit rate.

pDecMem

Pointer to the state memory of the Sub-Band ADPCM decoder.

Description

The function ippsSBADPCMDecode_G722_16s is declared in the ippsc.h file.

This function decodes the lower-band and upper-band portions of the Sub-Band ADPCM compressed bit-stream into the low-band and upper-band portions of the recovered samples, respectively. This operation is the reverse of the Sub-Band ADPCM compression (see ippsSBADPCMEncode_G722). Note that the effective audio coding bit rate varies between 64, 56, or 48 kbps depending on the mode of operation.

Return Values

ippStsNoErr

Indicates no error.

ippStsBadArgErr

Indicates an error when len is less than or equal to 0.

ippStsNullPtrErr

Indicates an error when one of the specified pointers is NULL.

Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.