diff options
author | yann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd> | 2013-08-16 10:46:08 (GMT) |
---|---|---|
committer | yann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd> | 2013-08-16 10:46:08 (GMT) |
commit | 02c5579ff05561755db072faba6d508cb6ba87d9 (patch) | |
tree | 7ccf7e401c190ecdad72e4dc281665cfe6c1e0e3 /lz4c.c | |
parent | 27efcd4d4582add02884698ddca3c2cb96a281c5 (diff) | |
download | lz4-02c5579ff05561755db072faba6d508cb6ba87d9.zip lz4-02c5579ff05561755db072faba6d508cb6ba87d9.tar.gz lz4-02c5579ff05561755db072faba6d508cb6ba87d9.tar.bz2 |
LZ4 compression supports block dependency (argument -BD within lz4c command line)
fullbench : added bench of LZ4_compress_continue(), LZ4_compress_limitedOutput_continue(), LZ4_compressHC_continue() and LZ4_compressHC_limitedOutput_continue()
git-svn-id: https://lz4.googlecode.com/svn/trunk@102 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
Diffstat (limited to 'lz4c.c')
-rw-r--r-- | lz4c.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -378,7 +378,7 @@ int compress_file_blockDependency(char* input_filename, char* output_filename, i char* out_buff;
FILE* finput;
FILE* foutput;
- int displayLevel = (compressionlevel>0);
+ int displayLevel = ((compressionlevel>0) && (!silence)) || (verbose);
clock_t start, end;
unsigned int blockSize, inputBufferSize;
size_t sizeCheck, header_size;
@@ -390,6 +390,11 @@ int compress_file_blockDependency(char* input_filename, char* output_filename, i switch (compressionlevel)
{
case 0 :
+ initFunction = LZ4_create;
+ compressionFunction = LZ4_compress_limitedOutput_continue;
+ translateFunction = LZ4_slideInputBuffer;
+ freeFunction = LZ4_free;
+ break;
case 1 :
default:
initFunction = LZ4_createHC;
|