Changeset 372 in SHVCSoftware


Ignore:
Timestamp:
28 Aug 2013, 04:22:07 (11 years ago)
Author:
seregin
Message:

remove ILP_DECODED_PICTURE macro

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  
    560560      if ( m_pchReconFile )
    561561      {
    562 #if SYNTAX_OUTPUT && ILP_DECODED_PICTURE
    563         m_cTVideoIOYuvReconFile.write( pcPic->getPicYuvRec() );
    564 #else
     562#if SYNTAX_OUTPUT
    565563        const Window &conf = pcPic->getConformanceWindow();
    566564        const Window &defDisp = m_respectDefDispWindow ? pcPic->getDefDisplayWindow() : Window();
  • branches/SHM-3.1-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r345 r372  
    14751475    if (m_pchReconFile)
    14761476    {
    1477 #if SYNTAX_OUTPUT && ILP_DECODED_PICTURE
    1478       m_cTVideoIOYuvReconFile.write( pcPicYuvRec );
    1479 #else
     1477#if SYNTAX_OUTPUT
    14801478      m_cTVideoIOYuvReconFile.write( pcPicYuvRec, m_confLeft, m_confRight, m_confTop, m_confBottom );
    14811479#endif
  • branches/SHM-3.1-dev/source/Lib/TLibCommon/TComDataCU.cpp

    r371 r372  
    39893989  }
    39903990
    3991 #if AVC_SYNTAX && !ILP_DECODED_PICTURE
    3992 #if !ILP_DECODED_PICTURE
    3993   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 #endif
    3999   if( iBX >= widthBL || iBY >= heightBL ) //outside of the reference layer cropped picture
    4000   {
    4001     return NULL;
    4002   }
    4003 #endif
    4004 
    40053991  uiCUAddrBase = (iBY/g_uiMaxCUHeight)*cBaseColPic->getFrameWidthInCU() + (iBX/g_uiMaxCUWidth);
    40063992
  • branches/SHM-3.1-dev/source/Lib/TLibCommon/TComPic.cpp

    r313 r372  
    570570Void TComPic::copyUpsampledMvField(UInt refLayerIdc, TComPic* pcPicBase)
    571571{
    572 #if AVC_SYNTAX && !ILP_DECODED_PICTURE
    573   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 #endif
    582 
    583572  UInt numPartitions   = 1<<(g_uiMaxCUDepth<<1);
    584573  UInt widthMinPU      = g_uiMaxCUWidth/(1<<g_uiMaxCUDepth);
     
    600589      pcColCU = pcCUDes->getBaseColCU(refLayerIdc, pelX + 8, pelY + 8, baseCUAddr, baseAbsPartIdx);
    601590
    602 #if AVC_SYNTAX && !ILP_DECODED_PICTURE
    603       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 mode
    607 #else
    608591      if( pcColCU && (pcColCU->getPredictionMode(baseAbsPartIdx) != MODE_NONE) && (pcColCU->getPredictionMode(baseAbsPartIdx) != MODE_INTRA) )  //base layer unit not skip and invalid mode
    609 #endif
    610592      {
    611593        for(UInt refPicList = 0; refPicList < 2; refPicList++)  //for each reference list
     
    670652  }
    671653
    672 #if ILP_DECODED_PICTURE
    673654  UInt   width      = this->getPicYuvRec()->getWidth();
    674655  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
    680657  UInt64 poc        = (UInt64)this->getPOC();
    681658  UInt   partWidth  = width / 4;
     
    754731  }
    755732
    756 #if ILP_DECODED_PICTURE
    757733  UInt   width       = this->getPicYuvRec()->getWidth();
    758734  UInt   height      = this->getPicYuvRec()->getHeight();
    759 #else
    760   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 #endif
    764735
    765736  UInt64 poc        = (UInt64)this->getPOC();
  • branches/SHM-3.1-dev/source/Lib/TLibCommon/TComUpsampleFilter.cpp

    r370 r372  
    233233    Int shiftYM4 = shiftY - 4;
    234234
    235 #if ILP_DECODED_PICTURE
    236235    widthEL   = pcUsPic->getWidth ();
    237236    heightEL  = pcUsPic->getHeight();
     
    239238    widthBL   = pcBasePic->getWidth ();
    240239    heightBL  = min<Int>( pcBasePic->getHeight(), heightEL );
    241 #endif
    242240#if SCALED_REF_LAYER_OFFSETS
    243241    Int leftStartL = scalEL.getWindowLeftOffset();
     
    390388    }
    391389
    392 #if ILP_DECODED_PICTURE
    393390#if SCALED_REF_LAYER_OFFSETS
    394391    widthBL   = pcBasePic->getWidth ();
     
    403400    widthEL   = pcUsPic->getWidth () - confEL.getWindowLeftOffset() - confEL.getWindowRightOffset();
    404401    heightEL  = pcUsPic->getHeight() - confEL.getWindowTopOffset() - confEL.getWindowBottomOffset();
    405 #endif
    406402#endif
    407403
     
    446442    shiftYM4 = shiftY - 4;
    447443
    448 #if ILP_DECODED_PICTURE
    449444    widthEL   = pcUsPic->getWidth () >> 1;
    450445    heightEL  = pcUsPic->getHeight() >> 1;
     
    452447    widthBL   = pcBasePic->getWidth () >> 1;
    453448    heightBL  = min<Int>( pcBasePic->getHeight() >> 1, heightEL );
    454 #endif
    455449
    456450#if  N0214_INTERMEDIATE_BUFFER_16BITS
  • branches/SHM-3.1-dev/source/Lib/TLibCommon/TypeDef.h

    r370 r372  
    9090#define BUGFIX_RESAMPLE                  1      ///< JCTVC-N0055: resampling bug fix for positive left scalled offset
    9191
    92 #define ILP_DECODED_PICTURE              1      ///< M0274: use decoded picture for inter-layer prediction
    9392#define JCTVC_M0259_LAMBDAREFINEMENT     1      ///< JCTVC-M0259: lambda refinement (encoder only optimization)
    9493#define RESTR_CHK                        1      ///< JCTVC-M0208 proposal 1
     
    137136
    138137#else
    139 #define ILP_DECODED_PICTURE              0
    140138#define SYNTAX_OUTPUT                    0
    141139#endif // SVC_EXTENSION
  • branches/SHM-3.1-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r370 r372  
    621621      TComPic* pBLPic = (*m_ppcTDecTop[0]->getListPic()->begin());
    622622      fstream* pFile  = m_ppcTDecTop[0]->getBLReconFile();
    623 #if ILP_DECODED_PICTURE
    624623      UInt uiWidth    = pBLPic->getPicYuvRec()->getWidth();
    625624      UInt uiHeight   = pBLPic->getPicYuvRec()->getHeight();
    626 #else
    627       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 #endif
    631625
    632626      if( pFile->good() )
Note: See TracChangeset for help on using the changeset viewer.