Performs LZ4 encoding.

Syntax

IppStatus ippsEncodeLZ4_8u(const Ipp8u* pSrc, int srcLen, Ipp8u* pDst, int* pDstLen, Ipp8u* pHashTable);

IppStatus ippsEncodeLZ4Safe_8u(const Ipp8u* pSrc, int* pSrcLen, Ipp8u* pDst, int* pDstLen, Ipp8u* pHashTable);

IppStatus ippsEncodeLZ4Dict_8u(const Ipp8u* pSrc, int srcIdx, int srcLen, Ipp8u* pDst, int* pDstLen, Ipp8u* pHashTable, const Ipp8u* pDict, int dictLen);

IppStatus ippsEncodeLZ4DictSafe_8u(const Ipp8u* pSrc, int srcIdx, int* pSrcLen, Ipp8u* pDst, int* pDstLen, Ipp8u* pHashTable, const Ipp8u* pDict, int dictLen);

Include Files

ippdc.h

Domain Dependencies

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

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

Parameters

pSrc

Pointer to the source data.

srcLen

Length of the source data for compression.

srcIdx

Index of the starting byte in the source vector.

pSrcLen

Pointer to the length of the source data for compression.

pDst

Pointer to the compressed data.

pDstLen

Pointer to the length of the compressed data.

pHashTable

Pointer to the LZ4 hash table.

pDict

Pointer to the dictionary.

dictLen

Length of the dictionary.

Description

These functions perform encoding of the source data pSrc using the LZ4 algorithm. The destination buffer must have sufficient length for the operation. The length of the compressed data is set to pDstLen.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

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

ippStsSizeErr

Indicates an error if the srcLen value is less than, or equal to zero.

ippStsBadArgErr

Indicates an error if the index of the starting byte is less than zero.

ippStsDstSizeLessExpected

Indicates an error if the length of the destination buffer is not sufficient.
Для получения подробной информации о возможностях оптимизации компилятора обратитесь к нашему Уведомлению об оптимизации.