Changeset 370 in SHVCSoftware for branches/SHM-3.1-dev/source/Lib/TLibCommon/TComDataCU.cpp
- Timestamp:
- 28 Aug 2013, 04:07:11 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-3.1-dev/source/Lib/TLibCommon/TComDataCU.cpp
r345 r370 4006 4006 TComPic* cBaseColPic = m_pcSlice->getBaseColPic(refLayerIdc); 4007 4007 4008 #if !SIMPLIFIED_MV_POS_SCALING4009 #if SVC_UPSAMPLING && !ILP_DECODED_PICTURE4010 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 #else4019 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 #endif4025 #endif4026 4027 4008 uiPelX = (UInt)Clip3<UInt>(0, m_pcPic->getPicYuvRec()->getWidth() - 1, uiPelX); 4028 4009 uiPelY = (UInt)Clip3<UInt>(0, m_pcPic->getPicYuvRec()->getHeight() - 1, uiPelY); … … 4030 4011 UInt uiMinUnitSize = m_pcPic->getMinCUWidth(); 4031 4012 4032 #if SIMPLIFIED_MV_POS_SCALING4033 4013 #if SCALED_REF_LAYER_OFFSETS 4034 4014 Int leftStartL = this->getSlice()->getSPS()->getScaledRefLayerWindow(refLayerIdc).getWindowLeftOffset(); … … 4040 4020 Int iBY = (uiPelY*g_posScalingFactor[refLayerIdc][1] + (1<<15)) >> 16; 4041 4021 #endif 4042 #else4043 Int iBX = (uiPelX*widthBL + widthEL/2)/widthEL;4044 Int iBY = (uiPelY*heightBL+ heightEL/2)/heightEL;4045 #endif4046 4022 4047 4023 #if N0139_POSITION_ROUNDING_OFFSET … … 4090 4066 TComMvField cMvFieldBase; 4091 4067 TComMv cMv; 4092 #if SIMPLIFIED_MV_POS_SCALING 4068 4093 4069 cMv = rcMvFieldBase.getMv().scaleMv( g_mvScalingFactor[refLayerIdc][0], g_mvScalingFactor[refLayerIdc][1] ); 4094 #else4095 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 #endif4109 4070 4110 4071 rcMvFieldEnhance.setMvField( cMv, rcMvFieldBase.getRefIdx() );
Note: See TracChangeset for help on using the changeset viewer.