diff options
author | Yann Collet <cyan@fb.com> | 2017-08-10 07:48:19 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2017-08-10 07:48:19 (GMT) |
commit | d8aafe2c52b4b16da9e8d289ad9bdb04b0bc4a05 (patch) | |
tree | 09cf791f84355170306b98a771d9978555f2b55d /lib/lz4frame.h | |
parent | ca2fb166ab650835c71099842b646d388cebb3ac (diff) | |
download | lz4-d8aafe2c52b4b16da9e8d289ad9bdb04b0bc4a05.zip lz4-d8aafe2c52b4b16da9e8d289ad9bdb04b0bc4a05.tar.gz lz4-d8aafe2c52b4b16da9e8d289ad9bdb04b0bc4a05.tar.bz2 |
dictionary compression correctly uses compression level
Not obvious : copying the state was copying cdict's compression level
Diffstat (limited to 'lib/lz4frame.h')
-rw-r--r-- | lib/lz4frame.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/lz4frame.h b/lib/lz4frame.h index 42e2f53..307d7b2 100644 --- a/lib/lz4frame.h +++ b/lib/lz4frame.h @@ -162,7 +162,7 @@ typedef struct { LZ4F_contentChecksum_t contentChecksumFlag; /* noContentChecksum, contentChecksumEnabled ; 0 == default */ LZ4F_frameType_t frameType; /* LZ4F_frame, skippableFrame ; 0 == default */ unsigned long long contentSize; /* Size of uncompressed content ; 0 == unknown */ - unsigned dictID; /* Dictionary ID, sent by the compressor, to help the decoder select the right dictionary; 0 == no dictionary used */ + unsigned dictID; /* Dictionary ID, sent by the compressor to help decoder select the correct dictionary; 0 == no dictID provided */ unsigned reserved[1]; /* must be zero for forward compatibility */ } LZ4F_frameInfo_t; @@ -177,6 +177,8 @@ typedef struct { unsigned reserved[4]; /* must be zero for forward compatibility */ } LZ4F_preferences_t; +LZ4FLIB_API int LZ4F_compressionLevel_max(); + /*-********************************* * Simple compression function |