DecodeLZ77FixedHuff

Performs fixed Huffman decoding.

Syntax

IppStatus ippsDecodeLZ77FixedHuff_8u(Ipp8u** ppSrc, int* pSrcLen, IppLZ77Pair** ppDst, int* pDstLen, IppLZ77Flush flush, IppLZ77State_8u* pLZ77State);

Parameters

ppSrc

Double pointer to the source buffer.

pSrcLen

Pointer to the length of the source vector.

ppDst

Double pointer to the destination vector.

pDstLen

Pointer to the length of the destination vector.

flush

Specifies the decoding mode for data blocks.

pLZ77State

Pointer to the LZ77 decoding structure.

Description

The function ippsDecodeLZ77FixedHuff is declared in the ippdc.h file. This function performs decoding of the source data ppSrc with the fixed Huffman codes (see RFC1951 specification). The source data must be compatible with the RFC1950, RFC1951, and RFC1952 specifications.

Exit from the ippsDecodeLZ77FixedHuff function occurs when:

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

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

ippStsSizeErr

Indicates an error if DstLen is less than or equal to 0.

ippStsSrcSizeLessExpected

Indicates a warning that the source buffer is less than expected (the end-of-block marker is not encoded).

ippStsDstSizeLessExpected

Indicates a warning that the destination buffer is full.

ippStsStreamEnd

Indicates a warning that the stream ends. This warning returns only if the flush parameter is set to IppLZ77FinishFlush.

Submit feedback on this help topic

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