ROOTANA
|
Go to the source code of this file.
Data Structures | |
struct | LZ4HC_Data_Structure |
Macros | |
#define | MLZ4_COMMONDEFS_ONLY |
#define | DICTIONARY_LOGSIZE 16 |
#define | MAXD (1<<DICTIONARY_LOGSIZE) |
#define | MAXD_MASK (MAXD - 1) |
#define | HASH_LOG (DICTIONARY_LOGSIZE-1) |
#define | HASHTABLESIZE (1 << HASH_LOG) |
#define | HASH_MASK (HASHTABLESIZE - 1) |
#define | OPTIMAL_ML (int)((ML_MASK-1)+MINMATCH) |
#define | HASH_FUNCTION(i) (((i) * 2654435761U) >> ((MINMATCH*8)-HASH_LOG)) |
#define | DELTANEXTU16(p) chainTable[(U16)(p)] /* faster */ |
#define | LZ4HC_DEBUG 0 |
Enumerations | |
enum | limitedOutput_directive { noLimit = 0 , limitedOutput = 1 } |
Functions | |
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) |
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 int | LZ4HC_compress_generic (void *ctxvoid, const char *source, char *dest, int inputSize, int maxOutputSize, int compressionLevel, limitedOutput_directive limit) |
int | MLZ4_sizeofStateHC (void) |
int | MLZ4_compress_HC_extStateHC (void *state, const char *src, char *dst, int srcSize, int maxDstSize, int compressionLevel) |
int | MLZ4_compress_HC (const char *src, char *dst, int srcSize, int maxDstSize, int compressionLevel) |
MLZ4_streamHC_t * | MLZ4_createStreamHC (void) |
int | MLZ4_freeStreamHC (MLZ4_streamHC_t *MLZ4_streamHCPtr) |
void | MLZ4_resetStreamHC (MLZ4_streamHC_t *MLZ4_streamHCPtr, int compressionLevel) |
int | MLZ4_loadDictHC (MLZ4_streamHC_t *MLZ4_streamHCPtr, const char *dictionary, int dictSize) |
static void | LZ4HC_setExternalDict (LZ4HC_Data_Structure *ctxPtr, const BYTE *newBlock) |
static int | MLZ4_compressHC_continue_generic (LZ4HC_Data_Structure *ctxPtr, const char *source, char *dest, int inputSize, int maxOutputSize, limitedOutput_directive limit) |
int | MLZ4_compress_HC_continue (MLZ4_streamHC_t *MLZ4_streamHCPtr, const char *source, char *dest, int inputSize, int maxOutputSize) |
int | MLZ4_saveDictHC (MLZ4_streamHC_t *MLZ4_streamHCPtr, char *safeBuffer, int dictSize) |
int | MLZ4_compressHC (const char *src, char *dst, int srcSize) |
int | MLZ4_compressHC_limitedOutput (const char *src, char *dst, int srcSize, int maxDstSize) |
int | MLZ4_compressHC2 (const char *src, char *dst, int srcSize, int cLevel) |
int | MLZ4_compressHC2_limitedOutput (const char *src, char *dst, int srcSize, int maxDstSize, int cLevel) |
int | MLZ4_compressHC_withStateHC (void *state, const char *src, char *dst, int srcSize) |
int | MLZ4_compressHC_limitedOutput_withStateHC (void *state, const char *src, char *dst, int srcSize, int maxDstSize) |
int | MLZ4_compressHC2_withStateHC (void *state, const char *src, char *dst, int srcSize, int cLevel) |
int | MLZ4_compressHC2_limitedOutput_withStateHC (void *state, const char *src, char *dst, int srcSize, int maxDstSize, int cLevel) |
int | MLZ4_compressHC_continue (MLZ4_streamHC_t *ctx, const char *src, char *dst, int srcSize) |
int | MLZ4_compressHC_limitedOutput_continue (MLZ4_streamHC_t *ctx, const char *src, char *dst, int srcSize, int maxDstSize) |
int | MLZ4_sizeofStreamStateHC (void) |
int | MLZ4_resetStreamStateHC (void *state, char *inputBuffer) |
void * | MLZ4_createHC (char *inputBuffer) |
int | MLZ4_freeHC (void *LZ4HC_Data) |
int | MLZ4_compressHC2_continue (void *LZ4HC_Data, const char *source, char *dest, int inputSize, int compressionLevel) |
int | MLZ4_compressHC2_limitedOutput_continue (void *LZ4HC_Data, const char *source, char *dest, int inputSize, int maxOutputSize, int compressionLevel) |
char * | MLZ4_slideInputBufferHC (void *LZ4HC_Data) |
Variables | |
static const int | LZ4HC_compressionLevel_default = 9 |
static const int | g_maxCompressionLevel = 16 |
#define DELTANEXTU16 | ( | p | ) | chainTable[(U16)(p)] /* faster */ |
#define HASH_LOG (DICTIONARY_LOGSIZE-1) |
#define HASH_MASK (HASHTABLESIZE - 1) |
#define MAXD (1<<DICTIONARY_LOGSIZE) |
|
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 |
|
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 |
int MLZ4_compress_HC | ( | const char * | src, |
char * | dst, | ||
int | srcSize, | ||
int | maxDstSize, | ||
int | compressionLevel | ||
) |
int MLZ4_compress_HC_continue | ( | MLZ4_streamHC_t * | MLZ4_streamHCPtr, |
const char * | source, | ||
char * | dest, | ||
int | inputSize, | ||
int | maxOutputSize | ||
) |
int MLZ4_compress_HC_extStateHC | ( | void * | state, |
const char * | src, | ||
char * | dst, | ||
int | srcSize, | ||
int | maxDstSize, | ||
int | compressionLevel | ||
) |
int MLZ4_compressHC | ( | const char * | src, |
char * | dst, | ||
int | srcSize | ||
) |
int MLZ4_compressHC2 | ( | const char * | src, |
char * | dst, | ||
int | srcSize, | ||
int | cLevel | ||
) |
int MLZ4_compressHC2_continue | ( | void * | LZ4HC_Data, |
const char * | source, | ||
char * | dest, | ||
int | inputSize, | ||
int | compressionLevel | ||
) |
int MLZ4_compressHC2_limitedOutput | ( | const char * | src, |
char * | dst, | ||
int | srcSize, | ||
int | maxDstSize, | ||
int | cLevel | ||
) |
int MLZ4_compressHC2_limitedOutput_continue | ( | void * | LZ4HC_Data, |
const char * | source, | ||
char * | dest, | ||
int | inputSize, | ||
int | maxOutputSize, | ||
int | compressionLevel | ||
) |
int MLZ4_compressHC2_limitedOutput_withStateHC | ( | void * | state, |
const char * | src, | ||
char * | dst, | ||
int | srcSize, | ||
int | maxDstSize, | ||
int | cLevel | ||
) |
int MLZ4_compressHC2_withStateHC | ( | void * | state, |
const char * | src, | ||
char * | dst, | ||
int | srcSize, | ||
int | cLevel | ||
) |
int MLZ4_compressHC_continue | ( | MLZ4_streamHC_t * | ctx, |
const char * | src, | ||
char * | dst, | ||
int | srcSize | ||
) |
|
static |
int MLZ4_compressHC_limitedOutput | ( | const char * | src, |
char * | dst, | ||
int | srcSize, | ||
int | maxDstSize | ||
) |
int MLZ4_compressHC_limitedOutput_continue | ( | MLZ4_streamHC_t * | ctx, |
const char * | src, | ||
char * | dst, | ||
int | srcSize, | ||
int | maxDstSize | ||
) |
int MLZ4_compressHC_limitedOutput_withStateHC | ( | void * | state, |
const char * | src, | ||
char * | dst, | ||
int | srcSize, | ||
int | maxDstSize | ||
) |
int MLZ4_compressHC_withStateHC | ( | void * | state, |
const char * | src, | ||
char * | dst, | ||
int | srcSize | ||
) |
void * MLZ4_createHC | ( | char * | inputBuffer | ) |
MLZ4_streamHC_t * MLZ4_createStreamHC | ( | void | ) |
int MLZ4_freeStreamHC | ( | MLZ4_streamHC_t * | MLZ4_streamHCPtr | ) |
int MLZ4_loadDictHC | ( | MLZ4_streamHC_t * | MLZ4_streamHCPtr, |
const char * | dictionary, | ||
int | dictSize | ||
) |
void MLZ4_resetStreamHC | ( | MLZ4_streamHC_t * | MLZ4_streamHCPtr, |
int | compressionLevel | ||
) |
int MLZ4_resetStreamStateHC | ( | void * | state, |
char * | inputBuffer | ||
) |
int MLZ4_saveDictHC | ( | MLZ4_streamHC_t * | MLZ4_streamHCPtr, |
char * | safeBuffer, | ||
int | dictSize | ||
) |
char * MLZ4_slideInputBufferHC | ( | void * | LZ4HC_Data | ) |