- Timestamp:
- 17 Oct 2014, 14:27:44 (10 years ago)
- Location:
- branches/SHM-dev/source
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp
r877 r908 1780 1780 #if OUTPUT_LAYER_SETS_CONFIG 1781 1781 // Simplifying the code in the #else section 1782 #if FIX_LAYER_ID_INIT 1783 assert( scanStringToArray( cfg_highestLayerIdx[addLayerSet], m_numHighestLayerIdx[addLayerSet], "HighestLayerIdx", m_highestLayerIdx[addLayerSet] ) ); 1784 #else 1782 1785 assert( scanStringToArray( cfg_layerSetLayerIdList[addLayerSet], m_numLayerInIdList[addLayerSet], "NumLayerInIdList", m_highestLayerIdx[addLayerSet] ) ); 1786 #endif 1783 1787 #else 1784 1788 if (m_numHighestLayerIdx[addLayerSet] > 0) -
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r903 r908 1458 1458 } 1459 1459 #endif 1460 #if FIX_LAYER_ID_INIT 1461 // The Layer ID List variables should be derived here. 1462 #if DERIVE_LAYER_ID_LIST_VARIABLES 1463 vps->deriveLayerIdListVariables(); 1464 #endif 1465 #endif 1460 1466 #if Q0078_ADD_LAYER_SETS 1461 1467 vps->setPredictedLayerIds(); 1462 1468 vps->setTreePartitionLayerIdList(); 1469 #if FIX_LAYER_ID_INIT 1470 vps->deriveLayerIdListVariablesForAddLayerSets(); 1471 #else 1463 1472 vps->setLayerIdIncludedFlagsForAddLayerSets(); 1473 #endif 1464 1474 #endif 1465 1475 #endif … … 1519 1529 #endif 1520 1530 #if VPS_DPB_SIZE_TABLE 1531 #if !FIX_LAYER_ID_INIT // must be derived earlier to not delete additional layer sets 1521 1532 // The Layer ID List variables can be derived here. 1522 1533 #if DERIVE_LAYER_ID_LIST_VARIABLES 1523 1534 vps->deriveLayerIdListVariables(); 1535 #endif 1524 1536 #endif 1525 1537 #if RESOLUTION_BASED_DPB -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp
r904 r908 2670 2670 // For layer 0 2671 2671 m_numLayerInIdList.push_back(1); 2672 #if FIX_LAYER_ID_INIT 2673 m_layerSetLayerIdList.resize(m_vpsNumLayerSetsMinus1 + 1); 2674 #else 2672 2675 m_layerSetLayerIdList.resize(m_numLayerSets); 2676 #endif 2673 2677 m_layerSetLayerIdList[0].push_back(0); 2674 2678 2675 2679 // For other layers 2680 #if FIX_LAYER_ID_INIT 2681 for (Int i = 1; i <= m_vpsNumLayerSetsMinus1; i++) 2682 #else 2676 2683 for( Int i = 1; i < m_numLayerSets; i++ ) 2684 #endif 2677 2685 { 2678 2686 for( Int m = 0; m <= m_maxLayerId; m++) … … 2853 2861 } 2854 2862 2863 #if FIX_LAYER_ID_INIT 2864 void TComVPS::deriveLayerIdListVariablesForAddLayerSets() 2865 { 2866 m_layerSetLayerIdList.resize(m_vpsNumLayerSetsMinus1 + 1 + m_numAddLayerSets); 2867 2868 for (UInt i = 0; i < m_numAddLayerSets; i++) 2869 { 2870 Int layerNum = 0; 2871 Int lsIdx = m_vpsNumLayerSetsMinus1 + 1 + i; 2872 for (Int treeIdx = 1; treeIdx < m_numIndependentLayers; treeIdx++) 2873 { 2874 for (Int layerCnt = 0; layerCnt < m_highestLayerIdxPlus1[i][treeIdx]; layerCnt++) 2875 { 2876 m_layerSetLayerIdList[lsIdx].push_back(m_treePartitionLayerIdList[treeIdx][layerCnt]); 2877 layerNum++; 2878 } 2879 } 2880 m_numLayerInIdList.push_back(layerNum); 2881 } 2882 } 2883 #else 2855 2884 void TComVPS::setLayerIdIncludedFlagsForAddLayerSets() 2856 2885 { … … 2878 2907 } 2879 2908 } 2909 #endif 2880 2910 2881 2911 #endif -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r904 r908 989 989 #endif 990 990 #if Q0078_ADD_LAYER_SETS 991 #if FIX_LAYER_ID_INIT 992 void deriveLayerIdListVariablesForAddLayerSets(); 993 #else 991 994 void setLayerIdIncludedFlagsForAddLayerSets(); 995 #endif 992 996 UInt getVpsNumLayerSetsMinus1() { return m_vpsNumLayerSetsMinus1; } 993 997 Void setVpsNumLayerSetsMinus1(UInt x) { m_vpsNumLayerSetsMinus1 = x; } -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r903 r908 186 186 187 187 #define DERIVE_LAYER_ID_LIST_VARIABLES 1 ///< Derived variables based on the variables in VPS - for use in syntax table parsing 188 #define FIX_LAYER_ID_INIT 1 188 189 189 190 #define AVC_BASE 1 ///< YUV BL reading for AVC base SVC -
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r903 r908 1526 1526 } 1527 1527 vps->setNumLayerSets(vps->getNumLayerSets() + vps->getNumAddLayerSets()); 1528 #if FIX_LAYER_ID_INIT 1529 vps->deriveLayerIdListVariablesForAddLayerSets(); 1530 #else 1528 1531 vps->setLayerIdIncludedFlagsForAddLayerSets(); 1532 #endif 1529 1533 } 1530 1534 #endif -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r903 r908 588 588 { 589 589 #if R0042_PROFILE_INDICATION 590 #if FIX_LAYER_ID_INIT 591 Bool bMultiLayerExtSpsFlag = (pcSPS->getLayerId() != 0 && pcSPS->getNumDirectRefLayers() != 0); 592 #else 590 593 Bool bMultiLayerExtSpsFlag = (pcSPS->getNumDirectRefLayers() != 0 ) ; 594 #endif 591 595 #endif 592 596 #if ENC_DEC_TRACE … … 1003 1007 } 1004 1008 } 1009 #if !FIX_LAYER_ID_INIT // It was still called because NECESSARY_FLAG does not exist and is by default "false" 1005 1010 #if !NECESSARY_FLAG // Already called once in TAppEncTop.cpp 1006 1011 #if DERIVE_LAYER_ID_LIST_VARIABLES 1007 1012 pcVPS->deriveLayerIdListVariables(); 1013 #endif 1008 1014 #endif 1009 1015 #endif
Note: See TracChangeset for help on using the changeset viewer.