Allocates memory and creates Huffman table in a format that is suitable for an encoder.
IppStatus ippiEncodeHuffmanSpecInitAlloc_JPEG_8u(const Ipp8u* pListBits, const Ipp8u* pListVals, IppiEncodeHuffmanSpec** ppEncHuffSpec);
pListBits |
Pointer to the Bits list. |
pListVals |
Pointer to the Vals list. |
ppEncHuffSpec |
Pointer to the returned pointer to the Huffman table for the coder. |
The function ippiEncodeHuffmanSpecInitAlloc_JPEG is declared in the ippj.h file. This function allocates memory and 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.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error condition if one or all specified pointers are NULL. |
ippStsJPEGHuffTableErr |
Indicates an error condition when the table is initialized. It may happen when raw tables contain inadmissible values. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.