EncodeLZO

Compresses input data, returns the length of the compressed data.

Syntax

IppStatus ippsEncodeLZO_8u (const Ipp8u* pSrc, Ipp32u srcLen, Ipp8u* pDst, Ipp32u* pDstLen, IppLZOState_8u* pLZOState);

Parameters

pSrc

Pointer to the source buffer.

srcLen

Length of the source buffer.

pDst

Pointer to the destination buffer.

pDstLen

Pointer to the length of the destination buffer.

pLZOState

Pointer to the LZO state structure.

Description

The function ippsEncodeLZO is declared in the ippdc.h file.

This function performs compression of the source data pSrc according to the method specified in the LZO state structure pLZOState. It must be previously initialized by the function ippsEncodeLZOInit.

Compressed data are stored in the pDst, the pointer pDstLen points to the number of elements in this buffer.

Code example  shows how the Intel IPP functions for the LZO compression can be used.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

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

Submit feedback on this help topic

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