Changeset 916 in SHVCSoftware for branches/SHM-upgrade/source/Lib/TLibEncoder/TEncBinCoderCABAC.h
- Timestamp:
- 12 Nov 2014, 08:09:17 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-upgrade/source/Lib/TLibEncoder/TEncBinCoderCABAC.h
r595 r916 2 2 * License, included below. This software may be subject to other third party 3 3 * and contributor rights, including patent rights, and no such rights are 4 * granted under this license. 4 * granted under this license. 5 5 * 6 6 * Copyright (c) 2010-2014, ITU/ISO/IEC … … 36 36 */ 37 37 38 #ifndef __TENC _BIN_CODER_CABAC__39 #define __TENC _BIN_CODER_CABAC__38 #ifndef __TENCBINCODERCABAC__ 39 #define __TENCBINCODERCABAC__ 40 40 41 41 #include "TLibCommon/TComCABACTables.h" … … 50 50 TEncBinCABAC (); 51 51 virtual ~TEncBinCABAC(); 52 52 53 53 Void init ( TComBitIf* pcTComBitIf ); 54 54 Void uninit (); 55 55 56 56 Void start (); 57 57 Void finish (); 58 Void copyState ( TEncBinIf* pcTEncBinIf );58 Void copyState ( const TEncBinIf* pcTEncBinIf ); 59 59 Void flush (); 60 60 … … 62 62 Void encodePCMAlignBits(); 63 63 Void xWritePCMCode ( UInt uiCode, UInt uiLength ); 64 64 65 65 Void resetBits (); 66 66 UInt getNumWrittenBits (); 67 67 68 68 Void encodeBin ( UInt binValue, ContextModel& rcCtxModel ); 69 69 Void encodeBinEP ( UInt binValue ); 70 70 Void encodeBinsEP ( UInt binValues, Int numBins ); 71 71 Void encodeBinTrm ( UInt binValue ); 72 72 73 Void align (); 74 Void encodeAlignedBinsEP( UInt binValues, Int numBins ); 75 73 76 TEncBinCABAC* getTEncBinCABAC() { return this; } 74 77 const TEncBinCABAC* getTEncBinCABAC() const { return this; } 78 75 79 Void setBinsCoded ( UInt uiVal ) { m_uiBinsCoded = uiVal; } 76 80 UInt getBinsCoded () { return m_uiBinsCoded; } 77 81 Void setBinCountingEnableFlag ( Bool bFlag ) { m_binCountIncrement = bFlag ? 1 : 0; } 78 82 Bool getBinCountingEnableFlag () { return m_binCountIncrement != 0; } 79 83 80 84 #if FAST_BIT_EST 81 85 protected: … … 85 89 Void testAndWriteOut(); 86 90 Void writeOut(); 87 91 88 92 TComBitIf* m_pcTComBitIf; 89 93 UInt m_uiLow;
Note: See TracChangeset for help on using the changeset viewer.