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


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

macro cleanup: VPS_EXTN_DIRECT_REF_LAYERS

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

Legend:

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

    r1147 r1148  
    20232023  ::memset(m_outputLayerFlag, 0, sizeof(m_outputLayerFlag));
    20242024#endif
    2025 #if VPS_EXTN_DIRECT_REF_LAYERS
     2025
    20262026  ::memset(m_directDependencyFlag, 0, sizeof(m_directDependencyFlag));
    20272027  ::memset(m_numDirectRefLayers,   0, sizeof(m_numDirectRefLayers  ));
     
    20292029  m_directDepTypeLen = 2;
    20302030  ::memset(m_directDependencyType, 0, sizeof(m_directDependencyType));
    2031 #endif
     2031
    20322032#if !NECESSARY_LAYER_FLAG
    20332033#if DERIVE_LAYER_ID_LIST_VARIABLES
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h

    r1147 r1148  
    660660#endif
    661661#endif
    662 #if VPS_EXTN_DIRECT_REF_LAYERS
     662
    663663  Bool       m_directDependencyFlag[MAX_VPS_LAYER_IDX_PLUS1][MAX_VPS_LAYER_IDX_PLUS1];
    664664  UInt       m_numDirectRefLayers[MAX_VPS_LAYER_IDX_PLUS1];
     
    668668  UInt       m_defaultDirectDependencyType;
    669669  UInt       m_directDependencyType[MAX_VPS_LAYER_IDX_PLUS1][MAX_VPS_LAYER_IDX_PLUS1];
    670 #endif
     670
    671671  UInt       m_numProfileTierLevel;
    672672#if !VPS_EXTN_UEV_CODING
     
    10221022  Void   setOutputLayerFlag(Int layerSet, Int layerIdx, Bool x)  { m_outputLayerFlag[layerSet][layerIdx] = x;    }
    10231023#endif
    1024 #if VPS_EXTN_DIRECT_REF_LAYERS
     1024
    10251025  // Direct dependency of layers
    10261026  Bool   getDirectDependencyFlag(Int currLayerIdx, Int refLayerIdx)             { return m_directDependencyFlag[currLayerIdx][refLayerIdx]; }
     
    10431043  Bool   isSamplePredictionType(Int currLayerIdx, Int refLayerIdx)              { assert(currLayerIdx != refLayerIdx); return ( ( m_directDependencyType[currLayerIdx][refLayerIdx] + 1 ) & 1 ) ? true : false; }
    10441044  Bool   isMotionPredictionType(Int currLayerIdx, Int refLayerIdx)              { assert(currLayerIdx != refLayerIdx); return ( ( ( m_directDependencyType[currLayerIdx][refLayerIdx] + 1 ) & 2 ) >> 1 ) ? true : false; }
    1045 #endif
     1045
    10461046  UInt   getNumProfileTierLevel()                                { return m_numProfileTierLevel; }
    10471047  Void   setNumProfileTierLevel(Int x)                           { m_numProfileTierLevel = x;    }
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1147 r1148  
    130130#define VPS_EXTN_OP_LAYER_SETS           1      ///< Include output layer sets in VPS extension
    131131#define VPS_EXTN_PROFILE_INFO            1      ///< Include profile information for layer sets in VPS extension
    132 #define VPS_EXTN_DIRECT_REF_LAYERS       1      ///< Include indication of direct dependency of layers in VPS extension
    133132
    134133#define VPS_VUI_TILES_NOT_IN_USE__FLAG   1      ///< JCTVC-O0226: VPS VUI flag to indicate tile not in use
  • 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; }
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1146 r1148  
    20672067#endif // VIEW_ID_RELATED_SIGNALING
    20682068
    2069 #if VPS_EXTN_DIRECT_REF_LAYERS
    20702069  for( Int layerCtr = 1; layerCtr < vps->getMaxLayers(); layerCtr++)
    20712070  {
     
    20752074    }
    20762075  }
    2077 #endif
     2076
    20782077#if Q0078_ADD_LAYER_SETS
    20792078  if (vps->getNumIndependentLayers() > 1)
     
    23112310  codeVpsDpbSizeTable(vps);
    23122311#endif
    2313 #if VPS_EXTN_DIRECT_REF_LAYERS
     2312
    23142313  WRITE_UVLC( vps->getDirectDepTypeLen()-2,                           "direct_dep_type_len_minus2");
    23152314
     
    23332332    }
    23342333  }
    2335 #endif
    23362334
    23372335#if P0307_VPS_NON_VUI_EXTENSION
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCfg.h

    r1131 r1148  
    378378  Bool      m_crossLayerBLAFlag;
    379379#endif
    380 #if VPS_EXTN_DIRECT_REF_LAYERS
     380
    381381  Int       m_numDirectRefLayers;
    382382  Int       m_refLayerId[MAX_VPS_LAYER_IDX_PLUS1];
     
    390390  Bool      m_samplePredEnabledFlag[MAX_VPS_LAYER_IDX_PLUS1];
    391391  Bool      m_motionPredEnabledFlag[MAX_VPS_LAYER_IDX_PLUS1];
    392 #endif
     392
    393393  Int       m_maxTidIlRefPicsPlus1;
    394394#if FAST_INTRA_SHVC
     
    10321032  Void      setUseFastIntraScalable         ( Bool  b )      { m_useFastIntraScalable = b; }
    10331033#endif
    1034 #if VPS_EXTN_DIRECT_REF_LAYERS
     1034
    10351035  Int       getNumDirectRefLayers           ()                              { return m_numDirectRefLayers;      }
    10361036  Void      setNumDirectRefLayers           (Int num)                       { m_numDirectRefLayers = num;       }
     
    10621062  Bool      getMotionPredEnabledFlag        (Int layerIdx)                  { return m_motionPredEnabledFlag[layerIdx];  }
    10631063  Void      setMotionPredEnabledFlag        (Int layerIdx,Bool flag)        { m_motionPredEnabledFlag[layerIdx] = flag;  }
    1064 #endif
     1064
    10651065  Int       getMaxTidIlRefPicsPlus1         ()                              { return m_maxTidIlRefPicsPlus1; }
    10661066  Void      setMaxTidIlRefPicsPlus1         (Int num)                       { m_maxTidIlRefPicsPlus1 = num;  }
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r1147 r1148  
    13691369        UInt refLayerIdc = pcSlice->getInterLayerPredLayerIdc(i);
    13701370        UInt refLayerId = pcSlice->getVPS()->getRefLayerId(m_layerId, refLayerIdc);
    1371 #if VPS_EXTN_DIRECT_REF_LAYERS
    13721371        TComList<TComPic*> *cListPic = m_ppcTEncTop[pcSlice->getVPS()->getLayerIdxInVps(m_layerId)]->getRefLayerEnc(refLayerIdc)->getListPic();
    1373 #else
    1374         TComList<TComPic*> *cListPic = m_ppcTEncTop[pcSlice->getVPS()->getLayerIdxInVps(m_layerId)-1]->getListPic();
    1375 #endif
     1372
    13761373        pcSlice->setBaseColPic( *cListPic, refLayerIdc );
    13771374
     
    38743871    {
    38753872#if SVC_EXTENSION
    3876 #if VPS_EXTN_DIRECT_REF_LAYERS
    38773873      if( pcSlice->getRefPic(RefPicList(iRefList), iRefIndex)->isILR(m_layerId) )
    38783874      {
     
    38963892#endif
    38973893      }
    3898 #endif
     3894
    38993895      if( pcSlice->getEnableTMVPFlag() && iRefList == 1 - pcSlice->getColFromL0Flag() && iRefIndex == pcSlice->getColRefIdx() )
    39003896      {
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp

    r1147 r1148  
    624624          Bool zeroPhase = getPPS()->hasZeroResamplingPhase(m_cVPS.getRefLayerId(m_layerId, i));
    625625
    626 #if VPS_EXTN_DIRECT_REF_LAYERS
    627626          TEncTop *pcEncTopBase = (TEncTop *)getRefLayerEnc( i );
    628 #else
    629           TEncTop *pcEncTopBase = (TEncTop *)getLayerEnc( m_layerId-1 );
    630 #endif
    631627#if O0194_DIFFERENT_BITDEPTH_EL_BL
    632628          UInt refLayerId = m_cVPS.getRefLayerId(m_layerId, i);
     
    690686          Bool zeroPhase = getPPS()->hasZeroResamplingPhase(m_cVPS.getRefLayerId(m_layerId, i));
    691687
    692 #if VPS_EXTN_DIRECT_REF_LAYERS
    693688          TEncTop *pcEncTopBase = (TEncTop *)getRefLayerEnc( i );
    694 #else
    695           TEncTop *pcEncTopBase = (TEncTop *)getLayerEnc( m_layerId-1 );
    696 #endif
    697689#if O0194_DIFFERENT_BITDEPTH_EL_BL
    698690          UInt refLayerId = m_cVPS.getRefLayerId(m_layerId, i);
     
    14321424
    14331425#if SVC_EXTENSION
    1434 #if VPS_EXTN_DIRECT_REF_LAYERS
    14351426TEncTop* TEncTop::getRefLayerEnc( UInt refLayerIdx )
    14361427{
     
    14421433  return (TEncTop *)getLayerEnc( m_cVPS.getLayerIdxInVps(m_cVPS.getRefLayerId( m_layerId, refLayerIdx )) );
    14431434}
    1444 #endif
    14451435
    14461436#if !REPN_FORMAT_IN_VPS
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.h

    r1147 r1148  
    253253  Void      encode    ( TComPicYuv* pcPicYuvOrg, const InputColourSpaceConversion snrCSC, TComList<TComPicYuv*>& rcListPicYuvRecOut, std::list<AccessUnit>& accessUnitsOut, Int iPicIdInGOP, Bool isTff );
    254254  Void      encodePrep( TComPicYuv* pcPicYuvOrg, TComPicYuv* pcPicYuvTrueOrg, Bool isTff );
    255 #if VPS_EXTN_DIRECT_REF_LAYERS
     255
    256256  TEncTop*  getRefLayerEnc(UInt refLayerIdx);
    257 #endif
     257
    258258#if POC_RESET_IDC_ENCODER
    259259  Int       getPocAdjustmentValue()      { return m_pocAdjustmentValue;}
Note: See TracChangeset for help on using the changeset viewer.