HuffmanEncode_G722

Performs Huffman encoding of the quantized amplitude envelope indexes.

Syntax

IppStatus ippsHuffmanEncode_G722_16s32u(int category, int qntAmpEnvIndex, const Ipp16s* pSrcMLTCoeffs, Ipp32u* pDstCode, int* pCodeLength);

Parameters

category

The category of the Modulated Lapped Transform (MLT) region in the range of [0-6].

qntAmpEnvIndex

The quantized amplitude envelope index in the range of [0-63].

pSrcMLTCoeffs

Pointer to the source vector [20] of raw MLT coefficients.

pDstCode

Pointer to the output Huffman code.

pCodeLength

Pointer to the output Huffman code length in bits.

Description

The function ippsHuffmanEncode_G722 is declared in ippsc.h file. This function performs Huffman encoding of the quantized index of the amplitude envelope of one of the twenty regions of the MLT coefficients.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

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

IppStsScaleRangeErr

Indicates an error when category or qntAmpEnvIndex is out of proper range.

Submit feedback on this help topic

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