Changeset 1313 in 3DVCSoftware for trunk/source/Lib/TLibCommon/NAL.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/NAL.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 *
     
    3434#pragma once
    3535
    36 #include <vector>
     36#ifndef __NAL__
     37#define __NAL__
     38
    3739#include <sstream>
    3840#include "CommonDef.h"
     41#if NH_MV
     42#include <vector>
     43#endif
    3944
    4045class TComOutputBitstream;
     
    4752  NalUnitType m_nalUnitType; ///< nal_unit_type
    4853  UInt        m_temporalId;  ///< temporal_id
    49 #if H_MV
    50   Int         m_layerId;     ///< layer id
     54#if NH_MV
     55  Int         m_nuhLayerId;     ///< layer id
    5156#else
    52   UInt        m_reservedZero6Bits; ///< reserved_zero_6bits
     57  UInt        m_nuhLayerId;  ///< nuh_layer_id
    5358#endif
    5459
     60  NALUnit(const NALUnit &src)
     61  :m_nalUnitType (src.m_nalUnitType)
     62  ,m_temporalId  (src.m_temporalId)
     63  ,m_nuhLayerId  (src.m_nuhLayerId)
     64  { }
    5565  /** construct an NALunit structure with given header values. */
    5666  NALUnit(
    5767    NalUnitType nalUnitType,
    5868    Int         temporalId = 0,
    59 #if H_MV
    60     Int         layerId = 0)
    61 #else
    62     Int         reservedZero6Bits = 0)
    63 #endif
     69    Int         nuhLayerId = 0)
    6470    :m_nalUnitType (nalUnitType)
    6571    ,m_temporalId  (temporalId)
    66 #if H_MV
    67     ,m_layerId     (layerId)
    68 #else
    69     ,m_reservedZero6Bits(reservedZero6Bits)
    70 #endif
     72    ,m_nuhLayerId  (nuhLayerId)
    7173  {}
    7274
    73   /** default constructor - no initialization; must be perfomed by user */
     75  /** default constructor - no initialization; must be performed by user */
    7476  NALUnit() {}
     77
     78  virtual ~NALUnit() { }
    7579
    7680  /** returns true if the NALunit is a slice NALunit */
     
    96100  Bool isSei()
    97101  {
    98     return m_nalUnitType == NAL_UNIT_PREFIX_SEI 
     102    return m_nalUnitType == NAL_UNIT_PREFIX_SEI
    99103        || m_nalUnitType == NAL_UNIT_SUFFIX_SEI;
    100104  }
     
    116120
    117121  /**
    118    * convert the OutputNALUnit #nalu# into EBSP format by writing out
     122   * convert the OutputNALUnit nalu into EBSP format by writing out
    119123   * the NALUnit header, then the rbsp_bytes including any
    120124   * emulation_prevention_three_byte symbols.
     
    124128//! \}
    125129//! \}
     130
     131#endif
Note: See TracChangeset for help on using the changeset viewer.