Changeset 1161 in SHVCSoftware
- Timestamp:
- 8 Jul 2015, 00:54:26 (9 years ago)
- Location:
- branches/SHM-dev/source
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r1157 r1161 1345 1345 } 1346 1346 #endif 1347 #if VPS_EXTN_MASK_AND_DIM_INFO 1347 1348 1348 #if AVC_BASE 1349 1349 vps->setNonHEVCBaseLayerFlag( m_nonHEVCBaseLayerFlag ); … … 1355 1355 vps->setAvcBaseLayerFlag(false); 1356 1356 #endif 1357 1357 1358 vps->setSplittingFlag(false); 1359 1358 1360 for(i = 0; i < MAX_VPS_NUM_SCALABILITY_TYPES; i++) 1359 1361 { … … 1403 1405 } 1404 1406 } 1405 #endif1406 1407 #endif 1407 1408 … … 1536 1537 #endif 1537 1538 // The Layer ID List variables should be derived here. 1538 #if DERIVE_LAYER_ID_LIST_VARIABLES1539 1539 vps->deriveLayerIdListVariables(); 1540 #endif1541 1540 #if Q0078_ADD_LAYER_SETS 1542 1541 vps->setPredictedLayerIds(); -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp
r1157 r1161 1989 1989 } 1990 1990 1991 #if VPS_EXTN_MASK_AND_DIM_INFO1992 1991 m_nonHEVCBaseLayerFlag = false; 1993 1992 m_splittingFlag = false; 1993 m_nuhLayerIdPresentFlag = false; 1994 1994 ::memset(m_scalabilityMask, 0, sizeof(m_scalabilityMask)); 1995 1995 ::memset(m_dimensionIdLen, 0, sizeof(m_dimensionIdLen)); 1996 m_nuhLayerIdPresentFlag = false;1997 1996 ::memset(m_layerIdInNuh, 0, sizeof(m_layerIdInNuh)); 1998 1997 ::memset(m_dimensionId, 0, sizeof(m_dimensionId)); … … 2000 1999 m_numScalabilityTypes = 0; 2001 2000 ::memset(m_layerIdxInVps, 0, sizeof(m_layerIdxInVps)); 2002 #endif 2001 2003 2002 #if VPS_EXTN_PROFILE_INFO 2004 2003 ::memset(m_profilePresentFlag, 0, sizeof(m_profilePresentFlag)); … … 3130 3129 } 3131 3130 3132 #if DERIVE_LAYER_ID_LIST_VARIABLES3133 3131 Void TComVPS::deriveLayerIdListVariables() 3134 3132 { … … 3151 3149 } 3152 3150 } 3153 #endif 3151 3154 3152 #if VPS_DPB_SIZE_TABLE 3155 3153 Void TComVPS::deriveNumberOfSubDpbs() -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r1157 r1161 596 596 TComPTL m_pcPTLList[MAX_NUM_LAYER_IDS + 1]; 597 597 #endif 598 #if DERIVE_LAYER_ID_LIST_VARIABLES599 598 #if Q0078_ADD_LAYER_SETS 600 599 std::vector< std::vector<Int> > m_layerSetLayerIdList; … … 603 602 Int m_layerSetLayerIdList[MAX_VPS_LAYER_SETS_PLUS1][MAX_VPS_LAYER_IDX_PLUS1]; 604 603 Int m_numLayerInIdList[MAX_VPS_LAYER_SETS_PLUS1]; 605 #endif606 604 #endif 607 605 UInt m_maxLayerId; … … 617 615 // Variables related to VPS extensions 618 616 // ------------------------------------------ 619 #if VPS_EXTN_MASK_AND_DIM_INFO620 617 Bool m_nonHEVCBaseLayerFlag; 621 618 Bool m_splittingFlag; … … 629 626 UInt m_numScalabilityTypes; 630 627 UInt m_layerIdxInVps[MAX_NUM_LAYER_IDS]; // Maps layer_id_in_nuh with the layer ID in the VPS 631 #endif 628 632 629 #if Q0078_ADD_LAYER_SETS 633 630 UInt m_maxSLInLayerSetMinus1[MAX_VPS_LAYER_SETS_PLUS1 + MAX_NUM_ADD_LAYER_SETS]; … … 901 898 TComPTL* getPTL(UInt idx) { return &m_pcPTLList[idx]; } 902 899 #endif 903 #if DERIVE_LAYER_ID_LIST_VARIABLES904 900 Int getLayerSetLayerIdList(Int set, Int layerId) { return m_layerSetLayerIdList[set][layerId]; } 905 901 Void setLayerSetLayerIdList(Int set, Int layerId, Int x) { m_layerSetLayerIdList[set][layerId] = x; } 906 902 907 Int getNumLayersInIdList(Int set) 908 Void setNumLayersInIdList(Int set, Int x) 903 Int getNumLayersInIdList(Int set) { return m_numLayerInIdList[set]; } 904 Void setNumLayersInIdList(Int set, Int x) { m_numLayerInIdList[set] = x; } 909 905 910 906 Void deriveLayerIdListVariables(); 911 #endif912 907 #if VPS_DPB_SIZE_TABLE 913 908 Void deriveNumberOfSubDpbs(); … … 946 941 UInt getNumLayerSets() { return m_numLayerSets; } 947 942 Void setNumLayerSets(UInt v) { m_numLayerSets = v; } 948 #if VPS_EXTN_MASK_AND_DIM_INFO 943 949 944 Bool getNonHEVCBaseLayerFlag() { return m_nonHEVCBaseLayerFlag; } 950 945 Void setNonHEVCBaseLayerFlag(Bool x) { m_nonHEVCBaseLayerFlag = x; } … … 973 968 UInt getLayerIdxInVps(Int layerId) { return m_layerIdxInVps[layerId]; } 974 969 Void setLayerIdxInVps(Int layerId, UInt layerIdx) { m_layerIdxInVps[layerId] = layerIdx; } 975 #endif 970 976 971 UInt getMaxSLayersInLayerSetMinus1(Int ls) { return m_maxSLInLayerSetMinus1[ls]; } 977 972 Void setMaxSLayersInLayerSetMinus1(Int ls, Int x) { m_maxSLInLayerSetMinus1[ls] = x; } -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1160 r1161 116 116 #define P0297_VPS_POC_LSB_ALIGNED_FLAG 1 ///< JCTVC-P0297: vps_poc_lsb_aligned_flag for cross-layer POC anchor picture derivation 117 117 118 #define VPS_EXTN_MASK_AND_DIM_INFO 1 ///< Include avc_base_layer_flag, splitting_flag, scalability mask and dimension related info119 #if VPS_EXTN_MASK_AND_DIM_INFO120 #define MAX_VPS_NUM_SCALABILITY_TYPES 16121 #endif122 118 #define VPS_EXTN_OP_LAYER_SETS 1 ///< Include output layer sets in VPS extension 123 119 #define VPS_EXTN_PROFILE_INFO 1 ///< Include profile information for layer sets in VPS extension … … 132 128 #endif 133 129 #define P0182_VPS_VUI_PS_FLAG 1 ///< JCTVC-P0182, add base_layer_parameter_set_compatibility_flag 134 135 #define DERIVE_LAYER_ID_LIST_VARIABLES 1 ///< Derived variables based on the variables in VPS - for use in syntax table parsing136 130 137 131 #define AVC_BASE 1 ///< YUV BL reading for AVC base SVC … … 226 220 #define MAX_NUM_ADD_LAYER_SETS 1023 227 221 #define MAX_SEIS_IN_BSP_NESTING 64 222 #define MAX_VPS_NUM_SCALABILITY_TYPES 16 228 223 229 224 #endif // SVC_EXTENSION -
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1160 r1161 1071 1071 } 1072 1072 } 1073 #if DERIVE_LAYER_ID_LIST_VARIABLES 1073 1074 #if SVC_EXTENSION 1074 1075 pcVPS->deriveLayerIdListVariables(); 1075 1076 #endif 1077 1076 1078 TimingInfo *timingInfo = pcVPS->getTimingInfo(); 1077 1079 READ_FLAG( uiCode, "vps_timing_info_present_flag"); timingInfo->setTimingInfoPresentFlag (uiCode ? true : false); … … 2684 2686 } 2685 2687 #endif 2686 #if VPS_EXTN_MASK_AND_DIM_INFO 2688 2687 2689 UInt numScalabilityTypes = 0, i = 0, j = 0; 2688 2690 … … 2741 2743 } 2742 2744 } 2743 #endif 2745 2744 2746 #if VIEW_ID_RELATED_SIGNALING 2745 2747 #if O0109_VIEW_ID_LEN -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1159 r1161 1994 1994 } 1995 1995 #endif 1996 #if VPS_EXTN_MASK_AND_DIM_INFO 1996 1997 1997 UInt i = 0, j = 0; 1998 1998 … … 2037 2037 } 2038 2038 } 2039 #endif 2039 2040 2040 #if VIEW_ID_RELATED_SIGNALING 2041 2041 // if ( pcVPS->getNumViews() > 1 )
Note: See TracChangeset for help on using the changeset viewer.