Major changes, including Brotli and Lizard

- update of zstd-mt library
- add brotli v0.6.0
- add lizard v2.0
- xxhash is from zstd for lz4, lz5 and lizard now
- update also the documentation, where needed
This commit is contained in:
Tino Reichardt
2017-05-25 18:40:15 +02:00
parent 40e87f615c
commit 5ff0657d9f
173 changed files with 3936 additions and 6591 deletions

View File

@@ -1,4 +1,4 @@
// (C) 2016 Tino Reichardt
// (C) 2017 Tino Reichardt
#include "StdAfx.h"
#include "BrotliDecoder.h"

View File

@@ -1,9 +1,9 @@
// (C) 2016 Tino Reichardt
// (C) 2017 Tino Reichardt
#define BROTLI_STATIC_LINKING_ONLY
#include "../../../C/Alloc.h"
#include "../../../C/Threads.h"
#include "../../../C/brotli/brotli.h"
#include "../../../C/brotli/decode.h"
#include "../../../C/zstdmt/brotli-mt.h"
#include "../../Windows/System.h"
@@ -44,7 +44,6 @@ struct DProps
Byte _ver_major;
Byte _ver_minor;
Byte _level;
Byte _reserved[2];
};
class CDecoder:public ICompressCoder,

View File

@@ -1,4 +1,4 @@
// (C) 2016 Tino Reichardt
// (C) 2017 Tino Reichardt
#include "StdAfx.h"
#include "BrotliEncoder.h"
@@ -52,7 +52,6 @@ STDMETHODIMP CEncoder::SetCoderProperties(const PROPID * propIDs, const PROPVARI
if (prop.vt != VT_UI4)
return E_INVALIDARG;
/* level 1..22 */
_props._level = static_cast < Byte > (prop.ulVal);
Byte mylevel = static_cast < Byte > (BROTLIMT_LEVEL_MAX);
if (_props._level > mylevel)

View File

@@ -1,9 +1,9 @@
// (C) 2016 Tino Reichardt
// (C) 2017 Tino Reichardt
#define BROTLI_STATIC_LINKING_ONLY
#include "../../../C/Alloc.h"
#include "../../../C/Threads.h"
#include "../../../C/brotli/brotli.h"
#include "../../../C/brotli/encode.h"
#include "../../../C/zstdmt/brotli-mt.h"
#include "../../Common/Common.h"
@@ -29,7 +29,6 @@ struct CProps
Byte _ver_major;
Byte _ver_minor;
Byte _level;
Byte _reserved[2];
};
class CEncoder:

View File

@@ -0,0 +1,17 @@
// (C) 2017 Tino Reichardt
#include "StdAfx.h"
#include "../Common/RegisterCodec.h"
#include "BrotliDecoder.h"
#ifndef EXTRACT_ONLY
#include "BrotliEncoder.h"
#endif
REGISTER_CODEC_E(
BROTLI,
NCompress::NBROTLI::CDecoder(),
NCompress::NBROTLI::CEncoder(),
0x4F71102, "BROTLI")

View File

@@ -1,4 +1,4 @@
// (C) 2016 Tino Reichardt
// (C) 2017 Tino Reichardt
#include "StdAfx.h"
#include "LizardDecoder.h"

View File

@@ -1,10 +1,11 @@
// (C) 2016 Tino Reichardt
// (C) 2017 Tino Reichardt
#define LIZARD_STATIC_LINKING_ONLY
#include "../../../C/Alloc.h"
#include "../../../C/Threads.h"
#include "../../../C/lizard/lizard.h"
#include "../../../C/zstdmt/zstd-mt.h"
#include "../../../C/lizard/liz_compress.h"
#include "../../../C/lizard/lizframe.h"
#include "../../../C/zstdmt/lizard-mt.h"
#include "../../Windows/System.h"
#include "../../Common/Common.h"
@@ -36,15 +37,14 @@ struct DProps
void clear ()
{
memset(this, 0, sizeof (*this));
_ver_major = LIZARD_VERSION_MAJOR;
_ver_minor = LIZARD_VERSION_MINOR;
_ver_major = LIZ_VERSION_MAJOR;
_ver_minor = LIZ_VERSION_MINOR;
_level = 1;
}
Byte _ver_major;
Byte _ver_minor;
Byte _level;
Byte _reserved[2];
};
class CDecoder:public ICompressCoder,

