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


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/TLibEncoder
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • 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.