mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-08 16:07:04 -06:00
Switch to Zstandard's New advanced API.
- long distance matching is enabled - the compression should improve, the speed also - decompression code is single threaded only
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
// (C) 2016 Tino Reichardt
|
||||
// (C) 2016 - 2018 Tino Reichardt
|
||||
|
||||
#define ZSTD_STATIC_LINKING_ONLY
|
||||
#include "../../../C/Alloc.h"
|
||||
#include "../../../C/Threads.h"
|
||||
#include "../../../C/zstd/zstd.h"
|
||||
#include "../../../C/zstdmt/zstd-mt.h"
|
||||
|
||||
#include "../../Common/Common.h"
|
||||
#include "../../Common/MyCom.h"
|
||||
@@ -41,13 +40,16 @@ class CEncoder:
|
||||
{
|
||||
CProps _props;
|
||||
|
||||
ZSTD_CCtx* _ctx;
|
||||
void* _srcBuf;
|
||||
void* _dstBuf;
|
||||
size_t _srcBufSize;
|
||||
size_t _dstBufSize;
|
||||
|
||||
UInt64 _processedIn;
|
||||
UInt64 _processedOut;
|
||||
UInt32 _inputSize;
|
||||
UInt32 _numThreads;
|
||||
|
||||
ZSTDCB_CCtx *_ctx;
|
||||
HRESULT CEncoder::ErrorOut(size_t code);
|
||||
HANDLE _hMutex;
|
||||
|
||||
public:
|
||||
MY_QUERYINTERFACE_BEGIN2(ICompressCoder)
|
||||
|
||||
Reference in New Issue
Block a user