Changeset 1237 in SHVCSoftware for branches/SHM-dev/source/App/TAppDecoder
- Timestamp:
- 13 Jul 2015, 20:56:47 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppDecoder/TAppDecTop.cpp
r1235 r1237 235 235 if( (m_iMaxTemporalLayer >= 0 && nalu.m_temporalId > m_iMaxTemporalLayer) || !isNaluWithinTargetDecLayerIdSet(&nalu) || 236 236 #if CONFORMANCE_BITSTREAM_MODE 237 (nalu.m_ layerId > m_commonDecoderParams.getTargetLayerId()) )238 #else 239 (nalu.m_ layerId > m_tgtLayerId) )237 (nalu.m_nuhLayerId > m_commonDecoderParams.getTargetLayerId()) ) 238 #else 239 (nalu.m_nuhLayerId > m_tgtLayerId) ) 240 240 #endif 241 241 { … … 244 244 else 245 245 { 246 bNewPicture = m_acTDecTop[nalu.m_ layerId].decode(nalu, m_iSkipFrame, m_aiPOCLastDisplay[nalu.m_layerId], curLayerId, bNewPOC);246 bNewPicture = m_acTDecTop[nalu.m_nuhLayerId].decode(nalu, m_iSkipFrame, m_aiPOCLastDisplay[nalu.m_nuhLayerId], curLayerId, bNewPOC); 247 247 248 248 #if SVC_POC 249 if( (bNewPicture && m_acTDecTop[nalu.m_ layerId].getParseIdc() == 3) || (m_acTDecTop[nalu.m_layerId].getParseIdc() == 0) )249 if( (bNewPicture && m_acTDecTop[nalu.m_nuhLayerId].getParseIdc() == 3) || (m_acTDecTop[nalu.m_nuhLayerId].getParseIdc() == 0) ) 250 250 #else 251 251 if (bNewPicture) … … 267 267 } 268 268 #if SVC_POC 269 else if(m_acTDecTop[nalu.m_ layerId].getParseIdc() == 1)269 else if(m_acTDecTop[nalu.m_nuhLayerId].getParseIdc() == 1) 270 270 { 271 271 bitstreamFile.clear(); … … 283 283 284 284 #if SVC_POC 285 if( ( (bNewPicture && m_acTDecTop[nalu.m_ layerId].getParseIdc() == 3) || m_acTDecTop[nalu.m_layerId].getParseIdc() == 0 || !bitstreamFile || nalu.m_nalUnitType == NAL_UNIT_EOS ) &&286 !m_acTDecTop[nalu.m_ layerId].getFirstSliceInSequence() )285 if( ( (bNewPicture && m_acTDecTop[nalu.m_nuhLayerId].getParseIdc() == 3) || m_acTDecTop[nalu.m_nuhLayerId].getParseIdc() == 0 || !bitstreamFile || nalu.m_nalUnitType == NAL_UNIT_EOS ) && 286 !m_acTDecTop[nalu.m_nuhLayerId].getFirstSliceInSequence() ) 287 287 #else 288 288 if ( (bNewPicture || !bitstreamFile || nalu.m_nalUnitType == NAL_UNIT_EOS) && 289 !m_acTDecTop[nalu.m_ layerId].getFirstSliceInSequence() )289 !m_acTDecTop[nalu.m_nuhLayerId].getFirstSliceInSequence() ) 290 290 #endif 291 291 { … … 302 302 if (nalu.m_nalUnitType == NAL_UNIT_EOS) 303 303 { 304 m_acTDecTop[nalu.m_ layerId].setFirstSliceInSequence(true);304 m_acTDecTop[nalu.m_nuhLayerId].setFirstSliceInSequence(true); 305 305 } 306 306 } 307 307 else if ( (bNewPicture || !bitstreamFile || nalu.m_nalUnitType == NAL_UNIT_EOS ) && 308 m_acTDecTop[nalu.m_ layerId].getFirstSliceInSequence () )309 { 310 m_acTDecTop[nalu.m_ layerId].setFirstSliceInPicture (true);308 m_acTDecTop[nalu.m_nuhLayerId].getFirstSliceInSequence () ) 309 { 310 m_acTDecTop[nalu.m_nuhLayerId].setFirstSliceInPicture (true); 311 311 } 312 312 313 313 #if SVC_POC 314 if( bNewPicture && m_acTDecTop[nalu.m_ layerId].getParseIdc() == 0 )315 { 316 outputAllPictures( nalu.m_ layerId, true );314 if( bNewPicture && m_acTDecTop[nalu.m_nuhLayerId].getParseIdc() == 0 ) 315 { 316 outputAllPictures( nalu.m_nuhLayerId, true ); 317 317 } 318 318 #endif … … 333 333 Bool outputPicturesFlag = true; 334 334 335 if( m_acTDecTop[nalu.m_ layerId].getNoOutputPriorPicsFlag() )335 if( m_acTDecTop[nalu.m_nuhLayerId].getNoOutputPriorPicsFlag() ) 336 336 { 337 337 outputPicturesFlag = false; … … 340 340 if (nalu.m_nalUnitType == NAL_UNIT_EOS) // End of sequence 341 341 { 342 flushAllPictures( nalu.m_ layerId, outputPicturesFlag );342 flushAllPictures( nalu.m_nuhLayerId, outputPicturesFlag ); 343 343 } 344 344 345 345 #if SVC_POC 346 if( bNewPicture && m_acTDecTop[nalu.m_ layerId].getParseIdc() != 0 )346 if( bNewPicture && m_acTDecTop[nalu.m_nuhLayerId].getParseIdc() != 0 ) 347 347 // New picture, slice header parsed but picture not decoded 348 348 #else … … 356 356 || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_BLA_W_LP ) 357 357 { 358 flushAllPictures( nalu.m_ layerId, outputPicturesFlag );358 flushAllPictures( nalu.m_nuhLayerId, outputPicturesFlag ); 359 359 } 360 360 else 361 361 { 362 this->checkOutputBeforeDecoding( nalu.m_ layerId );362 this->checkOutputBeforeDecoding( nalu.m_nuhLayerId ); 363 363 } 364 364 } … … 1242 1242 } 1243 1243 #if SVC_EXTENSION 1244 if (nalu->m_ layerId == 0 && (nalu->m_nalUnitType == NAL_UNIT_VPS || nalu->m_nalUnitType == NAL_UNIT_SPS || nalu->m_nalUnitType == NAL_UNIT_PPS || nalu->m_nalUnitType == NAL_UNIT_EOS))1244 if (nalu->m_nuhLayerId == 0 && (nalu->m_nalUnitType == NAL_UNIT_VPS || nalu->m_nalUnitType == NAL_UNIT_SPS || nalu->m_nalUnitType == NAL_UNIT_PPS || nalu->m_nalUnitType == NAL_UNIT_EOS)) 1245 1245 { 1246 1246 return true; … … 1249 1249 for (std::vector<Int>::iterator it = m_targetDecLayerIdSet.begin(); it != m_targetDecLayerIdSet.end(); it++) 1250 1250 { 1251 if ( nalu->m_ reservedZero6Bits== (*it) )1251 if ( nalu->m_nuhLayerId == (*it) ) 1252 1252 { 1253 1253 return true;
Note: See TracChangeset for help on using the changeset viewer.