Ignore:
Timestamp:
19 Mar 2013, 12:34:51 (11 years ago)
Author:
tech
Message:

Incorporated MTK_DVPREFINE_BVSP_BUG_FIX.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-6.0-dev0/source/Lib/TLibCommon/TComDataCU.cpp

    r310 r312  
    51745174  Int width  = pcBaseViewDepthPicYuv->getWidth();
    51755175  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
    51775180  Int depthPosX = Clip3(0,   width - iWidth  - 1,  iBlkX + (mv->getHor()>>2));
    51785181  Int depthPosY = Clip3(0,   height- iHeight - 1,  iBlkY + (mv->getVer()>>2));
    5179 
     5182#endif
    51805183  Pel *depth  = pcBaseViewDepthPicYuv->getLumaAddr() + depthPosX + depthPosY * depStride;
    51815184  Pel  maxDepth = 0;
     
    51835186  if ( bSimpleDvpRefine )
    51845187  {
     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
    51855194    Int depthStartPosX = Clip3(0,   width - iWidth  - 1,  iBlkX + (mv->getHor()>>2));
    51865195    Int depthStartPosY = Clip3(0,   height- iHeight - 1,  iBlkY + (mv->getVer()>>2));
    51875196    Int depthEndPosX = Clip3(0,   width - iWidth  - 1,  iBlkX + iWidth  + (mv->getHor()>>2));
    51885197    Int depthEndPosY = Clip3(0,   height- iHeight - 1,  iBlkY + iHeight + (mv->getVer()>>2));
     5198#endif
    51895199    Int iCenterX = (depthStartPosX + depthEndPosX) >> 1;
    51905200    Int iCenterY = (depthStartPosY + depthEndPosY) >> 1;
Note: See TracChangeset for help on using the changeset viewer.