EncodeLZ77StoredBlock

Stores the data block without compression.

Syntax

IppStatus ippsEncodeLZ77StoredBlock_8u(Ipp8u** 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 (see flush Parameter).

pLZ77State

Pointer to the LZ77 encoding state structure.

Description

The ippsEncodeLZ77StoredBlock function is declared in the ippdc.h file. This function copies source data ppSrc data to the destination buffer ppDst without Huffman encoding.

The function ippsEncodeLZ77StoredBlock writes the marker of the end of the block to the output stream and aligns the output data in accordance with the specified parameter flush.

The function uses the LZ77 encoding state structure pLZ77State that must be previously initialized by the function ippsEncodeLZ77InitAlloc or ippsEncodeLZ77Init.

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.

ippStsDstSizeLessExpected

Indicates a warning that the size of the destination buffer is insufficient for completing the operation.

Submit feedback on this help topic

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