Changeset 294 in 3DVCSoftware for branches/HTM-5.1-dev0/source/Lib/TLibDecoder/NALread.cpp
- Timestamp:
- 19 Feb 2013, 20:33:52 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-5.1-dev0/source/Lib/TLibDecoder/NALread.cpp
r210 r294 124 124 assert(forbidden_zero_bit == 0); 125 125 126 #if NAL_REF_FLAG127 126 nalu.m_nalRefFlag = (bs.read(1) != 0 ); 128 127 nalu.m_nalUnitType = (NalUnitType) bs.read(6); 129 #else130 nalu.m_nalRefIDC = (NalRefIdc) bs.read(2);131 nalu.m_nalUnitType = (NalUnitType) bs.read(5);132 #endif133 128 134 129 #if QC_MVHEVC_B0046 … … 137 132 nalu.m_temporalId = bs.read(3) - 1; 138 133 #else 139 #if H0388140 134 nalu.m_temporalId = bs.read(3); 141 135 // unsigned reserved_one_5bits = bs.read(5); … … 147 141 nalu.m_isDepth = bs.read(1); 148 142 #endif 149 #if H0566_TLA150 143 if ( nalu.m_temporalId ) 151 144 { … … 157 150 } 158 151 #endif 159 #else160 switch (nalu.m_nalUnitType)161 {162 case NAL_UNIT_CODED_SLICE:163 case NAL_UNIT_CODED_SLICE_IDR:164 #if H0566_TLA165 #if !QC_REM_IDV_B0046166 case NAL_UNIT_CODED_SLICE_IDV:167 #endif168 case NAL_UNIT_CODED_SLICE_CRA:169 case NAL_UNIT_CODED_SLICE_TLA:170 #else171 case NAL_UNIT_CODED_SLICE_CDR:172 #endif173 {174 nalu.m_temporalId = bs.read(3);175 #if VIDYO_VPS_INTEGRATION176 nalu.m_layerId = bs.read(5) - 1;177 #else178 nalu.m_OutputFlag = bs.read(1);179 // unsigned reserved_one_4bits = bs.read(4);180 // assert(reserved_one_4bits == 1);181 nalu.m_viewId = bs.read(3)-1;182 nalu.m_isDepth = bs.read(1);183 #endif184 185 #if H0566_TLA186 if (nalu.m_temporalId == 0)187 {188 #if QC_REM_IDV_B0046189 assert(nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_CRA || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_IDR);190 #else191 assert(nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_CRA || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_IDR || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_IDV );192 #endif193 }194 else195 {196 assert(nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_TLA);197 }198 #endif199 }200 break;201 default:202 nalu.m_temporalId = 0;203 nalu.m_OutputFlag = true;204 break;205 }206 #endif207 #endif208 152 } 209 153 //! \}
Note: See TracChangeset for help on using the changeset viewer.