summaryrefslogtreecommitdiffstats
path: root/lib/lz4hc.h
diff options
context:
space:
mode:
authorPrzemyslaw Skibinski <inikep@gmail.com>2016-12-06 14:21:28 (GMT)
committerPrzemyslaw Skibinski <inikep@gmail.com>2016-12-06 14:21:28 (GMT)
commitc1ef7a177fae1f5435f191cbdebb0c59fb81d8ff (patch)
treeb4804bdccf4dc5d5283a3f169532d2c7fa581d9d /lib/lz4hc.h
parent3f430daf7aa6ce0a96a863387de33be54d45806e (diff)
downloadlz4-c1ef7a177fae1f5435f191cbdebb0c59fb81d8ff.zip
lz4-c1ef7a177fae1f5435f191cbdebb0c59fb81d8ff.tar.gz
lz4-c1ef7a177fae1f5435f191cbdebb0c59fb81d8ff.tar.bz2
introduced LZ4HC_compress_hashChain
Diffstat (limited to 'lib/lz4hc.h')
-rw-r--r--lib/lz4hc.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/lz4hc.h b/lib/lz4hc.h
index d8ac3c0..40ca401 100644
--- a/lib/lz4hc.h
+++ b/lib/lz4hc.h
@@ -46,7 +46,7 @@ extern "C" {
/* --- Useful constants --- */
#define LZ4HC_MIN_CLEVEL 3
#define LZ4HC_DEFAULT_CLEVEL 9
-#define LZ4HC_MAX_CLEVEL 16
+#define LZ4HC_MAX_CLEVEL 20
/*-************************************
@@ -58,7 +58,7 @@ extern "C" {
* Compression is guaranteed to succeed if `dstCapacity >= LZ4_compressBound(srcSize)` (see "lz4.h")
* Max supported `srcSize` value is LZ4_MAX_INPUT_SIZE (see "lz4.h")
* `compressionLevel` : Recommended values are between 4 and 9, although any value between 1 and LZ4HC_MAX_CLEVEL will work.
- * Values >LZ4HC_MAX_CLEVEL behave the same as 16.
+ * Values >LZ4HC_MAX_CLEVEL behave the same as LZ4HC_MAX_CLEVEL.
* @return : the number of bytes written into 'dst'
* or 0 if compression fails.
*/
@@ -153,6 +153,7 @@ typedef struct
uint32_t dictLimit; /* below that point, need extDict */
uint32_t lowLimit; /* below that point, no more dict */
uint32_t nextToUpdate; /* index from which to continue dictionary update */
+ uint32_t searchNum; /* only for optimal parser */
uint32_t compressionLevel;
} LZ4HC_CCtx_internal;
@@ -169,12 +170,13 @@ typedef struct
unsigned int dictLimit; /* below that point, need extDict */
unsigned int lowLimit; /* below that point, no more dict */
unsigned int nextToUpdate; /* index from which to continue dictionary update */
+ unsigned int searchNum; /* only for optimal parser */
unsigned int compressionLevel;
} LZ4HC_CCtx_internal;
#endif
-#define LZ4_STREAMHCSIZE 262192
+#define LZ4_STREAMHCSIZE 262200
#define LZ4_STREAMHCSIZE_SIZET (LZ4_STREAMHCSIZE / sizeof(size_t))
union LZ4_streamHC_u {
size_t table[LZ4_STREAMHCSIZE_SIZET];