Ignore:
Timestamp:
12 Nov 2014, 08:09:17 (10 years ago)
Author:
seregin
Message:

initial porting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-upgrade/source/Lib/TLibCommon/TComBitStream.h

    r595 r916  
    3636*/
    3737
    38 #ifndef __COMBITSTREAM__
    39 #define __COMBITSTREAM__
     38#ifndef __TCOMBITSTREAM__
     39#define __TCOMBITSTREAM__
    4040
    4141#if _MSC_VER > 1000
     
    8181   *    NB, this pointer is only valid until the next push_back()/clear()
    8282   */
    83   std::vector<uint8_t> *m_fifo;
     83  std::vector<uint8_t> m_fifo;
    8484
    8585  UInt m_num_held_bits; /// number of bits not flushed to bytestream.
    8686  UChar m_held_bits; /// the bits held and not flushed to bytestream.
    8787                             /// this value is always msb-aligned, bigendian.
    88 
    8988public:
    9089  // create / destroy
     
    106105
    107106  /** this function should never be called */
    108   void resetBits() { assert(0); }
     107  Void resetBits() { assert(0); }
    109108
    110109  // utility functions
     
    137136   * Return the number of bits that have been written since the last clear()
    138137   */
    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);
    142141
    143142  /**
    144143   * Return a reference to the internal fifo
    145144   */
    146   std::vector<uint8_t>& getFIFO() { return *m_fifo; }
     145  std::vector<uint8_t>& getFIFO() { return m_fifo; }
    147146
    148147  UChar getHeldBits  ()          { return m_held_bits;          }
    149148
    150   TComOutputBitstream& operator= (const TComOutputBitstream& src);
     149  //TComOutputBitstream& operator= (const TComOutputBitstream& src);
    151150  /** 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; }
    153152
    154153  Void          addSubstream    ( TComOutputBitstream* pcSubstream );
     
    199198  }
    200199 
    201   Void        readOutTrailingBits ();
     200  UInt        readOutTrailingBits ();
    202201  UChar getHeldBits  ()          { return m_held_bits;          }
    203202  TComOutputBitstream& operator= (const TComOutputBitstream& src);
     
    215214  Void                deleteFifo(); // Delete internal fifo of bitstream.
    216215  UInt  getNumBitsRead() { return m_numBitsRead; }
    217   Void readByteAlignment();
     216  UInt readByteAlignment();
    218217
    219218  Void      pushEmulationPreventionByteLocation ( UInt pos )                  { m_emulationPreventionByteLocation.push_back( pos ); }
Note: See TracChangeset for help on using the changeset viewer.