Changeset 1107 in SHVCSoftware for branches/SHM-dev/source/App
- Timestamp:
- 6 Jul 2015, 21:01:55 (10 years ago)
- Location:
- branches/SHM-dev/source/App
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppDecoder/TAppDecCfg.cpp
r1106 r1107 259 259 } 260 260 fclose (targetDecLayerIdSetFile); 261 #if !R0235_SMALLEST_LAYER_ID // LayerId=0 is not required anymore in some cases262 if ( m_targetDecLayerIdSet.size() > 0 && !isLayerIdZeroIncluded )263 {264 fprintf(stderr, "TargetDecLayerIdSet must contain LayerId=0, aborting" );265 return false;266 }267 #endif268 261 } 269 262 else -
branches/SHM-dev/source/App/TAppDecoder/TAppDecTop.cpp
r1106 r1107 1284 1284 return true; 1285 1285 } 1286 #if R0235_SMALLEST_LAYER_ID1286 #if SVC_EXTENSION 1287 1287 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)) 1288 1288 { … … 1299 1299 return false; 1300 1300 } 1301 1301 1302 #if ALIGNED_BUMPING 1302 1303 // Function outputs a picture, and marks it as not needed for output. -
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp
r1090 r1107 2611 2611 #if MULTIPLE_PTL_SUPPORT 2612 2612 Int olsToLsIndex = (olsCtr >= (m_numLayerSets + m_numAddLayerSets)) ? m_outputLayerSetIdx[olsCtr - (m_numLayerSets + m_numAddLayerSets)] : olsCtr; 2613 #if R0235_SMALLEST_LAYER_ID 2613 2614 2614 // This is a fix to allow setting of PTL for additional layer sets 2615 2615 if (olsCtr >= m_numLayerSets && olsCtr < (m_numLayerSets + m_numAddLayerSets)) … … 2621 2621 scanStringToArray(cfg_listOfLayerPTLOfOlss[olsCtr], m_numLayerInIdList[olsToLsIndex], "List of PTL for each layers in OLS", m_listOfLayerPTLofOlss[olsCtr]); 2622 2622 } 2623 #else 2624 scanStringToArray( cfg_listOfLayerPTLOfOlss[olsCtr], m_numLayerInIdList[olsToLsIndex], "List of PTL for each layers in OLS", m_listOfLayerPTLofOlss[olsCtr] ); 2625 #endif 2623 2626 2624 //For conformance checking 2627 2625 //Conformance of a layer in an output operation point associated with an OLS in a bitstream to the Scalable Main profile is indicated as follows: … … 2630 2628 //If OpTid of the output operation point is equal to vps_max_sub_layer_minus1, the conformance is indicated by general_profile_idc being equal to 7 or general_profile_compatibility_flag[ 7 ] being equal to 1 2631 2629 //The following assert may be updated / upgraded to take care of general_profile_compatibility_flag. 2632 #if R0235_SMALLEST_LAYER_ID2633 2630 if (m_numAddLayerSets == 0) 2634 2631 { 2635 #endif 2636 for ( Int ii = 1; ii < m_numLayerInIdList[olsToLsIndex]; ii++) 2637 { 2638 if (m_layerSetLayerIdList[olsToLsIndex][ii - 1] != 0 && m_layerSetLayerIdList[olsToLsIndex][ii] != 0) //Profile / profile compatibility of enhancement layers must indicate the same profile. 2639 { 2640 assert( (m_profileList[m_listOfLayerPTLofOlss[olsCtr][ii]] == m_profileList[m_listOfLayerPTLofOlss[olsCtr][ii - 1]]) || 2641 (m_profileList[m_listOfLayerPTLofOlss[olsCtr][ii]] == m_profileCompatibility[m_listOfLayerPTLofOlss[olsCtr][ii - 1]]) || 2642 (m_profileCompatibility[m_listOfLayerPTLofOlss[olsCtr][ii]] == m_profileList[m_listOfLayerPTLofOlss[olsCtr][ii - 1]]) ); 2643 } 2644 } 2645 #if R0235_SMALLEST_LAYER_ID 2646 } 2647 #endif 2632 for ( Int ii = 1; ii < m_numLayerInIdList[olsToLsIndex]; ii++) 2633 { 2634 if (m_layerSetLayerIdList[olsToLsIndex][ii - 1] != 0 && m_layerSetLayerIdList[olsToLsIndex][ii] != 0) //Profile / profile compatibility of enhancement layers must indicate the same profile. 2635 { 2636 assert( (m_profileList[m_listOfLayerPTLofOlss[olsCtr][ii]] == m_profileList[m_listOfLayerPTLofOlss[olsCtr][ii - 1]]) || 2637 (m_profileList[m_listOfLayerPTLofOlss[olsCtr][ii]] == m_profileCompatibility[m_listOfLayerPTLofOlss[olsCtr][ii - 1]]) || 2638 (m_profileCompatibility[m_listOfLayerPTLofOlss[olsCtr][ii]] == m_profileList[m_listOfLayerPTLofOlss[olsCtr][ii - 1]]) ); 2639 } 2640 } 2641 } 2648 2642 #endif 2649 2643 } … … 4854 4848 #endif 4855 4849 4856 #if R0235_SMALLEST_LAYER_ID4857 4850 #if OUTPUT_LAYER_SETS_CONFIG 4858 4851 Void TAppEncCfg::cfgStringToArrayNumEntries(Int **arr, string const cfgString, Int &numEntries, const char* logString) … … 4924 4917 } 4925 4918 #endif 4926 #endif // R02354927 4919 #endif //SVC_EXTENSION 4928 4920 //! \} -
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.h
r1090 r1107 576 576 Bool scanStringToArray(string const cfgString, Int const numEntries, const char* logString, std::vector<Int> & returnVector); 577 577 Void cfgStringToArray(Int **arr, string const cfgString, Int const numEntries, const char* logString); 578 #if R0235_SMALLEST_LAYER_ID579 578 Bool scanStringToArrayNumEntries(string const cfgString, Int &numEntries, const char* logString, Int * const returnArray); 580 579 Bool scanStringToArrayNumEntries(string const cfgString, Int &numEntries, const char* logString, std::vector<Int> & returnVector); 581 580 Void cfgStringToArrayNumEntries(Int **arr, string const cfgString, Int &numEntries, const char* logString); 582 #endif583 581 #else 584 582 Void cfgStringToArray(Int **arr, string cfgString, Int numEntries, const char* logString);
Note: See TracChangeset for help on using the changeset viewer.