38 #ifndef __TCOMBITSTREAM__
39 #define __TCOMBITSTREAM__
43 #endif // _MSC_VER > 1000
virtual Int getNumBitsUntilByteAligned() const =0
Void insertAt(const TComOutputBitstream &src, UInt pos)
virtual Void resetBits()=0
virtual Void write(UInt uiBits, UInt uiNumberOfBits)=0
Defines version information, constants and small in-line functions.
Void writeByteAlignment()
pure virtual class for basic bit handling
Int getNumBitsUntilByteAligned() const
Int countStartCodeEmulations()
returns the number of start code emulations contained in the current buffer
std::vector< uint8_t > & getFIFO()
const std::vector< uint8_t > & getFIFO() const
UChar m_held_bits
number of bits not flushed to bytestream.
UInt getByteStreamLength()
UInt getNumberOfWrittenBits() const
std::vector< uint8_t > m_fifo
virtual Void writeAlignZero()
UChar * getByteStream() const
TComOutputBitstream()
this value is always msb-aligned, bigendian.
Void write(UInt uiBits, UInt uiNumberOfBits)
virtual Void writeAlignOne()
Void addSubstream(TComOutputBitstream *pcSubstream)
virtual UInt getNumberOfWrittenBits() const =0