EncodeInit_G726

Initializes the memory for the ADPCM encoder.

Syntax

IppStatus ippsEncodeInit_G726_16s8u (IppsEncoderState_G726_16s* pEncMem, IppSpchBitRate rate);

Parameters

pEncMem

Pointer to the input memory buffer of size needed to properly initialize the G.726 encoder.

rate

Encode bit rate of the G.726 encoder, must be one of IPP_SPCHBR_16000, IPP_SPCHBR_24000, IPP_SPCHBR_32000, or IPP_SPCHBR_40000.

Description

The function ippsEncodeInit_G726 is declared in ippsc.h file. This function initializes the memory given by the pointer pEncMem to enable G.726 ADPCM compression starting from the reset state.

Return Values

ippStsNoErr

Indicates no error.

IppStsNullPtrErr

Indicates an error when the pEncMem pointer is NULL.

ippStsBadArgErr

Indicates an error when rate is not equal to one of the admissible encoding bit rates: IPP_SPCHBR_16000, IPP_SPCHBR_24000, IPP_SPCHBR_32000, or IPP_SPCHBR_40000.

Submit feedback on this help topic

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