Last change
on this file since 47 was
2,
checked in by hhi, 13 years ago
|
inital import
|
-
Property svn:eol-style set to
native
|
File size:
1.2 KB
|
Line | |
---|
1 | |
---|
2 | |
---|
3 | /** \file TEncBinCoder.h |
---|
4 | \brief binary entropy encoder interface |
---|
5 | */ |
---|
6 | |
---|
7 | #ifndef __TENC_BIN_CODER__ |
---|
8 | #define __TENC_BIN_CODER__ |
---|
9 | |
---|
10 | #include "../TLibCommon/ContextModel.h" |
---|
11 | #include "../TLibCommon/TComBitStream.h" |
---|
12 | |
---|
13 | |
---|
14 | class TEncBinCABAC; |
---|
15 | |
---|
16 | |
---|
17 | class TEncBinIf |
---|
18 | { |
---|
19 | public: |
---|
20 | virtual Void init ( TComBitIf* pcTComBitIf ) = 0; |
---|
21 | virtual Void uninit () = 0; |
---|
22 | |
---|
23 | virtual Void start () = 0; |
---|
24 | virtual Void finish () = 0; |
---|
25 | virtual Void copyState ( TEncBinIf* pcTEncBinIf ) = 0; |
---|
26 | |
---|
27 | virtual Void resetBits () = 0; |
---|
28 | virtual UInt getNumWrittenBits () = 0; |
---|
29 | |
---|
30 | virtual Void encodeBin ( UInt uiBin, ContextModel& rcCtxModel ) = 0; |
---|
31 | virtual Void encodeBinEP ( UInt uiBin ) = 0; |
---|
32 | virtual Void encodeBinTrm ( UInt uiBin ) = 0; |
---|
33 | |
---|
34 | virtual TEncBinCABAC* getTEncBinCABAC () { return 0; } |
---|
35 | |
---|
36 | virtual ~TEncBinIf() {} |
---|
37 | }; |
---|
38 | |
---|
39 | |
---|
40 | #endif |
---|
41 | |
---|
Note: See
TracBrowser for help on using the repository browser.