Decodes one code using specified table and gets two decoded values.
IppStatus ippiDecodeHuffmanPair_1u16s(Ipp32u** ppBitStream, Ipp32s* pOffset, const IppVCHuffmanSpec_32s* pDecodeTable, Ipp8s* pFirst, Ipp16s* pSecond);
ppBitStream |
Double pointer to the current position in the bitstream. |
pOffset |
Pointer to offset between the bit that ppBitStream points to and the start of the code. pOffset may vary from zero to 31. |
pDecodeTable |
Pointer to the decoding table. |
pFirst |
Pointer to the first destination value. |
pSecond |
Pointer to the second destination value. |
This function is declared in the ippvc.h header file. The function ippiDecodeHuffmanPair_1u16s decodes one code from the bitstream using a specified table, sends the result (two values) to destination data, and resets the pointers to new positions (See example in Figure "Getting One Code From Bitstream"). The function uses the table derived by the HuffmanRunLevelTableInitAlloc function.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error when at least one input pointer is NULL. |
ippStsH263VLCCodeErr |
Indicates an error in process of decoding. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.