Changeset 187 in SHVCSoftware for branches/SHM-2.0-dev/source
- Timestamp:
- 12 May 2013, 18:11:47 (12 years ago)
- Location:
- branches/SHM-2.0-dev/source
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-2.0-dev/source/App/TAppDecoder/TAppDecTop.cpp
r154 r187 560 560 if ( m_pchReconFile ) 561 561 { 562 #if SYNTAX_OUTPUT && ILP_DECODED_PICTURE 563 m_cTVideoIOYuvReconFile.write( pcPic->getPicYuvRec() ); 564 #else 562 565 const Window &conf = pcPic->getConformanceWindow(); 563 566 const Window &defDisp = m_respectDefDispWindow ? pcPic->getDefDisplayWindow() : Window(); 564 #if SYNTAX_OUTPUT && ILP_DECODED_PICTURE565 m_cTVideoIOYuvReconFile.write( pcPic->getPicYuvRec() );566 #else567 567 m_cTVideoIOYuvReconFile.write( pcPic->getPicYuvRec(), 568 568 conf.getWindowLeftOffset() + defDisp.getWindowLeftOffset(), -
branches/SHM-2.0-dev/source/App/TAppEncoder/TAppEncCfg.cpp
r184 r187 66 66 TAppEncCfg::TAppEncCfg() 67 67 : m_pBitstreamFile() 68 #if AVC_BASE 69 , m_avcBaseLayerFlag(0) 70 #endif 68 71 , m_pColumnWidth() 69 72 , m_pRowHeight() … … 423 426 #endif 424 427 #if AVC_BASE 425 ("AvcBase ", m_avcBaseLayerFlag, 0, "AVC_BASElayer_flag")428 ("AvcBase,-avc", m_avcBaseLayerFlag, 0, "avc_base_layer_flag") 426 429 ("InputBLFile,-ibl", cfg_BLInputFile, string(""), "Base layer rec YUV input file name") 427 430 #if AVC_SYNTAX … … 430 433 #endif 431 434 #if REF_IDX_FRAMEWORK 432 ("EnableElRapB,-use-rap-b", m_elRapSliceBEnabled, 0, "Set ILP over base-layer I picture to B picture (default is P picture _")435 ("EnableElRapB,-use-rap-b", m_elRapSliceBEnabled, 0, "Set ILP over base-layer I picture to B picture (default is P picture)") 433 436 #endif 434 437 #else … … 741 744 ; 742 745 743 #if AVC_BASE744 if( m_avcBaseLayerFlag )745 {746 *cfg_InputFile[0] = cfg_BLInputFile;747 }748 #endif749 750 746 for(Int i=1; i<MAX_GOP+1; i++) { 751 747 std::ostringstream cOSS; … … 773 769 /* convert std::string to c string for compatability */ 774 770 #if SVC_EXTENSION 771 #if AVC_BASE 772 if( m_avcBaseLayerFlag ) 773 { 774 *cfg_InputFile[0] = cfg_BLInputFile; 775 } 776 #endif 775 777 m_pBitstreamFile = cfg_BitstreamFile.empty() ? NULL : strdup(cfg_BitstreamFile.c_str()); 776 778 #if AVC_SYNTAX … … 1827 1829 { 1828 1830 printf("=== Layer %d settings === \n", layer); 1831 #if AVC_SYNTAX 1832 m_acLayerCfg[layer].xPrintParameter( layer ); 1833 #else 1829 1834 m_acLayerCfg[layer].xPrintParameter(); 1835 #endif 1830 1836 printf("\n"); 1831 1837 } -
branches/SHM-2.0-dev/source/App/TAppEncoder/TAppEncLayerCfg.cpp
r125 r187 116 116 } 117 117 118 #if AVC_SYNTAX 119 Void TAppEncLayerCfg::xPrintParameter( UInt layerId ) 120 #else 118 121 Void TAppEncLayerCfg::xPrintParameter() 122 #endif 119 123 { 120 124 printf("Input File : %s\n", m_cInputFile.c_str() ); 121 125 printf("Reconstruction File : %s\n", m_cReconFile.c_str() ); 122 126 #if AVC_SYNTAX 123 printf("Base layer input file : %s\n", m_cAppEncCfg->getBLSyntaxFile() ); 127 if( layerId == 0 ) 128 { 129 printf("Base layer syntax file : %s\n", m_cAppEncCfg->getBLSyntaxFile() ); 130 } 124 131 #endif 125 132 printf("Real Format : %dx%d %dHz\n", m_iSourceWidth - m_confLeft - m_confRight, m_iSourceHeight - m_confTop - m_confBottom, m_iFrameRate ); -
branches/SHM-2.0-dev/source/App/TAppEncoder/TAppEncLayerCfg.h
r184 r187 69 69 bool parseCfg ( const string& cfgFileName ); ///< parse layer configuration file to fill member variables 70 70 71 #if AVC_SYNTAX 72 Void xPrintParameter( UInt layerId ); 73 #else 71 74 Void xPrintParameter(); 75 #endif 72 76 Bool xCheckParameter(); 73 77 -
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.