Changeset 862 in SHVCSoftware
- Timestamp:
- 12 Aug 2014, 01:48:03 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r861 r862 52 52 #define POC_RESET_VALUE_RESTRICTION 1 ///< R0223: Restriction on the value of full_poc_reset_flag 53 53 #define OUTPUT_LAYER_SETS_CONFIG 1 54 #define MOVE_ADDN_LS_SIGNALLING 1 ///< JCTVC-R0238: (Ed.) Move additional layer set signalling in VPS extn. 54 55 #define O0137_MAX_LAYERID 1 ///< JCTVC-O0137, JCTVC-O0200, JCTVC-O0223: restrict nuh_layer_id and vps_max_layers_minus1 55 56 -
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r852 r862 1281 1281 vps->setTreePartitionLayerIdList(); 1282 1282 #endif 1283 #if MOVE_ADDN_LS_SIGNALLING 1284 #if Q0078_ADD_LAYER_SETS 1285 if (vps->getNumIndependentLayers() > 1) 1286 { 1287 READ_UVLC(uiCode, "num_add_layer_sets"); vps->setNumAddLayerSets(uiCode); 1288 for (i = 0; i < vps->getNumAddLayerSets(); i++) 1289 { 1290 for (j = 1; j < vps->getNumIndependentLayers(); j++) 1291 { 1292 int len = 1; 1293 while ((1 << len) < (vps->getNumLayersInTreePartition(j) + 1)) 1294 { 1295 len++; 1296 } 1297 READ_CODE(len, uiCode, "highest_layer_idx_plus1[i][j]"); vps->setHighestLayerIdxPlus1(i, j, uiCode); 1298 } 1299 } 1300 vps->setNumLayerSets(vps->getNumLayerSets() + vps->getNumAddLayerSets()); 1301 vps->setLayerIdIncludedFlagsForAddLayerSets(); 1302 } 1303 #endif 1304 #endif 1283 1305 #if VPS_TSLAYERS 1284 1306 READ_FLAG( uiCode, "vps_sub_layers_max_minus1_present_flag"); vps->setMaxTSLayersPresentFlag(uiCode ? true : false); … … 1366 1388 #endif 1367 1389 1390 #if !MOVE_ADDN_LS_SIGNALLING 1368 1391 #if Q0078_ADD_LAYER_SETS 1369 1392 if (vps->getNumIndependentLayers() > 1) … … 1385 1408 vps->setLayerIdIncludedFlagsForAddLayerSets(); 1386 1409 } 1410 #endif 1387 1411 #endif 1388 1412 -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r852 r862 1006 1006 } 1007 1007 #endif 1008 #if MOVE_ADDN_LS_SIGNALLING 1009 #if Q0078_ADD_LAYER_SETS 1010 if (vps->getNumIndependentLayers() > 1) 1011 { 1012 WRITE_UVLC( vps->getNumAddLayerSets(), "num_add_layer_sets" ); 1013 for (i = 0; i < vps->getNumAddLayerSets(); i++) 1014 { 1015 for (j = 1; j < vps->getNumIndependentLayers(); j++) 1016 { 1017 int len = 1; 1018 while ((1 << len) < (vps->getNumLayersInTreePartition(j) + 1)) 1019 { 1020 len++; 1021 } 1022 WRITE_CODE(vps->getHighestLayerIdxPlus1(i, j), len, "highest_layer_idx_plus1[i][j]"); 1023 } 1024 } 1025 } 1026 #endif 1027 #endif 1008 1028 #if VPS_TSLAYERS 1009 1029 WRITE_FLAG( vps->getMaxTSLayersPresentFlag(), "vps_sub_layers_max_minus1_present_flag"); … … 1056 1076 #endif 1057 1077 1078 1079 #if !MOVE_ADDN_LS_SIGNALLING 1058 1080 #if Q0078_ADD_LAYER_SETS 1059 1081 if (vps->getNumIndependentLayers() > 1) … … 1073 1095 } 1074 1096 } 1097 #endif 1075 1098 #endif 1076 1099
Note: See TracChangeset for help on using the changeset viewer.