Changeset 1385 in SHVCSoftware
- Timestamp:
- 31 Jul 2015, 22:59:44 (9 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibDecoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp
r1377 r1385 54 54 Int TDecTop::m_crossLayerPocResetPeriodId = -1; 55 55 Int TDecTop::m_crossLayerPocResetIdc = -1; 56 std::vector<UInt> TDecTop::m_targetDecLayerIdList; // list of layers to be decoded according to the OLS index 56 57 #endif 57 58 … … 1956 1957 if( nalu.m_nuhLayerId == 63 ) 1957 1958 { 1959 return false; 1960 } 1961 1962 // skip NAL units of the layers not needed to be decoded specified by OLS 1963 if( nalu.m_nalUnitType != NAL_UNIT_VPS && nalu.m_nalUnitType != NAL_UNIT_SPS && nalu.m_nalUnitType != NAL_UNIT_PPS && 1964 m_targetDecLayerIdList.size() && std::find( m_targetDecLayerIdList.begin(), m_targetDecLayerIdList.end(), nalu.m_nuhLayerId ) == m_targetDecLayerIdList.end() ) 1965 { 1958 1966 return false; 1959 1967 } … … 2382 2390 if( vps->getOutputLayerFlag( targetOlsIdx, i ) ) 2383 2391 { 2384 this->getLayerDec( vps->getLayerSetLayerIdList( targetLsIdx, i ) )->m_isOutputLayerFlag = true;2392 m_ppcTDecTop[vps->getLayerSetLayerIdList( targetLsIdx, i )]->m_isOutputLayerFlag = true; 2385 2393 } 2386 2394 } … … 2520 2528 assert( targetOlsIdx >= 0 ); 2521 2529 2530 // list of layers to be decoded is not built yet 2531 m_targetDecLayerIdList.resize(0); 2532 2522 2533 UInt targetDecLayerSetIdx = vps->getOutputLayerSetIdx(targetOlsIdx); 2523 2534 UInt lsIdx = targetDecLayerSetIdx; 2524 UInt targetDecLayerIdList[MAX_LAYERS] = {0}; 2525 2526 for (UInt i = 0, j = 0; i < vps->getNumLayersInIdList(lsIdx); i++) 2535 2536 for (UInt i = 0; i < vps->getNumLayersInIdList(lsIdx); i++) 2527 2537 { 2528 2538 if (vps->getNecessaryLayerFlag(targetOlsIdx, i)) 2529 2539 { 2530 targetDecLayerIdList[j++] = vps->getLayerSetLayerIdList(lsIdx, i);2540 m_targetDecLayerIdList.push_back( vps->getLayerSetLayerIdList(lsIdx, i) ); 2531 2541 } 2532 2542 } … … 2542 2552 else 2543 2553 { 2544 smallestLayerId = targetDecLayerIdList[0];2554 smallestLayerId = m_targetDecLayerIdList[0]; 2545 2555 } 2546 2556 -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.h
r1319 r1385 162 162 #endif 163 163 Bool m_isOutputLayerFlag; 164 static std::vector<UInt> m_targetDecLayerIdList; // list of layers to be decoded according to the OLS index 164 165 #endif //SVC_EXTENSION 165 166
Note: See TracChangeset for help on using the changeset viewer.