Changeset 1605 in SHVCSoftware
- Timestamp:
- 10 Jan 2018, 22:45:06 (7 years ago)
- Location:
- branches/SHM-dev/source/Lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComDataCU.cpp
r1600 r1605 3252 3252 3253 3253 const Window &windowRL = m_pcSlice->getPPS()->getRefLayerWindowForLayer(baseColPic->getSlice(0)->getVPS()->getRefLayerId(getSlice()->getLayerId(), refLayerIdc)); 3254 Int iBX = (((iPelX - leftStartL) * posScalingFactor[0][refLayerIdc] + (1<<15)) >> 16) + windowRL.getWindowLeftOffset();3255 Int iBY = (((iPelY - topStartL ) * posScalingFactor[1][refLayerIdc] + (1<<15)) >> 16) + windowRL.getWindowTopOffset();3254 Int iBX = Int( ( Int64( iPelX - leftStartL ) * posScalingFactor[0][refLayerIdc] + ( 1 << 15 ) ) >> 16 ) + windowRL.getWindowLeftOffset(); 3255 Int iBY = Int( ( Int64( iPelY - topStartL ) * posScalingFactor[1][refLayerIdc] + ( 1 << 15 ) ) >> 16 ) + windowRL.getWindowTopOffset(); 3256 3256 3257 3257 // offset for collocated block in the motion mapping -
branches/SHM-dev/source/Lib/TLibCommon/TComUpsampleFilter.cpp
r1503 r1605 271 271 { 272 272 Int x = i; 273 refPos16 = (((x - phaseXL)*scaleX - addX) >> shiftXM4) + refOffsetX;273 refPos16 = Int( ( Int64( x - phaseXL )*scaleX - addX ) >> shiftXM4 ) + refOffsetX; 274 274 phase = refPos16 & 15; 275 275 refPos = refPos16 >> 4; … … 300 300 { 301 301 Int y = j; 302 refPos16 = ((( y - phaseYL )*scaleY - addY) >> shiftYM4) + refOffsetY;302 refPos16 = Int( ( Int64( y - phaseYL )*scaleY - addY ) >> shiftYM4 ) + refOffsetY; 303 303 phase = refPos16 & 15; 304 304 refPos = refPos16 >> 4; … … 400 400 { 401 401 Int x = i; 402 refPos16 = (((x - srlLOffsetC)*scaleX - addX) >> shiftXM4) + refOffsetXC;402 refPos16 = Int( ( Int64( x - srlLOffsetC )*scaleX - addX ) >> shiftXM4 ) + refOffsetXC; 403 403 phase = refPos16 & 15; 404 404 refPos = refPos16 >> 4; … … 448 448 { 449 449 Int y = j; 450 refPos16 = (((y - srlTOffsetC)*scaleY - addY) >> shiftYM4) + refOffsetYC;450 refPos16 = Int( ( Int64( y - srlTOffsetC )*scaleY - addY ) >> shiftYM4 ) + refOffsetYC; 451 451 phase = refPos16 & 15; 452 452 refPos = refPos16 >> 4; -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp
r1600 r1605 1715 1715 heightEL == heightBL ? MV_SCALING_FACTOR_1X : Clip3(-4096, 4095, ((heightEL << 8) + (heightBL >> 1)) / heightBL) ); 1716 1716 1717 m_pcPic->setPosScalingFactor( refLayerIdc, 1718 ((widthBL << 16) + (widthEL >> 1)) / widthEL, 1719 ((heightBL << 16) + (heightEL >> 1)) / heightEL ); 1717 m_pcPic->setPosScalingFactor( refLayerIdc, ( ( Int64( widthBL ) << 16 ) + ( widthEL >> 1 ) ) / widthEL, ( ( Int64( heightBL ) << 16 ) + ( heightEL >> 1 ) ) / heightEL ); 1720 1718 1721 1719 TComPicYuv* pBaseColRec = pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec(); -
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r1588 r1605 1663 1663 heightEL == heightBL ? MV_SCALING_FACTOR_1X : Clip3(-4096, 4095, ((heightEL << 8) + (heightBL >> 1)) / heightBL) ); 1664 1664 1665 pcSlice->getPic()->setPosScalingFactor( refLayerIdc, 1666 ((widthBL << 16) + (widthEL >> 1)) / widthEL, 1667 ((heightBL << 16) + (heightEL >> 1)) / heightEL ); 1665 pcSlice->getPic()->setPosScalingFactor( refLayerIdc, ( ( Int64( widthBL ) << 16 ) + ( widthEL >> 1 ) ) / widthEL, ( ( Int64( heightBL ) << 16 ) + ( heightEL >> 1 ) ) / heightEL ); 1668 1666 1669 1667 TComPicYuv* pBaseColRec = pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec();
Note: See TracChangeset for help on using the changeset viewer.