Changeset 916 in SHVCSoftware for branches/SHM-upgrade/source/Lib/TLibCommon/TComBitStream.h
- Timestamp:
- 12 Nov 2014, 08:09:17 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-upgrade/source/Lib/TLibCommon/TComBitStream.h
r595 r916 36 36 */ 37 37 38 #ifndef __ COMBITSTREAM__39 #define __ COMBITSTREAM__38 #ifndef __TCOMBITSTREAM__ 39 #define __TCOMBITSTREAM__ 40 40 41 41 #if _MSC_VER > 1000 … … 81 81 * NB, this pointer is only valid until the next push_back()/clear() 82 82 */ 83 std::vector<uint8_t> *m_fifo;83 std::vector<uint8_t> m_fifo; 84 84 85 85 UInt m_num_held_bits; /// number of bits not flushed to bytestream. 86 86 UChar m_held_bits; /// the bits held and not flushed to bytestream. 87 87 /// this value is always msb-aligned, bigendian. 88 89 88 public: 90 89 // create / destroy … … 106 105 107 106 /** this function should never be called */ 108 void resetBits() { assert(0); }107 Void resetBits() { assert(0); } 109 108 110 109 // utility functions … … 137 136 * Return the number of bits that have been written since the last clear() 138 137 */ 139 UInt getNumberOfWrittenBits() const { return UInt(m_fifo ->size()) * 8 + m_num_held_bits; }140 141 void insertAt(const TComOutputBitstream& src, UInt pos);138 UInt getNumberOfWrittenBits() const { return UInt(m_fifo.size()) * 8 + m_num_held_bits; } 139 140 Void insertAt(const TComOutputBitstream& src, UInt pos); 142 141 143 142 /** 144 143 * Return a reference to the internal fifo 145 144 */ 146 std::vector<uint8_t>& getFIFO() { return *m_fifo; }145 std::vector<uint8_t>& getFIFO() { return m_fifo; } 147 146 148 147 UChar getHeldBits () { return m_held_bits; } 149 148 150 TComOutputBitstream& operator= (const TComOutputBitstream& src);149 //TComOutputBitstream& operator= (const TComOutputBitstream& src); 151 150 /** Return a reference to the internal fifo */ 152 std::vector<uint8_t>& getFIFO() const { return *m_fifo; }151 const std::vector<uint8_t>& getFIFO() const { return m_fifo; } 153 152 154 153 Void addSubstream ( TComOutputBitstream* pcSubstream ); … … 199 198 } 200 199 201 VoidreadOutTrailingBits ();200 UInt readOutTrailingBits (); 202 201 UChar getHeldBits () { return m_held_bits; } 203 202 TComOutputBitstream& operator= (const TComOutputBitstream& src); … … 215 214 Void deleteFifo(); // Delete internal fifo of bitstream. 216 215 UInt getNumBitsRead() { return m_numBitsRead; } 217 VoidreadByteAlignment();216 UInt readByteAlignment(); 218 217 219 218 Void pushEmulationPreventionByteLocation ( UInt pos ) { m_emulationPreventionByteLocation.push_back( pos ); }
Note: See TracChangeset for help on using the changeset viewer.