Changeset 1026 in 3DVCSoftware


Ignore:
Timestamp:
29 Jul 2014, 04:26:24 (10 years ago)
Author:
samsung-htm
Message:

Integration of JCT3V-I0080: Clipping of neighboring sample position for IC

Location:
branches/HTM-11.2-dev2-Samsung
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-11.2-dev2-Samsung/source/Lib/TLibCommon/TComPrediction.cpp

    r1011 r1026  
    21662166  Int iRecStride = ( eType == TEXT_LUMA ) ? pRecPic->getStride() : pRecPic->getCStride();
    21672167  Int iRefStride = ( eType == TEXT_LUMA ) ? pRefPic->getStride() : pRefPic->getCStride();
     2168#if SEC_IC_NEIGHBOR_CLIP_I0080
     2169  Int iRefOffset, iHor, iVer;
     2170#else
    21682171  Int iCUPelX, iCUPelY, iRefX, iRefY, iRefOffset, iHor, iVer;
    21692172
    21702173  iCUPelX = pcCU->getCUPelX() + g_auiRasterToPelX[g_auiZscanToRaster[pcCU->getZorderIdxInCU()]];
    21712174  iCUPelY = pcCU->getCUPelY() + g_auiRasterToPelY[g_auiZscanToRaster[pcCU->getZorderIdxInCU()]];
     2175#endif
    21722176  iHor = pcCU->getSlice()->getIsDepth() ? pMv->getHor() : ( ( pMv->getHor() + 2 ) >> 2 );
    21732177  iVer = pcCU->getSlice()->getIsDepth() ? pMv->getVer() : ( ( pMv->getVer() + 2 ) >> 2 );
     2178#if !SEC_IC_NEIGHBOR_CLIP_I0080
    21742179  iRefX   = iCUPelX + iHor;
    21752180  iRefY   = iCUPelY + iVer;
     2181#endif
    21762182  if( eType != TEXT_LUMA )
    21772183  {
     
    21892195  Int precShift = std::max(0, (( eType == TEXT_LUMA ) ? g_bitDepthY : g_bitDepthC) - 12);
    21902196
     2197#if SEC_IC_NEIGHBOR_CLIP_I0080
     2198  if( pcCU->getPUAbove( uiTmpPartIdx, pcCU->getZorderIdxInCU() ) )
     2199#else
    21912200  if( pcCU->getPUAbove( uiTmpPartIdx, pcCU->getZorderIdxInCU() ) && iCUPelY > 0 && iRefY > 0 )
     2201#endif
    21922202  {
    21932203    iRefOffset = iHor + iVer * iRefStride - iRefStride;
     
    22192229  }
    22202230
    2221 
     2231#if SEC_IC_NEIGHBOR_CLIP_I0080
     2232  if( pcCU->getPULeft( uiTmpPartIdx, pcCU->getZorderIdxInCU() ) )
     2233#else
    22222234  if( pcCU->getPULeft( uiTmpPartIdx, pcCU->getZorderIdxInCU() ) && iCUPelX > 0 && iRefX > 0 )
     2235#endif
    22232236  {
    22242237    iRefOffset = iHor + iVer * iRefStride - 1;
  • branches/HTM-11.2-dev2-Samsung/source/Lib/TLibCommon/TypeDef.h

    r1025 r1026  
    122122                                              // SEC_IC_ARP_SIG_G0072, Disabling IC when ARP is enabled, option 1 in JCT3V-G0072, part 2 in JCT3V-G0121
    123123                                              // MTK_LOW_LATENCY_IC_ENCODING_H0086  Low-latency IC encoding in JCT3V-H0086
     124
     125#define SEC_IC_NEIGHBOR_CLIP_I0080        1   // Clipping of neighboring sample position, JCT3V-I0080
    124126
    125127
Note: See TracChangeset for help on using the changeset viewer.