Changeset 945 in SHVCSoftware for branches/SHM-upgrade/source/Lib
- Timestamp:
- 31 Dec 2014, 07:37:45 (10 years ago)
- Location:
- branches/SHM-upgrade/source/Lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-upgrade/source/Lib/TLibCommon/TComSlice.h
r916 r945 621 621 Bool m_layerIdIncludedFlag[MAX_VPS_OP_SETS_PLUS1][MAX_VPS_NUH_RESERVED_ZERO_LAYER_ID_PLUS1]; 622 622 #endif 623 623 #if !MULTIPLE_PTL_SUPPORT 624 624 TComPTL m_pcPTL; 625 #endif 625 626 TimingInfo m_timingInfo; 626 627 627 628 #if SVC_EXTENSION 629 #if MULTIPLE_PTL_SUPPORT 630 TComPTL m_pcPTLList[NUM_POSSIBLE_LEVEL]; 631 #endif 628 632 #if DERIVE_LAYER_ID_LIST_VARIABLES 629 633 #if Q0078_ADD_LAYER_SETS … … 689 693 UInt m_profileLayerSetRef[MAX_VPS_LAYER_SETS_PLUS1]; // The value with index 0 will not be used. 690 694 #endif 695 #if !MULTIPLE_PTL_SUPPORT 691 696 std::vector<TComPTL> m_pcPTLForExtn; 697 #endif 692 698 #endif 693 699 #if VPS_EXTN_OP_LAYER_SETS … … 1004 1010 Void setLayerIdIncludedFlag(Bool v, UInt opsIdx, UInt id) { m_layerIdIncludedFlag[opsIdx][id] = v; } 1005 1011 1012 #if !MULTIPLE_PTL_SUPPORT 1006 1013 TComPTL* getPTL() { return &m_pcPTL; } 1014 #endif 1015 1007 1016 TimingInfo* getTimingInfo() { return &m_timingInfo; } 1008 1017 1009 1018 #if SVC_EXTENSION 1019 #if MULTIPLE_PTL_SUPPORT 1020 TComPTL* getPTL() { return &m_pcPTLList[0]; } 1021 TComPTL* getPTL(UInt idx) { return &m_pcPTLList[idx]; } 1022 #endif 1010 1023 #if DERIVE_LAYER_ID_LIST_VARIABLES 1011 1024 Int getLayerSetLayerIdList(Int set, Int layerId) { return m_layerSetLayerIdList[set][layerId]; } … … 1105 1118 #endif 1106 1119 1120 #if !MULTIPLE_PTL_SUPPORT 1107 1121 std::vector<TComPTL>* getPTLForExtnPtr() { return &m_pcPTLForExtn; } 1108 1122 TComPTL* getPTLForExtn(Int id) { return &m_pcPTLForExtn[id]; } 1123 #endif 1109 1124 #endif 1110 1125 #if VPS_EXTN_OP_LAYER_SETS … … 1172 1187 Int getProfileLevelTierIdx(Int const olsIdx, Int const layerIdx) { return m_profileLevelTierIdx[olsIdx][layerIdx]; } 1173 1188 Void setProfileLevelTierIdx(Int const olsIdx, Int const layerIdx, Int const ptlIdx) { m_profileLevelTierIdx[olsIdx][layerIdx] = ptlIdx; } 1174 Int calculateLenOfSyntaxElement( Int const numVal ); 1189 #if MULTIPLE_PTL_SUPPORT 1190 Void addProfileLevelTierIdx(Int const olsIdx, Int const ptlIdx) { m_profileLevelTierIdx[olsIdx].push_back(ptlIdx); } 1191 #endif 1192 Int calculateLenOfSyntaxElement( Int const numVal ); 1175 1193 #else 1176 1194 Int getProfileLevelTierIdx(Int i) { return m_profileLevelTierIdx[i]; } -
branches/SHM-upgrade/source/Lib/TLibCommon/TypeDef.h
r928 r945 245 245 #define MAX_NUM_ADD_LAYER_SETS 1023 246 246 #endif 247 #define MULTIPLE_PTL_SUPPORT 1 ///< Profile, tier and level signalling 248 #define NUM_POSSIBLE_LEVEL 13 247 249 248 250 #define VPS_DPB_SIZE_TABLE 1 ///< JCTVC-O0217: DPB operations: signaling DPB-related parameters … … 927 929 MAINREXT = 4, 928 930 HIGHTHROUGHPUTREXT = 5, 929 #if SVC_EXTENSION930 SCALABLE = 6,931 SCALABLE10 = 7,932 #endif933 931 }; 934 932 } -
branches/SHM-upgrade/source/Lib/TLibDecoder/TDecCAVLC.cpp
r938 r945 2234 2234 for (Int i = 0; i < maxNumSubLayersMinus1; i++) 2235 2235 { 2236 #if MULTIPLE_PTL_SUPPORT 2237 READ_FLAG( uiCode, "sub_layer_profile_present_flag[i]" ); rpcPTL->setSubLayerProfilePresentFlag(i, uiCode); 2238 #else 2236 2239 if(profilePresentFlag) 2237 2240 { 2238 2241 READ_FLAG( uiCode, "sub_layer_profile_present_flag[i]" ); rpcPTL->setSubLayerProfilePresentFlag(i, uiCode); 2239 2242 } 2243 #endif 2240 2244 READ_FLAG( uiCode, "sub_layer_level_present_flag[i]" ); rpcPTL->setSubLayerLevelPresentFlag (i, uiCode); 2241 2245 } … … 2252 2256 for(Int i = 0; i < maxNumSubLayersMinus1; i++) 2253 2257 { 2258 #if MULTIPLE_PTL_SUPPORT 2259 if( rpcPTL->getSubLayerProfilePresentFlag(i) ) 2260 #else 2254 2261 if( profilePresentFlag && rpcPTL->getSubLayerProfilePresentFlag(i) ) 2262 #endif 2255 2263 { 2256 2264 parseProfileTier(rpcPTL->getSubLayerPTL(i)); … … 2744 2752 { 2745 2753 vps->setProfilePresentFlag(1, false); 2754 #if MULTIPLE_PTL_SUPPORT 2755 parsePTL( vps->getPTL(1), vps->getProfilePresentFlag(1), vps->getMaxTLayers() - 1 ); 2756 #else 2746 2757 vps->getPTLForExtnPtr()->empty(); 2747 2758 vps->getPTLForExtnPtr()->resize(2); 2748 2759 vps->getPTLForExtn(1)->copyProfileInfo( vps->getPTL() ); 2749 2760 parsePTL( vps->getPTLForExtn(1), vps->getProfilePresentFlag(1), vps->getMaxTLayers() - 1 ); 2761 #endif 2750 2762 } 2751 2763 #endif … … 2974 2986 Int const numBitsForPtlIdx = vps->calculateLenOfSyntaxElement( vps->getNumProfileTierLevel() ); 2975 2987 #endif 2988 #if !MULTIPLE_PTL_SUPPORT 2976 2989 vps->getPTLForExtnPtr()->resize(vps->getNumProfileTierLevel()); 2990 #endif 2977 2991 #if LIST_OF_PTL 2978 2992 for(Int idx = vps->getBaseLayerInternalFlag() ? 2 : 1; idx <= vps->getNumProfileTierLevel() - 1; idx++) … … 2986 3000 #if P0048_REMOVE_PROFILE_REF 2987 3001 // Copy profile information from previous one 3002 #if MULTIPLE_PTL_SUPPORT 3003 vps->getPTL(idx)->copyProfileInfo( vps->getPTL( idx - 1 ) ); 3004 #else 2988 3005 vps->getPTLForExtn(idx)->copyProfileInfo( (idx==1) ? vps->getPTL() : vps->getPTLForExtn( idx - 1 ) ); 3006 #endif 2989 3007 #else 2990 3008 READ_CODE( 6, uiCode, "profile_ref_minus1[i]" ); vps->setProfileLayerSetRef(idx, uiCode + 1); … … 2998 3016 #endif 2999 3017 } 3018 #if MULTIPLE_PTL_SUPPORT 3019 parsePTL( vps->getPTL(idx), vps->getProfilePresentFlag(idx), vps->getMaxTLayers() - 1 ); 3020 #else 3000 3021 parsePTL( vps->getPTLForExtn(idx), vps->getProfilePresentFlag(idx), vps->getMaxTLayers() - 1 ); 3022 #endif 3001 3023 } 3002 3024 #endif -
branches/SHM-upgrade/source/Lib/TLibEncoder/TEncCavlc.cpp
r938 r945 1455 1455 for (Int i = 0; i < maxNumSubLayersMinus1; i++) 1456 1456 { 1457 #if MULTIPLE_PTL_SUPPORT 1458 WRITE_FLAG( pcPTL->getSubLayerProfilePresentFlag(i), "sub_layer_profile_present_flag[i]" ); 1459 #else 1457 1460 if(profilePresentFlag) 1458 1461 { 1459 1462 WRITE_FLAG( pcPTL->getSubLayerProfilePresentFlag(i), "sub_layer_profile_present_flag[i]" ); 1460 1463 } 1464 #endif 1461 1465 1462 1466 WRITE_FLAG( pcPTL->getSubLayerLevelPresentFlag(i), "sub_layer_level_present_flag[i]" ); … … 1473 1477 for(Int i = 0; i < maxNumSubLayersMinus1; i++) 1474 1478 { 1479 #if MULTIPLE_PTL_SUPPORT 1480 if( pcPTL->getSubLayerProfilePresentFlag(i) ) 1481 #else 1475 1482 if( profilePresentFlag && pcPTL->getSubLayerProfilePresentFlag(i) ) 1483 #endif 1476 1484 { 1477 1485 codeProfileTier(pcPTL->getSubLayerPTL(i)); // sub_layer_... … … 2060 2068 if( vps->getMaxLayers() > 1 && vps->getBaseLayerInternalFlag() ) 2061 2069 { 2070 #if MULTIPLE_PTL_SUPPORT 2071 codePTL( vps->getPTL(1), false, vps->getMaxTLayers() - 1 ); 2072 #else 2062 2073 codePTL( vps->getPTLForExtn(1), false, vps->getMaxTLayers() - 1 ); 2074 #endif 2063 2075 } 2064 2076 #endif … … 2226 2238 #endif 2227 2239 #if LIST_OF_PTL 2240 #if MULTIPLE_PTL_SUPPORT 2241 //Do something here to make sure the loop is correct to consider base layer internal stuff 2242 #else 2228 2243 assert( vps->getNumProfileTierLevel() == vps->getPTLForExtnPtr()->size()); 2244 #endif 2229 2245 for(Int idx = vps->getBaseLayerInternalFlag() ? 2 : 1; idx <= vps->getNumProfileTierLevel() - 1; idx++) 2230 2246 #else … … 2232 2248 #endif 2233 2249 { 2250 #if MULTIPLE_PTL_SUPPORT 2251 vps->setProfilePresentFlag(idx, true); 2252 #endif 2234 2253 WRITE_FLAG( vps->getProfilePresentFlag(idx), "vps_profile_present_flag[i]" ); 2235 2254 #if !P0048_REMOVE_PROFILE_REF … … 2239 2258 } 2240 2259 #endif 2260 #if MULTIPLE_PTL_SUPPORT 2261 codePTL( vps->getPTL(idx), vps->getProfilePresentFlag(idx), vps->getMaxTLayers() - 1 ); 2262 #else 2241 2263 codePTL( vps->getPTLForExtn(idx), vps->getProfilePresentFlag(idx), vps->getMaxTLayers() - 1 ); 2264 #endif 2242 2265 } 2243 2266 #endif
Note: See TracChangeset for help on using the changeset viewer.