Developer Reference for Intel® Integrated Performance Primitives 2019

EncodeLZOInit

Initializes LZO encoding structure.

Syntax

IppStatus ippsEncodeLZOInit_8u(IppLZOMethod method, Ipp32u maxInputLen, IppLZOState_8u* pLZOState);

Include Files

ippdc.h

Domain Dependencies

Headers: ippcore.h, ippvm.h, ipps.h

Libraries: ippcore.lib, ippvm.lib, ipps.lib

Parameters

method

Specifies required LZO compression method, possible values are listed in Table "method Parameter").

maxInputLen

Specifies the maximum length of the input data buffer during compression operations. Not required for the IppLZO1XST and IppLZO1X1ST compression methods.

pLZOState

Pointer to the LZO encoding structure.

Description

This function initializes the LZO encoding structure in the external buffer. Its size must be calculated by calling the function ippsEncodeLZOGetSize beforehand.

The parameter method must be the same for both functions.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error if the pointer pLZOState is NULL.

ippStsBadArgErr I

ndicates an error if the parameter method has an illegal value.

Example