Ignore:
Timestamp:
18 Feb 2015, 17:39:40 (10 years ago)
Author:
tech
Message:

Cleanup.

File:
1 edited

Legend:

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

    r1124 r1131  
    154154#endif
    155155
    156 #if !LGE_DDD_REMOVAL_J0042_J0030
    157 #if H_3D_DDD
    158   m_pucDisparityDerivedDepth = NULL;
    159   m_pbUseDDD = NULL;
    160 #endif
    161 #endif
    162156}
    163157
     
    301295  m_pcPattern            = (TComPattern*)xMalloc(TComPattern, 1);
    302296
    303 #if !LGE_DDD_REMOVAL_J0042_J0030
    304 #if H_3D_DDD
    305   m_pucDisparityDerivedDepth         = (UChar*  )xMalloc( UChar,  uiNumPartition);
    306   m_pbUseDDD                         = (Bool*  ) xMalloc( Bool,   uiNumPartition);
    307 #endif
    308 #endif
    309297
    310298  // create motion vector fields
     
    390378#endif
    391379
    392 #if !LGE_DDD_REMOVAL_J0042_J0030
    393 #if H_3D_DDD
    394     if ( m_pucDisparityDerivedDepth ) { xFree(m_pucDisparityDerivedDepth);          m_pucDisparityDerivedDepth        = NULL; }
    395     if ( m_pbUseDDD                 ) { xFree(m_pbUseDDD);                          m_pbUseDDD                        = NULL; }
    396 #endif
    397 #endif
    398380
    399381#if H_3D_ARP
     
    524506#endif
    525507
    526 #if !LGE_DDD_REMOVAL_J0042_J0030
    527 #if H_3D_DDD
    528     m_pucDisparityDerivedDepth[ui] = pcFrom->m_pucDisparityDerivedDepth[ui];
    529     m_pbUseDDD[ui] = pcFrom->m_pbUseDDD[ui];
    530 #endif
    531 #endif
    532508    m_puhWidth  [ui] = pcFrom->getWidth(ui);
    533509    m_puhHeight [ui] = pcFrom->getHeight(ui);
     
    611587#endif
    612588
    613 #if !LGE_DDD_REMOVAL_J0042_J0030
    614 #if H_3D_DDD
    615     memset( m_pucDisparityDerivedDepth        + firstElement, 0,           numElements * sizeof( *m_pucDisparityDerivedDepth ) );
    616     memset( m_pbUseDDD                        + firstElement, 0,           numElements * sizeof( *m_pbUseDDD ) );
    617 #endif
    618 #endif
    619589
    620590#if H_3D_DIM
     
    793763#endif
    794764
    795 #if !LGE_DDD_REMOVAL_J0042_J0030
    796 #if H_3D_DDD
    797       m_pucDisparityDerivedDepth[ui] = 0;
    798       m_pbUseDDD[ui] = 0;
    799 #endif
    800 #endif
    801765
    802766#if H_3D_DIM
     
    904868#endif
    905869
    906 #if !LGE_DDD_REMOVAL_J0042_J0030
    907 #if H_3D_DDD
    908   memset( m_pucDisparityDerivedDepth,         0, iSizeInUchar );
    909   memset( m_pbUseDDD,                         0, iSizeInBool );
    910 #endif
    911 #endif
    912870
    913871  UChar uhWidth  = g_uiMaxCUWidth  >> uiDepth;
     
    1003961#endif
    1004962
    1005 #if !LGE_DDD_REMOVAL_J0042_J0030
    1006 #if H_3D_DDD
    1007       m_pucDisparityDerivedDepth[ui] = pcCU->m_pucDisparityDerivedDepth[uiPartOffset+ui];
    1008       m_pbUseDDD[ui]                 = pcCU->m_pbUseDDD[uiPartOffset+ui];
    1009 #endif
    1010 #endif
    1011963
    1012964#if H_3D_DIM
     
    11541106#endif
    11551107
    1156 #if !LGE_DDD_REMOVAL_J0042_J0030
    1157 #if H_3D_DDD
    1158   m_pucDisparityDerivedDepth          = pcCU->getDDDepth()        + uiPart;
    1159   m_pbUseDDD                          = pcCU->getUseDDD()         + uiPart;
    1160 #endif
    1161 #endif
    11621108
    11631109  m_puhLumaIntraDir     = pcCU->getLumaIntraDir()     + uiPart;
     
    13091255#endif
    13101256
    1311 #if !LGE_DDD_REMOVAL_J0042_J0030
    1312 #if H_3D_DDD
    1313   m_pucDisparityDerivedDepth         = pcCU->getDDDepth()              + uiAbsPartIdx;
    1314   m_pbUseDDD                         = pcCU->getUseDDD()              + uiAbsPartIdx;
    1315 #endif
    1316 #endif
    13171257   
    13181258#if H_3D_DBBP
     
    13801320  memcpy( m_puhCbf[2] + uiOffset, pcCU->getCbf(TEXT_CHROMA_V), iSizeInUchar );
    13811321
    1382 #if !LGE_DDD_REMOVAL_J0042_J0030
    1383 #if H_3D_DDD
    1384   memcpy( m_pucDisparityDerivedDepth          + uiOffset, pcCU->getDDDepth(),         iSizeInUchar );
    1385   memcpy( m_pbUseDDD                          + uiOffset, pcCU->getUseDDD(),          iSizeInBool );
    1386 #endif
    1387 #endif
    13881322
    13891323
     
    14851419#endif
    14861420
    1487 #if !LGE_DDD_REMOVAL_J0042_J0030
    1488 #if H_3D_DDD
    1489   memcpy( rpcCU->getDDDepth()          + m_uiAbsIdxInLCU, m_pucDisparityDerivedDepth,         iSizeInUchar  );
    1490   memcpy( rpcCU->getUseDDD()           + m_uiAbsIdxInLCU, m_pbUseDDD,                         iSizeInBool  );
    1491 #endif
    1492 #endif
    14931421
    14941422  memcpy( rpcCU->getPartitionSize()  + m_uiAbsIdxInLCU, m_pePartSize, sizeof( *m_pePartSize ) * m_uiNumPartition );
     
    16241552  memcpy( rpcCU->getCbf(TEXT_CHROMA_V) + uiPartOffset, m_puhCbf[2], iSizeInUchar );
    16251553
    1626 #if !LGE_DDD_REMOVAL_J0042_J0030
    1627 #if H_3D_DDD
    1628   memcpy( rpcCU->getDDDepth()          + uiPartOffset, m_pucDisparityDerivedDepth,         iSizeInUchar );
    1629   memcpy( rpcCU->getUseDDD()           + uiPartOffset, m_pbUseDDD,                         iSizeInBool );
    1630 #endif
    1631 #endif
    16321554
    16331555#if H_3D_DIM
     
    16961618}
    16971619
    1698 #if !LGE_DDD_REMOVAL_J0042_J0030
    1699 #if H_3D_DDD
    1700 Void TComDataCU::setDDDepthSubParts ( UChar ucDDD, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth )
    1701 {
    1702     setSubPart<UChar>( ucDDD, m_pucDisparityDerivedDepth, uiAbsPartIdx, uiDepth, uiPartIdx );
    1703 }
    1704 
    1705 Void TComDataCU::setUseDDD        ( Bool bUseDDD, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth )
    1706 {
    1707     setSubPart<Bool>( bUseDDD, m_pbUseDDD, uiAbsPartIdx, uiDepth, uiPartIdx );
    1708 }
    1709 
    1710 Void TComDataCU::setUseDDD( Bool bUseDDD, UInt uiAbsPartIdx, UInt uiDepth )
    1711 {
    1712     memset( m_pbUseDDD + uiAbsPartIdx, bUseDDD, (m_pcPic->getNumPartInCU() >> ( 2 * uiDepth ))*sizeof(Bool) );
    1713 }
    1714 
    1715 #endif
    1716 #endif
    17171620
    17181621// --------------------------------------------------------------------------------------------------------------------
     
    24252328    Bool depthRefineFlag = false;
    24262329#if H_3D_NBDV_REF
    2427 #if HHI_TOOL_PARAMETERS_I2_J0107
    24282330    depthRefineFlag = m_pcSlice->getDepthRefinementFlag(  );
    2429 #else
    2430     depthRefineFlag = m_pcSlice->getVPS()->getDepthRefinementFlag( m_pcSlice->getLayerIdInVps() );
    2431 #endif
    24322331#endif // H_3D_NBDV_REF
    24332332   
     
    33403239inline Bool TComDataCU::xAddVspCand( Int mrgCandIdx, DisInfo* pDInfo, Int& iCount)
    33413240{
    3342 #if HHI_TOOL_PARAMETERS_I2_J0107
    33433241  if ( m_pcSlice->getViewIndex() == 0 || !m_pcSlice->getViewSynthesisPredFlag( ) || m_pcSlice->getIsDepth() || pDInfo->m_aVIdxCan == -1)
    3344 #else
    3345   if ( m_pcSlice->getViewIndex() == 0 || !m_pcSlice->getVPS()->getViewSynthesisPredFlag( m_pcSlice->getLayerIdInVps() ) || m_pcSlice->getIsDepth() || pDInfo->m_aVIdxCan == -1)
    3346 #endif
    33473242  {
    33483243    return false;
     
    38993794)
    39003795{
    3901 #if !SEC_A1_BASED_VSP_J0039
    3902   UInt uiAbsPartAddr = m_uiAbsIdxInLCU + uiAbsPartIdx;
    3903 #endif
    39043796#if H_3D_IV_MERGE
    39053797  ////////////////////////////
     
    39143806  UChar tmpDir;
    39153807
    3916 #if !LGE_DDD_REMOVAL_J0042_J0030
    3917 #if H_3D_DDD
    3918   m_iUseDDDCandIdx = -1;
    3919 #endif
    3920 #endif
    39213808
    39223809  //////////////////////////////////
     
    39583845  deriveLeftBottomIdxGeneral  ( uiAbsPartIdx, uiPUIdx, uiPartIdxLB );
    39593846#if H_3D
    3960 #if HHI_TOOL_PARAMETERS_I2_J0107
    39613847  Bool bMPIFlag   = getSlice()->getMpiFlag();
    3962 #else
    3963   Bool bMPIFlag   = getSlice()->getVPS()->getMPIFlag( getSlice()->getLayerIdInVps() );
    3964 #endif
    39653848  Bool bIsDepth = getSlice()->getIsDepth();
    39663849#endif
     
    40223905
    40233906  // above
    4024 #if !SEC_A1_BASED_VSP_J0039
    4025   UInt uiAbovePartIdx = 0;
    4026   TComDataCU* pcCUAbove = 0;
    4027   pcCUAbove = getPUAbove( uiAbovePartIdx, uiPartIdxRT );
    4028 #endif
    40293907
    40303908  if (getAvailableFlagB1())
     
    40333911#if H_3D_VSP
    40343912    ,
    4035 #if SEC_A1_BASED_VSP_J0039
    40363913      false
    4037 #else
    4038       ( ( ( getAddr() - pcCUAbove->getAddr() ) == 0) && (pcCUAbove->getVSPFlag(uiAbovePartIdx) != 0)
    4039 #if H_3D_IC
    4040       && !bICFlag
    4041 #endif
    4042 #if H_3D_ARP
    4043       && !bARPFlag
    4044 #endif
    4045 #if H_3D_DBBP
    4046       && !bDBBPFlag
    4047 #endif
    4048       )
    4049 #endif
    40503914#endif
    40513915      , false
     
    40553919
    40563920  // above right
    4057 #if !SEC_A1_BASED_VSP_J0039
    4058   UInt uiAboveRightPartIdx = 0;
    4059   TComDataCU* pcCUAboveRight = 0;
    4060   pcCUAboveRight = getPUAboveRight( uiAboveRightPartIdx, uiPartIdxRT );
    4061 #endif
    40623921
    40633922  if (getAvailableFlagB0())
     
    40663925#if H_3D_VSP
    40673926    ,
    4068 #if SEC_A1_BASED_VSP_J0039
    40693927      false
    4070 #else
    4071       ( ( ( getAddr() - pcCUAboveRight->getAddr() ) == 0) && (pcCUAboveRight->getVSPFlag(uiAboveRightPartIdx) != 0)
    4072 #if H_3D_IC
    4073       && !bICFlag
    4074 #endif
    4075 #if H_3D_ARP
    4076       && !bARPFlag
    4077 #endif
    4078 #if H_3D_DBBP
    4079       && !bDBBPFlag
    4080 #endif
    4081       )
    4082 #endif
    40833928#endif
    40843929      , false
     
    40883933
    40893934  // left bottom
    4090 #if !SEC_A1_BASED_VSP_J0039
    4091   UInt uiLeftBottomPartIdx = 0;
    4092   TComDataCU* pcCULeftBottom = getPUBelowLeft( uiLeftBottomPartIdx, uiPartIdxLB );
    4093 #endif
    40943935
    40953936  if (getAvailableFlagA0())
     
    40983939#if H_3D_VSP
    40993940    ,
    4100 #if SEC_A1_BASED_VSP_J0039
    41013941      false
    4102 #else
    4103       (pcCULeftBottom->getVSPFlag(uiLeftBottomPartIdx) != 0
    4104 #if H_3D_IC
    4105       && !bICFlag
    4106 #endif
    4107 #if H_3D_ARP
    4108       && !bARPFlag
    4109 #endif
    4110 #if H_3D_DBBP
    4111       && !bDBBPFlag
    4112 #endif
    4113       )
    4114 #endif
    41153942#endif
    41163943      , false
     
    41203947
    41213948  // above left
    4122 #if !SEC_A1_BASED_VSP_J0039
    4123   UInt uiAboveLeftPartIdx = 0;
    4124   TComDataCU* pcCUAboveLeft = 0;
    4125   pcCUAboveLeft = getPUAboveLeft( uiAboveLeftPartIdx, uiAbsPartAddr );
    4126 #endif
    41273949
    41283950  if (getAvailableFlagB2())
     
    41313953#if H_3D_VSP
    41323954    ,
    4133 #if SEC_A1_BASED_VSP_J0039
    41343955      false
    4135 #else
    4136       ( ( ( getAddr() - pcCUAboveLeft->getAddr() ) == 0) && (pcCUAboveLeft->getVSPFlag(uiAboveLeftPartIdx) != 0)
    4137 #if H_3D_IC
    4138       && !bICFlag
    4139 #endif
    4140 #if H_3D_ARP
    4141       && !bARPFlag
    4142 #endif
    4143 #if H_3D_DBBP
    4144       && !bDBBPFlag
    4145 #endif
    4146       )
    4147 #endif
    41483956#endif
    41493957      , false
     
    43434151    }
    43444152  }
    4345 #if !LGE_DDD_REMOVAL_J0042_J0030
    4346 #if H_3D_DDD
    4347   if( m_pcSlice->getIsDepth() && m_pcSlice->getViewIndex() != 0  && bMPIFlag )
    4348   {
    4349     UInt uiPartIdx;
    4350     TComDataCU *pcTextureCU = m_pcSlice->getTexturePic()->getCU( getAddr() );
    4351     TComSlice *pcTextureSlice = pcTextureCU->getSlice(); 
    4352 
    4353 
    4354     tmpMV[0].setMvField( cZeroMv, NOT_VALID );
    4355     tmpMV[1].setMvField( cZeroMv, NOT_VALID );
    4356     tmpDir = 0;
    4357 
    4358     xDeriveCenterIdx( uiPUIdx, uiPartIdx);
    4359 
    4360     if ( pcTextureCU && !pcTextureCU->isIntra( uiPartIdx ) )
    4361     {
    4362 
    4363       TComMvField cMVField;
    4364       Int iDV = 0;
    4365       Int iViewIdx = 0;
    4366       pcTextureCU->getMvField( pcTextureCU, uiPartIdx, REF_PIC_LIST_0, cMVField );
    4367       if( cMVField.getRefIdx() >= 0 )
    4368       {
    4369         if( pcTextureSlice->getRefPOC( REF_PIC_LIST_0, cMVField.getRefIdx()) == pcTextureSlice->getPOC() )
    4370         {
    4371           iViewIdx = pcTextureSlice->getRefPic( REF_PIC_LIST_0, cMVField.getRefIdx())->getViewIndex();
    4372           iDV = cMVField.getHor();
    4373 
    4374 
    4375           Int iValidDepRef = getPic()->isTextRefValid( REF_PIC_LIST_0, cMVField.getRefIdx() );
    4376 
    4377           if( iValidDepRef >= 0 )
    4378           {
    4379             const TComMv cAdd( 2, 2 );
    4380             cMVField.getMv() += cAdd;
    4381             cMVField.getMv() >>= 2;
    4382 #if !(NTT_BUG_FIX_TK54)
    4383             clipMv( cMVField.getMv() );
    4384 #endif
    4385             tmpMV[ 0 ].setMvField( cMVField.getMv(), iValidDepRef );
    4386             tmpDir = 1;
    4387           }
    4388         }
    4389       }
    4390 
    4391       pcTextureCU->getMvField( pcTextureCU, uiPartIdx, REF_PIC_LIST_1, cMVField );
    4392 
    4393       if( !tmpDir && cMVField.getRefIdx() >= 0 )
    4394       {
    4395         if( pcTextureSlice->getRefPOC( REF_PIC_LIST_1, cMVField.getRefIdx()) == pcTextureSlice->getPOC() )
    4396         {
    4397           iViewIdx = pcTextureSlice->getRefPic( REF_PIC_LIST_1, cMVField.getRefIdx())->getViewIndex();
    4398           iDV = cMVField.getHor();
    4399 
    4400           Int iValidDepRef = getPic()->isTextRefValid( REF_PIC_LIST_1, cMVField.getRefIdx() );
    4401 
    4402           if( iValidDepRef >= 0 )
    4403           {
    4404             const TComMv cAdd( 2, 2 );
    4405             cMVField.getMv() += cAdd;
    4406             cMVField.getMv() >>= 2;
    4407 #if !(NTT_BUG_FIX_TK54)
    4408             clipMv( cMVField.getMv() );
    4409 #endif
    4410             tmpMV[ 1 ].setMvField( cMVField.getMv(), iValidDepRef );
    4411             tmpDir = 2;
    4412           }
    4413         }
    4414       }
    4415       if( tmpDir != 0 )
    4416       {
    4417         m_ucDDTmpDepth = m_pcSlice->getDepthFromDV( iDV,  iViewIdx );
    4418         m_iUseDDDCandIdx = iCount;
    4419 
    4420         m_mergCands[MRG_D].setCand( tmpMV, tmpDir, false, false);
    4421         if ( mrgCandIdx == iCount )
    4422         {
    4423           return;
    4424         }
    4425         iCount ++;
    4426       }
    4427     }
    4428   }
    4429 #endif
    4430 #endif
    44314153  /////////////////////////////////////////////////////////////////
    44324154  //////// DERIVE IvMC, IvMCShift,IvDCShift, IvDC  Candidates /////
     
    44414163  Int    ivCandDir   [4] = {0, 0, 0, 0};
    44424164
    4443 #if HHI_TOOL_PARAMETERS_I2_J0107
    44444165  Bool ivMvPredFlag   = getSlice()->getIvMvPredFlag();
    4445 #else
    4446   Bool ivMvPredFlag   = getSlice()->getVPS()->getIvMvPredFlag( getSlice()->getLayerIdInVps() );
    4447 #endif
    44484166
    44494167  ivMvPredFlag &= (nPSW + nPSH > 12);
     
    45284246
    45294247#if H_3D
    4530 #if SEC_A1_BASED_VSP_J0039
    45314248  iCount += m_mergCands[MRG_A1].m_bAvailable + m_mergCands[MRG_B1].m_bAvailable;
    4532 #else
    4533   iCount += m_mergCands[MRG_A1].m_bAvailable + m_mergCands[MRG_B1].m_bAvailable + m_mergCands[MRG_B0].m_bAvailable;
    4534 #endif
    45354249#else
    45364250  //left
     
    46314345#endif
    46324346
    4633 #if !LGE_DDD_REMOVAL_J0042_J0030
    4634 #if H_3D_DDD
    4635   // early termination
    4636   if ( iCount >= getSlice()->getMaxNumMergeCand())
    4637   {
    4638       return;
    4639   }
    4640 #endif
    4641 #endif
    4642 
    4643 #if SEC_A1_BASED_VSP_J0039
     4347
    46444348#if H_3D_VSP
    46454349  /////////////////////////////////////////////////
     
    46804384  iCount += m_mergCands[MRG_B0].m_bAvailable;
    46814385#endif
    4682 #endif
    46834386
    46844387
     
    47364439#endif // H_3D_IV_MERGE
    47374440
    4738 #if !SEC_A1_BASED_VSP_J0039
    4739 #if H_3D_VSP
    4740   /////////////////////////////////////////////////
    4741   //////// VIEW SYNTHESIS PREDICTION (VSP) ////////
    4742   /////////////////////////////////////////////////
    4743   if (iCount<getSlice()->getMaxNumMergeCand())
    4744   {
    4745 
    4746   if (
    4747 #if H_3D_IC
    4748       !bICFlag &&
    4749 #endif
    4750 #if H_3D_ARP
    4751       !bARPFlag &&
    4752 #endif
    4753 #if H_3D
    4754       (nPSW + nPSH > 12) &&
    4755 #endif
    4756 #if H_3D_DBBP
    4757       !bDBBPFlag &&
    4758 #endif
    4759       xAddVspCand( mrgCandIdx, &cDisInfo, iCount ) )
    4760   {
    4761     return;
    4762   }
    4763 
    4764   // early termination
    4765   if (iCount == getSlice()->getMaxNumMergeCand())
    4766   {
    4767     return;
    4768   }
    4769 #endif
    4770 #if H_3D
    4771   }
    4772 #endif
    4773 #endif
    47744441
    47754442#if H_3D
     
    60165683    iScale = xGetDistScaleFactor( iCurrViewId, iCurrRefViewId, iColViewId, iColRefViewId );
    60175684
    6018 #if HHI_TOOL_PARAMETERS_I2_J0107
    60195685    if ( iScale != 4096 && m_pcSlice->getIvMvScalingFlag( ) )
    6020 #else
    6021     if ( iScale != 4096 && m_pcSlice->getVPS()->getIvMvScalingFlag(getSlice()->getLayerIdInVps()) )
    6022 #endif
    60235686    {
    60245687      rcMv = cColMv.scaleMv( iScale );
     
    62035866
    62045867  TComMv cMv;
    6205 #if LGE_DEFAULT_DV_J0046
    62065868  if ( getSlice()->getDefaultRefViewIdxAvailableFlag() )
    62075869  {
    62085870      Int iViewIdx = getSlice()->getDefaultRefViewIdx();
    62095871      pDisp->m_aVIdxCan = iViewIdx;
    6210 #if HHI_TOOL_PARAMETERS_I2_J0107
    62115872      Int iDisp     = getSlice()->getDepthToDisparityB( iViewIdx )[ (Int64) (1 << ( getSlice()->getSPS()->getBitDepthY() - 1 )) ];
    6212 #else
    6213       Int iDisp     = getSlice()->getDepthToDisparityB( iViewIdx )[ 1 << ( getSlice()->getSPS()->getBitDepthY() - 1 ) ];
    6214 #endif
    62155873
    62165874      cMv.setHor(iDisp);
     
    62225880  }
    62235881  return false;
    6224 #else
    6225 #if MTK_I0093
    6226   Int iDisp     = getSlice()->getDepthToDisparityB( 0 )[ (Int64) (1 << ( getSlice()->getSPS()->getBitDepthY() - 1 )) ];
    6227 #else
    6228   Int iDisp     = getSlice()->getDepthToDisparityB( 0 )[ 128 ];
    6229 #endif
    6230   cMv.setHor(iDisp);
    6231   cMv.setVer(0);
    6232   pDisp->m_acNBDV = cMv;
    6233   pDisp->m_aVIdxCan = 0;
    6234 
    6235   return true;
    6236 #endif
    62375882}
    62385883#endif
     
    62665911    }
    62675912    break;
    6268 #if !SINGLE_DEPTH_SIMP_J0115
    6269   case 2: // Above
    6270     if(yP != 0)
    6271     {
    6272       *pNeighDepth = pDepth[ (yP-1) * iDepStride + (xP) ];
    6273       bDepAvail = true;
    6274     }
    6275     break;
    6276   case 3: // Left
    6277     if(xP != 0)
    6278     {
    6279       *pNeighDepth = pDepth[ (yP) * iDepStride + (xP-1) ];
    6280       bDepAvail = true;
    6281     }
    6282     break;
    6283   case 4: // Above_Left
    6284     if(xP != 0 && yP != 0)
    6285     {
    6286       *pNeighDepth = pDepth[ (yP-1) * iDepStride + (xP-1) ];
    6287       bDepAvail = true;
    6288     }
    6289     break;
    6290 #endif
    62915913  default:
    62925914      break;
     
    63275949  }
    63285950#if H_3D_NBDV_REF
    6329 #if HHI_TOOL_PARAMETERS_I2_J0107
    63305951  if( !m_pcSlice->getDepthRefinementFlag( ) )
    6331 #else
    6332   if( !m_pcSlice->getVPS()->getDepthRefinementFlag( m_pcSlice->getLayerIdInVps() ) )
    6333 #endif
    63345952  {
    63355953    bDepthRefine = false;
     
    64926110  pDInfo->m_acNBDV = defaultDV;
    64936111
    6494 #if LGE_DEFAULT_DV_J0046
    64956112  if (getSlice()->getDefaultRefViewIdxAvailableFlag())
    64966113  {
     
    65206137      pDInfo->m_acDoNBDV = defaultDV;
    65216138#endif
    6522 #if LGE_SIMP_DISP_AVAIL_J0041
    65236139      return true;
    6524 #endif
    6525   }
    6526 #else
    6527   Int valid = 0;
    6528   Int viewIndex = 0;
    6529   for( UInt uiBId = 0; uiBId < getSlice()->getViewIndex() && valid==0; uiBId++ )
    6530   {
    6531     UInt        uiBaseId    = uiBId;
    6532     TComPic*    pcBasePic   = getSlice()->getIvPic( false, uiBaseId );
    6533     for( Int iRefListId = 0; ( iRefListId < (getSlice()->isInterB()? 2:1) ) && !getSlice()->isIntra() && valid==0; iRefListId++ )
    6534     {
    6535       RefPicList  eRefPicListTest = RefPicList( iRefListId );
    6536       Int         iNumRefPics = getSlice()->getNumRefIdx( eRefPicListTest ) ;
    6537       for( Int iRefIndex = 0; iRefIndex < iNumRefPics; iRefIndex++ )
    6538       {
    6539         if(pcBasePic->getPOC() == getSlice()->getRefPic( eRefPicListTest, iRefIndex )->getPOC()
    6540           && pcBasePic->getViewIndex() == getSlice()->getRefPic( eRefPicListTest, iRefIndex )->getViewIndex())
    6541         {
    6542           valid=1;
    6543           viewIndex = uiBaseId;
    6544           break;
    6545         }
    6546       }
    6547     }
    6548   }
    6549   if(valid)
    6550   {
    6551     pDInfo->m_aVIdxCan = viewIndex;
    6552 #if H_3D_NBDV_REF
    6553     TComPic* picDepth = NULL;
    6554 #if H_3D_FCO_VSP_DONBDV_E0163
    6555     picDepth  = getSlice()->getIvPic(true, getSlice()->getViewIndex() );
    6556     if ( picDepth->getPicYuvRec() != NULL ) 
    6557     {
    6558       defaultDV.setZero();
    6559     }
    6560     else // Go back with virtual depth
    6561     {
    6562       picDepth = getSlice()->getIvPic( true, viewIndex );
    6563     }
    6564 
    6565     assert(picDepth != NULL);
    6566 #else
    6567     picDepth = getSlice()->getIvPic( true, viewIndex );
    6568 #if !BUG_FIX_TK65
    6569     assert(picDepth!=NULL);
    6570 #endif
    6571 #endif
    6572     if (picDepth && bDepthRefine)
    6573     {
    6574       estimateDVFromDM(viewIndex, uiPartIdx, picDepth, uiPartAddr, &defaultDV ); // from base view
    6575     }
    6576     pDInfo->m_acDoNBDV = defaultDV;
    6577 #endif
    6578 #if LGE_SIMP_DISP_AVAIL_J0041
    6579     return true;
    6580 #endif
    6581   }
    6582 #endif
     6140  }
    65836141  return false;
    65846142}
     
    68346392  Bool depthRefineFlag = false;
    68356393#if H_3D_NBDV_REF
    6836 #if HHI_TOOL_PARAMETERS_I2_J0107
    68376394  depthRefineFlag = m_pcSlice->getDepthRefinementFlag( );
    6838 #else
    6839   depthRefineFlag = m_pcSlice->getVPS()->getDepthRefinementFlag( m_pcSlice->getLayerIdInVps() );
    6840 #endif
    68416395#endif // H_3D_NBDV_REF
    68426396
     
    68966450Void TComDataCU::getSPPara(Int iPUWidth, Int iPUHeight, Int& iNumSP, Int& iNumSPInOneLine, Int& iSPWidth, Int& iSPHeight)
    68976451{
    6898 #if HHI_TOOL_PARAMETERS_I2_J0107
    68996452  Int iSubPUSize = ( getSlice()->getIsDepth() ? getSlice()->getMpiSubPbSize() : getSlice()->getSubPbSize() );
    6900 #else
    6901   Int iSubPUSize = 1<<getSlice()->getVPS()->getSubPULog2Size(getSlice()->getLayerId());
    6902   if( getSlice()->getIsDepth() )
    6903   {
    6904     iSubPUSize = 1<<getSlice()->getVPS()->getSubPUMPILog2Size(getSlice()->getLayerId());
    6905   }
    6906 #endif
    69076453
    69086454  iNumSPInOneLine = iPUWidth/iSubPUSize;
    6909 #if !HS_SP_SIMP_J0066
    6910   iNumSPInOneLine = iNumSPInOneLine < 1 ? 1: iNumSPInOneLine;
    6911 #endif
    69126455  Int iNumSPInOneColumn = iPUHeight/iSubPUSize;
    6913 #if !HS_SP_SIMP_J0066
    6914   iNumSPInOneColumn = iNumSPInOneColumn < 1 ? 1: iNumSPInOneColumn;
    6915 #else
    69166456  iNumSPInOneLine = (iPUHeight % iSubPUSize != 0 || iPUWidth % iSubPUSize != 0 ) ? 1 : iNumSPInOneLine;
    69176457  iNumSPInOneColumn = (iPUHeight % iSubPUSize != 0  || iPUWidth % iSubPUSize != 0 ) ? 1 : iNumSPInOneColumn;
    6918 #endif
    69196458  iNumSP = iNumSPInOneLine * iNumSPInOneColumn;
    69206459
     
    69906529  Bool depthRefineFlag = false;
    69916530#if H_3D_NBDV_REF
    6992 #if HHI_TOOL_PARAMETERS_I2_J0107
    69936531  depthRefineFlag = m_pcSlice->getDepthRefinementFlag( );
    6994 #else
    6995   depthRefineFlag = m_pcSlice->getVPS()->getDepthRefinementFlag( m_pcSlice->getLayerIdInVps() );
    6996 #endif
    69976532#endif // H_3D_NBDV_REF
    69986533
Note: See TracChangeset for help on using the changeset viewer.