EncodeHuffmanSpecInit_JPEG

Creates Huffman table in a format that is suitable for an encoder.

Syntax

IppStatus ippiEncodeHuffmanSpecInit_JPEG_8u(const Ipp8u* pListBits, const Ipp8u* pListVals, IppiEncodeHuffmanSpec* pEncHuffSpec);

Parameters

pListBits

Pointer to Bits list.

pListVals

Pointer to Vals list.

pEncHuffSpec

Pointer to the Huffman table for the encoder.

Description

The function ippiEncodeHuffmanSpecInit_JPEG is declared in the ippj.h file. This function creates Huffman table in a format that is suitable for the encoder. The Bits and Vals lists are specified in [ISO10918], Annex C, Huffman table specification. To generate the table, the function uses the procedure that is described in [ISO10918], Annex C.2, Conversion of Huffman Tables Specified in Interchange Format to Tables of Codes and Code Lengths.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

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

ippStsJPEGHuffTableErr

Indicates an error condition during the initialization of the table. It may happen when raw tables contain inadmissible values.

Submit feedback on this help topic

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