diff options
Diffstat (limited to 'CPP/7zip/Compress/BcjCoder.h')
-rw-r--r-- | CPP/7zip/Compress/BcjCoder.h | 32 |
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 @@ | |||
12 | namespace NCompress { | 12 | namespace NCompress { |
13 | namespace NBcj { | 13 | namespace NBcj { |
14 | 14 | ||
15 | class 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; | 20 | Z7_CLASS_IMP_COM_1( |
21 | int _encode; | 21 | CCoder2 |
22 | , ICompressFilter | ||
23 | ) | ||
24 | UInt32 _pc; | ||
25 | UInt32 _state; | ||
26 | z7_Func_BranchConvSt _convFunc; | ||
22 | public: | 27 | public: |
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 | }} |