EncodeLZ77InitAlloc

Allocates memory and initializes the encoding state structure.

Syntax

IppStatus ippsEncodeLZ77InitAlloc_8u (IppLZ77comprLevel comprLevel, IppLZ77chcksm checksum, IppLZ77_8u** ppLZ77State);

Parameters

comprLevel

Specifies desired compression level (see comprLevel Parameter).

checksum

Specifies an algorithm to compute the checksum for input data (see checkSum Parameter).

ppLZ77State

Double pointer to the LZ77 encoding state structure.

Description

The function ippsEncodeLZ77InitAlloc is declared in the ippdc.h file. This function allocates memory and initializes the LZ77 encoding state structure ppLZ77State. The function implements different algorithms to compute the checksum for input data in accordance with the value of the parameter checksum and different compression levels that are specified by the parameter comprLevel. The encoding state structure is used by different ZLIB encoder functions.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error if the ppLZ77State pointer is NULL.

ippStsBadArgErr

Indicates an error if the checksum or comprLevel parameter has an illegal value.

ippStsMemAlloc

Inidicates an error if memory allocation fails.

Submit feedback on this help topic

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