GetHuffmanStatisticsOne_JPEG

Computes Huffman symbol statistics.

Syntax

IppStatus ippiGetHuffmanStatisticsOne_JPEG_16s_C1(const Ipp16s* pSrc, int pHuffStatistics[256]);

Parameters

pSrc

Pointer to the row of decoded differences.

pHuffStatistics

Pointer to the calculated statistics buffer.

Description

The function ippiGetHuffmanStatisticsOne_JPEG is declared in the ippj.h file. This function computes frequency of Huffman symbols to be encoded. Based on these statistics, an optimal Huffman table can be built by the ippiEncodeHuffmanRawTableInit_JPEG function. This table saves space by removing unused symbols and assigning shorter codes for more frequent symbols.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

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

Submit feedback on this help topic

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