DeflateLZ77FastestGetStat
DeflateLZ77FastestGetStat
Performs statistical data collection required to build user's Huffman table.
Syntax
IppStatus ippsDeflateLZ77FastestGetStat_8u(const Ipp8u**
ppSrc
, Ipp32u*
pSrcLen
, Ipp32u*
pSrcIdx
, const Ipp8u*
pWindow
, Ipp32u
winSize
, Ipp32s*
pHashHead
, Ipp32u
hashSize
, int
pLitStat[286]
, int
pDistStat[30]
, IppLZ77Flush
flush
);
Include Files
ippdc.h
Domain Dependencies
Headers:
ippcore.h
,
ippvm.h
,
ipps.h
Libraries:
ippcore.lib
,
ippvm.lib
,
ipps.lib
Parameters
- ppSrc
- Double pointer to the source vector.
- pSrcLen
- Pointer to the length of the source vector.
- pSrcIdx
- Pointer to the index of the current position in the source vector.
- pWindow
- Pointer to the sliding window (the dictionary for the LZ77 algorithm).
- winSize
- Size of the sliding window and thepHashPrevtable.
- pHashHead
- Pointer to the table containing heads of the hash chains.
- hashSize
- Size of thepHashHeadtable.
- pLitStat
- Pointer to data collection for literals and match lengths.
- pDistStat
- Pointer to data collection for distances.
- flush
- Specifies the encoding mode for data blocks.
Description
This function performs collection of statistical data. This data is needed for functions building user's Huffman table
ippsDeflateLZ77FastestGenHuffTable
and functions computing a header of Huffman tables description ippsDeflateLZ77FastestGenHeader
.Return Values
- ippStsNoErr
- Indicates no error.
- ippStsNullPtrErr
- Indicates an error when one of the specified pointers isNULL.
- ippStsSizeErr
- Indicates an error whenwinSizeis less than 256 or more than 32768, or ifhashSizeis less than 256 or more than 65536.