Initialized the Huffman decoding structure.
IppStatus ippsDecodeHuffInit_8u(const int codeLenTable[256], IppHuffState_8u* pHuffState);
codeLenTable |
Table containing lengths of Huffman codes. |
pHuffState |
Pointer to the Huffman decoding structure. |
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.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error if pHuffState pointer is NULL. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.