DecodeHuffInitAlloc

Allocates memory and initializes the Huffman decoding structure.

Syntax

IppStatus ippsDecodeHuffInitAlloc_8u(const int codeLenTable[256], IppHuffState_8u** ppHuffState);

Parameters

codeLenTable

Table containing lengths of Huffman codes.

ppHuffState

Double pointer to the Huffman decoding structure.

Description

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.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error if pHuffState pointer is NULL.

ippMemAllocErr

Indicates an error if memory allocation fails.

Submit feedback on this help topic

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