DecodeLZ77

Performs LZ77 decoding.

Syntax

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

Parameters

ppSrc

Double pointer to the source buffer.

pSrcLen

Pointer to the length of the source buffer.

ppDst

Double pointer to the destination buffer.

pDstLen

Pointer to the length of the destination buffer.

flush

Specifies the encoding mode for data blocks.

pLZ77State

Pointer to the LZ77 decoding structure.

Description

The function ippsDecodeLZ77 is declared in the ippdc.h file. This function performs LZ77 decoding of a sequence of pairs of the IppLZ77Pair type. The sliding wind ow technique implemented in this function ensures compatibility with the RFC1950, RFC1951, and RFC1952 specifications.

The function ippsDecodeLZ77 can be used for decoding data not only in the DEFLATE, ZLIB, GZIP format, but in any other format based on the LZ77 algorithm.

Code example shows how to use the ippsDecodeLZ77 function.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error if the pointer ppLZ77State is NULL.

ippStsSizeErr

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

ippStsDstSizeLessExpected

Indicates a warning that the destination buffer is full.

Submit feedback on this help topic

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