mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-09 10:07:10 -06:00
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:
@@ -1,4 +1,4 @@
|
||||
// (C) 2016 Tino Reichardt
|
||||
// (C) 2017 Tino Reichardt
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "BrotliDecoder.h"
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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:
|
||||
|
||||
17
CPP/7zip/Compress/BrotliRegister.cpp
Normal file
17
CPP/7zip/Compress/BrotliRegister.cpp
Normal 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")
|
||||
@@ -1,4 +1,4 @@
|
||||
// (C) 2016 Tino Reichardt
|
||||
// (C) 2017 Tino Reichardt
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "LizardDecoder.h"
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// (C) 2016 Tino Reichardt
|
||||
// (C) 2017 Tino Reichardt
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "LizardEncoder.h"
|
||||
|
||||
@@ -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:
|
||||
|
||||
17
CPP/7zip/Compress/LizardRegister.cpp
Normal file
17
CPP/7zip/Compress/LizardRegister.cpp
Normal 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")
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user