HEVC Test Model (HM)  HM-16.3
Public Member Functions | Private Attributes | List of all members
TComOutputBitstream Class Reference

#include <TComBitStream.h>

Inheritance diagram for TComOutputBitstream:
Inheritance graph
Collaboration diagram for TComOutputBitstream:
Collaboration graph

Public Member Functions

Void resetBits ()
Int getNumBitsUntilByteAligned ()
UInt getNumberOfWrittenBits () const
std::vector< uint8_t > & getFIFO ()
UChar getHeldBits ()
const std::vector< uint8_t > & getFIFO () const
 TComOutputBitstream ()
 this value is always msb-aligned, bigendian. More...
 ~TComOutputBitstream ()
Void write (UInt uiBits, UInt uiNumberOfBits)
Void writeAlignOne ()
Void writeAlignZero ()
ChargetByteStream () const
UInt getByteStreamLength ()
Void clear ()
Void insertAt (const TComOutputBitstream &src, UInt pos)
Void addSubstream (TComOutputBitstream *pcSubstream)
Void writeByteAlignment ()
Int countStartCodeEmulations ()
 returns the number of start code emulations contained in the current buffer More...
- Public Member Functions inherited from TComBitIf
virtual ~TComBitIf ()

Private Attributes

std::vector< uint8_t > m_fifo
UInt m_num_held_bits
UChar m_held_bits
 number of bits not flushed to bytestream. More...

Detailed Description

Model of a writable bitstream that accumulates bits to produce a bytestream.

Definition at line 73 of file TComBitStream.h.

Member Function Documentation

std::vector<uint8_t>& TComOutputBitstream::getFIFO ( )

Return a reference to the internal fifo

Definition at line 144 of file TComBitStream.h.

const std::vector<uint8_t>& TComOutputBitstream::getFIFO ( ) const

Return a reference to the internal fifo

Definition at line 150 of file TComBitStream.h.

UChar TComOutputBitstream::getHeldBits ( )

Definition at line 146 of file TComBitStream.h.

UInt TComOutputBitstream::getNumberOfWrittenBits ( ) const

Return the number of bits that have been written since the last clear()

Implements TComBitIf.

Definition at line 137 of file TComBitStream.h.

Int TComOutputBitstream::getNumBitsUntilByteAligned ( )

returns the number of bits that need to be written to achieve byte alignment.

Definition at line 132 of file TComBitStream.h.

Void TComOutputBitstream::resetBits ( )

this function should never be called

Implements TComBitIf.

Definition at line 106 of file TComBitStream.h.

Member Data Documentation

std::vector<uint8_t> TComOutputBitstream::m_fifo

FIFO for storage of bytes. Use:

  • fifo.push_back(x) to append words
  • fifo.clear() to empty the FIFO
  • &fifo.front() to get a pointer to the data array. NB, this pointer is only valid until the next push_back()/clear()

Definition at line 82 of file TComBitStream.h.

UChar TComOutputBitstream::m_held_bits

number of bits not flushed to bytestream.

Definition at line 85 of file TComBitStream.h.

UInt TComOutputBitstream::m_num_held_bits

Definition at line 84 of file TComBitStream.h.

The documentation for this class was generated from the following files: