Ignore:
Timestamp:
30 May 2013, 02:26:45 (11 years ago)
Author:
qualcomm
Message:

M0269 : Assert when more than one resampling for reference layers is used - Clean up.

File:
1 edited

Legend:

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

    r242 r246  
    571571    }
    572572#if MAX_ONE_RESAMPLING_DIRECT_LAYERS
    573     if(getPic()->isSpatialEnhLayer())
    574     {
    575       assert(m_activeNumILRRefIdx == 1);
     573    if(getVPS()->getScalabilityMask(1))
     574    {
     575      Int numResampler = 0; 
     576      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();
     579      for (i=0; i < m_activeNumILRRefIdx; i++)
     580      {       
     581        Int widthBL   =  ilpPic[getInterLayerPredLayerIdc(i)]->getSlice(0)->getBaseColPic()->getPicYuvRec()->getWidth();
     582        Int heightBL  =  ilpPic[getInterLayerPredLayerIdc(i)]->getSlice(0)->getBaseColPic()->getPicYuvRec()->getHeight();
     583
     584        if(widthEL != widthBL || heightEL != heightBL )
     585        {
     586          numResampler++;
     587        }
     588      } 
     589      assert(numResampler <= 1);
    576590    }
    577591#endif
Note: See TracChangeset for help on using the changeset viewer.