Changeset 602 in SHVCSoftware for branches/SHM-5.1-dev
- Timestamp:
- 7 Feb 2014, 14:37:05 (11 years ago)
- Location:
- branches/SHM-5.1-dev/source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-5.1-dev/source/App/TAppEncoder/TAppEncTop.cpp
r597 r602 1327 1327 #endif 1328 1328 1329 #if P0300_ALT_OUTPUT_LAYER_FLAG 1330 for (Int k = 0; k < MAX_VPS_LAYER_SETS_PLUS1; k++) 1331 { 1332 vps->setAltOuputLayerFlag( k, m_altOutputLayerFlag ); 1333 } 1334 #else 1329 1335 #if O0153_ALT_OUTPUT_LAYER_FLAG 1330 1336 vps->setAltOuputLayerFlag( m_altOutputLayerFlag ); 1337 #endif 1331 1338 #endif 1332 1339 -
branches/SHM-5.1-dev/source/Lib/TLibCommon/TComSlice.h
r595 r602 624 624 Int m_avgPicRate [MAX_VPS_LAYER_SETS_PLUS1][MAX_TLAYER]; 625 625 #endif 626 #if P0300_ALT_OUTPUT_LAYER_FLAG 627 Bool m_altOutputLayerFlag[MAX_VPS_LAYER_SETS_PLUS1]; 628 #else 626 629 #if O0153_ALT_OUTPUT_LAYER_FLAG 627 630 Bool m_altOutputLayerFlag; 631 #endif 628 632 #endif 629 633 #if REPN_FORMAT_IN_VPS … … 975 979 Void setAvgPicRate(Int i, Int j, Int x) { m_avgPicRate[i][j] = x; } 976 980 #endif 981 #if P0300_ALT_OUTPUT_LAYER_FLAG 982 Bool getAltOuputLayerFlag(Int idx) { return m_altOutputLayerFlag[idx]; } 983 Void setAltOuputLayerFlag(Int idx, Bool x) { m_altOutputLayerFlag[idx] = x; } 984 #else 977 985 #if O0153_ALT_OUTPUT_LAYER_FLAG 978 986 Bool getAltOuputLayerFlag() { return m_altOutputLayerFlag; } 979 987 Void setAltOuputLayerFlag(Bool x) { m_altOutputLayerFlag = x; } 988 #endif 980 989 #endif 981 990 #if REPN_FORMAT_IN_VPS -
branches/SHM-5.1-dev/source/Lib/TLibCommon/TypeDef.h
r595 r602 216 216 217 217 #define O0153_ALT_OUTPUT_LAYER_FLAG 1 ///< JCTVC-O0153: alt output layer flag 218 #define P0300_ALT_OUTPUT_LAYER_FLAG 1 ///< JCTVC-P0300: alt output layer flag 218 219 219 220 #define VPS_DPB_SIZE_TABLE 1 ///< JCTVC-O0217: DPB operations: signaling DPB-related parameters -
branches/SHM-5.1-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r595 r602 970 970 UInt uiCode; 971 971 // ... More syntax elements to be parsed here 972 #if P0300_ALT_OUTPUT_LAYER_FLAG 973 Int NumOutputLayersInOutputLayerSet[MAX_VPS_LAYER_SETS_PLUS1]; 974 Int OlsHighestOutputLayerId[MAX_VPS_LAYER_SETS_PLUS1]; 975 #endif 972 976 #if VPS_EXTN_MASK_AND_DIM_INFO 973 977 UInt numScalabilityTypes = 0, i = 0, j = 0; … … 1269 1273 } 1270 1274 READ_CODE( numBits, uiCode, "profile_level_tier_idx[i]" ); vps->setProfileLevelTierIdx(i, uiCode); 1275 #if P0300_ALT_OUTPUT_LAYER_FLAG 1276 NumOutputLayersInOutputLayerSet[i] = 0; 1277 Int layerSetIdxForOutputLayerSet = vps->getOutputLayerSetIdx(i); 1278 for (j = 0; j < vps->getNumLayersInIdList(layerSetIdxForOutputLayerSet); j++) 1279 { 1280 NumOutputLayersInOutputLayerSet[i] += vps->getOutputLayerFlag(i, j); 1281 if (vps->getOutputLayerFlag(i, j)) 1282 { 1283 OlsHighestOutputLayerId[i] = vps->getLayerSetLayerIdList(layerSetIdxForOutputLayerSet, j); 1284 } 1285 } 1286 if (NumOutputLayersInOutputLayerSet[i] == 1 && vps->getNumDirectRefLayers(OlsHighestOutputLayerId[i]) > 0) 1287 { 1288 READ_FLAG(uiCode, "alt_output_layer_flag[i]"); 1289 vps->setAltOuputLayerFlag(i, uiCode ? true : false); 1290 } 1291 #endif 1271 1292 } 1272 1293 #else … … 1354 1375 #endif 1355 1376 1377 #if !P0300_ALT_OUTPUT_LAYER_FLAG 1356 1378 #if O0153_ALT_OUTPUT_LAYER_FLAG 1357 1379 if( vps->getMaxLayers() > 1 ) … … 1360 1382 vps->setAltOuputLayerFlag( uiCode ? true : false ); 1361 1383 } 1384 #endif 1362 1385 #endif 1363 1386 -
branches/SHM-5.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r595 r602 776 776 { 777 777 // ... More syntax elements to be written here 778 #if P0300_ALT_OUTPUT_LAYER_FLAG 779 Int NumOutputLayersInOutputLayerSet[MAX_VPS_LAYER_SETS_PLUS1]; 780 Int OlsHighestOutputLayerId[MAX_VPS_LAYER_SETS_PLUS1]; 781 #endif 778 782 #if VPS_EXTN_MASK_AND_DIM_INFO 779 783 UInt i = 0, j = 0; … … 1004 1008 } 1005 1009 WRITE_CODE( vps->getProfileLevelTierIdx(i), numBits, "profile_level_tier_idx[i]" ); 1006 } 1007 1010 #if P0300_ALT_OUTPUT_LAYER_FLAG 1011 NumOutputLayersInOutputLayerSet[i] = 0; 1012 Int layerSetIdxForOutputLayerSet = vps->getOutputLayerSetIdx(i); 1013 for (j = 0; j < vps->getNumLayersInIdList(layerSetIdxForOutputLayerSet); j++) 1014 { 1015 NumOutputLayersInOutputLayerSet[i] += vps->getOutputLayerFlag(i, j); 1016 if (vps->getOutputLayerFlag(i, j)) 1017 { 1018 OlsHighestOutputLayerId[i] = vps->getLayerSetLayerIdList(layerSetIdxForOutputLayerSet, j); 1019 } 1020 } 1021 if (NumOutputLayersInOutputLayerSet[i] == 1 && vps->getNumDirectRefLayers(OlsHighestOutputLayerId[i]) > 0) 1022 { 1023 WRITE_FLAG(vps->getAltOuputLayerFlag(i), "alt_output_layer_flag[i]"); 1024 } 1025 #endif 1026 } 1027 1028 #if !P0300_ALT_OUTPUT_LAYER_FLAG 1008 1029 #if O0153_ALT_OUTPUT_LAYER_FLAG 1009 1030 if( vps->getMaxLayers() > 1 ) … … 1011 1032 WRITE_FLAG( vps->getAltOuputLayerFlag(), "alt_output_layer_flag" ); 1012 1033 } 1034 #endif 1013 1035 #endif 1014 1036
Note: See TracChangeset for help on using the changeset viewer.