Go to the source code of this file.
Classes | |
struct | LZ4HC_Data_Structure |
Defines | |
#define | DELTANEXTU16(p) chainTable[(U16)(p)] /* faster */ |
#define | DICTIONARY_LOGSIZE 16 |
#define | HASH_FUNCTION(i) (((i) * 2654435761U) >> ((MINMATCH*8)-HASH_LOG)) |
#define | HASH_LOG (DICTIONARY_LOGSIZE-1) |
#define | HASH_MASK (HASHTABLESIZE - 1) |
#define | HASHTABLESIZE (1 << HASH_LOG) |
#define | LZ4_COMMONDEFS_ONLY |
#define | LZ4HC_DEBUG 0 |
#define | MAXD (1<<DICTIONARY_LOGSIZE) |
#define | MAXD_MASK (MAXD - 1) |
#define | OPTIMAL_ML (int)((ML_MASK-1)+MINMATCH) |
Enumerations | |
enum | limitedOutput_directive { notLimited = 0, limitedOutput = 1, noLimit = 0, limitedOutput = 1 } |
Functions | |
int | LZ4_compress_HC (const char *src, char *dst, int srcSize, int maxDstSize, int compressionLevel) |
int | LZ4_compress_HC_continue (LZ4_streamHC_t *LZ4_streamHCPtr, const char *source, char *dest, int inputSize, int maxOutputSize) |
int | LZ4_compress_HC_extStateHC (void *state, const char *src, char *dst, int srcSize, int maxDstSize, int compressionLevel) |
int | LZ4_compressHC (const char *src, char *dst, int srcSize) |
int | LZ4_compressHC2 (const char *src, char *dst, int srcSize, int cLevel) |
int | LZ4_compressHC2_continue (void *LZ4HC_Data, const char *source, char *dest, int inputSize, int compressionLevel) |
int | LZ4_compressHC2_limitedOutput (const char *src, char *dst, int srcSize, int maxDstSize, int cLevel) |
int | LZ4_compressHC2_limitedOutput_continue (void *LZ4HC_Data, const char *source, char *dest, int inputSize, int maxOutputSize, int compressionLevel) |
int | LZ4_compressHC2_limitedOutput_withStateHC (void *state, const char *src, char *dst, int srcSize, int maxDstSize, int cLevel) |
int | LZ4_compressHC2_withStateHC (void *state, const char *src, char *dst, int srcSize, int cLevel) |
int | LZ4_compressHC_continue (LZ4_streamHC_t *ctx, const char *src, char *dst, int srcSize) |
static int | LZ4_compressHC_continue_generic (LZ4HC_Data_Structure *ctxPtr, const char *source, char *dest, int inputSize, int maxOutputSize, limitedOutput_directive limit) |
int | LZ4_compressHC_limitedOutput (const char *src, char *dst, int srcSize, int maxDstSize) |
int | LZ4_compressHC_limitedOutput_continue (LZ4_streamHC_t *ctx, const char *src, char *dst, int srcSize, int maxDstSize) |
int | LZ4_compressHC_limitedOutput_withStateHC (void *state, const char *src, char *dst, int srcSize, int maxDstSize) |
int | LZ4_compressHC_withStateHC (void *state, const char *src, char *dst, int srcSize) |
void * | LZ4_createHC (char *inputBuffer) |
LZ4_streamHC_t * | LZ4_createStreamHC (void) |
int | LZ4_freeHC (void *LZ4HC_Data) |
int | LZ4_freeStreamHC (LZ4_streamHC_t *LZ4_streamHCPtr) |
int | LZ4_loadDictHC (LZ4_streamHC_t *LZ4_streamHCPtr, const char *dictionary, int dictSize) |
void | LZ4_resetStreamHC (LZ4_streamHC_t *LZ4_streamHCPtr, int compressionLevel) |
int | LZ4_resetStreamStateHC (void *state, char *inputBuffer) |
int | LZ4_saveDictHC (LZ4_streamHC_t *LZ4_streamHCPtr, char *safeBuffer, int dictSize) |
int | LZ4_sizeofStateHC (void) |
int | LZ4_sizeofStreamStateHC (void) |
char * | LZ4_slideInputBufferHC (void *LZ4HC_Data) |
static int | LZ4HC_compress_generic (void *ctxvoid, const char *source, char *dest, int inputSize, int maxOutputSize, int compressionLevel, limitedOutput_directive limit) |
FORCE_INLINE int | LZ4HC_encodeSequence (const BYTE **ip, BYTE **op, const BYTE **anchor, int matchLength, const BYTE *const match, limitedOutput_directive limitedOutputBuffer, BYTE *oend) |
static U32 | LZ4HC_hashPtr (const void *ptr) |
static void | LZ4HC_init (LZ4HC_Data_Structure *hc4, const BYTE *start) |
FORCE_INLINE void | LZ4HC_Insert (LZ4HC_Data_Structure *hc4, const BYTE *ip) |
FORCE_INLINE int | LZ4HC_InsertAndFindBestMatch (LZ4HC_Data_Structure *hc4, const BYTE *ip, const BYTE *const iLimit, const BYTE **matchpos, const int maxNbAttempts) |
FORCE_INLINE int | LZ4HC_InsertAndGetWiderMatch (LZ4HC_Data_Structure *hc4, const BYTE *const ip, const BYTE *const iLowLimit, const BYTE *const iHighLimit, int longest, const BYTE **matchpos, const BYTE **startpos, const int maxNbAttempts) |
static void | LZ4HC_setExternalDict (LZ4HC_Data_Structure *ctxPtr, const BYTE *newBlock) |
Variables | |
static const int | g_maxCompressionLevel = 16 |
static const int | LZ4HC_compressionLevel_default = 9 |
#define DELTANEXTU16 | ( | p | ) | chainTable[(U16)(p)] /* faster */ |
#define DICTIONARY_LOGSIZE 16 |
#define HASH_FUNCTION | ( | i | ) | (((i) * 2654435761U) >> ((MINMATCH*8)-HASH_LOG)) |
#define HASH_LOG (DICTIONARY_LOGSIZE-1) |
#define HASH_MASK (HASHTABLESIZE - 1) |
#define HASHTABLESIZE (1 << HASH_LOG) |
#define LZ4_COMMONDEFS_ONLY |
#define LZ4HC_DEBUG 0 |
#define MAXD (1<<DICTIONARY_LOGSIZE) |
#define OPTIMAL_ML (int)((ML_MASK-1)+MINMATCH) |
int LZ4_compress_HC | ( | const char * | src, |
char * | dst, | ||
int | srcSize, | ||
int | maxDstSize, | ||
int | compressionLevel | ||
) |
int LZ4_compress_HC_continue | ( | LZ4_streamHC_t * | LZ4_streamHCPtr, |
const char * | source, | ||
char * | dest, | ||
int | inputSize, | ||
int | maxOutputSize | ||
) |
int LZ4_compress_HC_extStateHC | ( | void * | state, |
const char * | src, | ||
char * | dst, | ||
int | srcSize, | ||
int | maxDstSize, | ||
int | compressionLevel | ||
) |
int LZ4_compressHC | ( | const char * | src, |
char * | dst, | ||
int | srcSize | ||
) |
int LZ4_compressHC2 | ( | const char * | src, |
char * | dst, | ||
int | srcSize, | ||
int | cLevel | ||
) |
int LZ4_compressHC2_continue | ( | void * | LZ4HC_Data, |
const char * | source, | ||
char * | dest, | ||
int | inputSize, | ||
int | compressionLevel | ||
) |
int LZ4_compressHC2_limitedOutput | ( | const char * | src, |
char * | dst, | ||
int | srcSize, | ||
int | maxDstSize, | ||
int | cLevel | ||
) |
int LZ4_compressHC2_limitedOutput_continue | ( | void * | LZ4HC_Data, |
const char * | source, | ||
char * | dest, | ||
int | inputSize, | ||
int | maxOutputSize, | ||
int | compressionLevel | ||
) |
int LZ4_compressHC2_limitedOutput_withStateHC | ( | void * | state, |
const char * | src, | ||
char * | dst, | ||
int | srcSize, | ||
int | maxDstSize, | ||
int | cLevel | ||
) |
int LZ4_compressHC2_withStateHC | ( | void * | state, |
const char * | src, | ||
char * | dst, | ||
int | srcSize, | ||
int | cLevel | ||
) |
int LZ4_compressHC_continue | ( | LZ4_streamHC_t * | ctx, |
const char * | src, | ||
char * | dst, | ||
int | srcSize | ||
) |
static int LZ4_compressHC_continue_generic | ( | LZ4HC_Data_Structure * | ctxPtr, |
const char * | source, | ||
char * | dest, | ||
int | inputSize, | ||
int | maxOutputSize, | ||
limitedOutput_directive | limit | ||
) | [static] |
int LZ4_compressHC_limitedOutput | ( | const char * | src, |
char * | dst, | ||
int | srcSize, | ||
int | maxDstSize | ||
) |
int LZ4_compressHC_limitedOutput_continue | ( | LZ4_streamHC_t * | ctx, |
const char * | src, | ||
char * | dst, | ||
int | srcSize, | ||
int | maxDstSize | ||
) |
int LZ4_compressHC_limitedOutput_withStateHC | ( | void * | state, |
const char * | src, | ||
char * | dst, | ||
int | srcSize, | ||
int | maxDstSize | ||
) |
int LZ4_compressHC_withStateHC | ( | void * | state, |
const char * | src, | ||
char * | dst, | ||
int | srcSize | ||
) |
void* LZ4_createHC | ( | char * | inputBuffer | ) |
LZ4_streamHC_t* LZ4_createStreamHC | ( | void | ) |
int LZ4_freeHC | ( | void * | LZ4HC_Data | ) |
int LZ4_freeStreamHC | ( | LZ4_streamHC_t * | LZ4_streamHCPtr | ) |
int LZ4_loadDictHC | ( | LZ4_streamHC_t * | LZ4_streamHCPtr, |
const char * | dictionary, | ||
int | dictSize | ||
) |
void LZ4_resetStreamHC | ( | LZ4_streamHC_t * | LZ4_streamHCPtr, |
int | compressionLevel | ||
) |
int LZ4_resetStreamStateHC | ( | void * | state, |
char * | inputBuffer | ||
) |
int LZ4_saveDictHC | ( | LZ4_streamHC_t * | LZ4_streamHCPtr, |
char * | safeBuffer, | ||
int | dictSize | ||
) |
int LZ4_sizeofStateHC | ( | void | ) |
int LZ4_sizeofStreamStateHC | ( | void | ) |
char* LZ4_slideInputBufferHC | ( | void * | LZ4HC_Data | ) |
static int LZ4HC_compress_generic | ( | void * | ctxvoid, |
const char * | source, | ||
char * | dest, | ||
int | inputSize, | ||
int | maxOutputSize, | ||
int | compressionLevel, | ||
limitedOutput_directive | limit | ||
) | [static] |
FORCE_INLINE int LZ4HC_encodeSequence | ( | const BYTE ** | ip, |
BYTE ** | op, | ||
const BYTE ** | anchor, | ||
int | matchLength, | ||
const BYTE *const | match, | ||
limitedOutput_directive | limitedOutputBuffer, | ||
BYTE * | oend | ||
) |
static U32 LZ4HC_hashPtr | ( | const void * | ptr | ) | [static] |
static void LZ4HC_init | ( | LZ4HC_Data_Structure * | hc4, |
const BYTE * | start | ||
) | [static] |
FORCE_INLINE void LZ4HC_Insert | ( | LZ4HC_Data_Structure * | hc4, |
const BYTE * | ip | ||
) |
FORCE_INLINE int LZ4HC_InsertAndFindBestMatch | ( | LZ4HC_Data_Structure * | hc4, |
const BYTE * | ip, | ||
const BYTE *const | iLimit, | ||
const BYTE ** | matchpos, | ||
const int | maxNbAttempts | ||
) |
FORCE_INLINE int LZ4HC_InsertAndGetWiderMatch | ( | LZ4HC_Data_Structure * | hc4, |
const BYTE *const | ip, | ||
const BYTE *const | iLowLimit, | ||
const BYTE *const | iHighLimit, | ||
int | longest, | ||
const BYTE ** | matchpos, | ||
const BYTE ** | startpos, | ||
const int | maxNbAttempts | ||
) |
static void LZ4HC_setExternalDict | ( | LZ4HC_Data_Structure * | ctxPtr, |
const BYTE * | newBlock | ||
) | [static] |
const int g_maxCompressionLevel = 16 [static] |
const int LZ4HC_compressionLevel_default = 9 [static] |