Changeset 187 in SHVCSoftware for branches/SHM-2.0-dev/source/Lib
- Timestamp:
- 12 May 2013, 18:11:47 (12 years ago)
- Location:
- branches/SHM-2.0-dev/source/Lib
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-2.0-dev/source/Lib/TLibCommon/TComSlice.cpp
r181 r187 461 461 462 462 #if REF_IDX_FRAMEWORK 463 #if ZERO_NUM_DIRECT_LAYERS 464 if( m_layerId == 0 || ( m_layerId > 0 && ( m_activeNumILRRefIdx == 0 || !((getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP) && (getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA)) ) ) ) 465 #else 463 466 if ((getLayerId() == 0) || 464 467 ((getSPS()->getLayerId()) && !((getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP) && 465 468 (getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA)) ) 466 469 ) 470 #endif 467 471 { 468 472 #endif … … 516 520 //inter-layer reference picture 517 521 #if REF_IDX_MFM 522 #if ZERO_NUM_DIRECT_LAYERS 523 if( m_layerId > 0 && m_activeNumILRRefIdx > 0 ) 524 #else 518 525 if (getLayerId()) 526 #endif 519 527 { 520 528 if(!(getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP && getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA) && getSPS()->getMFMEnabledFlag()) -
branches/SHM-2.0-dev/source/Lib/TLibCommon/TComUpsampleFilter.cpp
r175 r187 437 437 #if SCALED_REF_LAYER_OFFSETS 438 438 // Only increase the x position of reference upsample picture when within the window 439 // "-2" to ensure that pointer doesn't go beyond the bound eary rightEndL-1439 // "-2" to ensure that pointer doesn't go beyond the boundary rightEndL-1 440 440 if( (i >= leftStartL) && (i <= rightEndL-2) ) 441 441 { … … 605 605 #if SCALED_REF_LAYER_OFFSETS 606 606 // Only increase the x position of reference upsample picture when within the window 607 // "-2" to ensure that pointer doesn't go beyond the bound eary rightEndC-1607 // "-2" to ensure that pointer doesn't go beyond the boundary rightEndC-1 608 608 if( (i >= leftStartC) && (i <= rightEndC-2) ) 609 609 { -
branches/SHM-2.0-dev/source/Lib/TLibCommon/TypeDef.h
r175 r187 90 90 #define REF_IDX_MFM 1 ///< L0336: motion vector mapping of inter-layer reference picture 91 91 #define JCTVC_M0458_INTERLAYER_RPS_SIG 1 ///< implementation of JCTVC-L0178 (currently only one reference layer is supported ) 92 #if JCTVC_M0458_INTERLAYER_RPS_SIG 93 #define ZERO_NUM_DIRECT_LAYERS 1 ///< support of zero direct reference layers 94 #endif 92 95 #else 93 96 #define INTRA_BL 1 ///< inter-layer texture prediction -
branches/SHM-2.0-dev/source/Lib/TLibDecoder/TDecCu.cpp
r125 r187 370 370 m_pcEntropyDecoder->decodePredInfo( pcCU, uiAbsPartIdx, uiDepth, m_ppcCU[uiDepth]); 371 371 #endif 372 372 373 373 // Coefficient decoding 374 374 Bool bCodeDQP = getdQPFlag(); -
branches/SHM-2.0-dev/source/Lib/TLibDecoder/TDecTop.cpp
r182 r187 1268 1268 if( vps->getNumDirectRefLayers( m_layerId ) <= 0 ) 1269 1269 { 1270 #if ZERO_NUM_DIRECT_LAYERS 1271 return (TDecTop *)getLayerDec( 0 ); 1272 #else 1270 1273 return NULL; 1274 #endif 1271 1275 } 1272 1276 … … 1276 1280 assert( vps->getMaxOneActiveRefLayerFlag() == 1 ); 1277 1281 #endif 1278 1279 1282 1280 1283 return (TDecTop *)getLayerDec( vps->getRefLayerId( m_layerId, 0 ) ); 1281 1284 } -
branches/SHM-2.0-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r185 r187 556 556 pcSlice->setNalUnitType(NAL_UNIT_CODED_SLICE_CRA); 557 557 } 558 #if ZERO_NUM_DIRECT_LAYERS 559 if( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() == 0 && pcSlice->getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP && pcSlice->getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA ) 560 { 561 pcSlice->setSliceType(I_SLICE); 562 } 563 else 564 #endif 558 565 if( m_layerId > 0 && !m_pcEncTop->getElRapSliceTypeB() ) 559 566 { … … 657 664 658 665 #if REF_IDX_FRAMEWORK 666 #if ZERO_NUM_DIRECT_LAYERS 667 if( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() ) 668 #else 659 669 if(m_layerId > 0) 670 #endif 660 671 { 661 672 #if JCTVC_M0458_INTERLAYER_RPS_SIG … … 690 701 691 702 #if SVC_EXTENSION 703 #if ZERO_NUM_DIRECT_LAYERS 704 if( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() ) 705 #else 692 706 if(m_layerId > 0) 707 #endif 693 708 { 694 709 #if !IDR_ALIGNMENT … … 723 738 // Set reference list 724 739 #if REF_IDX_FRAMEWORK 740 #if ZERO_NUM_DIRECT_LAYERS 741 if(m_layerId == 0 || ( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() == 0 ) ) 742 #else 725 743 if(m_layerId == 0) 744 #endif 726 745 { 727 746 pcSlice->setRefPicList( rcListPic); … … 731 750 #endif 732 751 #if REF_IDX_FRAMEWORK 752 #if ZERO_NUM_DIRECT_LAYERS 753 if( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() ) 754 #else 733 755 if(m_layerId > 0) 756 #endif 734 757 { 735 758 m_pcEncTop->setILRPic(pcPic); -
branches/SHM-2.0-dev/source/Lib/TLibEncoder/TEncTop.cpp
r175 r187 1193 1193 if( m_ppcTEncTop[m_layerId]->getNumDirectRefLayers() <= 0 ) 1194 1194 { 1195 #if ZERO_NUM_DIRECT_LAYERS 1196 return (TEncTop *)getLayerEnc( 0 ); 1197 #else 1195 1198 return NULL; 1199 #endif 1196 1200 } 1197 1201
Note: See TracChangeset for help on using the changeset viewer.