EncodeHuffmanRawTableInit_JPEG

Creates raw Huffman tables using Huffman symbols statistics.

Syntax

IppStatus ippiEncodeHuffmanRawTableInit_JPEG_8u(const int pStatistics[256], Ipp8u* pListBits, Ipp8u* pListVals);

Parameters

pStatistics

Pointer to the buffer that contains Huffman symbol statistics.

pListBits

Pointer to the Bits list.

pListVals

Pointer to the Vals list.

Description

The function ippiEncodeHuffmanRawTableInit_JPEG is declared in the ippj.h file. This function builds raw Huffman tables using the previously computed Huffman symbols statistics. An array for statistics is indexed with Huffman symbol value. The values in the array are frequencies of a given symbol.

The Bits and Vals lists are specified in [ISO10918], Annex B, Figure B.7 .

To generate Bits and Vals lists, the function uses the procedure that is described in [ISO10918], Annex K.2, A Procedure for Generating the Lists, Which Specify a Huffman Code Table.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error condition if one or all specified pointers are NULL.

Submit feedback on this help topic

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