Computes Huffman symbol statistics.
IppStatus ippiGetHuffmanStatisticsOne_JPEG_16s_C1(const Ipp16s* pSrc, int pHuffStatistics[256]);
pSrc |
Pointer to the row of decoded differences. |
pHuffStatistics |
Pointer to the calculated statistics buffer. |
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.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error condition if one of the specified pointers is NULL. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.