Changeset 399 in SHVCSoftware
- Timestamp:
- 17 Sep 2013, 19:39:11 (11 years ago)
- Location:
- branches/SHM-3.1-dev/source
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-3.1-dev/source/App/TAppEncoder/TAppEncTop.cpp
r398 r399 941 941 { 942 942 #if N0120_MAX_TID_REF_CFG 943 vps->setMax SublayerForIlpPlus1(i, m_acTEncTop[i].getMaxTidIlRefPicsPlus1());943 vps->setMaxTidIlRefPicsPlus1(i, m_acTEncTop[i].getMaxTidIlRefPicsPlus1()); 944 944 #else 945 vps->setMax SublayerForIlpPlus1(i, vps->getMaxTLayers()+1);945 vps->setMaxTidIlRefPicsPlus1(i, vps->getMaxTLayers()+1); 946 946 #endif 947 947 } … … 951 951 for( i = 0; i < MAX_VPS_LAYER_ID_PLUS1 - 1; i++ ) 952 952 { 953 vps->setMax SublayerForIlpPlus1(i, 7);953 vps->setMaxTidIlRefPicsPlus1(i, 7); 954 954 } 955 955 } -
branches/SHM-3.1-dev/source/Lib/TLibCommon/TComSlice.cpp
r396 r399 446 446 447 447 #if ILR_RESTR 448 Int max SubLayerForILPPlus1 = ( m_layerId > 0 && m_activeNumILRRefIdx > 0)? m_pcVPS->getMaxSublayerForIlpPlus1(ilpPic[refLayerIdc]->getSlice(0)->getLayerId()) : 0;449 if( m_layerId > 0 && m_activeNumILRRefIdx > 0 && ( ( (Int)(ilpPic[refLayerIdc]->getSlice(0)->getTLayer())<= max SubLayerForILPPlus1-1) || (maxSubLayerForILPPlus1==0 && ilpPic[refLayerIdc]->getSlice(0)->getRapPicFlag()) ) )448 Int maxTidIlRefPicsPlus1 = ( m_layerId > 0 && m_activeNumILRRefIdx > 0)? m_pcVPS->getMaxTidIlRefPicsPlus1(ilpPic[refLayerIdc]->getSlice(0)->getLayerId()) : 0; 449 if( m_layerId > 0 && m_activeNumILRRefIdx > 0 && ( ( (Int)(ilpPic[refLayerIdc]->getSlice(0)->getTLayer())<= maxTidIlRefPicsPlus1-1) || (maxTidIlRefPicsPlus1==0 && ilpPic[refLayerIdc]->getSlice(0)->getRapPicFlag()) ) ) 450 450 #else //#if ILR_RESTR 451 451 if( m_layerId > 0 && m_activeNumILRRefIdx > 0 ) … … 484 484 for( i=0; i < m_pcVPS->getNumDirectRefLayers( m_layerId ); i++ ) 485 485 { 486 Int max SubLayerForILPPlus1 = getVPS()->getMaxSublayerForIlpPlus1(ilpPic[i]->getSlice(0)->getLayerId());487 if( ((Int)(ilpPic[i]->getSlice(0)->getTLayer())<= max SubLayerForILPPlus1-1) || (maxSubLayerForILPPlus1==0 && ilpPic[i]->getSlice(0)->getRapPicFlag() ) )486 Int maxTidIlRefPicsPlus1 = getVPS()->getMaxTidIlRefPicsPlus1(ilpPic[i]->getSlice(0)->getLayerId()); 487 if( ((Int)(ilpPic[i]->getSlice(0)->getTLayer())<= maxTidIlRefPicsPlus1-1) || (maxTidIlRefPicsPlus1==0 && ilpPic[i]->getSlice(0)->getRapPicFlag() ) ) 488 488 { 489 489 numInterLayerRPSPics++; … … 625 625 Int refLayerIdc = m_interLayerPredLayerIdc[i]; 626 626 #if ILR_RESTR 627 Int max SubLayerForILPPlus1 = getVPS()->getMaxSublayerForIlpPlus1(ilpPic[refLayerIdc]->getSlice(0)->getLayerId());628 if( ((Int)(ilpPic[refLayerIdc]->getSlice(0)->getTLayer())<=max SubLayerForILPPlus1-1) || (maxSubLayerForILPPlus1==0 && ilpPic[refLayerIdc]->getSlice(0)->getRapPicFlag()) )627 Int maxTidIlRefPicsPlus1 = getVPS()->getMaxTidIlRefPicsPlus1(ilpPic[refLayerIdc]->getSlice(0)->getLayerId()); 628 if( ((Int)(ilpPic[refLayerIdc]->getSlice(0)->getTLayer())<=maxTidIlRefPicsPlus1-1) || (maxTidIlRefPicsPlus1==0 && ilpPic[refLayerIdc]->getSlice(0)->getRapPicFlag()) ) 629 629 #endif 630 630 rpsCurrList0[cIdx] = ilpPic[refLayerIdc]; … … 653 653 Int refLayerIdc = m_interLayerPredLayerIdc[i]; 654 654 #if ILR_RESTR 655 Int max SubLayerForILPPlus1 = getVPS()->getMaxSublayerForIlpPlus1(ilpPic[refLayerIdc]->getSlice(0)->getLayerId());656 if( ((Int)(ilpPic[refLayerIdc]->getSlice(0)->getTLayer())<=max SubLayerForILPPlus1-1) || (maxSubLayerForILPPlus1==0 && ilpPic[refLayerIdc]->getSlice(0)->getRapPicFlag()) )655 Int maxTidIlRefPicsPlus1 = getVPS()->getMaxTidIlRefPicsPlus1(ilpPic[refLayerIdc]->getSlice(0)->getLayerId()); 656 if( ((Int)(ilpPic[refLayerIdc]->getSlice(0)->getTLayer())<=maxTidIlRefPicsPlus1-1) || (maxTidIlRefPicsPlus1==0 && ilpPic[refLayerIdc]->getSlice(0)->getRapPicFlag()) ) 657 657 #endif 658 658 rpsCurrList0[cIdx] = ilpPic[refLayerIdc]; … … 690 690 Int refLayerIdc = m_interLayerPredLayerIdc[i]; 691 691 #if ILR_RESTR 692 Int max SubLayerForILPPlus1 = getVPS()->getMaxSublayerForIlpPlus1(ilpPic[refLayerIdc]->getSlice(0)->getLayerId());693 if( ((Int)(ilpPic[refLayerIdc]->getSlice(0)->getTLayer())<=max SubLayerForILPPlus1-1) || (maxSubLayerForILPPlus1==0 && ilpPic[refLayerIdc]->getSlice(0)->getRapPicFlag()) )692 Int maxTidIlRefPicsPlus1 = getVPS()->getMaxTidIlRefPicsPlus1(ilpPic[refLayerIdc]->getSlice(0)->getLayerId()); 693 if( ((Int)(ilpPic[refLayerIdc]->getSlice(0)->getTLayer())<=maxTidIlRefPicsPlus1-1) || (maxTidIlRefPicsPlus1==0 && ilpPic[refLayerIdc]->getSlice(0)->getRapPicFlag()) ) 694 694 #endif 695 695 rpsCurrList1[cIdx] = ilpPic[refLayerIdc]; … … 1801 1801 #if JCTVC_M0203_INTERLAYER_PRED_IDC 1802 1802 #if N0120_MAX_TID_REF_PRESENT_FLAG 1803 m_maxTid IlRefPicsPlus1PresentFlag = true;1803 m_maxTidRefPresentFlag = true; 1804 1804 #endif 1805 1805 for( Int i = 0; i < MAX_VPS_LAYER_ID_PLUS1 - 1; i++) 1806 1806 { 1807 m_max SublayerForIlpPlus1[i] = m_uiMaxTLayers + 1;1807 m_maxTidIlRefPicsPlus1[i] = m_uiMaxTLayers + 1; 1808 1808 } 1809 1809 #endif -
branches/SHM-3.1-dev/source/Lib/TLibCommon/TComSlice.h
r398 r399 524 524 #endif 525 525 #if JCTVC_M0203_INTERLAYER_PRED_IDC 526 UInt m_max SublayerForIlpPlus1[MAX_VPS_LAYER_ID_PLUS1 - 1];526 UInt m_maxTidIlRefPicsPlus1[MAX_VPS_LAYER_ID_PLUS1 - 1]; 527 527 #endif 528 528 #if N0120_MAX_TID_REF_PRESENT_FLAG 529 Bool m_maxTid IlRefPicsPlus1PresentFlag;529 Bool m_maxTidRefPresentFlag; 530 530 #endif 531 531 #if M0040_ADAPTIVE_RESOLUTION_CHANGE … … 717 717 #endif 718 718 #if JCTVC_M0203_INTERLAYER_PRED_IDC 719 UInt getMax SublayerForIlpPlus1(Int layerId) { return m_maxSublayerForIlpPlus1[layerId]; }720 Void setMax SublayerForIlpPlus1(Int layerId, UInt maxSublayer) { m_maxSublayerForIlpPlus1[layerId] = maxSublayer; }719 UInt getMaxTidIlRefPicsPlus1(Int layerId) { return m_maxTidIlRefPicsPlus1[layerId]; } 720 Void setMaxTidIlRefPicsPlus1(Int layerId, UInt maxSublayer) { m_maxTidIlRefPicsPlus1[layerId] = maxSublayer; } 721 721 #endif 722 722 #if N0120_MAX_TID_REF_PRESENT_FLAG 723 Bool getMaxTidRefPresentFlag() { return m_maxTid IlRefPicsPlus1PresentFlag ;}724 Void setMaxTidRefPresentFlag(Bool x) { m_maxTid IlRefPicsPlus1PresentFlag = x;}723 Bool getMaxTidRefPresentFlag() { return m_maxTidRefPresentFlag ;} 724 Void setMaxTidRefPresentFlag(Bool x) { m_maxTidRefPresentFlag = x;} 725 725 #endif 726 726 #if M0040_ADAPTIVE_RESOLUTION_CHANGE -
branches/SHM-3.1-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r398 r399 1003 1003 for(i = 0; i < vps->getMaxLayers() - 1; i++) 1004 1004 { 1005 READ_CODE( 3, uiCode, "max_ sublayer_for_ilp_plus1[i]" ); vps->setMaxSublayerForIlpPlus1(i, uiCode);1005 READ_CODE( 3, uiCode, "max_tid_il_ref_pics_plus1[i]" ); vps->setMaxTidIlRefPicsPlus1(i, uiCode); 1006 1006 #if N0120_MAX_TID_REF_CFG 1007 1007 assert( uiCode <= vps->getMaxTLayers()); … … 1015 1015 for(i = 0; i < vps->getMaxLayers() - 1; i++) 1016 1016 { 1017 vps->setMax SublayerForIlpPlus1(i, 7);1017 vps->setMaxTidIlRefPicsPlus1(i, 7); 1018 1018 } 1019 1019 } … … 1021 1021 for(i = 0; i < vps->getMaxLayers() - 1; i++) 1022 1022 { 1023 READ_CODE( 3, uiCode, "max_ sublayer_for_ilp_plus1[i]" ); vps->setMaxSublayerForIlpPlus1(i, uiCode);1023 READ_CODE( 3, uiCode, "max_tid_il_ref_pics_plus1[i]" ); vps->setMaxTidIlRefPicsPlus1(i, uiCode); 1024 1024 assert( uiCode <= vps->getMaxTLayers() ); 1025 1025 } -
branches/SHM-3.1-dev/source/Lib/TLibDecoder/TDecTop.cpp
r389 r399 467 467 468 468 Int remainingInterLayerReferencesFlag = 0; 469 if ( currTid <= pcSlice->getVPS()->getMax SublayerForIlpPlus1(latestDecLayerId) - 1 )469 if ( currTid <= pcSlice->getVPS()->getMaxTidIlRefPicsPlus1(latestDecLayerId) - 1 ) 470 470 { 471 471 for ( Int j = latestDecIdx + 1; j < numTargetDecLayers; j++ ) -
branches/SHM-3.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r398 r399 788 788 for( i = 0; i < vps->getMaxLayers() - 1; i++) 789 789 { 790 WRITE_CODE(vps->getMax SublayerForIlpPlus1(i), 3, "max_sublayer_for_ilp_plus1[i]" );790 WRITE_CODE(vps->getMaxTidIlRefPicsPlus1(i), 3, "max_tid_il_ref_pics_plus1[i]" ); 791 791 } 792 792 } … … 794 794 for( i = 0; i < vps->getMaxLayers() - 1; i++) 795 795 { 796 WRITE_CODE(vps->getMax SublayerForIlpPlus1(i), 3, "max_sublayer_for_ilp_plus1[i]" );796 WRITE_CODE(vps->getMaxTidIlRefPicsPlus1(i), 3, "max_tid_il_ref_pics_plus1[i]" ); 797 797 } 798 798 #endif -
branches/SHM-3.1-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r389 r399 594 594 #if ILR_RESTR && ILR_RESTR_FIX 595 595 // Apply temporal layer restriction to inter-layer prediction 596 Int max SubLayerForILPPlus1 = m_pcEncTop->getVPS()->getMaxSublayerForIlpPlus1(pcSlice->getBaseColPic(refLayerIdc)->getSlice(0)->getLayerId());597 if( ((Int)(pcSlice->getBaseColPic(refLayerIdc)->getSlice(0)->getTLayer())<=max SubLayerForILPPlus1-1) || (maxSubLayerForILPPlus1==0 && pcSlice->getBaseColPic(refLayerIdc)->getSlice(0)->getRapPicFlag()) )596 Int maxTidIlRefPicsPlus1 = m_pcEncTop->getVPS()->getMaxTidIlRefPicsPlus1(pcSlice->getBaseColPic(refLayerIdc)->getSlice(0)->getLayerId()); 597 if( ((Int)(pcSlice->getBaseColPic(refLayerIdc)->getSlice(0)->getTLayer())<=maxTidIlRefPicsPlus1-1) || (maxTidIlRefPicsPlus1==0 && pcSlice->getBaseColPic(refLayerIdc)->getSlice(0)->getRapPicFlag()) ) 598 598 { 599 599 interLayerPredLayerIdcTmp[activeNumILRRefIdxTmp++] = refLayerIdc; // add picture to the list of valid inter-layer pictures
Note: See TracChangeset for help on using the changeset viewer.