DecodeHuffmanSpecInit_JPEG

Creates Huffman table in a format that is suitable for a decoder

Syntax

IppStatus ippiDecodeHuffmanSpecInit_JPEG_8u(const Ipp8u* pListBits, const Ipp8u* pListVals, IppiDecodeHuffmanSpec* pDecHuffSpec);

Parameters

pListBits

Pointer to Bits list.

pListVals

Pointer to Vals list.

pDecHuffSpec

Pointer to the Huffman table for the decoder.

Description

The function ippiDecodeHuffmanSpecInit_JPEG is declared in the ippj.h file. This function creates Huffman table in a format that is suitable for a decoder. 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.