Changeset 1313 in 3DVCSoftware for trunk/source/Lib/TLibDecoder/AnnexBread.h
- Timestamp:
- 13 Aug 2015, 17:38:13 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibDecoder/AnnexBread.h
r1179 r1313 4 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 * … … 39 39 #pragma once 40 40 41 #ifndef __ANNEXBREAD__ 42 #define __ANNEXBREAD__ 43 41 44 #include <stdint.h> 42 45 #include <istream> 43 46 #include <vector> 44 47 45 #include " ../TLibCommon/TypeDef.h"48 #include "TLibCommon/CommonDef.h" 46 49 47 50 //! \ingroup TLibDecoder … … 72 75 * modified externally to this class 73 76 */ 74 void reset()77 Void reset() 75 78 { 76 79 m_NumFutureBytes = 0; … … 86 89 assert(n <= 4); 87 90 if (m_NumFutureBytes >= n) 91 { 88 92 return false; 93 } 89 94 90 95 n -= m_NumFutureBytes; … … 150 155 uint32_t val = 0; 151 156 for (UInt i = 0; i < n; i++) 157 { 152 158 val = (val << 8) | readByte(); 159 } 153 160 return val; 154 161 } 162 163 #if RExt__DECODER_DEBUG_BIT_STATISTICS 164 UInt GetNumBufferedBytes() const { return m_NumFutureBytes; } 165 #endif 155 166 156 167 private: … … 185 196 186 197 //! \} 198 199 #endif
Note: See TracChangeset for help on using the changeset viewer.