Changeset 1313 in 3DVCSoftware for trunk/source/Lib/TLibCommon/TComBitCounter.h


Ignore:
Timestamp:
13 Aug 2015, 17:38:13 (9 years ago)
Author:
tech
Message:

Merged 14.1-update-dev1@1312.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TLibCommon/TComBitCounter.h

    r1179 r1313  
    22 * License, included below. This software may be subject to other third party
    33 * and contributor rights, including patent rights, and no such rights are
    4  * granted under this license. 
     4 * granted under this license.
    55 *
    6 * Copyright (c) 2010-2015, ITU/ISO/IEC
     6 * Copyright (c) 2010-2015, ITU/ISO/IEC
    77 * All rights reserved.
    88 *
     
    3636*/
    3737
    38 #ifndef __COMBITCOUNTER__
    39 #define __COMBITCOUNTER__
     38#ifndef __TCOMBITCOUNTER__
     39#define __TCOMBITCOUNTER__
    4040
    4141#if _MSC_VER > 1000
     
    5757protected:
    5858  UInt  m_uiBitCounter;
    59  
     59
    6060public:
    6161  TComBitCounter()            {}
    6262  virtual ~TComBitCounter()   {}
    63  
     63
    6464  Void        write                 ( UInt /*uiBits*/, UInt uiNumberOfBits )  { m_uiBitCounter += uiNumberOfBits; }
    6565  Void        resetBits             ()                                    { m_uiBitCounter = 0;               }
    6666  UInt getNumberOfWrittenBits() const { return m_uiBitCounter; }
     67  Int         getNumBitsUntilByteAligned() const                              { return (8 - m_uiBitCounter) & 0x7;}
     68
    6769};
    6870
Note: See TracChangeset for help on using the changeset viewer.