summaryrefslogtreecommitdiffstats
path: root/lib/lz4frame.h
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2017-03-16 22:10:38 (GMT)
committerYann Collet <cyan@fb.com>2017-03-16 22:10:38 (GMT)
commitcd35f0d98c54e3ba0573ce5473482fadd6ec0a59 (patch)
tree94fd812d9a7cc29a7004effa98e09236ba61d124 /lib/lz4frame.h
parent6b2a1b3606be01a0b4899a1aaa566f0943064da9 (diff)
downloadlz4-cd35f0d98c54e3ba0573ce5473482fadd6ec0a59.zip
lz4-cd35f0d98c54e3ba0573ce5473482fadd6ec0a59.tar.gz
lz4-cd35f0d98c54e3ba0573ce5473482fadd6ec0a59.tar.bz2
LZ4_compress_HC_destSize() uses LZ4HC_compress_generic() code path
Limits compression level to 10, to remain compatible with Hash Chain.
Diffstat (limited to 'lib/lz4frame.h')
-rw-r--r--lib/lz4frame.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lz4frame.h b/lib/lz4frame.h
index f33eee1..7b750b6 100644
--- a/lib/lz4frame.h
+++ b/lib/lz4frame.h
@@ -1,7 +1,7 @@
/*
LZ4 auto-framing library
Header File
- Copyright (C) 2011-2016, Yann Collet.
+ Copyright (C) 2011-2017, Yann Collet.
BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
Redistribution and use in source and binary forms, with or without
@@ -168,7 +168,7 @@ typedef struct {
* All reserved fields must be set to zero. */
typedef struct {
LZ4F_frameInfo_t frameInfo;
- int compressionLevel; /* 0 == default (fast mode); values above 16 count as 16; values below 0 count as 0 */
+ int compressionLevel; /* 0 == default (fast mode); values above LZ4HC_CLEVEL_MAX count as LZ4HC_CLEVEL_MAX; values below 0 count as 0 */
unsigned autoFlush; /* 1 == always flush (reduce usage of tmp buffer) */
unsigned reserved[4]; /* must be zero for forward compatibility */
} LZ4F_preferences_t;