Changeset 1313 in 3DVCSoftware for trunk/source/Lib/TLibDecoder/AnnexBread.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/TLibDecoder/AnnexBread.h

    r1179 r1313  
    44 * 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 *
     
    3939#pragma once
    4040
     41#ifndef __ANNEXBREAD__
     42#define __ANNEXBREAD__
     43
    4144#include <stdint.h>
    4245#include <istream>
    4346#include <vector>
    4447
    45 #include "../TLibCommon/TypeDef.h"
     48#include "TLibCommon/CommonDef.h"
    4649
    4750//! \ingroup TLibDecoder
     
    7275   * modified externally to this class
    7376   */
    74   void reset()
     77  Void reset()
    7578  {
    7679    m_NumFutureBytes = 0;
     
    8689    assert(n <= 4);
    8790    if (m_NumFutureBytes >= n)
     91    {
    8892      return false;
     93    }
    8994
    9095    n -= m_NumFutureBytes;
     
    150155    uint32_t val = 0;
    151156    for (UInt i = 0; i < n; i++)
     157    {
    152158      val = (val << 8) | readByte();
     159    }
    153160    return val;
    154161  }
     162
     163#if RExt__DECODER_DEBUG_BIT_STATISTICS
     164  UInt GetNumBufferedBytes() const { return m_NumFutureBytes; }
     165#endif
    155166
    156167private:
     
    185196
    186197//! \}
     198
     199#endif
Note: See TracChangeset for help on using the changeset viewer.