Intel® Integrated Performance Primitives Developer Guide and Reference

ID 790148
Date 11/07/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

DeflateDictionarySet

Presets the user's dictionary for LZ77 encoding.

Syntax

IppStatus ippsDeflateDictionarySet_8u(const Ipp8u* pDictSrc, Ipp32u dictLen, Ipp32s* pHashHeadDst, Ipp32u hashSize, Ipp32s* pHashPrevDst, Ipp8u* pWindowDst, Ipp32u winSize, int comprLevel);

Include Files

ippdc.h

Domain Dependencies

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

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

Parameters

pDictSrc

Pointer to the user's dictionary.

dictLen

Length of the user's dictionary.

pHashHeadDst

Pointer to the table containing heads of the hash chains.

pHashPrevDst

Pointer to the table containing indexes to the previous strings with the same hash key.

hashSize

Size of the pHashHeadDst table.

pWindowDst

Pointer to the sliding window that is used as the dictionary for LZ77 encoding.

winSize

Size of the sliding window and the elements of the pHashPrevDst table.

comprLevel

Compression level in range [0..9] in accordance with ZLIB.

Description

This function presets the user's dictionary for LZ77 encoding.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

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