DecodeHuffOne

Decodes a single code word.

Syntax

IppStatus ippsDecodeHuffOne_8u(const Ipp8u* pSrc, int srcOffsetBits, Ipp8u* pDst, IppHuffState_8u* pHuffState);

Parameters

pSrc

Pointer to the source buffer.

srcOffsetBits

Offset (bits) in the source buffer.

pDst

Pointer to the destination buffer.

pHuffState

Pointer to the Huffman decoding structure.

Description

The function ippsDecodeHuffOne is declared in the ippdc.h file. This function performs Huffman decoding of the single code word in the source buffer pSrc. Its position is specified by the value (in bits) of offset from the high bit srcOffsetBits. The decoded element is stored in the destination buffer pDst. The function uses the Huffman decoding structure pHuffState that mustd be initialized by calling the functions ippsDecodeHuffInitAlloc or ippsDecodeHuffInit beforehand.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error if one of the specified pointers is NULL.

Submit feedback on this help topic

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