Changeset 1512 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibCommon


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/TLibCommon
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified 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();
  • TabularUnified 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];                   }
  • TabularUnified 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() );     
Note: See TracChangeset for help on using the changeset viewer.