summaryrefslogtreecommitdiffstats
path: root/lib/lz4frame.h
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2018-04-26 22:18:44 (GMT)
committerYann Collet <cyan@fb.com>2018-04-26 22:18:44 (GMT)
commit3792d00168edd060c58ceaecffb97d43dab27094 (patch)
treece0e244790d0cea9cea34cc0f7ebe7666639a7e1 /lib/lz4frame.h
parent1148173c5dd1ad9b672c63fd0da110e3c2d66274 (diff)
downloadlz4-3792d00168edd060c58ceaecffb97d43dab27094.zip
lz4-3792d00168edd060c58ceaecffb97d43dab27094.tar.gz
lz4-3792d00168edd060c58ceaecffb97d43dab27094.tar.bz2
favorDecSpeed feature can be triggered from lz4frame
and lz4hc.
Diffstat (limited to 'lib/lz4frame.h')
-rw-r--r--lib/lz4frame.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/lz4frame.h b/lib/lz4frame.h
index bd715bd..fb434ff 100644
--- a/lib/lz4frame.h
+++ b/lib/lz4frame.h
@@ -173,13 +173,14 @@ typedef struct {
/*! LZ4F_preferences_t :
* makes it possible to supply detailed compression parameters to the stream interface.
- * It's not required to set all fields, as long as the structure was initially memset() to zero.
+ * Structure is presumed initially memset() to zero, representing default settings.
* All reserved fields must be set to zero. */
typedef struct {
LZ4F_frameInfo_t frameInfo;
- int compressionLevel; /* 0: default (fast mode); values > LZ4HC_CLEVEL_MAX count as LZ4HC_CLEVEL_MAX; values < 0 trigger "fast acceleration" */
- unsigned autoFlush; /* 1 == always flush, to reduce usage of internal buffers */
- unsigned reserved[4]; /* must be zero for forward compatibility */
+ int compressionLevel; /* 0: default (fast mode); values > LZ4HC_CLEVEL_MAX count as LZ4HC_CLEVEL_MAX; values < 0 trigger "fast acceleration" */
+ unsigned autoFlush; /* 1: always flush, to reduce usage of internal buffers */
+ unsigned favorDecSpeed; /* 1: parser favors decompression speed vs compression ratio. Only works for high compression modes (>= LZ4LZ4HC_CLEVEL_OPT_MIN) */ /* >= v1.8.2 */
+ unsigned reserved[3]; /* must be zero for forward compatibility */
} LZ4F_preferences_t;
LZ4FLIB_API int LZ4F_compressionLevel_max(void);