Changeset 56 in 3DVCSoftware for trunk/source/Lib/TLibDecoder/TDecBinCoderCABAC.h
- Timestamp:
- 11 May 2012, 21:20:17 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibDecoder/TDecBinCoderCABAC.h
r5 r56 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 * Copyright (c) 2010-201 1,ISO/IEC6 * Copyright (c) 2010-2012, ITU/ISO/IEC 7 7 * All rights reserved. 8 8 * … … 15 15 * this list of conditions and the following disclaimer in the documentation 16 16 * and/or other materials provided with the distribution. 17 * * Neither the name of the I SO/IEC nor the names of its contributors may17 * * Neither the name of the ITU/ISO/IEC nor the names of its contributors may 18 18 * be used to endorse or promote products derived from this software without 19 19 * specific prior written permission. … … 32 32 */ 33 33 34 35 36 34 /** \file TDecBinCoderCABAC.h 37 35 \brief binary entropy decoder of CABAC … … 41 39 #define __TDEC_BIN_CODER_CABAC__ 42 40 43 #include " ../TLibCommon/TComCABACTables.h"41 #include "TLibCommon/TComCABACTables.h" 44 42 #include "TDecBinCoder.h" 45 43 44 //! \ingroup TLibDecoder 45 //! \{ 46 46 47 47 class TDecBinCABAC : public TDecBinIf … … 50 50 TDecBinCABAC (); 51 51 virtual ~TDecBinCABAC(); 52 53 Void init ( TCom Bitstream* pcTComBitstream );52 53 Void init ( TComInputBitstream* pcTComBitstream ); 54 54 Void uninit (); 55 55 56 56 Void start (); 57 57 Void finish (); 58 58 #if OL_FLUSH 59 Void flush (); 60 #endif 61 59 62 Void decodeBin ( UInt& ruiBin, ContextModel& rcCtxModel ); 60 63 Void decodeBinEP ( UInt& ruiBin ); 64 Void decodeBinsEP ( UInt& ruiBin, Int numBins ); 61 65 Void decodeBinTrm ( UInt& ruiBin ); 66 67 Void resetBac (); 68 #if BURST_IPCM 69 Void decodeNumSubseqIPCM( Int& numSubseqIPCM ) ; 70 #endif 71 Void decodePCMAlignBits(); 72 Void xReadPCMCode ( UInt uiLength, UInt& ruiCode ); 73 74 Void copyState ( TDecBinIf* pcTDecBinIf ); 75 TDecBinCABAC* getTDecBinCABAC() { return this; } 76 #if !OL_FLUSH_ALIGN 77 Int getBitsReadAhead() { return -m_bitsNeeded; } 78 #endif 62 79 63 80 private: 64 Void xReadBit ( UInt& ruiVal ); 65 66 private: 67 TComBitstream* m_pcTComBitstream; 81 TComInputBitstream* m_pcTComBitstream; 68 82 UInt m_uiRange; 69 83 UInt m_uiValue; 84 #if OL_FLUSH && !OL_FLUSH_ALIGN 85 UInt m_uiLastByte; 86 #endif 87 Int m_bitsNeeded; 70 88 }; 71 89 90 //! \} 72 91 73 92 #endif
Note: See TracChangeset for help on using the changeset viewer.