HuffLenCodeTablePack

Packs the table containing lengths of Huffman codes.

Syntax

IppStatus ippsHuffLenCodeTablePack_8u(const int codeLenTable[256], Ipp8u* pDst, int* pDstLen);

Parameters

codeLenTable

Table containing lengths of Huffman codes.

pDst

Pointer to the destination buffer.

pDstLen

Pointer to the number of elements in the destination buffer; after operation to the actual number of elements in the destination buffer.

Description

The function ippsHuffLenCodeTablePack is declared in the ippdc.h file. This function compresses the table codeLenTable containing lengths of Huffman codes and that is required for decoding. The table may be retrieved by calling the function ippsHuffGetLenCodeTable. To restore the table from the compressed form, call the function ippsHuffLenCodeTableUnpack.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error if one of the specified pointers is NULL.

ippStsSizeErr

Indicates an error if pDstLen is less than or equal to 0; or if pDstLen is less than actual size of the output.

Submit feedback on this help topic

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