DecodeHuffmanOne

Decodes one code using specified table and gets one decoded value.

Syntax

IppStatus ippiDecodeHuffmanOne_1u32s(Ipp32u** ppBitStream, Ipp32s* pOffset, Ipp32s* pDst, const IppVCHuffmanSpec_32s* pDecodeTable);

Parameters

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.

pDst

Pointer to the destination result, that is, one value.

pDecodeTable

Pointer to the decoding table.

Description

This function is declared in the ippvc.h header file. The function ippiDecodeHuffmanOne_1u32s decodes one code from the bitstream using a specified table, sends the result (one value) to the 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 HuffmanTableInitAlloc function.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when at least one input pointer is NULL.

ippStsH263VLCCodeErr

Indicates an error in process of decoding.


Submit feedback on this help topic

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