Changeset 1352 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibCommon


Ignore:
Timestamp:
22 Jul 2015, 03:36:39 (10 years ago)
Author:
seregin
Message:

port rev 4430

Location:
branches/SHM-dev/source/Lib/TLibCommon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/TComBitCounter.h

    r1259 r1352  
    6363
    6464  Void        write                 ( UInt /*uiBits*/, UInt uiNumberOfBits )  { m_uiBitCounter += uiNumberOfBits; }
    65   Void        resetBits             ()                                    { m_uiBitCounter = 0;               }
    66   UInt getNumberOfWrittenBits() const { return m_uiBitCounter; }
     65  Void        resetBits             ()                                        { m_uiBitCounter = 0;               }
     66  UInt        getNumberOfWrittenBits() const                                  { return m_uiBitCounter; }
     67  Int         getNumBitsUntilByteAligned() const                              { return (8 - m_uiBitCounter) & 0x7;}
     68
    6769};
    6870
  • branches/SHM-dev/source/Lib/TLibCommon/TComBitStream.h

    r1319 r1352  
    6363  virtual Void        write                 ( UInt uiBits, UInt uiNumberOfBits )  = 0;
    6464  virtual Void        resetBits             ()                                    = 0;
    65   virtual UInt getNumberOfWrittenBits() const = 0;
     65  virtual UInt        getNumberOfWrittenBits() const = 0;
     66  virtual Int         getNumBitsUntilByteAligned() const = 0;
    6667  virtual ~TComBitIf() {}
    6768};
     
    130131   * achieve byte alignment.
    131132   */
    132   Int getNumBitsUntilByteAligned() { return (8 - m_num_held_bits) & 0x7; }
     133  Int getNumBitsUntilByteAligned() const { return (8 - m_num_held_bits) & 0x7; }
    133134
    134135  /**
Note: See TracChangeset for help on using the changeset viewer.