Ignore:
Timestamp:
28 Aug 2013, 04:07:11 (11 years ago)
Author:
seregin
Message:

remove SIMPLIFIED_MV_POS_SCALING macro

File:
1 edited

Legend:

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

    r345 r370  
    40064006  TComPic* cBaseColPic = m_pcSlice->getBaseColPic(refLayerIdc);
    40074007
    4008 #if !SIMPLIFIED_MV_POS_SCALING
    4009 #if SVC_UPSAMPLING && !ILP_DECODED_PICTURE
    4010   const Window &confBL = cBaseColPic->getPicYuvRec()->getConformanceWindow();
    4011   const Window &confEL = m_pcPic->getPicYuvRec()->getConformanceWindow();
    4012 
    4013   Int widthBL   = m_pcSlice->getBaseColPic()->getPicYuvRec()->getWidth () - confBL.getWindowLeftOffset() - confBL.getWindowRightOffset();
    4014   Int heightBL  = m_pcSlice->getBaseColPic()->getPicYuvRec()->getHeight() - confBL.getWindowTopOffset() - confBL.getWindowBottomOffset();
    4015 
    4016   Int widthEL   = m_pcPic->getPicYuvRec()->getWidth() - confEL.getWindowLeftOffset() - confEL.getWindowRightOffset();
    4017   Int heightEL  = m_pcPic->getPicYuvRec()->getHeight() - confEL.getWindowTopOffset() - confEL.getWindowBottomOffset();
    4018 #else
    4019   Int widthBL   = cBaseColPic->getPicYuvRec()->getWidth();
    4020   Int heightBL  = cBaseColPic->getPicYuvRec()->getHeight();
    4021 
    4022   Int widthEL   = m_pcPic->getPicYuvRec()->getWidth();
    4023   Int heightEL  = m_pcPic->getPicYuvRec()->getHeight();
    4024 #endif
    4025 #endif
    4026 
    40274008  uiPelX = (UInt)Clip3<UInt>(0, m_pcPic->getPicYuvRec()->getWidth() - 1, uiPelX);
    40284009  uiPelY = (UInt)Clip3<UInt>(0, m_pcPic->getPicYuvRec()->getHeight() - 1, uiPelY);
     
    40304011  UInt uiMinUnitSize = m_pcPic->getMinCUWidth();
    40314012
    4032 #if SIMPLIFIED_MV_POS_SCALING
    40334013#if SCALED_REF_LAYER_OFFSETS
    40344014  Int leftStartL = this->getSlice()->getSPS()->getScaledRefLayerWindow(refLayerIdc).getWindowLeftOffset();
     
    40404020  Int iBY = (uiPelY*g_posScalingFactor[refLayerIdc][1] + (1<<15)) >> 16;
    40414021#endif
    4042 #else
    4043   Int iBX = (uiPelX*widthBL + widthEL/2)/widthEL;
    4044   Int iBY = (uiPelY*heightBL+ heightEL/2)/heightEL;
    4045 #endif
    40464022
    40474023#if N0139_POSITION_ROUNDING_OFFSET
     
    40904066  TComMvField cMvFieldBase;
    40914067  TComMv cMv;
    4092 #if SIMPLIFIED_MV_POS_SCALING
     4068
    40934069  cMv = rcMvFieldBase.getMv().scaleMv( g_mvScalingFactor[refLayerIdc][0], g_mvScalingFactor[refLayerIdc][1] );
    4094 #else
    4095   const Window &confBL = m_pcSlice->getBaseColPic()->getPicYuvRec()->getConformanceWindow();
    4096   const Window &confEL = m_pcPic->getPicYuvRec()->getConformanceWindow();
    4097 
    4098   Int widthBL   = m_pcSlice->getBaseColPic()->getPicYuvRec()->getWidth () - confBL.getWindowLeftOffset() - confBL.getWindowRightOffset();
    4099   Int heightBL  = m_pcSlice->getBaseColPic()->getPicYuvRec()->getHeight() - confBL.getWindowTopOffset() - confBL.getWindowBottomOffset();
    4100 
    4101   Int widthEL   = m_pcPic->getPicYuvRec()->getWidth() - confEL.getWindowLeftOffset() - confEL.getWindowRightOffset();
    4102   Int heightEL  = m_pcPic->getPicYuvRec()->getHeight() - confEL.getWindowTopOffset() - confEL.getWindowBottomOffset();
    4103 
    4104   Int iMvX = (rcMvFieldBase.getHor()*widthEL + (widthBL/2 -1) * (rcMvFieldBase.getHor() > 0 ? 1: -1) )/widthBL;
    4105   Int iMvY = (rcMvFieldBase.getVer()*heightEL + (heightBL/2 -1) * (rcMvFieldBase.getVer() > 0 ? 1: -1) )/heightBL;
    4106 
    4107   cMv.set(iMvX, iMvY);
    4108 #endif
    41094070
    41104071  rcMvFieldEnhance.setMvField( cMv, rcMvFieldBase.getRefIdx() );
Note: See TracChangeset for help on using the changeset viewer.