aboutsummaryrefslogtreecommitdiff
path: root/CPP/7zip/Compress/BcjCoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/7zip/Compress/BcjCoder.h')
-rw-r--r--CPP/7zip/Compress/BcjCoder.h32
1 files changed, 19 insertions, 13 deletions
diff --git a/CPP/7zip/Compress/BcjCoder.h b/CPP/7zip/Compress/BcjCoder.h
index 7883906..734a278 100644
--- a/CPP/7zip/Compress/BcjCoder.h
+++ b/CPP/7zip/Compress/BcjCoder.h
@@ -1,7 +1,7 @@
1// BcjCoder.h 1// BcjCoder.h
2 2
3#ifndef __COMPRESS_BCJ_CODER_H 3#ifndef ZIP7_INC_COMPRESS_BCJ_CODER_H
4#define __COMPRESS_BCJ_CODER_H 4#define ZIP7_INC_COMPRESS_BCJ_CODER_H
5 5
6#include "../../../C/Bra.h" 6#include "../../../C/Bra.h"
7 7
@@ -12,18 +12,24 @@
12namespace NCompress { 12namespace NCompress {
13namespace NBcj { 13namespace NBcj {
14 14
15class CCoder: 15/* CCoder in old versions used another constructor parameter CCoder(int encode).
16 public ICompressFilter, 16 And some code called it as CCoder(0).
17 public CMyUnknownImp 17 We have changed constructor parameter type.
18{ 18 So we have changed the name of class also to CCoder2. */
19 UInt32 _bufferPos; 19
20 UInt32 _prevMask; 20Z7_CLASS_IMP_COM_1(
21 int _encode; 21 CCoder2
22 , ICompressFilter
23)
24 UInt32 _pc;
25 UInt32 _state;
26 z7_Func_BranchConvSt _convFunc;
22public: 27public:
23 MY_UNKNOWN_IMP1(ICompressFilter); 28 CCoder2(z7_Func_BranchConvSt convFunc):
24 INTERFACE_ICompressFilter(;) 29 _pc(0),
25 30 _state(Z7_BRANCH_CONV_ST_X86_STATE_INIT_VAL),
26 CCoder(int encode): _bufferPos(0), _encode(encode) { x86_Convert_Init(_prevMask); } 31 _convFunc(convFunc)
32 {}
27}; 33};
28 34
29}} 35}}