Ignore:
Timestamp:
24 Jan 2014, 02:36:31 (10 years ago)
Author:
mediatek-htm
Message:

Integration of DDD (JCT3V-G0063)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-9.3-dev1-MediaTek/source/Lib/TLibCommon/TComPrediction.cpp

    r773 r795  
    783783  TComMv      cMv         = pcCU->getCUMvField( eRefPicList )->getMv( uiPartAddr );
    784784  pcCU->clipMv(cMv);
     785
     786#if MTK_DDD_G0063
     787  if( pcCU->getUseDDD( uiPartAddr ) )
     788  {
     789      assert( pcCU->getSPIVMPFlag( uiPartAddr ) == 0 );
     790      assert( pcCU->getSlice()->getViewIndex() != 0 );
     791
     792      Int dstStride = rpcYuvPred->getStride();
     793      Int dstStrideC = rpcYuvPred->getCStride();
     794      Pel *dst      = rpcYuvPred->getLumaAddr( uiPartAddr );
     795      Pel *dstU     = rpcYuvPred->getCbAddr( uiPartAddr );
     796      Pel *dstV     = rpcYuvPred->getCrAddr( uiPartAddr );
     797
     798      Int iWidthC  = iWidth >> 1;
     799      Int iHeightC = iHeight >> 1;
     800      Int DefaultC = 1 << ( g_bitDepthY - 1);
     801      for ( Int i = 0; i < iHeight; i++)
     802      {
     803          for ( Int j = 0; j < iWidth ; j++)
     804          {
     805              dst[j] = pcCU->getDDDepth( uiPartAddr );
     806          }
     807          dst += dstStride;
     808      }
     809      for ( Int i = 0; i < iHeightC; i++)
     810      {
     811          for ( Int j = 0; j < iWidthC; j++)
     812          {
     813              dstU[j] = dstV[j] = DefaultC;
     814          }
     815          dstU += dstStrideC;
     816          dstV += dstStrideC;
     817      }
     818
     819      //return;
     820  } else
     821#endif
    785822#if H_3D_ARP
    786823  if(pcCU->getARPW( uiPartAddr ) > 0  && pcCU->getSlice()->getRefPic( eRefPicList, iRefIdx )->getPOC()== pcCU->getSlice()->getPOC())
Note: See TracChangeset for help on using the changeset viewer.