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/TComPrediction.cpp

    r309 r312  
    14541454  Int dstStride = dstPic->getStride();
    14551455  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
    14561460  Int depthPosX = Clip3(0,   widthLuma - size_x - 1,  (posX/nTxtPerDepthX) + (mv->getHor()>>2));
    14571461  Int depthPosY = Clip3(0,   heightLuma- size_y - 1,  (posY/nTxtPerDepthY) + (mv->getVer()>>2));
    1458 
     1462#endif
    14591463  Pel *ref    = refPic->getLumaAddr() + posX + posY * refStride;
    14601464  Pel *dst    = dstPic->getLumaAddr(partAddr);
     
    16141618    depthPosX = posX * nDepthPerTxtX + (mv->getHor()>>2);        //mv denotes the disparity for VSP
    16151619  }
     1620#if MTK_DVPREFINE_BVSP_BUG_FIX
     1621  depthPosX = Clip3(0, widthDepth - (size_x<<1), depthPosX);
     1622#else
    16161623  depthPosX = Clip3(0, widthDepth - (size_x<<1) - 1, depthPosX);
    1617  
     1624#endif
    16181625  if ( heightChroma > heightDepth )
    16191626  {
     
    16281635    depthPosY = posY * nDepthPerTxtY + (mv->getVer()>>2);     //mv denotes the disparity for VSP
    16291636  }
     1637#if MTK_DVPREFINE_BVSP_BUG_FIX
     1638  depthPosY = Clip3(0, heightDepth - (size_y<<1), depthPosY);
     1639#else
    16301640  depthPosY = Clip3(0, heightDepth - (size_y<<1) - 1, depthPosY);
     1641#endif
    16311642
    16321643  Pel *refCb  = refPic->getCbAddr() + posX + posY * refStride;
Note: See TracChangeset for help on using the changeset viewer.