Changeset 328 in SHVCSoftware
- Timestamp:
- 7 Aug 2013, 23:17:58 (11 years ago)
- Location:
- branches/SHM-3.0-dev/source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-3.0-dev/source/App/TAppEncoder/TAppEncTop.cpp
r313 r328 884 884 } 885 885 #endif 886 #if ILP_SSH_SIG 887 vps->setIlpSshSignalingEnabledFlag(true); 888 #endif 886 889 #if VPS_EXTN_PROFILE_INFO 887 890 vps->getPTLForExtnPtr()->resize(vps->getNumLayerSets()); -
branches/SHM-3.0-dev/source/Lib/TLibCommon/TComSlice.h
r324 r328 456 456 UInt m_layerIdInVps[MAX_VPS_LAYER_ID_PLUS1]; // Maps layer_id_in_nuh with the layer ID in the VPS 457 457 #endif 458 #if ILP_SSH_SIG 459 Bool m_ilpSshSignalingEnabledFlag; 460 #endif 458 461 #if VPS_EXTN_PROFILE_INFO 459 462 // Profile-tier-level signalling related … … 588 591 UInt getLayerIdInVps(Int id) { return m_layerIdInVps[id]; } 589 592 Void setLayerIdInVps(Int id, UInt x) { m_layerIdInVps[id] = x; } 593 #endif 594 #if ILP_SSH_SIG 595 Bool getIlpSshSignalingEnabledFlag() { return m_ilpSshSignalingEnabledFlag;} 596 Void setIlpSshSignalingEnabledFlag(Bool x) { m_ilpSshSignalingEnabledFlag = x;} 590 597 #endif 591 598 #if VPS_EXTN_PROFILE_INFO -
branches/SHM-3.0-dev/source/Lib/TLibCommon/TypeDef.h
r327 r328 51 51 #define SCALED_REF_LAYER_OFFSET_FLAG 0 ///< M0309: Signal scaled reference layer offsets in SPS 52 52 #define SCALED_REF_LAYER_OFFSETS 1 ///< M0309: Signal scaled reference layer offsets in SPS 53 54 #define ILP_SSH_SIG 1 ///< JCTVC-N0195 proposal 2 55 #define SPL_FLG_CHK 1 ///< JCTVC-N0195 proposal 5 56 #define ILP_NUM_REF_CHK 1 ///< JCTVC-N0195 proposal 1 53 57 54 58 #define VPS_RENAME 1 ///< Rename variables max_layer_id and num_layer_sets_minus1 in VPS -
branches/SHM-3.0-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r325 r328 957 957 } 958 958 #endif 959 #if ILP_SSH_SIG 960 READ_FLAG( uiCode, "all_ref_layers_active_flag" ); vps->setIlpSshSignalingEnabledFlag(uiCode ? true : false); 961 #endif 959 962 #if VPS_EXTN_PROFILE_INFO 960 963 // Profile-tier-level signalling … … 1382 1385 #if JCTVC_M0458_INTERLAYER_RPS_SIG 1383 1386 rpcSlice->setActiveNumILRRefIdx(0); 1387 #if ILP_SSH_SIG 1388 if((sps->getLayerId() > 0) && rpcSlice->getVPS()->getIlpSshSignalingEnabledFlag() && (rpcSlice->getNumILRRefIdx() > 0) ) 1389 #else 1384 1390 if((sps->getLayerId() > 0) && (rpcSlice->getNumILRRefIdx() > 0) ) 1391 #endif 1385 1392 { 1386 1393 READ_FLAG(uiCode,"inter_layer_pred_enabled_flag"); … … 1404 1411 rpcSlice->setActiveNumILRRefIdx(1); 1405 1412 } 1413 #if ILP_NUM_REF_CHK 1414 if( rpcSlice->getActiveNumILRRefIdx() == rpcSlice->getNumILRRefIdx() ) 1415 { 1416 for( Int i = 0; i < rpcSlice->getActiveNumILRRefIdx(); i++ ) 1417 { 1418 rpcSlice->setInterLayerPredLayerIdc(i,i); 1419 } 1420 } 1421 else 1422 { 1423 #endif 1406 1424 for(Int i = 0; i < rpcSlice->getActiveNumILRRefIdx(); i++ ) 1407 1425 { … … 1409 1427 rpcSlice->setInterLayerPredLayerIdc(uiCode,i); 1410 1428 } 1429 #if ILP_NUM_REF_CHK 1430 } 1431 #endif 1411 1432 } 1412 1433 else … … 1417 1438 } 1418 1439 } 1440 #if ILP_SSH_SIG 1441 else if( rpcSlice->getVPS()->getIlpSshSignalingEnabledFlag() == false ) 1442 { 1443 rpcSlice->setInterLayerPredEnabledFlag(true); 1444 rpcSlice->setActiveNumILRRefIdx(rpcSlice->getNumILRRefIdx()); 1445 for( Int i = 0; i < rpcSlice->getActiveNumILRRefIdx(); i++ ) 1446 { 1447 rpcSlice->setInterLayerPredLayerIdc(i,i); 1448 } 1449 } 1450 #endif 1419 1451 #if M0457_IL_SAMPLE_PRED_ONLY_FLAG 1420 1452 rpcSlice->setInterLayerSamplePredOnlyFlag( false ); -
branches/SHM-3.0-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r324 r328 708 708 } 709 709 710 #if SPL_FLG_CHK 711 if(vps->getSplittingFlag()) 712 { 713 UInt splDimSum=0; 714 for(j = 0; j < vps->getNumScalabilityTypes(); j++) 715 { 716 splDimSum+=(vps->getDimensionIdLen(j)); 717 } 718 assert(splDimSum<=6); 719 } 720 #endif 721 710 722 WRITE_FLAG( vps->getNuhLayerIdPresentFlag(), "vps_nuh_layer_id_present_flag" ); 711 723 for(i = 1; i < vps->getMaxLayers(); i++) … … 741 753 WRITE_CODE(vps->getMaxSublayerForIlpPlus1(i), 3, "max_sublayer_for_ilp_plus1[i]" ); 742 754 } 755 #endif 756 #if ILP_SSH_SIG 757 WRITE_FLAG( vps->getIlpSshSignalingEnabledFlag(), "all_ref_layers_active_flag" ); 743 758 #endif 744 759 #if VPS_EXTN_PROFILE_INFO … … 1052 1067 } 1053 1068 1054 #if JCTVC_M0458_INTERLAYER_RPS_SIG 1055 if((pcSlice->getSPS()->getLayerId() > 0) && (pcSlice->getNumILRRefIdx() > 0) ) 1069 #if JCTVC_M0458_INTERLAYER_RPS_SIG 1070 #if ILP_SSH_SIG 1071 if((pcSlice->getSPS()->getLayerId() > 0) && pcSlice->getVPS()->getIlpSshSignalingEnabledFlag() && (pcSlice->getNumILRRefIdx() > 0) ) 1072 #else 1073 if((pcSlice->getSPS()->getLayerId() > 0) && (pcSlice->getNumILRRefIdx() > 0) ) 1074 #endif 1056 1075 { 1057 1076 WRITE_FLAG(pcSlice->getInterLayerPredEnabledFlag(),"inter_layer_pred_enabled_flag"); … … 1069 1088 WRITE_CODE(pcSlice->getActiveNumILRRefIdx() - 1, numBits,"num_inter_layer_ref_pics_minus1"); 1070 1089 } 1090 #if ILP_NUM_REF_CHK 1091 if( pcSlice->getNumILRRefIdx() != pcSlice->getActiveNumILRRefIdx() ) 1092 { 1093 #endif 1071 1094 for(Int i = 0; i < pcSlice->getActiveNumILRRefIdx(); i++ ) 1072 1095 { 1073 1096 WRITE_CODE(pcSlice->getInterLayerPredLayerIdc(i),numBits,"inter_layer_pred_layer_idc[i]"); 1074 1097 } 1098 #if ILP_NUM_REF_CHK 1099 } 1100 #endif 1075 1101 } 1076 1102 }
Note: See TracChangeset for help on using the changeset viewer.