mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-07 22:06:59 -06:00
9.21
This commit is contained in:
committed by
Kornel Lesiński
parent
de4f8c22fe
commit
35596517f2
@@ -1,5 +1,4 @@
|
||||
// PpmdZip.h
|
||||
// 2010-03-11 : Igor Pavlov : Public domain
|
||||
|
||||
#ifndef __COMPRESS_PPMD_ZIP_H
|
||||
#define __COMPRESS_PPMD_ZIP_H
|
||||
@@ -48,21 +47,37 @@ public:
|
||||
~CDecoder();
|
||||
};
|
||||
|
||||
struct CEncProps
|
||||
{
|
||||
UInt32 MemSizeMB;
|
||||
UInt32 ReduceSize;
|
||||
int Order;
|
||||
int Restor;
|
||||
|
||||
CEncProps()
|
||||
{
|
||||
MemSizeMB = (UInt32)(Int32)-1;
|
||||
ReduceSize = (UInt32)(Int32)-1;
|
||||
Order = -1;
|
||||
Restor = -1;
|
||||
}
|
||||
void Normalize(int level);
|
||||
};
|
||||
|
||||
class CEncoder :
|
||||
public ICompressCoder,
|
||||
public ICompressSetCoderProperties,
|
||||
public CMyUnknownImp
|
||||
{
|
||||
CByteOutBufWrap _outStream;
|
||||
CBuf _inStream;
|
||||
CPpmd8 _ppmd;
|
||||
UInt32 _usedMemInMB;
|
||||
unsigned _order;
|
||||
unsigned _restor;
|
||||
CEncProps _props;
|
||||
public:
|
||||
MY_UNKNOWN_IMP
|
||||
MY_UNKNOWN_IMP1(ICompressSetCoderProperties)
|
||||
STDMETHOD(Code)(ISequentialInStream *inStream, ISequentialOutStream *outStream,
|
||||
const UInt64 *inSize, const UInt64 *outSize, ICompressProgressInfo *progress);
|
||||
HRESULT SetCoderProperties(const PROPID *propIDs, const PROPVARIANT *props, UInt32 numProps);
|
||||
STDMETHOD(SetCoderProperties)(const PROPID *propIDs, const PROPVARIANT *props, UInt32 numProps);
|
||||
CEncoder();
|
||||
~CEncoder();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user