Ignore:
Timestamp:
12 Jan 2014, 02:46:46 (10 years ago)
Author:
tech
Message:

Cleanup part 2

File:
1 edited

Legend:

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

    r764 r765  
    136136  m_piVSPFlag            = NULL;
    137137#endif
    138 #if MTK_SPIVMP_F0110
     138#if H_3D_SPIVMP
    139139  m_pbSPIVMPFlag         = NULL;
    140140#endif
     
    190190    m_piVSPFlag          = (Char*  )xMalloc(Char,   uiNumPartition);
    191191#endif
    192 #if MTK_SPIVMP_F0110
     192#if H_3D_SPIVMP
    193193    m_pbSPIVMPFlag       = (Bool*  )xMalloc(Bool,   uiNumPartition);
    194194#endif
     
    342342    if ( m_piVSPFlag          ) { xFree(m_piVSPFlag);           m_piVSPFlag         = NULL; }
    343343#endif
    344 #if MTK_SPIVMP_F0110
     344#if H_3D_SPIVMP
    345345    if ( m_pbSPIVMPFlag       ) { xFree(m_pbSPIVMPFlag);           m_pbSPIVMPFlag         = NULL; }
    346346#endif
     
    541541    m_piVSPFlag[ui] = pcFrom->m_piVSPFlag[ui];
    542542#endif
    543 #if MTK_SPIVMP_F0110
     543#if H_3D_SPIVMP
    544544    m_pbSPIVMPFlag[ui] = pcFrom->m_pbSPIVMPFlag[ui];
    545545#endif
     
    586586    memset( m_piVSPFlag         + firstElement, 0,                        numElements * sizeof( *m_piVSPFlag ) );
    587587#endif
    588 #if MTK_SPIVMP_F0110
     588#if H_3D_SPIVMP
    589589    memset( m_pbSPIVMPFlag      + firstElement, 0,                        numElements * sizeof( *m_pbSPIVMPFlag ) );
    590590#endif
     
    759759      m_piVSPFlag[ui] = 0;
    760760#endif
    761 #if MTK_SPIVMP_F0110
     761#if H_3D_SPIVMP
    762762      m_pbSPIVMPFlag[ui] = 0;
    763763#endif
     
    859859  memset( m_piVSPFlag,          0, sizeof( Char  ) * m_uiNumPartition );
    860860#endif
    861 #if MTK_SPIVMP_F0110
     861#if H_3D_SPIVMP
    862862  memset( m_pbSPIVMPFlag,       0, sizeof( Bool  ) * m_uiNumPartition );
    863863#endif
     
    948948      m_pDvInfo[ ui ] = pcCU->m_pDvInfo[uiPartOffset+ui];
    949949#endif
    950 #if MTK_SPIVMP_F0110
     950#if H_3D_SPIVMP
    951951      m_pbSPIVMPFlag[ui]=pcCU->m_pbSPIVMPFlag[uiPartOffset+ui];
    952952#endif
     
    10981098  m_piVSPFlag           = pcCU->getVSPFlag()          + uiPart;
    10991099#endif
    1100 #if MTK_SPIVMP_F0110
     1100#if H_3D_SPIVMP
    11011101  m_pbSPIVMPFlag        = pcCU->getSPIVMPFlag()          + uiPart;
    11021102#endif
     
    12471247  m_pDvInfo            = pcCU->getDvInfo()                + uiAbsPartIdx;
    12481248#endif
    1249 #if MTK_SPIVMP_F0110
     1249#if H_3D_SPIVMP
    12501250  m_pbSPIVMPFlag       = pcCU->getSPIVMPFlag()               + uiAbsPartIdx;
    12511251#endif
     
    12991299
    13001300#endif
    1301 #if MTK_SPIVMP_F0110
     1301#if H_3D_SPIVMP
    13021302  memcpy( m_pbSPIVMPFlag        + uiOffset, pcCU->getSPIVMPFlag(),        sizeof( Bool ) * uiNumPartition );
    13031303#endif
     
    14211421  memcpy( rpcCU->getDvInfo()            + m_uiAbsIdxInLCU, m_pDvInfo,             sizeof( *m_pDvInfo ) * m_uiNumPartition );
    14221422#endif
    1423 #if MTK_SPIVMP_F0110
     1423#if H_3D_SPIVMP
    14241424  memcpy( rpcCU->getSPIVMPFlag()        + m_uiAbsIdxInLCU, m_pbSPIVMPFlag,        sizeof( Bool ) * m_uiNumPartition );
    14251425#endif
     
    15301530  memcpy( rpcCU->getVSPFlag()           + uiPartOffset, m_piVSPFlag,           sizeof(Char) * uiQNumPart );
    15311531#endif
    1532 #if MTK_SPIVMP_F0110
     1532#if H_3D_SPIVMP
    15331533  memcpy( rpcCU->getSPIVMPFlag()        + uiPartOffset, m_pbSPIVMPFlag,        sizeof(Bool) * uiQNumPart );
    15341534#endif
     
    26472647}
    26482648
    2649 #if MTK_SPIVMP_F0110
     2649#if H_3D_SPIVMP
    26502650Void TComDataCU::setSPIVMPFlagSubParts( Bool bSPIVMPFlag, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth )
    26512651{
     
    38603860      , InheritedVSPDisInfo*  inheritedVSPDisInfo
    38613861#endif
    3862 #if MTK_SPIVMP_F0110
     3862#if H_3D_SPIVMP
    38633863      , Bool* pbSPIVMPFlag, TComMvField* pcMvFieldSP, UChar* puhInterDirSP
    38643864#endif
     
    39803980    iPosLeftAbove[1] = numA1B1B0;
    39813981#if H_3D_VSP
    3982 #if BUGFIX_2_F0093 && MTK_VSP_SIMPLIFICATION_F0111
    39833982    if ( ( ( getAddr() - pcCUAbove->getAddr() ) == 0) && (pcCUAbove->getVSPFlag(uiAbovePartIdx) == 1)
    3984 #else
    3985     if (pcCUAbove->getVSPFlag(uiAbovePartIdx) == 1
    3986 #endif
    39873983#if H_3D_IC
    39883984      && !bICFlag
     
    39943990    {
    39953991      vspFlag[numA1B1B0] = 1;
    3996 #if !MTK_VSP_SIMPLIFICATION_F0111
    3997       xInheritVSPDisInfo(pcCUAbove,uiAbovePartIdx,iCount,inheritedVSPDisInfo);
    3998 #endif
    39993992    }
    40003993#endif
     
    63686361}
    63696362#endif
    6370 #if QC_DEPTH_IV_MRG_F0125
     6363#if H_3D_IV_MERGE
    63716364Bool TComDataCU::getDispNeighBlocks (UInt uiPartIdx, UInt uiPartAddr, DisInfo* pDisp)
    63726365{
     
    69486941#endif
    69496942
    6950 #if MTK_SPIVMP_F0110
     6943#if H_3D_SPIVMP
    69516944Void TComDataCU::getSPPara(Int iPUWidth, Int iPUHeight, Int& iNumSP, Int& iNumSPInOneLine, Int& iSPWidth, Int& iSPHeight)
    69526945{
     
    70006993#if H_3D_IV_MERGE
    70016994Bool
    7002 TComDataCU::getInterViewMergeCands(UInt uiPartIdx, Int* paiPdmRefIdx, TComMv* pacPdmMv, DisInfo* pDInfo, Int* availableMcDc
    7003 #if QC_DEPTH_IV_MRG_F0125
    7004 , Bool bIsDepth           
    7005 #endif
    7006 #if MTK_SPIVMP_F0110
     6995TComDataCU::getInterViewMergeCands(UInt uiPartIdx, Int* paiPdmRefIdx, TComMv* pacPdmMv, DisInfo* pDInfo, Int* availableMcDc , Bool bIsDepth           
     6996#if H_3D_SPIVMP
    70076997, TComMvField* pcMvFieldSP, UChar* puhInterDirSP
    70086998#endif
     
    70137003 
    70147004  //--- get base CU/PU and check prediction mode ---
    7015 #if QC_DEPTH_IV_MRG_F0125
    70167005  TComPic*    pcBasePic   = pcSlice->getIvPic( bIsDepth, iViewIndex );
    7017 #else
    7018   TComPic*    pcBasePic   = pcSlice->getIvPic( false, iViewIndex );
    7019 #endif
    70207006  TComPicYuv* pcBaseRec   = pcBasePic->getPicYuvRec   ();
    70217007
     
    70287014  pcBaseRec->getTopLeftSamplePos( getAddr(), getZorderIdxInCU() + uiPartAddr, iCurrPosX, iCurrPosY );
    70297015
    7030 #if !MTK_SPIVMP_F0110
    7031 #if QC_DEPTH_IV_MRG_F0125
     7016#if !H_3D_SPIVMP
    70327017  iCurrPosX  += ( iWidth  >> 1 );
    70337018  iCurrPosY  += ( iHeight >> 1 );
    7034 #else
    7035   iCurrPosX  += ( ( iWidth  - 1 ) >> 1 );
    7036   iCurrPosY  += ( ( iHeight - 1 ) >> 1 );
    7037 #endif
    70387019#endif
    70397020
     
    70537034#endif
    70547035
    7055 #if MTK_SPIVMP_F0110
     7036#if H_3D_SPIVMP
    70567037  ////////////////////////////////
    70577038  //////////sub-PU IvMC///////////
     
    71837164  ////////////////////////////////
    71847165
    7185 #if MTK_SPIVMP_F0110
     7166#if H_3D_SPIVMP
    71867167  for(Int iLoopCan = 1; iLoopCan < 2; iLoopCan ++)
    71877168#else
     
    71927173    // iLoopCan == 1 --> IvMCShift
    71937174
    7194 #if !MTK_SPIVMP_F0110
     7175#if !H_3D_SPIVMP
    71957176    Int         iBaseCUAddr;
    71967177    Int         iBaseAbsPartIdx;
     
    72007181    Int offsetH = (iLoopCan == 0) ? 0 : ( ((iHeight/2)*4) + 4 );
    72017182
    7202 #if MTK_SPIVMP_F0110
     7183#if H_3D_SPIVMP
    72037184    iBasePosX   = Clip3( 0, pcBaseRec->getWidth () - 1, iCurrPosX + ( (cDv.getHor() + offsetW + 2 ) >> 2 ) );
    72047185    iBasePosY   = Clip3( 0, pcBaseRec->getHeight() - 1, iCurrPosY + ( (cDv.getVer() + offsetH + 2 ) >> 2 ) );
     
    72097190    pcBaseRec->getCUAddrAndPartIdx( iBasePosX , iBasePosY , iBaseCUAddr, iBaseAbsPartIdx );
    72107191
    7211 #if MTK_SPIVMP_F0110
     7192#if H_3D_SPIVMP
    72127193    pcBaseCU    = pcBasePic->getCU( iBaseCUAddr );
    72137194#else
     
    72417222                  TComMv cMv(cBaseMvField.getHor(), cBaseMvField.getVer());
    72427223#if H_3D_NBDV
    7243 #if QC_DEPTH_IV_MRG_F0125
     7224#if H_3D_IV_MERGE
    72447225                  if( !bIsDepth )
    72457226                  {
     
    72497230                    cMv.setIDVVer    (cDv.getVer()); 
    72507231                    cMv.setIDVVId    (iViewIndex);
    7251 #if QC_DEPTH_IV_MRG_F0125
     7232#if H_3D_IV_MERGE
    72527233                  }
    72537234#endif
     
    72667247    }
    72677248  }
    7268 #if MTK_SPIVMP_F0110
     7249#if H_3D_SPIVMP
    72697250  for(Int iLoopCan = 1; iLoopCan < 2; iLoopCan ++)
    72707251#else
     
    72977278#endif
    72987279          cMv.setHor( cMv.getHor() + ioffsetDV );
    7299 #if QC_DEPTH_IV_MRG_F0125
     7280#if H_3D_IV_MERGE
    73007281          if( bIsDepth )
    73017282            cMv.setHor((cMv.getHor()+2)>>2);
Note: See TracChangeset for help on using the changeset viewer.