Changeset 881 in 3DVCSoftware


Ignore:
Timestamp:
27 Mar 2014, 23:17:21 (10 years ago)
Author:
tech
Message:

Cleanups part 6.

Location:
branches/HTM-10.1-dev0/source
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-10.1-dev0/source/App/TAppEncoder/TAppEncTop.cpp

    r876 r881  
    824824#endif
    825825
    826 #if MTK_DDD_G0063
     826#if H_3D_DDD
    827827          m_acTEncTopList[ layer ]->getSliceEncoder()->setDDDPar( m_cCameraData.getCodedScale()[0][ m_acTEncTopList[layer]->getViewIndex() ],
    828828              m_cCameraData.getCodedOffset()[0][ m_acTEncTopList[layer]->getViewIndex() ],
  • branches/HTM-10.1-dev0/source/Lib/TLibCommon/TComDataCU.cpp

    r880 r881  
    151151#endif
    152152
    153 #if MTK_DDD_G0063
     153#if H_3D_DDD
    154154  m_pucDisparityDerivedDepth = NULL;
    155155  m_pbUseDDD = NULL;
     
    293293  m_pcPattern            = (TComPattern*)xMalloc(TComPattern, 1);
    294294 
    295 #if MTK_DDD_G0063
     295#if H_3D_DDD
    296296  m_pucDisparityDerivedDepth         = (UChar*  )xMalloc( UChar,  uiNumPartition);
    297297  m_pbUseDDD                         = (Bool*  ) xMalloc( Bool,   uiNumPartition);
     
    377377#endif
    378378
    379 #if MTK_DDD_G0063
     379#if H_3D_DDD
    380380    if ( m_pucDisparityDerivedDepth ) { xFree(m_pucDisparityDerivedDepth);          m_pucDisparityDerivedDepth        = NULL; }
    381381    if ( m_pbUseDDD                 ) { xFree(m_pbUseDDD);                          m_pbUseDDD                        = NULL; }
     
    505505#endif
    506506
    507 #if MTK_DDD_G0063
     507#if H_3D_DDD
    508508    m_pucDisparityDerivedDepth[ui] = pcFrom->m_pucDisparityDerivedDepth[ui];
    509509    m_pbUseDDD[ui] = pcFrom->m_pbUseDDD[ui];
     
    588588#endif
    589589
    590 #if MTK_DDD_G0063
     590#if H_3D_DDD
    591591    memset( m_pucDisparityDerivedDepth        + firstElement, 0,           numElements * sizeof( *m_pucDisparityDerivedDepth ) );
    592592    memset( m_pbUseDDD                        + firstElement, 0,           numElements * sizeof( *m_pbUseDDD ) );
     
    762762#endif
    763763
    764 #if MTK_DDD_G0063
     764#if H_3D_DDD
    765765      m_pucDisparityDerivedDepth[ui] = 0;
    766766      m_pbUseDDD[ui] = 0;
     
    869869#endif
    870870
    871 #if MTK_DDD_G0063
     871#if H_3D_DDD
    872872  memset( m_pucDisparityDerivedDepth,         0, iSizeInUchar );
    873873  memset( m_pbUseDDD,                         0, iSizeInBool );
     
    956956#endif
    957957
    958 #if MTK_DDD_G0063
     958#if H_3D_DDD
    959959      m_pucDisparityDerivedDepth[ui] = pcCU->m_pucDisparityDerivedDepth[uiPartOffset+ui];
    960960      m_pbUseDDD[ui]                 = pcCU->m_pbUseDDD[uiPartOffset+ui];
     
    11021102#endif
    11031103
    1104 #if MTK_DDD_G0063
     1104#if H_3D_DDD
    11051105  m_pucDisparityDerivedDepth          = pcCU->getDDDepth()        + uiPart;
    11061106  m_pbUseDDD                          = pcCU->getUseDDD()         + uiPart;
     
    12521252#endif
    12531253
    1254 #if MTK_DDD_G0063
     1254#if H_3D_DDD
    12551255  m_pucDisparityDerivedDepth         = pcCU->getDDDepth()              + uiAbsPartIdx;
    12561256  m_pbUseDDD                         = pcCU->getUseDDD()              + uiAbsPartIdx;
     
    13171317  memcpy( m_puhCbf[2] + uiOffset, pcCU->getCbf(TEXT_CHROMA_V), iSizeInUchar );
    13181318 
    1319 #if MTK_DDD_G0063
     1319#if H_3D_DDD
    13201320  memcpy( m_pucDisparityDerivedDepth          + uiOffset, pcCU->getDDDepth(),         iSizeInUchar );
    13211321  memcpy( m_pbUseDDD                          + uiOffset, pcCU->getUseDDD(),          iSizeInBool );
     
    14171417#endif
    14181418
    1419 #if MTK_DDD_G0063
     1419#if H_3D_DDD
    14201420  memcpy( rpcCU->getDDDepth()          + m_uiAbsIdxInLCU, m_pucDisparityDerivedDepth,         iSizeInUchar  );
    14211421  memcpy( rpcCU->getUseDDD()           + m_uiAbsIdxInLCU, m_pbUseDDD,                         iSizeInBool  );
     
    15511551  memcpy( rpcCU->getCbf(TEXT_CHROMA_V) + uiPartOffset, m_puhCbf[2], iSizeInUchar );
    15521552 
    1553 #if MTK_DDD_G0063
     1553#if H_3D_DDD
    15541554  memcpy( rpcCU->getDDDepth()          + uiPartOffset, m_pucDisparityDerivedDepth,         iSizeInUchar );
    15551555  memcpy( rpcCU->getUseDDD()           + uiPartOffset, m_pbUseDDD,                         iSizeInBool );
     
    16211621}
    16221622
    1623 #if MTK_DDD_G0063
     1623#if H_3D_DDD
    16241624Void TComDataCU::setDDDepthSubParts ( UChar ucDDD, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth )
    16251625{
     
    38473847  UChar tmpDir;
    38483848
    3849 #if MTK_DDD_G0063
     3849#if H_3D_DDD
    38503850  m_iUseDDDCandIdx = -1;
    38513851#endif
     
    42254225    }
    42264226  }
    4227 #if MTK_DDD_G0063
     4227#if H_3D_DDD
    42284228  if( m_pcSlice->getIsDepth() && m_pcSlice->getViewIndex() != 0  && bMPIFlag )
    42294229  {
    4230       UInt uiPartIdx;
    4231       TComDataCU *pcTextureCU = m_pcSlice->getTexturePic()->getCU( getAddr() );
    4232       TComSlice *pcTextureSlice = pcTextureCU->getSlice(); 
    4233 
    4234 
    4235       tmpMV[0].setMvField( cZeroMv, NOT_VALID );
    4236       tmpMV[1].setMvField( cZeroMv, NOT_VALID );
    4237       tmpDir = 0;
    4238 
    4239       xDeriveCenterIdx( uiPUIdx, uiPartIdx);
    4240 
    4241       if ( pcTextureCU && !pcTextureCU->isIntra( uiPartIdx ) )
    4242       {
    4243 
    4244           TComMvField cMVField;
    4245 #if !HTM10RC1_FIX
    4246           UChar ucInterDir = pcTextureCU->getInterDir( uiPartIdx );
    4247 #endif
    4248           Int iDV = 0;
    4249           Int iViewIdx = 0;
    4250 #if !HTM10RC1_FIX
    4251           if( ucInterDir & 1 )
     4230    UInt uiPartIdx;
     4231    TComDataCU *pcTextureCU = m_pcSlice->getTexturePic()->getCU( getAddr() );
     4232    TComSlice *pcTextureSlice = pcTextureCU->getSlice(); 
     4233
     4234
     4235    tmpMV[0].setMvField( cZeroMv, NOT_VALID );
     4236    tmpMV[1].setMvField( cZeroMv, NOT_VALID );
     4237    tmpDir = 0;
     4238
     4239    xDeriveCenterIdx( uiPUIdx, uiPartIdx);
     4240
     4241    if ( pcTextureCU && !pcTextureCU->isIntra( uiPartIdx ) )
     4242    {
     4243
     4244      TComMvField cMVField;
     4245      Int iDV = 0;
     4246      Int iViewIdx = 0;
     4247      pcTextureCU->getMvField( pcTextureCU, uiPartIdx, REF_PIC_LIST_0, cMVField );
     4248      if( cMVField.getRefIdx() >= 0 )
     4249      {
     4250        if( pcTextureSlice->getRefPOC( REF_PIC_LIST_0, cMVField.getRefIdx()) == pcTextureSlice->getPOC() )
     4251        {
     4252          iViewIdx = pcTextureSlice->getRefPic( REF_PIC_LIST_0, cMVField.getRefIdx())->getViewIndex();
     4253          iDV = cMVField.getHor();
     4254
     4255
     4256          Int iValidDepRef = getPic()->isTextRefValid( REF_PIC_LIST_0, cMVField.getRefIdx() );
     4257
     4258          if( iValidDepRef >= 0 )
    42524259          {
    4253 #endif
    4254               pcTextureCU->getMvField( pcTextureCU, uiPartIdx, REF_PIC_LIST_0, cMVField );
    4255 #if HTM10RC1_FIX
    4256               if( cMVField.getRefIdx() >= 0 )
    4257               {
    4258 #endif
    4259               if( pcTextureSlice->getRefPOC( REF_PIC_LIST_0, cMVField.getRefIdx()) == pcTextureSlice->getPOC() )
    4260               {
    4261                   iViewIdx = pcTextureSlice->getRefPic( REF_PIC_LIST_0, cMVField.getRefIdx())->getViewIndex();
    4262                   iDV = cMVField.getHor();
    4263 
    4264 
    4265                   Int iValidDepRef = getPic()->isTextRefValid( REF_PIC_LIST_0, cMVField.getRefIdx() );
    4266 
    4267                   if( iValidDepRef >= 0 )
    4268                   {
    4269                       const TComMv cAdd( 2, 2 );
    4270                       cMVField.getMv() += cAdd;
    4271                       cMVField.getMv() >>= 2;
    4272                       clipMv( cMVField.getMv() );
    4273                       tmpMV[ 0 ].setMvField( cMVField.getMv(), iValidDepRef );
    4274                       tmpDir = 1;
    4275                   }
    4276               }
     4260            const TComMv cAdd( 2, 2 );
     4261            cMVField.getMv() += cAdd;
     4262            cMVField.getMv() >>= 2;
     4263            clipMv( cMVField.getMv() );
     4264            tmpMV[ 0 ].setMvField( cMVField.getMv(), iValidDepRef );
     4265            tmpDir = 1;
    42774266          }
    4278 
    4279 #if !HTM10RC1_FIX
    4280           if( !tmpDir && ( ucInterDir & 2 ))
     4267        }
     4268      }
     4269
     4270      pcTextureCU->getMvField( pcTextureCU, uiPartIdx, REF_PIC_LIST_1, cMVField );
     4271
     4272      if( !tmpDir && cMVField.getRefIdx() >= 0 )
     4273      {
     4274        if( pcTextureSlice->getRefPOC( REF_PIC_LIST_1, cMVField.getRefIdx()) == pcTextureSlice->getPOC() )
     4275        {
     4276          iViewIdx = pcTextureSlice->getRefPic( REF_PIC_LIST_1, cMVField.getRefIdx())->getViewIndex();
     4277          iDV = cMVField.getHor();
     4278
     4279          Int iValidDepRef = getPic()->isTextRefValid( REF_PIC_LIST_1, cMVField.getRefIdx() );
     4280
     4281          if( iValidDepRef >= 0 )
    42814282          {
    4282 #endif
    4283               pcTextureCU->getMvField( pcTextureCU, uiPartIdx, REF_PIC_LIST_1, cMVField );
    4284 
    4285 #if HTM10RC1_FIX
    4286               if( !tmpDir && cMVField.getRefIdx() >= 0 )
    4287               {
    4288 #endif
    4289               if( pcTextureSlice->getRefPOC( REF_PIC_LIST_1, cMVField.getRefIdx()) == pcTextureSlice->getPOC() )
    4290               {
    4291                   iViewIdx = pcTextureSlice->getRefPic( REF_PIC_LIST_1, cMVField.getRefIdx())->getViewIndex();
    4292                   iDV = cMVField.getHor();
    4293 
    4294                   Int iValidDepRef = getPic()->isTextRefValid( REF_PIC_LIST_1, cMVField.getRefIdx() );
    4295 
    4296                   if( iValidDepRef >= 0 )
    4297                   {
    4298                       const TComMv cAdd( 2, 2 );
    4299                       cMVField.getMv() += cAdd;
    4300                       cMVField.getMv() >>= 2;
    4301                       clipMv( cMVField.getMv() );
    4302                       tmpMV[ 1 ].setMvField( cMVField.getMv(), iValidDepRef );
    4303                       tmpDir = 2;
    4304                   }
    4305               }
     4283            const TComMv cAdd( 2, 2 );
     4284            cMVField.getMv() += cAdd;
     4285            cMVField.getMv() >>= 2;
     4286            clipMv( cMVField.getMv() );
     4287            tmpMV[ 1 ].setMvField( cMVField.getMv(), iValidDepRef );
     4288            tmpDir = 2;
    43064289          }
    4307           if( tmpDir != 0 )
    4308           {
    4309               rightShiftMergeCandList( pcMvFieldNeighbours, puhInterDirNeighbours, vspFlag, inheritedVSPDisInfo, iCount, 5-iCount, iCount3DV);
    4310               m_ucDDTmpDepth = m_pcSlice->getDepthFromDV( iDV,  iViewIdx );
    4311               m_iUseDDDCandIdx = iCount;
    4312 
    4313               if( tmpDir == 1 )
    4314               {
    4315                   pcMvFieldNeighbours[ iCount << 1 ] = tmpMV[ 0 ];
    4316               }
    4317               else if( tmpDir == 2  )
    4318               {
    4319                   pcMvFieldNeighbours[( iCount << 1 ) + 1 ] = tmpMV[ 1 ];
    4320               }
    4321 
    4322               abCandIsInter        [ iCount ] = true;
    4323               puhInterDirNeighbours[ iCount ] = tmpDir;
    4324 
    4325               if ( mrgCandIdx == iCount )
    4326               {
    4327                   return;
    4328               }
    4329               iCount ++;
    4330 
    4331               Int iLeftAboveAvail = 0;
    4332               if( iPosLeftAbove[ 0 ] != -1 )
    4333               {
    4334                   iPosLeftAbove[ 0 ] = iCount;
    4335                   iLeftAboveAvail = 1;
    4336               }
    4337               if( iPosLeftAbove[ 1 ] != -1 )
    4338               {
    4339                   iPosLeftAbove[ 1 ] = iCount + iLeftAboveAvail;
    4340               }
    4341 
    4342           }
    4343       }     
    4344 
     4290        }
     4291      }
     4292      if( tmpDir != 0 )
     4293      {
     4294        rightShiftMergeCandList( pcMvFieldNeighbours, puhInterDirNeighbours, vspFlag, inheritedVSPDisInfo, iCount, 5-iCount, iCount3DV);
     4295        m_ucDDTmpDepth = m_pcSlice->getDepthFromDV( iDV,  iViewIdx );
     4296        m_iUseDDDCandIdx = iCount;
     4297
     4298        if( tmpDir == 1 )
     4299        {
     4300          pcMvFieldNeighbours[ iCount << 1 ] = tmpMV[ 0 ];
     4301        }
     4302        else if( tmpDir == 2  )
     4303        {
     4304          pcMvFieldNeighbours[( iCount << 1 ) + 1 ] = tmpMV[ 1 ];
     4305        }
     4306
     4307        abCandIsInter        [ iCount ] = true;
     4308        puhInterDirNeighbours[ iCount ] = tmpDir;
     4309
     4310        if ( mrgCandIdx == iCount )
     4311        {
     4312          return;
     4313        }
     4314        iCount ++;
     4315
     4316        Int iLeftAboveAvail = 0;
     4317        if( iPosLeftAbove[ 0 ] != -1 )
     4318        {
     4319          iPosLeftAbove[ 0 ] = iCount;
     4320          iLeftAboveAvail = 1;
     4321        }
     4322        if( iPosLeftAbove[ 1 ] != -1 )
     4323        {
     4324          iPosLeftAbove[ 1 ] = iCount + iLeftAboveAvail;
     4325        }
     4326      }
     4327    }
    43454328  }
    43464329#endif
     
    44134396      for(; iCnloop >= 0; iCnloop --)
    44144397      {
    4415 #if MTK_DDD_G0063
     4398#if H_3D_DDD
    44164399          if( iCnloop == m_iUseDDDCandIdx )
    44174400          {
     
    46144597#endif
    46154598
    4616 #if MTK_DDD_G0063
     4599#if H_3D_DDD
    46174600  // early termination
    46184601  if ( iCount >= getSlice()->getMaxNumMergeCand())
  • branches/HTM-10.1-dev0/source/Lib/TLibCommon/TComDataCU.h

    r880 r881  
    226226#endif
    227227
    228 #if MTK_DDD_G0063
     228#if H_3D_DDD
    229229  UChar*        m_pucDisparityDerivedDepth;
    230230  Bool*         m_pbUseDDD;
     
    723723  UInt          getCoefScanIdx(UInt uiAbsPartIdx, UInt uiWidth, Bool bIsLuma, Bool bIsIntra);
    724724
    725 #if MTK_DDD_G0063
     725#if H_3D_DDD
    726726  UChar*       getDDDepth        ()                        { return m_pucDisparityDerivedDepth;        }
    727727  UChar        getDDDepth        ( UInt uiIdx )            { return m_pucDisparityDerivedDepth[uiIdx]; }
  • branches/HTM-10.1-dev0/source/Lib/TLibCommon/TComPrediction.cpp

    r880 r881  
    10901090  pcCU->clipMv(cMv);
    10911091
    1092 #if MTK_DDD_G0063
     1092#if H_3D_DDD
    10931093  if( pcCU->getUseDDD( uiPartAddr ) )
    10941094  {
  • branches/HTM-10.1-dev0/source/Lib/TLibCommon/TComSlice.cpp

    r876 r881  
    33593359#endif
    33603360
    3361 #if MTK_DDD_G0063
     3361#if H_3D_DDD
    33623362  if( getIsDepth() && getViewIndex() > 0 )
    33633363  {
     
    34173417    }
    34183418
    3419 #if MTK_DDD_G0063
     3419#if H_3D_DDD
    34203420    InitializeDDDPara( vps->getCamParPrecision(), codScale[ i ], codOffset[ i ], i );
    34213421#endif
     
    34253425#endif
    34263426
    3427 #if MTK_DDD_G0063
     3427#if H_3D_DDD
    34283428Void TComSlice::InitializeDDDPara( UInt uiCamParsCodedPrecision, Int  iCodedScale,Int  iCodedOffset, Int iBaseViewIdx )
    34293429{
  • branches/HTM-10.1-dev0/source/Lib/TLibCommon/TComSlice.h

    r876 r881  
    22742274#endif
    22752275
    2276 #if MTK_DDD_G0063
     2276#if H_3D_DDD
    22772277  Int          m_aiDDDInvScale [MAX_NUM_LAYERS];
    22782278  Int          m_aiDDDInvOffset[MAX_NUM_LAYERS];
     
    26542654
    26552655#endif
    2656 #if MTK_DDD_G0063
     2656#if H_3D_DDD
    26572657  Void InitializeDDDPara( UInt uiCamParsCodedPrecision, Int  iCodedScale,Int  iCodedOffset, Int iBaseViewIdx );
    26582658  Int  getDepthFromDV( Int iDV, Int iBaseViewIdx )
  • branches/HTM-10.1-dev0/source/Lib/TLibCommon/TypeDef.h

    r880 r881  
    7676#if H_3D
    7777#define H_3D_QTLPC                        1   // OL_QTLIMIT_PREDCODING_B0068 //JCT3V-B0068
    78                                               // HHI_QTLPC_RAU_OFF_C0160     // JCT3V-C0160 change 2: quadtree limitation and predictive coding switched off in random access units
     78                                              // HHI_QTLPC_RAU_OFF_C0160 JCT3V-C0160 change 2: quadtree limitation and predictive coding switched off in random access units
     79                                              // MTK_TEX_DEP_PAR_G0055 Texture-partition-dependent depth partition. JCT3V-G0055
    7980
    8081#define H_3D_VSO                          1   // VSO, View synthesis optimization, includes:
     
    205206#define H_3D_DBBP                         1   // DBBP: Depth-based Block Partitioning and Merging
    206207
     208#define H_3D_DDD                          1   // Disparity derived depth coding
    207209
    208210#define H_3D_FCO                          0   // Flexible coding order for 3D
     
    303305#if H_3D
    304306#define PPS_FIX_DEPTH                           1
    305 #endif
    306 
    307 
    308 /////////////////////////////////////////////////////////////////////////////////////////
    309 ///////////////////////////////////   HTM-10.0 Integrations //////////////////////////////
    310 /////////////////////////////////////////////////////////////////////////////////////////
    311 #if H_3D
    312 #if  H_3D_QTLPC
    313 #define MTK_TEX_DEP_PAR_G0055             1   // Texture-partition-dependent depth partition. JCT3V-G0055
    314 #endif
    315 
    316 #define MTK_DDD_G0063                     1   // Disparity derived depth coding
    317 #define HTM10RC1_FIX                      1   // Fix of DDD
    318307#endif
    319308
  • branches/HTM-10.1-dev0/source/Lib/TLibDecoder/TDecCu.cpp

    r880 r881  
    293293
    294294
    295 #if MTK_DDD_G0063
     295#if H_3D_DDD
    296296      pcCU->setUseDDD( false, uiAbsPartIdx, uiDepth );
    297297#endif
     
    454454    pcCU->setInterDirSubParts( uhInterDirNeighbours[uiMergeIndex], uiAbsPartIdx, 0, uiDepth );
    455455
    456 #if MTK_DDD_G0063
     456#if H_3D_DDD
    457457    if( uiMergeIndex == m_ppcCU[uiDepth]->getUseDDDCandIdx() )
    458458    {
  • branches/HTM-10.1-dev0/source/Lib/TLibDecoder/TDecEntropy.cpp

    r880 r881  
    351351      pcCU->setInterDirSubParts( uhInterDirNeighbours[uiMergeIndex], uiSubPartIdx, uiPartIdx, uiDepth );
    352352
    353 #if MTK_DDD_G0063
     353#if H_3D_DDD
    354354      if( uiMergeIndex == pcSubCU->getUseDDDCandIdx() )
    355355      {
  • branches/HTM-10.1-dev0/source/Lib/TLibDecoder/TDecSbac.cpp

    r878 r881  
    787787  Bool rapPic     = (pcCU->getSlice()->getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR_W_RADL || pcCU->getSlice()->getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR_N_LP || pcCU->getSlice()->getNalUnitType() == NAL_UNIT_CODED_SLICE_CRA);
    788788
    789 #if MTK_TEX_DEP_PAR_G0055
    790789  Bool depthDependent = false;
    791790  UInt uiTexturePart = uiMode;
    792 #endif
    793791  if(bDepthMapDetect && !bIntraSliceDetect && !rapPic && sps->getUseQTL() && sps->getUsePC())
    794792  {
    795793    TComDataCU *pcTextureCU = pcTexture->getCU(pcCU->getAddr());
    796794    assert(pcTextureCU->getDepth(uiAbsPartIdx) >= uiDepth);
    797 #if !MTK_TEX_DEP_PAR_G0055
    798     if (pcTextureCU->getDepth(uiAbsPartIdx) == uiDepth && pcTextureCU->getPartitionSize( uiAbsPartIdx ) != SIZE_NxN)
    799 #else
    800795    if(pcTextureCU->getDepth(uiAbsPartIdx) == uiDepth )
    801796    {
     
    804799    }
    805800    if (pcTextureCU->getDepth(uiAbsPartIdx) == uiDepth && pcTextureCU->getPartitionSize( uiAbsPartIdx ) == SIZE_2Nx2N)
    806 #endif
    807801    {
    808802      bParsePartSize = false;
     
    849843    if(bParsePartSize)
    850844    {
    851 #endif
    852 #if MTK_TEX_DEP_PAR_G0055
    853845      if (depthDependent==false || uiTexturePart == SIZE_NxN|| uiTexturePart == SIZE_2Nx2N)
    854846      {
     
    890882        }
    891883      }
    892 #if MTK_TEX_DEP_PAR_G0055
     884#if H_3D_QTLPC
    893885      }
    894886      else if(uiTexturePart == SIZE_2NxN || uiTexturePart == SIZE_2NxnU || uiTexturePart == SIZE_2NxnD)
     
    955947      }
    956948      else
     949      {
    957950        assert(0);
    958 #endif
     951      }
    959952#if H_MV_ENC_DEC_TRAC         
    960953      DTRACE_CU("part_mode", eMode )
    961954#endif
    962 #if H_3D_QTLPC
    963955    }
    964956#endif
  • branches/HTM-10.1-dev0/source/Lib/TLibDecoder/TDecTop.h

    r872 r881  
    8787#endif
    8888
    89 #if MTK_DDD_G0063
     89#if H_3D_DDD
    9090  Int getCodedScale( Int iBaseView, Int iCureView){ return m_aaiCodedScale[ iBaseView ][ iCureView ];}
    9191  Int getCodedOffset( Int iBaseView, Int iCureView){ return m_aaiCodedOffset[ iBaseView ][ iCureView ];}
  • branches/HTM-10.1-dev0/source/Lib/TLibEncoder/TEncCu.cpp

    r880 r881  
    547547          bTryNx2N  = false;
    548548          bTry2NxN  = false;
    549 #if MTK_TEX_DEP_PAR_G0055
    550549          if( pcTextureCU->getDepth(uiCUIdx) == uiDepth && pcTextureCU->getPartitionSize(uiCUIdx) != SIZE_2Nx2N)
    551550          {
     
    555554              bTryNx2N  = true;
    556555          }
    557 #endif
    558556        }
    559557      }
     
    18311829#endif
    18321830
    1833 #if MTK_DDD_G0063
     1831#if H_3D_DDD
    18341832    Int iDDDCand = rpcTempCU->getUseDDDCandIdx();
    18351833    UChar ucDDDepth = rpcTempCU->getDDTmpDepth();
     
    18701868          rpcTempCU->setDvInfoSubParts(inheritedVSPDisInfo[uiMergeCand].m_acDvInfo, 0, 0, uhDepth );
    18711869#endif
    1872 #if MTK_DDD_G0063
     1870#if H_3D_DDD
    18731871          if( rpcTempCU->getSlice()->getIsDepth() && rpcTempCU->getSlice()->getViewIndex() != 0 && iDDDCand == uiMergeCand )
    18741872          {
     
    21352133  rpcTempCU->setPartSizeSubParts  ( ePartSize,  0, uhDepth );
    21362134  rpcTempCU->setPredModeSubParts  ( MODE_INTER, 0, uhDepth );
    2137 #if MTK_DDD_G0063
     2135#if H_3D_DDD
    21382136  rpcTempCU->setUseDDD( false, 0, uhDepth );
    21392137#endif
  • branches/HTM-10.1-dev0/source/Lib/TLibEncoder/TEncSbac.cpp

    r878 r881  
    683683  Bool rapPic     = (pcCU->getSlice()->getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR_W_RADL || pcCU->getSlice()->getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR_N_LP || pcCU->getSlice()->getNalUnitType() == NAL_UNIT_CODED_SLICE_CRA);
    684684
    685 #if MTK_TEX_DEP_PAR_G0055
    686685  Bool depthDependent = false;
    687686  UInt uiTexturePart = eSize;
    688 #endif
    689687  if(bDepthMapDetect && !bIntraSliceDetect && !rapPic && pcCU->getPic()->getReduceBitsFlag() && sps->getUseQTL() && sps->getUsePC() )
    690688  {
     
    692690    UInt uiCUIdx            = (pcCU->getZorderIdxInCU() == 0) ? uiAbsPartIdx : pcCU->getZorderIdxInCU();
    693691    assert(pcTextureCU->getDepth(uiCUIdx) >= uiDepth);
    694 #if !MTK_TEX_DEP_PAR_G0055
    695     if (pcTextureCU->getDepth(uiCUIdx) == uiDepth && pcTextureCU->getPartitionSize( uiCUIdx ) != SIZE_NxN)
    696 #else
    697692    if(pcTextureCU->getDepth(uiCUIdx) == uiDepth )
    698693    {
     
    701696    }
    702697    if (pcTextureCU->getDepth(uiCUIdx) == uiDepth && pcTextureCU->getPartitionSize( uiCUIdx ) == SIZE_2Nx2N)
    703 #endif
    704698    {
    705699      assert( eSize == SIZE_2Nx2N );
     
    723717  DTRACE_CU("part_mode", eSize )
    724718#endif       
    725 #if MTK_TEX_DEP_PAR_G0055
     719#if H_3D_QTLPC
    726720    if (depthDependent==false || uiTexturePart == SIZE_NxN|| uiTexturePart == SIZE_2Nx2N)
    727721    {
     
    793787    }
    794788  }
    795 #if MTK_TEX_DEP_PAR_G0055
     789#if H_3D_QTLPC
    796790    }
    797791    else if(uiTexturePart == SIZE_2NxN || uiTexturePart == SIZE_2NxnU || uiTexturePart == SIZE_2NxnD)
  • branches/HTM-10.1-dev0/source/Lib/TLibEncoder/TEncSearch.cpp

    r880 r881  
    38253825#endif
    38263826
    3827 #if MTK_DDD_G0063
     3827#if H_3D_DDD
    38283828      if( uiMergeCand == pcCU->getUseDDDCandIdx() )
    38293829      {
     
    45334533        pcCU->setDvInfoSubParts(inheritedVSPDisInfo[uiMRGIndex].m_acDvInfo, uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) );
    45344534#endif
    4535 #if MTK_DDD_G0063
     4535#if H_3D_DDD
    45364536        if( uiMRGIndex == pcCU->getUseDDDCandIdx() )
    45374537        {
     
    46244624        pcCU->setSPIVMPFlagSubParts(0, uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) );
    46254625#endif
    4626 #if MTK_DDD_G0063
     4626#if H_3D_DDD
    46274627        pcCU->setUseDDD( false, uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) );
    46284628#endif
  • branches/HTM-10.1-dev0/source/Lib/TLibEncoder/TEncSlice.h

    r872 r881  
    107107  UInt                    m_uiSliceIdx;
    108108  std::vector<TEncSbac*> CTXMem;
    109 #if MTK_DDD_G0063
     109#if H_3D_DDD
    110110  Int          m_iDDDScale;
    111111  Int          m_iDDDOffset;
     
    146146  Void      setCtxMem( TEncSbac* sb, Int b )   { CTXMem[b] = sb; }
    147147
    148 #if MTK_DDD_G0063
     148#if H_3D_DDD
    149149  Void setDDDPar( Int iScale, Int iOffset, UInt uiPrecision ){ m_iDDDScale = iScale; m_iDDDOffset = iOffset; m_uiDDDPrecision = uiPrecision; }
    150150#endif
Note: See TracChangeset for help on using the changeset viewer.