Changeset 135 in SHVCSoftware for branches


Ignore:
Timestamp:
2 May 2013, 03:16:26 (12 years ago)
Author:
seregin
Message:

bring back setSpatialEnhLayerFlag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-2.0-dev/source/Lib/TLibEncoder/TEncTop.cpp

    r134 r135  
    501501      TEncPic* pcEPic = new TEncPic;
    502502
     503#if SVC_EXTENSION //Temporal solution, should be modified
     504      if(m_layerId > 0)
     505      {
     506#if VPS_EXTN_DIRECT_REF_LAYERS_CONTINUE
     507        TEncTop *pcEncTopBase = (TEncTop *)getRefLayerEnc( m_layerId );
     508#else
     509        TEncTop *pcEncTopBase = (TEncTop *)getLayerEnc( m_layerId-1 );
     510#endif
     511        if(m_iSourceWidth != pcEncTopBase->getSourceWidth() || m_iSourceHeight != pcEncTopBase->getSourceHeight() )
     512        {
     513          pcEPic->setSpatialEnhLayerFlag( true );
     514        }
     515      }
     516
    503517#if SVC_UPSAMPLING
    504518      pcEPic->create( m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, m_cPPS.getMaxCuDQPDepth()+1 ,
     
    508522                      m_conformanceWindow, m_defaultDisplayWindow, m_numReorderPics);
    509523#endif
     524#endif
    510525      rpcPic = pcEPic;
    511526    }
     
    513528    {
    514529      rpcPic = new TComPic;
    515 
    516 
    517 #if SVC_UPSAMPLING
    518       rpcPic->create( m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth,
    519                       m_conformanceWindow, m_defaultDisplayWindow, m_numReorderPics, &m_cSPS);
    520 #else
    521       rpcPic->create( m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth,
    522                       m_conformanceWindow, m_defaultDisplayWindow, m_numReorderPics);
    523 #endif
    524     }
    525530
    526531#if SVC_EXTENSION //Temporal solution, should be modified
     
    537542        }
    538543      }
    539 #endif
     544
     545#if SVC_UPSAMPLING
     546      rpcPic->create( m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth,
     547                      m_conformanceWindow, m_defaultDisplayWindow, m_numReorderPics, &m_cSPS);
     548#else
     549      rpcPic->create( m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth,
     550                      m_conformanceWindow, m_defaultDisplayWindow, m_numReorderPics);
     551#endif
     552#endif
     553    }
    540554
    541555    if (getUseSAO())
Note: See TracChangeset for help on using the changeset viewer.