Changeset 1268 in 3DVCSoftware


Ignore:
Timestamp:
13 Jul 2015, 04:27:53 (9 years ago)
Author:
mediatek-htm
Message:

Reactivate MPI with the MACRO "NH_3D_TEXT_MERGE".

by Yi-Wen Chen (yiwen.chen@…)

Location:
branches/HTM-14.1-update-dev3-MediaTek2
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-14.1-update-dev3-MediaTek2/source/Lib/TLibCommon/TComDataCU.cpp

    r1267 r1268  
    33273327  deriveLeftRightTopIdxGeneral( uiAbsPartIdx, uiPUIdx, uiPartIdxLT, uiPartIdxRT );
    33283328  deriveLeftBottomIdxGeneral  ( uiAbsPartIdx, uiPUIdx, uiPartIdxLB );
    3329 #if H_3D
     3329#if NH_3D_TEXT_MERGE
    33303330  Bool bMPIFlag   = getSlice()->getMpiFlag();
    3331   Bool bIsDepth = getSlice()->getIsDepth();
     3331  Int  tmpDir;
    33323332#endif
    3333 #if NH_3D_IV_MERGE
     3333#if NH_3D_IV_MERGE || NH_3D_TEXT_MERGE
    33343334  Bool bIsDepth = getSlice()->getIsDepth();
    33353335#endif
     
    34473447
    34483448
    3449 #if H_3D_IV_MERGE
     3449#if NH_3D_TEXT_MERGE
    34503450
    34513451  /////////////////////////////////////////////
     
    34733473
    34743474      this->getPartIndexAndSize( uiPUIdx, uiPartAddr, iWidth, iHeight );
    3475       pcTexRec->getTopLeftSamplePos( this->getAddr(), this->getZorderIdxInCU() + uiPartAddr, iCurrPosX, iCurrPosY );
     3475      pcTexRec->getTopLeftSamplePos( this->getCtuRsAddr(), this->getZorderIdxInCtu() + uiPartAddr, iCurrPosX, iCurrPosY );
    34763476
    34773477      Int iPUWidth, iPUHeight, iNumPart, iNumPartLine;
     
    34983498
    34993499      Int         iTexPosX, iTexPosY;
     3500#if NH_3D_INTEGER_MV_DEPTH
    35003501      const TComMv cMvRounding( 1 << ( 2 - 1 ), 1 << ( 2 - 1 ) );
    3501 
     3502#endif
    35023503      Int         iCenterPosX = iCurrPosX + ( ( iWidth /  iPUWidth ) >> 1 )  * iPUWidth + ( iPUWidth >> 1 );
    35033504      Int         iCenterPosY = iCurrPosY + ( ( iHeight /  iPUHeight ) >> 1 )  * iPUHeight + (iPUHeight >> 1);
     
    35133514
    35143515      pcTexRec->getCUAddrAndPartIdx( iCenterPosX , iCenterPosY , iTexCenterCUAddr, iTexCenterAbsPartIdx );
    3515       TComDataCU* pcDefaultCU    = pcTexPic->getCU( iTexCenterCUAddr );
     3516      TComDataCU* pcDefaultCU    = pcTexPic->getCtu( iTexCenterCUAddr );
    35163517
    35173518      if( pcDefaultCU->getPredictionMode( iTexCenterAbsPartIdx ) != MODE_INTRA )
     
    35323533              {
    35333534                bSPIVMPFlag = true;
     3535#if NH_3D_INTEGER_MV_DEPTH
    35343536                TComMv cMv = cDefaultMvField.getMv() + cMvRounding;
    35353537                cMv >>= 2;
     3538#else
     3539                TComMv cMv = cDefaultMvField.getMv();
     3540#endif
    35363541                cMvFieldSaved[eCurrRefPicList].setMvField(cMv, iRefPicList) ;
    35373542                break;
     
    35583563            iTexPosY     = i + iOffsetY;
    35593564            pcTexRec->getCUAddrAndPartIdx( iTexPosX, iTexPosY, iTexCUAddr, iTexAbsPartIdx );
    3560             pcTexCU  = pcTexPic->getCU( iTexCUAddr );
     3565            pcTexCU  = pcTexPic->getCtu( iTexCUAddr );
    35613566
    35623567            if( pcTexCU && !pcTexCU->isIntra(iTexAbsPartIdx) )
     
    35703575                if( (cTexMvField.getRefIdx()>=0) && ( iValidDepRef >= 0 ) )
    35713576                {
     3577#if NH_3D_INTEGER_MV_DEPTH
    35723578                  TComMv cMv = cTexMvField.getMv() + cMvRounding;
    35733579                  cMv >>=2;         
     3580#else
     3581                  TComMv cMv = cTexMvField.getMv();
     3582#endif         
    35743583                  pcMvFieldSP[2*iPartition + uiCurrRefListId].setMvField(cMv, iValidDepRef);
    35753584                }
     
    35903599          }
    35913600        }
    3592 #if H_3D
    3593       }
    3594 #endif
     3601      }
    35953602#if H_3D_FCO
    35963603    }
  • branches/HTM-14.1-update-dev3-MediaTek2/source/Lib/TLibCommon/TypeDef.h

    r1267 r1268  
    7676#define NH_3D_SPIVMP                      1
    7777#define NH_3D_INTEGER_MV_DEPTH            1
     78#define NH_3D_TEXT_MERGE                  1
    7879#endif
    7980
Note: See TracChangeset for help on using the changeset viewer.