Changeset 141 in SHVCSoftware for branches/SHM-2.0-dev/source


Ignore:
Timestamp:
2 May 2013, 19:28:50 (12 years ago)
Author:
seregin
Message:

clean up macro MV_SCALING_FIX

Location:
branches/SHM-2.0-dev/source/Lib/TLibCommon
Files:
2 edited

Legend:

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

    r139 r141  
    42454245  cMv = rcMvFieldBase.getMv().scaleMv( g_mvScalingFactor[m_layerId][0], g_mvScalingFactor[m_layerId][1] );
    42464246#else
    4247 #if MV_SCALING_FIX
    42484247  const Window &confBL = m_pcSlice->getBaseColPic()->getPicYuvRec()->getConformanceWindow();
    42494248  const Window &confEL = m_pcPic->getPicYuvRec()->getConformanceWindow();
     
    42544253  Int widthEL   = m_pcPic->getPicYuvRec()->getWidth() - confEL.getWindowLeftOffset() - confEL.getWindowRightOffset();
    42554254  Int heightEL  = m_pcPic->getPicYuvRec()->getHeight() - confEL.getWindowTopOffset() - confEL.getWindowBottomOffset();
    4256 #else
    4257   Int widthBL   = m_pcSlice->getBaseColPic()->getPicYuvRec()->getWidth();
    4258   Int heightBL  = m_pcSlice->getBaseColPic()->getPicYuvRec()->getHeight();
    4259 
    4260   Int widthEL   = m_pcPic->getPicYuvRec()->getWidth();
    4261   Int heightEL  = m_pcPic->getPicYuvRec()->getHeight();
    4262 #endif
    42634255
    42644256  Int iMvX = (rcMvFieldBase.getHor()*widthEL + (widthBL/2 -1) * (rcMvFieldBase.getHor() > 0 ? 1: -1) )/widthBL;
  • branches/SHM-2.0-dev/source/Lib/TLibCommon/TypeDef.h

    r140 r141  
    6262#define CHROMA_UPSAMPLING                1      ///< L0335: Chroma upsampling with 5 bits coefficients
    6363
    64 #define MV_SCALING_FIX                   1      ///< fixing the base layer MV scaling
    6564#define MV_SCALING_POS_FIX               1      ///< use center pixels to get co-located base layer block
    6665#define SIMPLIFIED_MV_POS_SCALING        1      ///< M0133/M0449: inter-layer MV scaling and pixel mapping position calculation
Note: See TracChangeset for help on using the changeset viewer.