mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-14 18:11:41 -06:00
Added Extra Codec, for easier integration into existing 7-Zip installations
This commit is contained in:
@@ -31,8 +31,8 @@ CDecoder::CDecoder ():
|
||||
_inBufSizeAllocated (0),
|
||||
_outBufSizeAllocated (0),
|
||||
|
||||
_inBufSize (ZBUFF_recommendedDInSize()),
|
||||
_outBufSize (ZBUFF_recommendedDOutSize())
|
||||
_inBufSize (ZBUFF_recommendedDInSize() * 30),
|
||||
_outBufSize (ZBUFF_recommendedDOutSize()* 30)
|
||||
{
|
||||
_props.clear ();
|
||||
}
|
||||
|
||||
@@ -24,8 +24,8 @@ CEncoder::CEncoder():
|
||||
_inSize (0),
|
||||
_inBufSizeAllocated (0),
|
||||
_outBufSizeAllocated (0),
|
||||
_inBufSize (ZBUFF_recommendedCInSize()),
|
||||
_outBufSize (ZBUFF_recommendedCOutSize()),
|
||||
_inBufSize (ZBUFF_recommendedCInSize() * 30),
|
||||
_outBufSize (ZBUFF_recommendedCOutSize() * 30),
|
||||
_inSizeProcessed (0),
|
||||
_outSizeProcessed (0)
|
||||
{
|
||||
|
||||
@@ -11,8 +11,22 @@
|
||||
#include "ZstdEncoder.h"
|
||||
#endif
|
||||
|
||||
#ifndef EXTERNAL_CODEC
|
||||
REGISTER_CODEC_E(
|
||||
ZSTD,
|
||||
NCompress::NZSTD::CDecoder(),
|
||||
NCompress::NZSTD::CEncoder(),
|
||||
0x4F71101, "ZSTD")
|
||||
#else
|
||||
static void *CreateCodecOut() { return (void *)(ICompressCoder *)(new NCompress::NZSTD::CEncoder); }
|
||||
static void *CreateCodec() { return (void *)(ICompressCoder *)(new NCompress::NZSTD::CDecoder); }
|
||||
static CCodecInfo g_CodecsInfo[1] = {
|
||||
CreateCodec,
|
||||
CreateCodecOut,
|
||||
0x4F71101,
|
||||
"ZSTD",
|
||||
1,
|
||||
false
|
||||
};
|
||||
REGISTER_CODECS(ZSTD)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user