SBADPCMEncode_G722

Performs Sub-Band ADPCM encoding of the synthesis QMF samples.

Syntax

IppStatus ippsSBADPCMEncode_G722_16s (const Ipp16s* pSrc, Ipp16s* pDst, int len, IppsEncoderState_G722_16s* pEncMem);

Parameters

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.

Description

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.

Return Values

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.

Submit feedback on this help topic

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