1// BcjCoder.h
2
3#ifndef __COMPRESS_BCJ_CODER_H
4#define __COMPRESS_BCJ_CODER_H
5
6#include "../../../C/Bra.h"
7
8#include "../../Common/MyCom.h"
9
10#include "../ICoder.h"
11
12namespace NCompress {
13namespace NBcj {
14
15class CCoder:
16  public ICompressFilter,
17  public CMyUnknownImp
18{
19  UInt32 _bufferPos;
20  UInt32 _prevMask;
21  int _encode;
22public:
23  MY_UNKNOWN_IMP1(ICompressFilter);
24  INTERFACE_ICompressFilter(;)
25
26  CCoder(int encode): _bufferPos(0), _encode(encode) { x86_Convert_Init(_prevMask); }
27};
28
29}}
30
31#endif
32