Developer Reference

  • 2020
  • 07/15/2020
  • Public Content
Contents

EncodeLZ4Safe

Performs LZ4 encoding.

Syntax

IppStatus ippsEncodeLZ4Safe_8u(const Ipp8u*
pSrc
, int*
srcLen
, Ipp8u*
pDst
, int*
pDstLen
, Ipp8u*
pHashTable
);
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.
pDst
Pointer to the compressed data.
pDstLen
Pointer to the length of the destination buffer and the length of the compressed data.
pHashTable
Pointer to the LZ4 hash table.
Description
This function performs encoding of the source data
pSrc
using the LZ4 algorithm. The length of the compressed data is set to
pDstLen
. The length of the processed source data is set to
pSrcLen
Return Values
ippStsNoErr
Indicates no error.
ippStsNullPtrErr
Indicates an error if at lease one of the specified pointers is
NULL
.
ippStsSizeErr
Indicates an error if the
srcLen
or
dstLen
value is less than, or equal to zero.
ippStsDstSizeLessExpectedErr
Indicates an error if the destination buffer has insufficient length.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804