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


Ignore:
Timestamp:
7 Jul 2015, 23:55:42 (9 years ago)
Author:
seregin
Message:

macro cleanup: O0098_SCALED_REF_LAYER_ID

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

Legend:

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

    r1090 r1147  
    34283428#endif
    34293429
    3430 #if O0098_SCALED_REF_LAYER_ID
    34313430  Int leftStartL = m_pcSlice->getPPS()->getScaledRefLayerWindowForLayer(baseColPic->getSlice(0)->getVPS()->getRefLayerId(getSlice()->getLayerId(), refLayerIdc)).getWindowLeftOffset();
    34323431  Int topStartL  = m_pcSlice->getPPS()->getScaledRefLayerWindowForLayer(baseColPic->getSlice(0)->getVPS()->getRefLayerId(getSlice()->getLayerId(), refLayerIdc)).getWindowTopOffset();
    3433 #else
    3434   Int leftStartL = baseColPic->getSlice(0)->getPPS()->getScaledRefLayerWindow(refLayerIdc).getWindowLeftOffset();
    3435   Int topStartL  = baseColPic->getSlice(0)->getPPS()->getScaledRefLayerWindow(refLayerIdc).getWindowTopOffset();
    3436 #endif
    34373432
    34383433  const Window &windowRL = m_pcSlice->getPPS()->getRefLayerWindowForLayer(baseColPic->getSlice(0)->getVPS()->getRefLayerId(getSlice()->getLayerId(), refLayerIdc));
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp

    r1139 r1147  
    514514        UInt refLayerId = m_pcVPS->getRefLayerId( m_layerId, refLayerIdc );
    515515
    516 #if O0098_SCALED_REF_LAYER_ID
    517516        const Window &scalEL = getPPS()->getScaledRefLayerWindowForLayer(refLayerId);
    518 #else
    519         const Window &scalEL = getPPS()->getScaledRefLayerWindow(m_interLayerPredLayerIdc[i]);
    520 #endif
     517
    521518        Int scalingOffset = ((scalEL.getWindowLeftOffset()   == 0 ) &&
    522519                             (scalEL.getWindowRightOffset()  == 0 ) &&
     
    30743071}
    30753072
     3073#if SVC_EXTENSION
     3074
    30763075#if VPS_EXTN_PROFILE_INFO
    30773076Void ProfileTierLevel::copyProfileInfo(ProfileTierLevel *ptl)
     
    30913090#endif
    30923091
    3093 #if O0098_SCALED_REF_LAYER_ID
    30943092Window& TComPPS::getScaledRefLayerWindowForLayer(Int layerId)
    30953093{
     
    31073105  return win;
    31083106}
    3109 #endif
    3110 
    3111 #if SVC_EXTENSION
     3107
    31123108Window& TComPPS::getRefLayerWindowForLayer(Int layerId)
    31133109{
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h

    r1146 r1147  
    18611861#endif
    18621862  UInt     m_numRefLayerLocationOffsets;
    1863 #if O0098_SCALED_REF_LAYER_ID
    18641863  UInt     m_refLocationOffsetLayerId[MAX_LAYERS];
    1865 #endif
    18661864  Window   m_scaledRefLayerWindow[MAX_LAYERS];
    18671865  Window   m_refLayerWindow[MAX_LAYERS];
     
    20242022  UInt     getNumRefLayerLocationOffsets()       { return m_numRefLayerLocationOffsets; }
    20252023  Void     setNumRefLayerLocationOffsets(Int x)  { m_numRefLayerLocationOffsets = x;    }
    2026 #if O0098_SCALED_REF_LAYER_ID
     2024
    20272025  UInt     getRefLocationOffsetLayerId(Int x)          { return m_refLocationOffsetLayerId[x]; }
    20282026  Void     setRefLocationOffsetLayerId(Int x, UInt id) { m_refLocationOffsetLayerId[x] = id;   }
    20292027  Window&  getScaledRefLayerWindowForLayer( Int layerId );
    2030 #endif
     2028
    20312029  Window&  getScaledRefLayerWindow( Int x )   { return m_scaledRefLayerWindow[x]; }
    20322030  Window&  getRefLayerWindowForLayer( Int layerId );
  • branches/SHM-dev/source/Lib/TLibCommon/TComUpsampleFilter.cpp

    r1090 r1147  
    6363#endif
    6464
    65 #if O0098_SCALED_REF_LAYER_ID
    6665  const Window &scalEL = currSlice->getPPS()->getScaledRefLayerWindowForLayer(refLayerId);
    67 #else
    68   const Window &scalEL = currSlice->getPPS()->getScaledRefLayerWindow(refLayerIdc);
    69 #endif
    7066  const Window &windowRL = currSlice->getPPS()->getRefLayerWindowForLayer(refLayerId);
    7167
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1146 r1147  
    162162#define MAX_REF_LAYERS                   7
    163163#endif
    164 
    165 #define O0098_SCALED_REF_LAYER_ID        1      ///< JCTVC-O0098: signal scaled reference id
    166 
    167164#define Q0165_OUTPUT_LAYER_SET           1      ///< JCTVC-Q0165: add a constraint to disallow an empty output layer set
    168165#define Q0165_NUM_ADD_OUTPUT_LAYER_SETS  1      ///< JCTVC-Q0165: signal num_add_olss and default_target_output_layer_idc when vps_num_layer_sets_minus1 is greater than 0
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r1145 r1147  
    17441744#endif
    17451745
    1746 #if O0098_SCALED_REF_LAYER_ID
    17471746        const Window &scalEL = pcSlice->getPPS()->getScaledRefLayerWindowForLayer(refLayerId);
    1748 #else
    1749         const Window &scalEL = pcSlice->getPPS()->getScaledRefLayerWindow(refLayerIdc);
    1750 #endif
    1751 
    17521747        const Window &windowRL = pcSlice->getPPS()->getRefLayerWindowForLayer(pcSlice->getVPS()->getRefLayerId(m_layerId, refLayerIdc));
    17531748        Int widthBL   = pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec()->getWidth(COMPONENT_Y) - windowRL.getWindowLeftOffset() - windowRL.getWindowRightOffset();
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r1144 r1147  
    13871387        }
    13881388
    1389 #if O0098_SCALED_REF_LAYER_ID
    13901389        const Window &scalEL = m_pcEncTop->getScaledRefLayerWindowForLayer(refLayerId);
    1391 #else
    1392         const Window &scalEL = m_pcEncTop->getScaledRefLayerWindow(refLayerIdc);
    1393 #endif
    1394 
    1395         const Window &windowRL  = m_pcEncTop->getRefLayerWindowForLayer(pcSlice->getVPS()->getRefLayerId(m_layerId, refLayerIdc));
     1390        const Window &windowRL = m_pcEncTop->getRefLayerWindowForLayer(pcSlice->getVPS()->getRefLayerId(m_layerId, refLayerIdc));
    13961391        Int widthBL   = pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec()->getWidth(COMPONENT_Y) - windowRL.getWindowLeftOffset() - windowRL.getWindowRightOffset();
    13971392        Int heightBL  = pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec()->getHeight(COMPONENT_Y) - windowRL.getWindowTopOffset() - windowRL.getWindowBottomOffset();
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp

    r1119 r1147  
    619619        for(UInt i = 0; i < m_cVPS.getNumDirectRefLayers( m_layerId ); i++ )
    620620        {
    621 #if O0098_SCALED_REF_LAYER_ID
    622621          const Window scalEL = getPPS()->getScaledRefLayerWindowForLayer(m_cVPS.getRefLayerId(m_layerId, i));
    623 #else
    624           const Window scalEL = getPPS()->getScaledRefLayerWindow(i);
    625 #endif
    626           const Window altRL  = getPPS()->getRefLayerWindowForLayer(m_cVPS.getRefLayerId(m_layerId, i));
     622          const Window altRL = getPPS()->getRefLayerWindowForLayer(m_cVPS.getRefLayerId(m_layerId, i));
    627623          Bool equalOffsets = scalEL.hasEqualOffset(altRL);
    628624          Bool zeroPhase = getPPS()->hasZeroResamplingPhase(m_cVPS.getRefLayerId(m_layerId, i));
     
    689685        for(UInt i = 0; i < m_cVPS.getNumDirectRefLayers( m_layerId ); i++ )
    690686        {
    691 #if O0098_SCALED_REF_LAYER_ID
    692687          const Window scalEL = getPPS()->getScaledRefLayerWindowForLayer(m_cVPS.getRefLayerId(m_layerId, i));
    693 #else
    694           const Window scalEL = getPPS()->getScaledRefLayerWindow(i);
    695 #endif
    696           const Window altRL  = getPPS()->getRefLayerWindowForLayer(m_cVPS.getRefLayerId(m_layerId, i));
     688          const Window altRL = getPPS()->getRefLayerWindowForLayer(m_cVPS.getRefLayerId(m_layerId, i));
    697689          Bool equalOffsets = scalEL.hasEqualOffset(altRL);
    698690          Bool zeroPhase = getPPS()->hasZeroResamplingPhase(m_cVPS.getRefLayerId(m_layerId, i));
     
    10741066  for(Int i = 0; i < m_cPPS.getNumRefLayerLocationOffsets(); i++)
    10751067  {
    1076 #if O0098_SCALED_REF_LAYER_ID
    10771068    m_cPPS.setRefLocationOffsetLayerId(i, m_refLocationOffsetLayerId[i]);
    1078 #endif
    10791069    m_cPPS.getScaledRefLayerWindow(i) = m_scaledRefLayerWindow[i];
    10801070    m_cPPS.getRefLayerWindow(i) = m_refLayerWindow[i];
     
    15601550#endif
    15611551
    1562 #if O0098_SCALED_REF_LAYER_ID
    15631552Window& TEncTop::getScaledRefLayerWindowForLayer(Int layerId)
    15641553{
     
    15921581  return win;
    15931582}
    1594 #endif
    15951583#endif //SVC_EXTENSION
    15961584//! \}
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.h

    r1131 r1147  
    123123#endif
    124124  UInt                    m_numRefLayerLocationOffsets;
    125 #if O0098_SCALED_REF_LAYER_ID
    126125  UInt                    m_refLocationOffsetLayerId[MAX_LAYERS];
    127 #endif
    128126  Window                  m_scaledRefLayerWindow[MAX_LAYERS];
    129127  UInt                    m_numRefLayerOffsets;
     
    210208  /// encode several number of pictures until end-of-sequence
    211209#if SVC_EXTENSION
    212   Void      setLayerEnc(TEncTop** p)            { m_ppcTEncTop = p;                  }
    213   TEncTop** getLayerEnc()                       { return m_ppcTEncTop;               }
    214   Int       getPOCLast            ()            { return m_iPOCLast;                 }
    215   Int       getNumPicRcvd         ()            { return m_iNumPicRcvd;              }
    216   Void      setNumPicRcvd         ( Int num )   { m_iNumPicRcvd = num;               }
    217   Void      setNumRefLayerLocationOffsets(Int x)  { m_numRefLayerLocationOffsets = x;    }
    218   UInt      getNumRefLayerLocationOffsets()       { return m_numRefLayerLocationOffsets; }
    219 #if O0098_SCALED_REF_LAYER_ID
    220   Void      setRefLocationOffsetLayerId(Int x, UInt id) { m_refLocationOffsetLayerId[x] = id;   }
    221   UInt      getRefLocationOffsetLayerId(Int x)          { return m_refLocationOffsetLayerId[x]; }
     210  Void      setLayerEnc(TEncTop** p)                          { m_ppcTEncTop = p;                  }
     211  TEncTop** getLayerEnc()                                     { return m_ppcTEncTop;               }
     212  Int       getPOCLast()                                      { return m_iPOCLast;                 }
     213  Int       getNumPicRcvd()                                   { return m_iNumPicRcvd;              }
     214  Void      setNumPicRcvd( Int num )                          { m_iNumPicRcvd = num;               }
     215  Void      setNumRefLayerLocationOffsets(Int x)              { m_numRefLayerLocationOffsets = x;    }
     216  UInt      getNumRefLayerLocationOffsets()                   { return m_numRefLayerLocationOffsets; }
     217  Void      setRefLocationOffsetLayerId(Int x, UInt id)       { m_refLocationOffsetLayerId[x] = id;   }
     218  UInt      getRefLocationOffsetLayerId(Int x)                { return m_refLocationOffsetLayerId[x]; }
    222219  Window&   getScaledRefLayerWindowForLayer(Int layerId);
    223 #endif
    224   Window&   getScaledRefLayerWindow(Int x)                 { return m_scaledRefLayerWindow[x];        }
    225   Void      setNumRefLayerOffsets(Int x) { m_numRefLayerOffsets = x; }
    226   UInt      getNumRefLayerOffsets() { return m_numRefLayerOffsets; }
    227   Void      setRefLayerId(Int layerIdx, UInt layerId)     { m_refLayerId[layerIdx] = layerId;  }
    228   UInt      getRefLayerId(Int layerIdx)                   { return m_refLayerId[layerIdx];     }
     220  Window&   getScaledRefLayerWindow(Int x)                    { return m_scaledRefLayerWindow[x];  }
     221  Void      setNumRefLayerOffsets(Int x)                      { m_numRefLayerOffsets = x;          }
     222  UInt      getNumRefLayerOffsets()                           { return m_numRefLayerOffsets;       }
     223  Void      setRefLayerId(Int layerIdx, UInt layerId)         { m_refLayerId[layerIdx] = layerId;  }
     224  UInt      getRefLayerId(Int layerIdx)                       { return m_refLayerId[layerIdx];     }
    229225  Window&   getRefLayerWindowForLayer(Int layerId);
    230   Window&   getRefLayerWindow(Int x)            { return m_refLayerWindow[x]; }
    231   Bool      getScaledRefLayerOffsetPresentFlag(Int x) { return m_scaledRefLayerOffsetPresentFlag[x]; }
     226  Window&   getRefLayerWindow(Int x)                          { return m_refLayerWindow[x]; }
     227  Bool      getScaledRefLayerOffsetPresentFlag(Int x)         { return m_scaledRefLayerOffsetPresentFlag[x]; }
    232228  Void      setScaledRefLayerOffsetPresentFlag(Int x, Bool b) { m_scaledRefLayerOffsetPresentFlag[x] = b; }
    233   Bool      getRefRegionOffsetPresentFlag(Int x) { return m_refRegionOffsetPresentFlag[x]; }
    234   Void      setRefRegionOffsetPresentFlag(Int x, Bool b) { m_refRegionOffsetPresentFlag[x] = b; }
    235   Int       getPhaseHorLuma(Int x) { return m_phaseHorLuma[x]; }
    236   Int       getPhaseVerLuma(Int x) { return m_phaseVerLuma[x]; }
    237   Int       getPhaseHorChroma(Int x) { return m_phaseHorChroma[x]; }
    238   Int       getPhaseVerChroma(Int x) { return m_phaseVerChroma[x]; }
    239   Void      setPhaseHorLuma(Int x, Int val) { m_phaseHorLuma[x] = val; }
    240   Void      setPhaseVerLuma(Int x, Int val) { m_phaseVerLuma[x] = val; }
    241   Void      setPhaseHorChroma(Int x, Int val) { m_phaseHorChroma[x] = val; }
    242   Void      setPhaseVerChroma(Int x, Int val) { m_phaseVerChroma[x] = val; }
    243   Bool      getResamplePhaseSetPresentFlag(Int x) { return m_resamplePhaseSetPresentFlag[x]; }
    244   Void      setResamplePhaseSetPresentFlag(Int x, Bool b) { m_resamplePhaseSetPresentFlag[x] = b; }
    245 
    246   TComPic** getIlpList() { return m_cIlpPic; }
     229  Bool      getRefRegionOffsetPresentFlag(Int x)              { return m_refRegionOffsetPresentFlag[x]; }
     230  Void      setRefRegionOffsetPresentFlag(Int x, Bool b)      { m_refRegionOffsetPresentFlag[x] = b; }
     231  Int       getPhaseHorLuma(Int x)                            { return m_phaseHorLuma[x]; }
     232  Int       getPhaseVerLuma(Int x)                            { return m_phaseVerLuma[x]; }
     233  Int       getPhaseHorChroma(Int x)                          { return m_phaseHorChroma[x]; }
     234  Int       getPhaseVerChroma(Int x)                          { return m_phaseVerChroma[x]; }
     235  Void      setPhaseHorLuma(Int x, Int val)                   { m_phaseHorLuma[x] = val; }
     236  Void      setPhaseVerLuma(Int x, Int val)                   { m_phaseVerLuma[x] = val; }
     237  Void      setPhaseHorChroma(Int x, Int val)                 { m_phaseHorChroma[x] = val; }
     238  Void      setPhaseVerChroma(Int x, Int val)                 { m_phaseVerChroma[x] = val; }
     239  Bool      getResamplePhaseSetPresentFlag(Int x)             { return m_resamplePhaseSetPresentFlag[x]; }
     240  Void      setResamplePhaseSetPresentFlag(Int x, Bool b)     { m_resamplePhaseSetPresentFlag[x] = b; }
     241
     242  TComPic** getIlpList()                                      { return m_cIlpPic; }
    247243#if REF_IDX_MFM
    248   Void      setMFMEnabledFlag       (Bool flag)   { m_bMFMEnabledFlag = flag; }
    249   Bool      getMFMEnabledFlag()                   { return m_bMFMEnabledFlag; }   
     244  Void      setMFMEnabledFlag(Bool flag)                      { m_bMFMEnabledFlag = flag; }
     245  Bool      getMFMEnabledFlag()                               { return m_bMFMEnabledFlag; }   
    250246#endif
    251247#if O0194_WEIGHTED_PREDICTION_CGS
    252   Void      setInterLayerWeightedPredFlag(Bool flag)   { m_interLayerWeightedPredFlag = flag; }
    253   Bool      getInterLayerWeightedPredFlag()            { return m_interLayerWeightedPredFlag; }
     248  Void      setInterLayerWeightedPredFlag(Bool flag)          { m_interLayerWeightedPredFlag = flag; }
     249  Bool      getInterLayerWeightedPredFlag()                   { return m_interLayerWeightedPredFlag; }
    254250#endif
    255251  Void      encode    ( TComPicYuv* pcPicYuvOrg, const InputColourSpaceConversion snrCSC, TComList<TComPicYuv*>& rcListPicYuvRecOut, std::list<AccessUnit>& accessUnitsOut, Int iPicIdInGOP );
Note: See TracChangeset for help on using the changeset viewer.