DecodeHuffInit

Initialized the Huffman decoding structure.

Syntax

IppStatus ippsDecodeHuffInit_8u(const int codeLenTable[256], IppHuffState_8u* pHuffState);

Parameters

codeLenTable

Table containing lengths of Huffman codes.

pHuffState

Pointer to the Huffman decoding structure.

Description

The function ippsDecodeHuffInit is declared in the ippdc.h file. This function initializes in the external buffer the Huffman decoding structure pHuffState. The structure requires the table of lengths of Huffman codes codeLenTable that was used in the encoding operation. This table can be obtained by calling the function ippsHuffGetLenCodeTable or ippsHuffLenCodeTableUnpack. The size of the external buffer ust be computed previously by calling the function ippsHuffGetSize. Alternatively, the Huffman decoding structure can be initialized by the function ippsDecodeHuffInitAlloc.

The Huffman decoding structure is used by the functions ippsDecodeHuffOne and ippsDecodeHuff.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error if pHuffState pointer is NULL.

Submit feedback on this help topic

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