Changeset 312 in 3DVCSoftware for branches/HTM-6.0-dev0/source/Lib/TLibCommon/TComPrediction.cpp
- Timestamp:
- 19 Mar 2013, 12:34:51 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-6.0-dev0/source/Lib/TLibCommon/TComPrediction.cpp
r309 r312 1454 1454 Int dstStride = dstPic->getStride(); 1455 1455 Int depStride = pPicBaseDepth->getStride(); 1456 #if MTK_DVPREFINE_BVSP_BUG_FIX 1457 Int depthPosX = Clip3(0, widthLuma - size_x, (posX/nTxtPerDepthX) + (mv->getHor()>>2)); 1458 Int depthPosY = Clip3(0, heightLuma- size_y, (posY/nTxtPerDepthY) + (mv->getVer()>>2)); 1459 #else 1456 1460 Int depthPosX = Clip3(0, widthLuma - size_x - 1, (posX/nTxtPerDepthX) + (mv->getHor()>>2)); 1457 1461 Int depthPosY = Clip3(0, heightLuma- size_y - 1, (posY/nTxtPerDepthY) + (mv->getVer()>>2)); 1458 1462 #endif 1459 1463 Pel *ref = refPic->getLumaAddr() + posX + posY * refStride; 1460 1464 Pel *dst = dstPic->getLumaAddr(partAddr); … … 1614 1618 depthPosX = posX * nDepthPerTxtX + (mv->getHor()>>2); //mv denotes the disparity for VSP 1615 1619 } 1620 #if MTK_DVPREFINE_BVSP_BUG_FIX 1621 depthPosX = Clip3(0, widthDepth - (size_x<<1), depthPosX); 1622 #else 1616 1623 depthPosX = Clip3(0, widthDepth - (size_x<<1) - 1, depthPosX); 1617 1624 #endif 1618 1625 if ( heightChroma > heightDepth ) 1619 1626 { … … 1628 1635 depthPosY = posY * nDepthPerTxtY + (mv->getVer()>>2); //mv denotes the disparity for VSP 1629 1636 } 1637 #if MTK_DVPREFINE_BVSP_BUG_FIX 1638 depthPosY = Clip3(0, heightDepth - (size_y<<1), depthPosY); 1639 #else 1630 1640 depthPosY = Clip3(0, heightDepth - (size_y<<1) - 1, depthPosY); 1641 #endif 1631 1642 1632 1643 Pel *refCb = refPic->getCbAddr() + posX + posY * refStride;
Note: See TracChangeset for help on using the changeset viewer.