1 // BcjCoder.h 2 3 #ifndef ZIP7_INC_COMPRESS_BCJ_CODER_H 4 #define ZIP7_INC_COMPRESS_BCJ_CODER_H 5 6 #include "../../../C/Bra.h" 7 8 #include "../../Common/MyCom.h" 9 10 #include "../ICoder.h" 11 12 namespace NCompress { 13 namespace NBcj { 14 15 /* CCoder in old versions used another constructor parameter CCoder(int encode). 16 And some code called it as CCoder(0). 17 We have changed constructor parameter type. 18 So we have changed the name of class also to CCoder2. */ 19 20 Z7_CLASS_IMP_COM_1( 21 CCoder2 22 , ICompressFilter 23 ) 24 UInt32 _pc; 25 UInt32 _state; 26 z7_Func_BranchConvSt _convFunc; 27 public: CCoder2(z7_Func_BranchConvSt convFunc)28 CCoder2(z7_Func_BranchConvSt convFunc): 29 _pc(0), 30 _state(Z7_BRANCH_CONV_ST_X86_STATE_INIT_VAL), 31 _convFunc(convFunc) 32 {} 33 }; 34 35 }} 36 37 #endif 38