Changeset 1148 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder


Ignore:
Timestamp:
8 Jul 2015, 00:10:36 (11 years ago)
Author:
seregin
Message:

macro cleanup: VPS_EXTN_DIRECT_REF_LAYERS

Location:
branches/SHM-dev/source/Lib/TLibDecoder
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1146 r1148  
    27642764#endif
    27652765#endif // view id related signaling
    2766 #if VPS_EXTN_DIRECT_REF_LAYERS
     2766
    27672767  // For layer 0
    27682768  vps->setNumDirectRefLayers(0, 0);
     
    27832783    vps->setNumDirectRefLayers(layerId, numDirectRefLayers);
    27842784  }
    2785 #endif
     2785
    27862786#if Q0078_ADD_LAYER_SETS
    27872787#if O0092_0094_DEPENDENCY_CONSTRAINT // Moved here
     
    32443244#endif
    32453245
    3246 #if VPS_EXTN_DIRECT_REF_LAYERS
    32473246  READ_UVLC( uiCode,           "direct_dep_type_len_minus2"); vps->setDirectDepTypeLen(uiCode+2);
    32483247
     
    32743273    }
    32753274  }
    3276 #endif
     3275
    32773276#if !Q0078_ADD_LAYER_SETS
    32783277#if O0092_0094_DEPENDENCY_CONSTRAINT // Moved up
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecGop.cpp

    r1089 r1148  
    210210    {
    211211#if SVC_EXTENSION
    212 #if VPS_EXTN_DIRECT_REF_LAYERS
    213212      if( pcSlice->getRefPic(RefPicList(iRefList), iRefIndex)->isILR( m_layerId ) )
    214213      {
     
    224223        printf ("%d", pcSlice->getRefPOC(RefPicList(iRefList), iRefIndex));
    225224      }
    226 #endif
     225
    227226      if( pcSlice->getEnableTMVPFlag() && iRefList == 1 - pcSlice->getColFromL0Flag() && iRefIndex == pcSlice->getColRefIdx() )
    228227      {
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r1147 r1148  
    748748
    749749#if SVC_EXTENSION
    750 #if VPS_EXTN_DIRECT_REF_LAYERS
    751750  setRefLayerParams(m_apcSlicePilot->getVPS());
    752 #endif
    753751  m_apcSlicePilot->setNumMotionPredRefLayers(m_numMotionPredRefLayers);
    754752#endif
     
    17231721        else
    17241722        {
    1725 #if VPS_EXTN_DIRECT_REF_LAYERS
    17261723          TDecTop *pcTDecTop = (TDecTop *)getRefLayerDec( refLayerIdc );
    1727 #else
    1728           TDecTop *pcTDecTop = (TDecTop *)getLayerDec( m_layerId-1 );
    1729 #endif
    17301724          TComList<TComPic*> *cListPic = pcTDecTop->getListPic();
    17311725          if( !pcSlice->setBaseColPic ( *cListPic, refLayerIdc ) )
     
    17351729        }
    17361730#else
    1737 #if VPS_EXTN_DIRECT_REF_LAYERS
    17381731        TDecTop *pcTDecTop = (TDecTop *)getRefLayerDec( refLayerIdc );
    1739 #else
    1740         TDecTop *pcTDecTop = (TDecTop *)getLayerDec( m_layerId-1 );
    1741 #endif
    17421732        TComList<TComPic*> *cListPic = pcTDecTop->getListPic();
    17431733        pcSlice->setBaseColPic ( *cListPic, refLayerIdc );
     
    18211811        else
    18221812        {
    1823 #if VPS_EXTN_DIRECT_REF_LAYERS
    18241813          TDecTop *pcTDecTop = (TDecTop *)getRefLayerDec( refLayerIdc );
    1825 #else
    1826           TDecTop *pcTDecTop = (TDecTop *)getLayerDec( m_layerId-1 );
    1827 #endif
    18281814          TComList<TComPic*> *cListPic = pcTDecTop->getListPic();
    18291815          pcSlice->setBaseColPic ( *cListPic, refLayerIdc );
    18301816        }
    18311817#else
    1832 #if VPS_EXTN_DIRECT_REF_LAYERS
    18331818        TDecTop *pcTDecTop = (TDecTop *)getRefLayerDec( refLayerIdc );
    1834 #else
    1835         TDecTop *pcTDecTop = (TDecTop *)getLayerDec( m_layerId-1 );
    1836 #endif
    18371819        TComList<TComPic*> *cListPic = pcTDecTop->getListPic();
    18381820        pcSlice->setBaseColPic ( *cListPic, refLayerIdc );
     
    24402422}
    24412423
    2442 #if VPS_EXTN_DIRECT_REF_LAYERS
    24432424TDecTop* TDecTop::getRefLayerDec( UInt refLayerIdx )
    24442425{
     
    24512432  return (TDecTop *)getLayerDec( vps->getRefLayerId( m_layerId, refLayerIdx ) );
    24522433}
    2453 #endif
    2454 
    2455 #if VPS_EXTN_DIRECT_REF_LAYERS
     2434
    24562435Void TDecTop::setRefLayerParams( TComVPS* vps )
    24572436{
     
    24792458  }
    24802459}
    2481 #endif
    24822460
    24832461#if OUTPUT_LAYER_SET_INDEX
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.h

    r1145 r1148  
    143143#endif
    144144#endif
    145 #if VPS_EXTN_DIRECT_REF_LAYERS
     145
    146146  Int                     m_numDirectRefLayers;
    147147  Int                     m_refLayerId[MAX_VPS_LAYER_IDX_PLUS1];
    148148  Int                     m_numSamplePredRefLayers;
    149149  Int                     m_numMotionPredRefLayers;
    150 #endif
     150
    151151  TComPic*                m_cIlpPic[MAX_NUM_REF];                    ///<  Inter layer Prediction picture =  upsampled picture
    152152#if OUTPUT_LAYER_SET_INDEX
     
    243243  TDecTop*  getLayerDec                     (UInt layerId)                  { return m_ppcTDecTop[layerId];    }
    244244  Void      xDeriveSmallestLayerId(TComVPS* vps);
    245 #if VPS_EXTN_DIRECT_REF_LAYERS
     245
    246246  TDecTop*  getRefLayerDec                  (UInt refLayerIdx);
    247247  Int       getNumDirectRefLayers           ()                              { return m_numDirectRefLayers;      }
     
    258258
    259259  Void      setRefLayerParams( TComVPS* vps );
    260 #endif
     260
    261261#if AVC_BASE
    262262  Void      setBLReconFile( fstream* pFile ) { m_pBLReconFile = pFile; }
Note: See TracChangeset for help on using the changeset viewer.