Changeset 372 in SHVCSoftware
- Timestamp:
- 28 Aug 2013, 04:22:07 (11 years ago)
- Location:
- branches/SHM-3.1-dev/source
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-3.1-dev/source/App/TAppDecoder/TAppDecTop.cpp
r313 r372 560 560 if ( m_pchReconFile ) 561 561 { 562 #if SYNTAX_OUTPUT && ILP_DECODED_PICTURE 563 m_cTVideoIOYuvReconFile.write( pcPic->getPicYuvRec() ); 564 #else 562 #if SYNTAX_OUTPUT 565 563 const Window &conf = pcPic->getConformanceWindow(); 566 564 const Window &defDisp = m_respectDefDispWindow ? pcPic->getDefDisplayWindow() : Window(); -
branches/SHM-3.1-dev/source/App/TAppEncoder/TAppEncTop.cpp
r345 r372 1475 1475 if (m_pchReconFile) 1476 1476 { 1477 #if SYNTAX_OUTPUT && ILP_DECODED_PICTURE 1478 m_cTVideoIOYuvReconFile.write( pcPicYuvRec ); 1479 #else 1477 #if SYNTAX_OUTPUT 1480 1478 m_cTVideoIOYuvReconFile.write( pcPicYuvRec, m_confLeft, m_confRight, m_confTop, m_confBottom ); 1481 1479 #endif -
branches/SHM-3.1-dev/source/Lib/TLibCommon/TComDataCU.cpp
r371 r372 3989 3989 } 3990 3990 3991 #if AVC_SYNTAX && !ILP_DECODED_PICTURE3992 #if !ILP_DECODED_PICTURE3993 const Window &confBL = cBaseColPic->getPicYuvRec()->getConformanceWindow();3994 const Window &confEL = m_pcPic->getPicYuvRec()->getConformanceWindow();3995 3996 Int widthBL = m_pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec()->getWidth () - confBL.getWindowLeftOffset() - confBL.getWindowRightOffset();3997 Int heightBL = m_pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec()->getHeight() - confBL.getWindowTopOffset() - confBL.getWindowBottomOffset();3998 #endif3999 if( iBX >= widthBL || iBY >= heightBL ) //outside of the reference layer cropped picture4000 {4001 return NULL;4002 }4003 #endif4004 4005 3991 uiCUAddrBase = (iBY/g_uiMaxCUHeight)*cBaseColPic->getFrameWidthInCU() + (iBX/g_uiMaxCUWidth); 4006 3992 -
branches/SHM-3.1-dev/source/Lib/TLibCommon/TComPic.cpp
r313 r372 570 570 Void TComPic::copyUpsampledMvField(UInt refLayerIdc, TComPic* pcPicBase) 571 571 { 572 #if AVC_SYNTAX && !ILP_DECODED_PICTURE573 const Window &confBL = pcPicBase->getConformanceWindow();574 const Window &confEL = getPicYuvRec()->getConformanceWindow();575 576 Int widthBL = pcPicBase->getPicYuvRec()->getWidth () - confBL.getWindowLeftOffset() - confBL.getWindowRightOffset();577 Int heightBL = pcPicBase->getPicYuvRec()->getHeight() - confBL.getWindowTopOffset() - confBL.getWindowBottomOffset();578 579 Int widthEL = getPicYuvRec()->getWidth() - confEL.getWindowLeftOffset() - confEL.getWindowRightOffset();580 Int heightEL = getPicYuvRec()->getHeight() - confEL.getWindowTopOffset() - confEL.getWindowBottomOffset();581 #endif582 583 572 UInt numPartitions = 1<<(g_uiMaxCUDepth<<1); 584 573 UInt widthMinPU = g_uiMaxCUWidth/(1<<g_uiMaxCUDepth); … … 600 589 pcColCU = pcCUDes->getBaseColCU(refLayerIdc, pelX + 8, pelY + 8, baseCUAddr, baseAbsPartIdx); 601 590 602 #if AVC_SYNTAX && !ILP_DECODED_PICTURE603 Int xBL = ( (pelX + 8) * widthBL + widthEL/2 ) / widthEL;604 Int yBL = ( (pelY + 8) * heightBL+ heightEL/2 ) / heightEL;605 606 if( ( xBL < widthBL && yBL < heightBL ) && pcColCU && (pcColCU->getPredictionMode(baseAbsPartIdx) != MODE_NONE) && (pcColCU->getPredictionMode(baseAbsPartIdx) != MODE_INTRA) ) //base layer unit not skip and invalid mode607 #else608 591 if( pcColCU && (pcColCU->getPredictionMode(baseAbsPartIdx) != MODE_NONE) && (pcColCU->getPredictionMode(baseAbsPartIdx) != MODE_INTRA) ) //base layer unit not skip and invalid mode 609 #endif610 592 { 611 593 for(UInt refPicList = 0; refPicList < 2; refPicList++) //for each reference list … … 670 652 } 671 653 672 #if ILP_DECODED_PICTURE673 654 UInt width = this->getPicYuvRec()->getWidth(); 674 655 UInt height = this->getPicYuvRec()->getHeight(); 675 #else 676 const Window &conf = this->getPicYuvRec()->getConformanceWindow(); 677 UInt width = this->getPicYuvRec()->getWidth() - conf.getWindowLeftOffset() - conf.getWindowRightOffset(); 678 UInt height = this->getPicYuvRec()->getHeight() - conf.getWindowTopOffset() - conf.getWindowBottomOffset(); 679 #endif 656 680 657 UInt64 poc = (UInt64)this->getPOC(); 681 658 UInt partWidth = width / 4; … … 754 731 } 755 732 756 #if ILP_DECODED_PICTURE757 733 UInt width = this->getPicYuvRec()->getWidth(); 758 734 UInt height = this->getPicYuvRec()->getHeight(); 759 #else760 const Window &conf = this->getConformanceWindow();761 UInt width = this->getPicYuvRec()->getWidth() - conf.getWindowLeftOffset() - conf.getWindowRightOffset();762 UInt height = this->getPicYuvRec()->getHeight() - conf.getWindowTopOffset() - conf.getWindowBottomOffset();763 #endif764 735 765 736 UInt64 poc = (UInt64)this->getPOC(); -
branches/SHM-3.1-dev/source/Lib/TLibCommon/TComUpsampleFilter.cpp
r370 r372 233 233 Int shiftYM4 = shiftY - 4; 234 234 235 #if ILP_DECODED_PICTURE236 235 widthEL = pcUsPic->getWidth (); 237 236 heightEL = pcUsPic->getHeight(); … … 239 238 widthBL = pcBasePic->getWidth (); 240 239 heightBL = min<Int>( pcBasePic->getHeight(), heightEL ); 241 #endif242 240 #if SCALED_REF_LAYER_OFFSETS 243 241 Int leftStartL = scalEL.getWindowLeftOffset(); … … 390 388 } 391 389 392 #if ILP_DECODED_PICTURE393 390 #if SCALED_REF_LAYER_OFFSETS 394 391 widthBL = pcBasePic->getWidth (); … … 403 400 widthEL = pcUsPic->getWidth () - confEL.getWindowLeftOffset() - confEL.getWindowRightOffset(); 404 401 heightEL = pcUsPic->getHeight() - confEL.getWindowTopOffset() - confEL.getWindowBottomOffset(); 405 #endif406 402 #endif 407 403 … … 446 442 shiftYM4 = shiftY - 4; 447 443 448 #if ILP_DECODED_PICTURE449 444 widthEL = pcUsPic->getWidth () >> 1; 450 445 heightEL = pcUsPic->getHeight() >> 1; … … 452 447 widthBL = pcBasePic->getWidth () >> 1; 453 448 heightBL = min<Int>( pcBasePic->getHeight() >> 1, heightEL ); 454 #endif455 449 456 450 #if N0214_INTERMEDIATE_BUFFER_16BITS -
branches/SHM-3.1-dev/source/Lib/TLibCommon/TypeDef.h
r370 r372 90 90 #define BUGFIX_RESAMPLE 1 ///< JCTVC-N0055: resampling bug fix for positive left scalled offset 91 91 92 #define ILP_DECODED_PICTURE 1 ///< M0274: use decoded picture for inter-layer prediction93 92 #define JCTVC_M0259_LAMBDAREFINEMENT 1 ///< JCTVC-M0259: lambda refinement (encoder only optimization) 94 93 #define RESTR_CHK 1 ///< JCTVC-M0208 proposal 1 … … 137 136 138 137 #else 139 #define ILP_DECODED_PICTURE 0140 138 #define SYNTAX_OUTPUT 0 141 139 #endif // SVC_EXTENSION -
branches/SHM-3.1-dev/source/Lib/TLibDecoder/TDecTop.cpp
r370 r372 621 621 TComPic* pBLPic = (*m_ppcTDecTop[0]->getListPic()->begin()); 622 622 fstream* pFile = m_ppcTDecTop[0]->getBLReconFile(); 623 #if ILP_DECODED_PICTURE624 623 UInt uiWidth = pBLPic->getPicYuvRec()->getWidth(); 625 624 UInt uiHeight = pBLPic->getPicYuvRec()->getHeight(); 626 #else627 const Window &conf = pBLPic->getConformanceWindow();628 UInt uiWidth = pBLPic->getPicYuvRec()->getWidth() - conf.getWindowLeftOffset() - conf.getWindowRightOffset();629 UInt uiHeight = pBLPic->getPicYuvRec()->getHeight() - conf.getWindowTopOffset() - conf.getWindowBottomOffset();630 #endif631 625 632 626 if( pFile->good() )
Note: See TracChangeset for help on using the changeset viewer.