Changeset 248 in SHVCSoftware


Ignore:
Timestamp:
31 May 2013, 01:39:45 (12 years ago)
Author:
qualcomm
Message:

M0269 : Max one resampling process for inter-layer reference - Bug fix

Location:
branches/SHM-2.1-dev/source/Lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-2.1-dev/source/Lib/TLibCommon/TComSlice.cpp

    r247 r248  
    575575      Int numResampler = 0;
    576576      const Window &scalEL = getSPS()->getScaledRefLayerWindow();
    577       Int widthEL   = getPic()->getPicYuvRec()->getWidth() - scalEL.getWindowLeftOffset() - scalEL.getWindowRightOffset();
    578       Int heightEL  = getPic()->getPicYuvRec()->getHeight() - scalEL.getWindowTopOffset()  - scalEL.getWindowBottomOffset();
     577      Int scalingOffset = ((scalEL.getWindowLeftOffset()   == 0 ) &&
     578                           (scalEL.getWindowRightOffset()  == 0 ) &&
     579                           (scalEL.getWindowTopOffset()    == 0 ) &&
     580                           (scalEL.getWindowBottomOffset() == 0 )
     581                          );
     582
     583      Int widthEL   = getPic()->getPicYuvRec()->getWidth();
     584      Int heightEL  = getPic()->getPicYuvRec()->getHeight();     
    579585      for (i=0; i < m_activeNumILRRefIdx; i++)
    580586      {
     
    582588        Int heightBL  =  ilpPic[getInterLayerPredLayerIdc(i)]->getSlice(0)->getBaseColPic()->getPicYuvRec()->getHeight();
    583589
    584         if(widthEL != widthBL || heightEL != heightBL )
     590        if(!(widthEL == widthBL && heightEL == heightBL && (scalingOffset)))
    585591        {
    586592          numResampler++;
  • branches/SHM-2.1-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r245 r248  
    262262        assert( pcSlice->getVPS()->getScalabilityMask(1) == true );
    263263      }
     264#if MAX_ONE_RESAMPLING_DIRECT_LAYERS
     265      if(pcSlice->getVPS()->getScalabilityMask(1))
     266      {
     267         pcSlice->setPic(rpcPic);
     268      }
     269#endif
    264270    }
    265271#endif
Note: See TracChangeset for help on using the changeset viewer.