Changeset 703 in SHVCSoftware for branches/SHM-6-dev


Ignore:
Timestamp:
19 Apr 2014, 00:52:06 (11 years ago)
Author:
seregin
Message:

remove scalEL window argument from the upsampling function

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

Legend:

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

    r693 r703  
    768768#if O0215_PHASE_ALIGNMENT
    769769#if O0194_JOINT_US_BITSHIFT
    770 Void TComPrediction::upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, Bool phaseAlignFlag )
    771 {
    772   m_cUsf.upsampleBasePic( currSlice, refLayerIdc, pcUsPic, pcBasePic, pcTempPic, window, phaseAlignFlag );
     770Void TComPrediction::upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, Bool phaseAlignFlag )
     771{
     772  m_cUsf.upsampleBasePic( currSlice, refLayerIdc, pcUsPic, pcBasePic, pcTempPic, phaseAlignFlag );
    773773}
    774774#else
  • branches/SHM-6-dev/source/Lib/TLibCommon/TComPrediction.h

    r693 r703  
    121121#if O0215_PHASE_ALIGNMENT
    122122#if O0194_JOINT_US_BITSHIFT
    123   Void upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, Bool phaseAlignFlag );
     123  Void upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, Bool phaseAlignFlag );
    124124#else
    125125  Void upsampleBasePic( UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, Bool phaseAlignFlag );
  • branches/SHM-6-dev/source/Lib/TLibCommon/TComUpsampleFilter.cpp

    r695 r703  
    9999#if O0215_PHASE_ALIGNMENT
    100100#if O0194_JOINT_US_BITSHIFT
    101 Void TComUpsampleFilter::upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, bool phaseAlignFlag )
    102 #else
    103 Void TComUpsampleFilter::upsampleBasePic( UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, bool phaseAlignFlag )
     101Void TComUpsampleFilter::upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, Bool phaseAlignFlag )
     102#else
     103Void TComUpsampleFilter::upsampleBasePic( UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, Bool phaseAlignFlag )
    104104#endif
    105105#else
     
    116116  Int i, j;
    117117
     118#if O0194_JOINT_US_BITSHIFT
     119  UInt currLayerId = currSlice->getLayerId();
     120  UInt refLayerId  = currSlice->getVPS()->getRefLayerId( currLayerId, refLayerIdc );
     121#endif
     122
     123#if O0098_SCALED_REF_LAYER_ID
     124  const Window &scalEL = currSlice->getSPS()->getScaledRefLayerWindowForLayer(refLayerId);
     125#else
     126  const Window &scalEL = currSlice->getSPS()->getScaledRefLayerWindow(refLayerIdc);
     127#endif
     128
    118129  //========== Y component upsampling ===========
    119   const Window &scalEL = window;
    120 
    121130  Int widthBL   = pcBasePic->getWidth ();
    122131  Int heightBL  = pcBasePic->getHeight();
     
    126135  Int heightEL  = pcUsPic->getHeight() - scalEL.getWindowTopOffset()  - scalEL.getWindowBottomOffset();
    127136  Int strideEL  = pcUsPic->getStride();
     137
    128138#if Q0200_CONFORMANCE_BL_SIZE
    129139  const Window &confBL = currSlice->getBaseColPic(refLayerIdc)->getConformanceWindow();
     
    162172  Int scaleX = g_posScalingFactor[refLayerIdc][0];
    163173  Int scaleY = g_posScalingFactor[refLayerIdc][1];
    164 
    165 #if O0194_JOINT_US_BITSHIFT
    166   UInt currLayerId = currSlice->getLayerId();
    167   UInt refLayerId  = currSlice->getVPS()->getRefLayerId( currLayerId, refLayerIdc );
    168 #endif
    169174
    170175  // non-normative software optimization for certain simple resampling cases
     
    419424    heightBL  = pcBasePic->getHeight();
    420425#if Q0200_CONFORMANCE_BL_SIZE
    421     widthBL  -= confBL.getWindowLeftOffset()+confBL.getWindowRightOffset();
    422     heightBL -= confBL.getWindowBottomOffset()+confBL.getWindowTopOffset();
     426    widthBL  -= confBL.getWindowLeftOffset() + confBL.getWindowRightOffset();
     427    heightBL -= confBL.getWindowBottomOffset() + confBL.getWindowTopOffset();
    423428#endif
    424429    widthEL   = pcUsPic->getWidth () - scalEL.getWindowLeftOffset() - scalEL.getWindowRightOffset();
  • branches/SHM-6-dev/source/Lib/TLibCommon/TComUpsampleFilter.h

    r693 r703  
    4545#if O0215_PHASE_ALIGNMENT
    4646#if O0194_JOINT_US_BITSHIFT
    47   Void upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, Bool phaseAlignFlag );
     47  Void upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, Bool phaseAlignFlag );
    4848#else
    4949  Void upsampleBasePic( UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, Bool phaseAlignFlag );
  • branches/SHM-6-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r697 r703  
    15871587#if O0194_JOINT_US_BITSHIFT
    15881588#if Q0048_CGS_3D_ASYMLUT
    1589           m_cPrediction.upsampleBasePic( pcSlice, refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pBaseColRec, pcPic->getPicYuvRec(), scalEL, pcSlice->getVPS()->getPhaseAlignFlag() );
    1590 #else
    1591           m_cPrediction.upsampleBasePic( pcSlice, refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec(), pcPic->getPicYuvRec(), scalEL, pcSlice->getVPS()->getPhaseAlignFlag() );
     1589          m_cPrediction.upsampleBasePic( pcSlice, refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pBaseColRec, pcPic->getPicYuvRec(), pcSlice->getVPS()->getPhaseAlignFlag() );
     1590#else
     1591          m_cPrediction.upsampleBasePic( pcSlice, refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec(), pcPic->getPicYuvRec(), pcSlice->getVPS()->getPhaseAlignFlag() );
    15921592#endif
    15931593#else
  • branches/SHM-6-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r700 r703  
    11001100#if O0194_JOINT_US_BITSHIFT
    11011101#if Q0048_CGS_3D_ASYMLUT
    1102           m_pcPredSearch->upsampleBasePic( pcSlice, refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pBaseColRec, pcPic->getPicYuvRec(), scalEL, pcSlice->getVPS()->getPhaseAlignFlag() );
    1103 #else
    1104           m_pcPredSearch->upsampleBasePic( pcSlice, refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec(), pcPic->getPicYuvRec(), scalEL, pcSlice->getVPS()->getPhaseAlignFlag() );
     1102          m_pcPredSearch->upsampleBasePic( pcSlice, refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pBaseColRec, pcPic->getPicYuvRec(), pcSlice->getVPS()->getPhaseAlignFlag() );
     1103#else
     1104          m_pcPredSearch->upsampleBasePic( pcSlice, refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec(), pcPic->getPicYuvRec(), pcSlice->getVPS()->getPhaseAlignFlag() );
    11051105#endif
    11061106#else
Note: See TracChangeset for help on using the changeset viewer.