Changeset 312 in 3DVCSoftware
- Timestamp:
- 19 Mar 2013, 12:34:51 (12 years ago)
- Location:
- branches/HTM-6.0-dev0/source/Lib/TLibCommon
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-6.0-dev0/source/Lib/TLibCommon/TComDataCU.cpp
r310 r312 5174 5174 Int width = pcBaseViewDepthPicYuv->getWidth(); 5175 5175 Int height = pcBaseViewDepthPicYuv->getHeight(); 5176 5176 #if MTK_DVPREFINE_BVSP_BUG_FIX 5177 Int depthPosX = Clip3(0, width - iWidth, iBlkX + (mv->getHor()>>2)); 5178 Int depthPosY = Clip3(0, height - iHeight, iBlkY + (mv->getVer()>>2)); 5179 #else 5177 5180 Int depthPosX = Clip3(0, width - iWidth - 1, iBlkX + (mv->getHor()>>2)); 5178 5181 Int depthPosY = Clip3(0, height- iHeight - 1, iBlkY + (mv->getVer()>>2)); 5179 5182 #endif 5180 5183 Pel *depth = pcBaseViewDepthPicYuv->getLumaAddr() + depthPosX + depthPosY * depStride; 5181 5184 Pel maxDepth = 0; … … 5183 5186 if ( bSimpleDvpRefine ) 5184 5187 { 5188 #if MTK_DVPREFINE_BVSP_BUG_FIX 5189 Int depthStartPosX = Clip3(0, width - iWidth, iBlkX + (mv->getHor()>>2)); 5190 Int depthStartPosY = Clip3(0, height - iHeight, iBlkY + (mv->getVer()>>2)); 5191 Int depthEndPosX = Clip3(0, width - 1, iBlkX + iWidth - 1 + (mv->getHor()>>2)); 5192 Int depthEndPosY = Clip3(0, height - 1, iBlkY + iHeight - 1 + (mv->getVer()>>2)); 5193 #else 5185 5194 Int depthStartPosX = Clip3(0, width - iWidth - 1, iBlkX + (mv->getHor()>>2)); 5186 5195 Int depthStartPosY = Clip3(0, height- iHeight - 1, iBlkY + (mv->getVer()>>2)); 5187 5196 Int depthEndPosX = Clip3(0, width - iWidth - 1, iBlkX + iWidth + (mv->getHor()>>2)); 5188 5197 Int depthEndPosY = Clip3(0, height- iHeight - 1, iBlkY + iHeight + (mv->getVer()>>2)); 5198 #endif 5189 5199 Int iCenterX = (depthStartPosX + depthEndPosX) >> 1; 5190 5200 Int iCenterY = (depthStartPosY + depthEndPosY) >> 1; -
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; -
branches/HTM-6.0-dev0/source/Lib/TLibCommon/TypeDef.h
r311 r312 210 210 #define VSP_MERGE_POS 5 // JCT3V-C0152: fixed position of VSP candidate in merge list, supported values: 5. 211 211 #define LGE_SIMP_DVP_REFINE_C0112 1 // JCT3V-C0112: 1: simplification of refining disparity vector using a warped depth block 212 #define MTK_DVPREFINE_BVSP_BUG_FIX 1 212 213 213 214 #else // !MERL_VSP_C0152
Note: See TracChangeset for help on using the changeset viewer.