Allocates memory and initializes the Huffman decoding structure.
IppStatus ippsDecodeHuffInitAlloc_8u(const int codeLenTable[256], IppHuffState_8u** ppHuffState);
codeLenTable |
Table containing lengths of Huffman codes. |
ppHuffState |
Double pointer to the Huffman decoding structure. |
The function ippsDecodeHuffInitAlloc is declared in the ippdc.h file. This function allocates memory and initializes 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 Huffman decoding structure is used by the functions ippsDecodeHuffOne and ippsDecodeHuff.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error if pHuffState pointer is NULL. |
ippMemAllocErr |
Indicates an error if memory allocation fails. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.