View File

@@ -1,4 +1,4 @@
// (C) 2016 Tino Reichardt
// (C) 2017 Tino Reichardt
#include "StdAfx.h"
#include "LizardEncoder.h"

View File

@@ -1,10 +1,11 @@
// (C) 2016 Tino Reichardt
// (C) 2017 Tino Reichardt
#define LIZARD_STATIC_LINKING_ONLY
#include "../../../C/Alloc.h"
#include "../../../C/Threads.h"
#include "../../../C/lizard/lizard.h"
#include "../../../C/zstdmt/zstd-mt.h"
#include "../../../C/lizard/liz_compress.h"
#include "../../../C/lizard/lizframe.h"
#include "../../../C/zstdmt/lizard-mt.h"
#include "../../Common/Common.h"
#include "../../Common/MyCom.h"
@@ -21,15 +22,14 @@ struct CProps
void clear ()
{
memset(this, 0, sizeof (*this));
_ver_major = LIZARD_VERSION_MAJOR;
_ver_minor = LIZARD_VERSION_MINOR;
_ver_major = LIZ_VERSION_MAJOR;
_ver_minor = LIZ_VERSION_MINOR;
_level = 3;
}
Byte _ver_major;
Byte _ver_minor;
Byte _level;
Byte _reserved[2];
};
class CEncoder:

View File

@@ -0,0 +1,17 @@
// (C) 2017 Tino Reichardt
#include "StdAfx.h"
#include "../Common/RegisterCodec.h"
#include "LizardDecoder.h"
#ifndef EXTRACT_ONLY
#include "LizardEncoder.h"
#endif
REGISTER_CODEC_E(
LIZARD,
NCompress::NLIZARD::CDecoder(),
NCompress::NLIZARD::CEncoder(),
0x4F71106, "LIZARD")

View File

@@ -1,10 +1,10 @@
// (C) 2016 Tino Reichardt
// (C) 2016 - 2017 Tino Reichardt
#define LZ4_STATIC_LINKING_ONLY
#include "../../../C/Alloc.h"
#include "../../../C/Threads.h"
#include "../../../C/lz4/lz4.h"
#include "../../../C/zstdmt/zstd-mt.h"
#include "../../../C/zstdmt/lz4-mt.h"
#include "../../Windows/System.h"
#include "../../Common/Common.h"

View File

@@ -4,7 +4,7 @@
#include "../../../C/Alloc.h"
#include "../../../C/Threads.h"
#include "../../../C/lz4/lz4.h"
#include "../../../C/zstdmt/zstd-mt.h"
#include "../../../C/zstdmt/lz4-mt.h"
#include "../../Common/Common.h"
#include "../../Common/MyCom.h"

View File

@@ -4,7 +4,7 @@
#include "../../../C/Alloc.h"
#include "../../../C/Threads.h"
#include "../../../C/lz5/lz5.h"
#include "../../../C/zstdmt/zstd-mt.h"
#include "../../../C/zstdmt/lz5-mt.h"
#include "../../Windows/System.h"
#include "../../Common/Common.h"

View File

@@ -4,7 +4,7 @@
#include "../../../C/Alloc.h"
#include "../../../C/Threads.h"
#include "../../../C/lz5/lz5.h"
#include "../../../C/zstdmt/zstd-mt.h"
#include "../../../C/zstdmt/lz5-mt.h"
#include "../../Common/Common.h"
#include "../../Common/MyCom.h"