Changeset 1313 in 3DVCSoftware for trunk/source/Lib/TLibCommon/NAL.h
- Timestamp:
- 13 Aug 2015, 17:38:13 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibCommon/NAL.h
r1179 r1313 4 4 * granted under this license. 5 5 * 6 * Copyright (c) 2010-2015, ITU/ISO/IEC6 * Copyright (c) 2010-2015, ITU/ISO/IEC 7 7 * All rights reserved. 8 8 * … … 34 34 #pragma once 35 35 36 #include <vector> 36 #ifndef __NAL__ 37 #define __NAL__ 38 37 39 #include <sstream> 38 40 #include "CommonDef.h" 41 #if NH_MV 42 #include <vector> 43 #endif 39 44 40 45 class TComOutputBitstream; … … 47 52 NalUnitType m_nalUnitType; ///< nal_unit_type 48 53 UInt m_temporalId; ///< temporal_id 49 #if H_MV50 Int m_ layerId; ///< layer id54 #if NH_MV 55 Int m_nuhLayerId; ///< layer id 51 56 #else 52 UInt m_ reservedZero6Bits; ///< reserved_zero_6bits57 UInt m_nuhLayerId; ///< nuh_layer_id 53 58 #endif 54 59 60 NALUnit(const NALUnit &src) 61 :m_nalUnitType (src.m_nalUnitType) 62 ,m_temporalId (src.m_temporalId) 63 ,m_nuhLayerId (src.m_nuhLayerId) 64 { } 55 65 /** construct an NALunit structure with given header values. */ 56 66 NALUnit( 57 67 NalUnitType nalUnitType, 58 68 Int temporalId = 0, 59 #if H_MV 60 Int layerId = 0) 61 #else 62 Int reservedZero6Bits = 0) 63 #endif 69 Int nuhLayerId = 0) 64 70 :m_nalUnitType (nalUnitType) 65 71 ,m_temporalId (temporalId) 66 #if H_MV 67 ,m_layerId (layerId) 68 #else 69 ,m_reservedZero6Bits(reservedZero6Bits) 70 #endif 72 ,m_nuhLayerId (nuhLayerId) 71 73 {} 72 74 73 /** default constructor - no initialization; must be perfo med by user */75 /** default constructor - no initialization; must be performed by user */ 74 76 NALUnit() {} 77 78 virtual ~NALUnit() { } 75 79 76 80 /** returns true if the NALunit is a slice NALunit */ … … 96 100 Bool isSei() 97 101 { 98 return m_nalUnitType == NAL_UNIT_PREFIX_SEI 102 return m_nalUnitType == NAL_UNIT_PREFIX_SEI 99 103 || m_nalUnitType == NAL_UNIT_SUFFIX_SEI; 100 104 } … … 116 120 117 121 /** 118 * convert the OutputNALUnit #nalu#into EBSP format by writing out122 * convert the OutputNALUnit nalu into EBSP format by writing out 119 123 * the NALUnit header, then the rbsp_bytes including any 120 124 * emulation_prevention_three_byte symbols. … … 124 128 //! \} 125 129 //! \} 130 131 #endif
Note: See TracChangeset for help on using the changeset viewer.