Changeset 908 in SHVCSoftware for branches/SHM-dev/source/Lib
- Timestamp:
- 17 Oct 2014, 14:27:44 (11 years ago)
- Location:
- branches/SHM-dev/source/Lib
- Files:
-
- 5 edited
-
TLibCommon/TComSlice.cpp (modified) (3 diffs)
-
TLibCommon/TComSlice.h (modified) (1 diff)
-
TLibCommon/TypeDef.h (modified) (1 diff)
-
TLibDecoder/TDecCAVLC.cpp (modified) (1 diff)
-
TLibEncoder/TEncCavlc.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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.