Changeset 1512 in SHVCSoftware


Ignore:
Timestamp:
15 Dec 2015, 19:47:27 (9 years ago)
Author:
seregin
Message:

rename isSpatialEnhLayer to requireResampling for clarity since the difference may be in bitdepth only

Location:
branches/SHM-dev/source/Lib
Files:
7 edited

Legend:

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

    r1503 r1512  
    6262#if SVC_EXTENSION
    6363  memset( m_pcFullPelBaseRec, 0, sizeof( m_pcFullPelBaseRec ) );
    64   memset( m_bSpatialEnhLayer, false, sizeof( m_bSpatialEnhLayer ) );
     64  memset( m_requireResampling, false, sizeof( m_requireResampling ) );
    6565  memset( m_equalPictureSizeAndOffsetFlag, false, sizeof( m_equalPictureSizeAndOffsetFlag ) );
    6666  memset( m_mvScalingFactor, 0, sizeof( m_mvScalingFactor ) );
     
    100100  for( Int i = 0; i < MAX_LAYERS; i++ )
    101101  {
    102     if( m_bSpatialEnhLayer[i] )
     102    if( m_requireResampling[i] )
    103103    {
    104104      m_pcFullPelBaseRec[i] = new TComPicYuv;  m_pcFullPelBaseRec[i]->create( iWidth, iHeight, chromaFormatIDC, uiMaxCuWidth, uiMaxCuHeight, uiMaxDepth, true, &conformanceWindow );
     
    158158  for( Int i = 0; i < MAX_LAYERS; i++ )
    159159  {
    160     if( m_bSpatialEnhLayer[i] && m_pcFullPelBaseRec[i] )
     160    if( m_requireResampling[i] && m_pcFullPelBaseRec[i] )
    161161    {
    162162      m_pcFullPelBaseRec[i]->destroy();
  • branches/SHM-dev/source/Lib/TLibCommon/TComPic.h

    r1503 r1512  
    8686
    8787#if SVC_EXTENSION
    88   UInt                  m_layerId;              //  Layer ID
    89   Bool                  m_bSpatialEnhLayer[MAX_LAYERS];       // whether current layer is a spatial enhancement layer,
     88  UInt                  m_layerId;                         //  Layer ID
     89  Bool                  m_requireResampling[MAX_LAYERS];   // whether current layer requires resampling
    9090  TComPicYuv*           m_pcFullPelBaseRec[MAX_LAYERS];    // upsampled base layer recontruction for difference domain inter prediction
    9191  Bool                  m_equalPictureSizeAndOffsetFlag[MAX_LAYERS];
     
    192192  UInt          getLayerId() const                                          { return m_layerId;                                          }
    193193  UInt          getLayerIdx() const                                         { return m_picSym.getSlice(0)->getVPS()->getLayerIdxInVps(m_layerId);     }
    194   Bool          isSpatialEnhLayer(UInt refLayerIdc) const                   { return m_bSpatialEnhLayer[refLayerIdc];                    }
    195   Void          setSpatialEnhLayerFlag (UInt refLayerIdc, Bool b)           { m_bSpatialEnhLayer[refLayerIdc] = b;                       }
     194  Bool          requireResampling(UInt refLayerIdc) const                   { return m_requireResampling[refLayerIdc];                   }
     195  Void          setRequireResamplingFlag (UInt refLayerIdc, Bool b)         { m_requireResampling[refLayerIdc] = b;                      }
    196196  Void          setFullPelBaseRec   (UInt refLayerIdc, TComPicYuv* p)       { m_pcFullPelBaseRec[refLayerIdc] = p;                       }
    197197  TComPicYuv*   getFullPelBaseRec   (UInt refLayerIdc) const                { return  m_pcFullPelBaseRec[refLayerIdc];                   }
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp

    r1503 r1512  
    33333333
    33343334      // copy scalability ratio, it is needed to get the correct location for the motion field of the corresponding reference layer block
    3335       pcIlpPic[refLayerIdc]->setSpatialEnhLayerFlag( refLayerIdc, m_pcPic->isSpatialEnhLayer(refLayerIdc) );
     3335      pcIlpPic[refLayerIdc]->setRequireResamplingFlag( refLayerIdc, m_pcPic->requireResampling(refLayerIdc) );
    33363336
    33373337      pcIlpPic[refLayerIdc]->copyUpsampledPictureYuv( m_pcPic->getFullPelBaseRec( refLayerIdc ), pcIlpPic[refLayerIdc]->getPicYuvRec() );     
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r1510 r1512  
    272272    if(m_layerId > 0)
    273273    {
    274       xSetSpatialEnhLayerFlag( vps, sps, pps, rpcPic );
     274      xSetRequireResamplingFlag( vps, sps, pps, rpcPic );
    275275    }
    276276
     
    321321  if( m_layerId > 0 )
    322322  {
    323     xSetSpatialEnhLayerFlag( vps, sps, pps, rpcPic );
     323    xSetRequireResamplingFlag( vps, sps, pps, rpcPic );
    324324  }
    325325
     
    17111711#endif
    17121712
    1713         if( m_pcPic->isSpatialEnhLayer(refLayerIdc) )
     1713        if( m_pcPic->requireResampling(refLayerIdc) )
    17141714        {
    17151715          // check for the sample prediction picture type
     
    25902590}
    25912591
    2592 Void TDecTop::xSetSpatialEnhLayerFlag( const TComVPS &vps, const TComSPS &sps, const TComPPS &pps, TComPic* pic )
     2592Void TDecTop::xSetRequireResamplingFlag( const TComVPS &vps, const TComSPS &sps, const TComPPS &pps, TComPic* pic )
    25932593{
    25942594  for(UInt i = 0; i < vps.getNumDirectRefLayers( m_layerId ); i++ )
     
    26202620      )
    26212621    {
    2622       pic->setSpatialEnhLayerFlag( i, true );
     2622      pic->setRequireResamplingFlag( i, true );
    26232623
    26242624      //only for scalable extension
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.h

    r1505 r1512  
    262262
    263263#if CONFORMANCE_BITSTREAM_MODE
    264   std::vector<TComPic>* getConfListPic() { return &m_confListPic; }
    265   Bool      getConfModeFlag() const      { return m_confModeFlag; }
    266   Void      setConfModeFlag(Bool x)      { m_confModeFlag = x;    }
     264  std::vector<TComPic>* getConfListPic()                                    { return &m_confListPic; }
     265  Bool      getConfModeFlag() const                                         { return m_confModeFlag; }
     266  Void      setConfModeFlag(Bool x)                                         { m_confModeFlag = x;    }
    267267#endif
    268268#endif //SVC_EXTENSION
     
    279279#if SVC_EXTENSION
    280280  Bool      xDecodeSlice(InputNALUnit &nalu, Int &iSkipFrame, Int iPOCLastDisplay, UInt& curLayerId, Bool& bNewPOC);
    281   Void      xSetSpatialEnhLayerFlag( const TComVPS &vps, const TComSPS &sps, const TComPPS &pps, TComPic* pic );
     281  Void      xSetRequireResamplingFlag( const TComVPS &vps, const TComSPS &sps, const TComPPS &pps, TComPic* pic );
    282282#else
    283283  Bool      xDecodeSlice(InputNALUnit &nalu, Int &iSkipFrame, Int iPOCLastDisplay);
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r1502 r1512  
    16521652          m_Enc3DAsymLUTPicUpdate.addRefLayerId( pcSlice->getVPS()->getRefLayerId(m_layerId, refLayerIdc) );
    16531653
    1654           if( pcSlice->getPic()->getPosScalingFactor(refLayerIdc, 0) < POS_SCALING_FACTOR_1X || pcSlice->getPic()->getPosScalingFactor(refLayerIdc, 1) < POS_SCALING_FACTOR_1X ) //if(pcPic->isSpatialEnhLayer(refLayerIdc))
     1654          if( pcSlice->getPic()->getPosScalingFactor(refLayerIdc, 0) < POS_SCALING_FACTOR_1X || pcSlice->getPic()->getPosScalingFactor(refLayerIdc, 1) < POS_SCALING_FACTOR_1X ) //if(pcPic->requireResampling(refLayerIdc))
    16551655          {
    16561656            //downsampling
     
    16811681#endif
    16821682
    1683         if( pcPic->isSpatialEnhLayer(refLayerIdc) )
     1683        if( pcPic->requireResampling(refLayerIdc) )
    16841684        {
    16851685          // check for the sample prediction picture type
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp

    r1503 r1512  
    741741            )
    742742          {
    743             pcEPic->setSpatialEnhLayerFlag( i, true );
     743            pcEPic->setRequireResamplingFlag( i, true );
    744744
    745745            //only for scalable extension
     
    786786            )
    787787          {
    788             rpcPic->setSpatialEnhLayerFlag( i, true );
     788            rpcPic->setRequireResamplingFlag( i, true );
    789789
    790790            //only for scalable extension
Note: See TracChangeset for help on using the changeset viewer.