VR-Vantage
Loading...
Searching...
No Matches
lz4opt.h File Reference

Go to the source code of this file.

Classes

struct  LZ4HC_match_t
struct  LZ4HC_optimal_t

Macros

#define LZ4_OPT_NUM   (1<<12)
#define SET_PRICE(pos, mlen, offset, litlen, price)

Functions

FORCE_INLINE size_t LZ4HC_literalsPrice (size_t litlen)
FORCE_INLINE size_t LZ4HC_sequencePrice (size_t litlen, size_t mlen)
FORCE_INLINE int LZ4HC_BinTree_InsertAndGetAllMatches (LZ4HC_CCtx_internal *ctx, const BYTE *const ip, const BYTE *const iHighLimit, size_t best_mlen, LZ4HC_match_t *matches, int *matchNum)
FORCE_INLINE void LZ4HC_updateBinTree (LZ4HC_CCtx_internal *ctx, const BYTE *const ip, const BYTE *const iHighLimit)
FORCE_INLINE int LZ4HC_BinTree_GetAllMatches (LZ4HC_CCtx_internal *ctx, const BYTE *const ip, const BYTE *const iHighLimit, size_t best_mlen, LZ4HC_match_t *matches, const int fullUpdate)
 Tree updater, providing best match.
static int LZ4HC_compress_optimal (LZ4HC_CCtx_internal *ctx, const char *const source, char *dest, int inputSize, int maxOutputSize, limitedOutput_directive limit, const size_t sufficient_len, const int fullUpdate)

Macro Definition Documentation

◆ LZ4_OPT_NUM

#define LZ4_OPT_NUM   (1<<12)

◆ SET_PRICE

#define SET_PRICE ( pos,
mlen,
offset,
litlen,
price )
Value:
{ \
while (last_pos < pos) { opt[last_pos+1].price = 1<<30; last_pos++; } \
opt[pos].mlen = (int)mlen; \
opt[pos].off = (int)offset; \
opt[pos].litlen = (int)litlen; \
opt[pos].price = (int)price; \
}

Referenced by LZ4HC_compress_optimal().

Function Documentation

◆ LZ4HC_literalsPrice()

FORCE_INLINE size_t LZ4HC_literalsPrice ( size_t litlen)

◆ LZ4HC_sequencePrice()

FORCE_INLINE size_t LZ4HC_sequencePrice ( size_t litlen,
size_t mlen )

References LZ4HC_literalsPrice().

Referenced by LZ4HC_compress_optimal().

◆ LZ4HC_BinTree_InsertAndGetAllMatches()

FORCE_INLINE int LZ4HC_BinTree_InsertAndGetAllMatches ( LZ4HC_CCtx_internal * ctx,
const BYTE *const ip,
const BYTE *const iHighLimit,
size_t best_mlen,
LZ4HC_match_t * matches,
int * matchNum )

◆ LZ4HC_updateBinTree()

FORCE_INLINE void LZ4HC_updateBinTree ( LZ4HC_CCtx_internal * ctx,
const BYTE *const ip,
const BYTE *const iHighLimit )

◆ LZ4HC_BinTree_GetAllMatches()

FORCE_INLINE int LZ4HC_BinTree_GetAllMatches ( LZ4HC_CCtx_internal * ctx,
const BYTE *const ip,
const BYTE *const iHighLimit,
size_t best_mlen,
LZ4HC_match_t * matches,
const int fullUpdate )

◆ LZ4HC_compress_optimal()

int LZ4HC_compress_optimal ( LZ4HC_CCtx_internal * ctx,
const char *const source,
char * dest,
int inputSize,
int maxOutputSize,
limitedOutput_directive limit,
const size_t sufficient_len,
const int fullUpdate )
static