Changeset 1313 in 3DVCSoftware for trunk/source/Lib/TLibCommon/TComBitCounter.h
- Timestamp:
- 13 Aug 2015, 17:38:13 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibCommon/TComBitCounter.h
r1179 r1313 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-2015, ITU/ISO/IEC6 * Copyright (c) 2010-2015, ITU/ISO/IEC 7 7 * All rights reserved. 8 8 * … … 36 36 */ 37 37 38 #ifndef __ COMBITCOUNTER__39 #define __ COMBITCOUNTER__38 #ifndef __TCOMBITCOUNTER__ 39 #define __TCOMBITCOUNTER__ 40 40 41 41 #if _MSC_VER > 1000 … … 57 57 protected: 58 58 UInt m_uiBitCounter; 59 59 60 60 public: 61 61 TComBitCounter() {} 62 62 virtual ~TComBitCounter() {} 63 63 64 64 Void write ( UInt /*uiBits*/, UInt uiNumberOfBits ) { m_uiBitCounter += uiNumberOfBits; } 65 65 Void resetBits () { m_uiBitCounter = 0; } 66 66 UInt getNumberOfWrittenBits() const { return m_uiBitCounter; } 67 Int getNumBitsUntilByteAligned() const { return (8 - m_uiBitCounter) & 0x7;} 68 67 69 }; 68 70
Note: See TracChangeset for help on using the changeset viewer.