Changeset 1131 in 3DVCSoftware for branches/HTM-13.0-dev0/source/Lib/TLibCommon


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

Cleanup.

Location:
branches/HTM-13.0-dev0/source/Lib/TLibCommon
Files:
7 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
  • branches/HTM-13.0-dev0/source/Lib/TLibCommon/TComDataCU.h

    r1124 r1131  
    227227  DisInfo       m_cDefaultDisInfo;    ///< Default disparity information for initializing
    228228#endif
    229 #if !LGE_DDD_REMOVAL_J0042_J0030
    230 #if H_3D_DDD
    231   UChar*        m_pucDisparityDerivedDepth;
    232   Bool*         m_pbUseDDD;
    233   Int           m_iUseDDDCandIdx;
    234   UChar         m_ucDDTmpDepth;
    235 #endif
    236 #endif
    237229#if H_3D_IV_MERGE
    238230  TComMotionCand  m_mergCands[MRG_IVSHIFT+1];
     
    743735  UInt          getCoefScanIdx(UInt uiAbsPartIdx, UInt uiWidth, Bool bIsLuma, Bool bIsIntra);
    744736
    745 #if !LGE_DDD_REMOVAL_J0042_J0030
    746 #if H_3D_DDD
    747   UChar*       getDDDepth        ()                        { return m_pucDisparityDerivedDepth;        }
    748   UChar        getDDDepth        ( UInt uiIdx )            { return m_pucDisparityDerivedDepth[uiIdx]; }
    749   Void         setDDDepth        ( UInt uiIdx, UChar n )   { m_pucDisparityDerivedDepth[uiIdx] = n;    }
    750   Void         setDDDepthSubParts( UChar ucDDD, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth );
    751 
    752   Bool*        getUseDDD        ()                        { return m_pbUseDDD;        }
    753   Bool         getUseDDD        ( UInt uiIdx )            { return m_pbUseDDD[uiIdx]; }
    754   Void         setUseDDD        ( UInt uiIdx, Bool n )     { m_pbUseDDD[uiIdx] = n;    }
    755   Void         setUseDDD( Bool bUseDDD, UInt uiAbsPartIdx, UInt uiDepth );
    756 
    757   Void         setUseDDD        ( Bool bUseDDD, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth );
    758 
    759   UChar        getDDTmpDepth(){ return m_ucDDTmpDepth; }
    760   Int          getUseDDDCandIdx(){ return m_iUseDDDCandIdx;}
    761 
    762 #endif
    763 #endif
    764737
    765738#if H_3D_DIM
  • branches/HTM-13.0-dev0/source/Lib/TLibCommon/TComPrediction.cpp

    r1124 r1131  
    11581158  pcCU->clipMv(cMv);
    11591159
    1160 #if !LGE_DDD_REMOVAL_J0042_J0030
    1161 #if H_3D_DDD
    1162   if( pcCU->getUseDDD( uiPartAddr ) )
    1163   {
    1164       assert( pcCU->getSPIVMPFlag( uiPartAddr ) == 0 );
    1165       assert( pcCU->getSlice()->getViewIndex() != 0 );
    1166 
    1167       Int dstStride = rpcYuvPred->getStride();
    1168       Int dstStrideC = rpcYuvPred->getCStride();
    1169       Pel *dst      = rpcYuvPred->getLumaAddr( uiPartAddr );
    1170       Pel *dstU     = rpcYuvPred->getCbAddr( uiPartAddr );
    1171       Pel *dstV     = rpcYuvPred->getCrAddr( uiPartAddr );
    1172 
    1173       Int iWidthC  = iWidth >> 1;
    1174       Int iHeightC = iHeight >> 1;
    1175       Int DefaultC = 1 << ( g_bitDepthY - 1);
    1176       for ( Int i = 0; i < iHeight; i++)
    1177       {
    1178           for ( Int j = 0; j < iWidth ; j++)
    1179           {
    1180               dst[j] = pcCU->getDDDepth( uiPartAddr );
    1181           }
    1182           dst += dstStride;
    1183       }
    1184       for ( Int i = 0; i < iHeightC; i++)
    1185       {
    1186           for ( Int j = 0; j < iWidthC; j++)
    1187           {
    1188               dstU[j] = dstV[j] = DefaultC;
    1189           }
    1190           dstU += dstStrideC;
    1191           dstV += dstStrideC;
    1192       }
    1193 
    1194       //return;
    1195   } else
    1196 #endif
    1197 #endif
    11981160#if H_3D_ARP
    11991161  if(pcCU->getARPW( uiPartAddr ) > 0  && pcCU->getSlice()->getRefPic( eRefPicList, iRefIdx )->getPOC()== pcCU->getSlice()->getPOC())
     
    21902152      x += pRef[j];
    21912153      y += pRec[j];
    2192 #if LGE_CHROMA_IC_J0050_J0034
    21932154      if ( eType == TEXT_LUMA )
    21942155      {
    2195 #endif
    21962156        xx += (pRef[j] * pRef[j])>>precShift;
    21972157        xy += (pRef[j] * pRec[j])>>precShift;
    2198 #if LGE_CHROMA_IC_J0050_J0034
    2199       }
    2200 #endif
     2158      }
    22012159    }
    22022160    iCountShift += g_aucConvertToBit[ uiWidth ] + 1;
     
    22272185      x += pRef[0];
    22282186      y += pRec[0];
    2229 #if LGE_CHROMA_IC_J0050_J0034
    22302187      if ( eType == TEXT_LUMA )
    22312188      {
    2232 #endif
    22332189        xx += (pRef[0] * pRef[0])>>precShift;
    22342190        xy += (pRef[0] * pRec[0])>>precShift;
    2235 #if LGE_CHROMA_IC_J0050_J0034
    2236       }
    2237 #endif     
     2191      }
    22382192      pRef += iRefStride*2;
    22392193      pRec += iRecStride*2;
     
    22492203  }
    22502204
    2251 #if LGE_CHROMA_IC_J0050_J0034
    22522205  if (  eType != TEXT_LUMA )
    22532206  {
     
    22572210  else
    22582211  {
    2259 #endif
    22602212  xy += xx >> IC_REG_COST_SHIFT;
    22612213  xx += xx >> IC_REG_COST_SHIFT;
     
    22992251    }
    23002252  }   
    2301 #if LGE_CHROMA_IC_J0050_J0034
    2302   }
    2303 #endif
     2253  }
    23042254}
    23052255#endif
  • branches/HTM-13.0-dev0/source/Lib/TLibCommon/TComRom.cpp

    r1124 r1131  
    362362const UChar g_dmm1TabIdxBits[6] =
    363363{ //2x2   4x4   8x8 16x16 32x32 64x64
    364 #if MTK_DMM_SIM_J0035
    365364     0,    7,   10,   9,    9,   13 };
    366 #else
    367      0,    7,   10,   11,   11,   13 };
    368 #endif
    369365
    370366const UChar g_dmm3IntraTabIdxBits[6] =
     
    767763    }
    768764
    769 #if MTK_DMM_SIM_J0035
    770765    for( Int iK = 0; iK < uiBlockSize; iK += (uiWidth>=16 ?2:1))
    771766    {
     
    776771      }
    777772    }
    778 #else
    779     for( Int iK = 0; iK < uiBlockSize; iK++ )
    780     {
    781       for( Int iL = 0; iL < uiBlockSize; iL++ )
    782       {
    783         cTempWedgelet.setWedgelet( uhStartX + (iK*iStepStartX) , uhStartY + (iK*iStepStartY), uhEndX + (iL*iStepEndX), uhEndY + (iL*iStepEndY), (UChar)uiOri, eWedgeRes, ((iL%2)==0 && (iK%2)==0) );
    784         addWedgeletToList( cTempWedgelet, racWedgeList, racWedgeRefList );
    785       }
    786     }
    787 #endif
    788773  }
    789774
  • branches/HTM-13.0-dev0/source/Lib/TLibCommon/TComSlice.cpp

    r1124 r1131  
    179179  }
    180180#endif
    181 #if LGE_DEFAULT_DV_J0046
    182181  m_iDefaultRefViewIdx = -1;
    183182  m_bDefaultRefViewIdxAvailableFlag = false;
    184 #endif
    185183}
    186184
     
    18791877  m_vpsBaseLayerAvailableFlag = true;
    18801878
    1881 #if  H_MV_FIX_NUM_VIEWS
    18821879  m_numViews = 0;
    1883 #endif
    18841880
    18851881#endif
     
    19181914  m_repFormatIdxPresentFlag = false;
    19191915  m_maxOneActiveRefLayerFlag = false;
    1920 #if H_MV_HLS_FIX
    19211916  m_vpsPocLsbAlignedFlag  = false;
    1922 #endif
    19231917  m_directDepTypeLenMinus2   = 0;         
    19241918 
     
    19561950    m_layerIdInNuh      [i] = ( i == 0 ) ? 0 : -1;
    19571951    m_numDirectRefLayers[i] = 0;
    1958 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    19591952#if H_3D
    19601953    m_numRefListLayers[i] = 0;
    1961 #endif
    19621954#endif
    19631955    m_vpsRepFormatIdx    [i] = 0;
     
    19681960#if H_3D
    19691961    m_viewIndex         [i] = -1;
    1970 #if !HHI_TOOL_PARAMETERS_I2_J0107
    1971     m_vpsDepthModesFlag [i] = false;
    1972     m_ivMvScalingFlag[i] = true;
    1973     m_bIVPFlag [i]      = false;
    1974 #if MTK_SINGLE_DEPTH_VPS_FLAG_J0060
    1975     m_singleDepthModeFlag[ i ] = false;
    1976 #endif
    1977 #endif
    19781962#endif
    19791963
     
    19841968      m_dependencyFlag  [i][j]    = false;
    19851969      m_idDirectRefLayer[i][j]    = -1;
    1986 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    19871970#if H_3D
    19881971      m_idRefListLayer[i][j]    = -1;
    1989 #endif
    19901972#endif
    19911973      m_idPredictedLayer[i][j]    = -1;
     
    19991981    }
    20001982#if H_3D_ARP
    2001 #if !HHI_TOOL_PARAMETERS_I2_J0107
    2002     m_uiUseAdvResPred[i]  = 0;
    2003     m_uiARPStepNum[i]     = 1;
    2004 #endif
    20051983#endif
    20061984  }
     
    20081986  m_dpbSize = new TComDpbSize;
    20091987
    2010 #if !HHI_TOOL_PARAMETERS_I2_J0107
    2011 #if H_3D
    2012   for( Int i = 0; i < MAX_NUM_LAYERS; i++ )
    2013   {
    2014 #if H_3D_IV_MERGE
    2015     m_ivMvPredFlag         [ i ] = false;
    2016 #if H_3D_SPIVMP
    2017     m_iSubPULog2Size       [ i ] = 0;
    2018 #endif
    2019 #endif
    2020 #if H_3D_QTLPC
    2021     m_bLimQtPredFlag       [ i ] = false;
    2022 #endif
    2023 #if H_3D_VSP
    2024     m_viewSynthesisPredFlag[ i ] = false;
    2025 #endif
    2026 #if H_3D_NBDV_REF
    2027     m_depthRefinementFlag  [ i ] = false;
    2028 #endif
    2029 #if H_3D_INTER_SDC
    2030     m_bInterSDCFlag        [ i ] = false;
    2031 #endif
    2032 #if H_3D
    2033     m_bIVPFlag             [ i ] = false;
    2034 #endif
    2035 #if H_3D_DBBP
    2036     m_dbbpFlag             [ i ] = false;
    2037 #endif
    2038 #if H_3D_IV_MERGE
    2039     m_bMPIFlag             [ i ] = false;
    2040 #endif
    2041   } 
    2042 #endif
    2043 #endif
    20441988
    20451989#endif
     
    21322076    Int iNuhLId = getLayerIdInNuh( i );
    21332077    Int d = 0;
    2134 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    21352078#if H_3D
    21362079    Int l = 0;
    21372080#endif
    2138 #endif
    21392081    Int r = 0;
    21402082    Int p = 0;
     
    21472089        m_idDirectRefLayer[iNuhLId][d++] = jNuhLid;
    21482090      }
    2149 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    21502091#if H_3D
    21512092      if( getDirectDependencyFlag( i , j ) && ( getDepthId( iNuhLId ) == getDepthId( jNuhLid ) ))
     
    21542095      }
    21552096#endif
    2156 #endif
    21572097
    21582098      if( getDependencyFlag( i , j ) )
     
    21662106    }
    21672107    m_numDirectRefLayers[ iNuhLId ] = d;
    2168 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    21692108#if H_3D
    21702109    m_numRefListLayers[ iNuhLId ] = l;
    2171 #endif
    21722110#endif
    21732111
     
    22062144
    22072145
    2208 #if H_MV_FIX_NUM_VIEWS
    22092146Void     TComVPS::initNumViews( )
    22102147{
     
    22422179  }
    22432180}
    2244 #endif
    22452181
    22462182
     
    24032339}
    24042340
    2405 #if !H_MV_FIX_NUM_VIEWS
    2406 Int TComVPS::getNumViews()
    2407 {
    2408   Int numViews = 1;
    2409   for( Int i = 0; i <=  getMaxLayersMinus1(); i++ )
    2410   {
    2411     Int lId = getLayerIdInNuh( i );
    2412     if ( i > 0 && ( getViewIndex( lId ) != getScalabilityId( i - 1, VIEW_ORDER_INDEX ) ) )
    2413     {
    2414       numViews++;
    2415     }   
    2416   }
    2417   return numViews;
    2418 }
    2419 #endif
    24202341
    24212342
     
    26562577  xPrintArray( "IdRefLayer"      , getMaxLayersMinus1() + 1, m_layerIdInNuh, m_numRefLayers, m_idRefLayer, true );
    26572578  xPrintArray( "IdDirectRefLayer", getMaxLayersMinus1() + 1, m_layerIdInNuh, m_numDirectRefLayers, m_idDirectRefLayer, true );
    2658 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    26592579#if H_3D
    26602580  xPrintArray( "IdRefListLayer", getMaxLayersMinus1() + 1, m_layerIdInNuh, m_numRefListLayers, m_idRefListLayer, true );
    2661 #endif
    26622581#endif
    26632582
     
    30843003      i++;
    30853004    }
    3086 #if SHARP_DLT_SIMP_J0029
    30873005    iIdxUp = bFound ?  iIdxDown + 1 : iNumDepthValues-1;
    3088 #else
    3089     // iterate over indices to find upper closest depth
    3090     i = iNumDepthValues-2;
    3091     bFound = false;
    3092     while(!bFound && i>=0)
    3093     {
    3094       if( m_iIdx2DepthValue[layerIdInVps][i] < p )
    3095       {
    3096         iIdxUp  = i+1;
    3097         bFound    = true;
    3098       }
    3099 
    3100       i--;
    3101     }
    3102 
    3103     // assert monotony
    3104     assert(iIdxDown<=iIdxUp);
    3105 #endif
    31063006
    31073007    // assign closer depth value/idx
     
    36843584{
    36853585  TComVPS* vps = getVPS();
    3686 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    36873586#if H_3D
    36883587  Int refLayerIdx = vps->getLayerIdInVps( vps->getIdRefListLayer( getLayerId(), i ) );
     
    36903589  Int refLayerIdx = vps->getLayerIdInVps( vps->getIdDirectRefLayer( getLayerId(), i ) );
    36913590#endif
    3692 #else
    3693   Int refLayerIdx = vps->getLayerIdInVps( vps->getIdDirectRefLayer( getLayerId(), i ) );
    3694 #endif
    3695 
    3696 #if H_MV_FIX_REF_LAYER_PIC_FLAG
     3591
    36973592  Bool refLayerPicFlag = ( vps->getSubLayersVpsMaxMinus1( refLayerIdx ) >=  getTLayer()  && ( getTLayer() == 0   ||
    36983593    vps->getMaxTidIlRefPicsPlus1( refLayerIdx, vps->getLayerIdInVps( getLayerId() )) > getTLayer() ));
    3699 #else
    3700   Bool refLayerPicFlag = ( vps->getSubLayersVpsMaxMinus1( refLayerIdx ) >=  getTLayer() )  && ( getTLayer() == 0  ) &&
    3701     ( vps->getMaxTidIlRefPicsPlus1( refLayerIdx, vps->getLayerIdInVps( getLayerId() )) > getTLayer() );
    3702 #endif
    37033594  return refLayerPicFlag;       
    37043595}   
     
    37083599  Int refLayerPicIdc = -1;
    37093600  Int curj = 0;
    3710 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    37113601#if H_3D
    37123602  for( Int i = 0;  i < getVPS()->getNumRefListLayers( getLayerId()) ; i++ )
     
    37143604  for( Int i = 0;  i < getVPS()->getNumDirectRefLayers( getLayerId()) ; i++ )
    37153605#endif
    3716 #else
    3717   for( Int i = 0;  i < getVPS()->getNumDirectRefLayers( getLayerId()) ; i++ )
    3718 #endif
    37193606  {
    37203607    if( getRefLayerPicFlag( i ) )
     
    37373624
    37383625  Int numRefLayerPics = 0;
    3739 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    37403626#if H_3D
    37413627  for( Int i = 0;  i < getVPS()->getNumRefListLayers( getLayerId()) ; i++ )
     
    37433629  for( Int i = 0;  i < getVPS()->getNumDirectRefLayers( getLayerId()) ; i++ )
    37443630#endif
    3745 #else
    3746   for( Int i = 0;  i < getVPS()->getNumDirectRefLayers( getLayerId()) ; i++ )
    3747 #endif
    37483631  {
    37493632    numRefLayerPics += getRefLayerPicFlag( i );
     
    37703653    numActiveRefLayerPics = 0;
    37713654  }
    3772 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    37733655#if H_3D
    37743656  else if( getVPS()->getMaxOneActiveRefLayerFlag() || getVPS()->getNumRefListLayers( getLayerId() ) == 1 )
     
    37763658  else if( getVPS()->getMaxOneActiveRefLayerFlag() || getVPS()->getNumDirectRefLayers( getLayerId() ) == 1 )
    37773659#endif
    3778 #else
    3779   else if( getVPS()->getMaxOneActiveRefLayerFlag() || getVPS()->getNumDirectRefLayers( getLayerId() ) == 1 )
    3780 #endif 
    37813660  {
    37823661    numActiveRefLayerPics = 1;
     
    37913670Int TComSlice::getRefPicLayerId( Int i )
    37923671{
    3793 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    37943672#if H_3D
    37953673  return getVPS()->getIdRefListLayer( getLayerId(), getInterLayerPredLayerIdc( i ) );
     
    37973675  return getVPS()->getIdDirectRefLayer( getLayerId(), getInterLayerPredLayerIdc( i ) );
    37983676#endif
    3799 #else
    3800   return getVPS()->getIdDirectRefLayer( getLayerId(), getInterLayerPredLayerIdc( i ) );
    3801 #endif
    3802 }
    3803 
    3804 #if SEC_ARP_VIEW_REF_CHECK_J0037 || SEC_DBBP_VIEW_REF_CHECK_J0037
     3677}
     3678#if H_3D
    38053679Void TComSlice::setDefaultRefView( )
    38063680{
     
    38393713{
    38403714  Bool tempRefPicInListsFlag = false;
    3841 #if HHI_TOOL_PARAMETERS_I2_J0107
    38423715  if( !getIvResPredFlag() || this->isIRAP())
    3843 #else
    3844   if(!getVPS()->getUseAdvRP(getLayerId()) || this->isIRAP())
    3845 #endif
    38463716  {
    38473717    m_nARPStepNum = 0;
     
    38713741      }
    38723742    }
    3873 #if SEC_ARP_VIEW_REF_CHECK_J0037
    38743743    tempRefPicInListsFlag = (getFirstTRefIdx(REF_PIC_LIST_0) >= 0 || getFirstTRefIdx(REF_PIC_LIST_1) >= 0) && getDefaultRefViewIdxAvailableFlag();
    3875 #else
    3876     tempRefPicInListsFlag = getFirstTRefIdx(REF_PIC_LIST_0) >= 0 || getFirstTRefIdx(REF_PIC_LIST_1) >= 0;
    3877 #endif
    3878 #if HHI_TOOL_PARAMETERS_I2_J0107
    38793744    m_nARPStepNum = tempRefPicInListsFlag ?  H_3D_ARP_WFNR : 0;
    3880 #else
    3881     m_nARPStepNum = tempRefPicInListsFlag ? getVPS()->getARPStepNum(getLayerId()) : 0;
    3882 #endif
    38833745  }
    38843746
     
    40633925  Bool setupLUT = false;
    40643926 
    4065 #if HHI_TOOL_PARAMETERS_I2_J0107
    40663927  setupLUT = setupLUT || getViewSynthesisPredFlag( );
    4067 #else
    4068   Int layerIdInVPS = getVPS()->getLayerIdInNuh( m_layerId );
    4069 #if H_3D_VSP
    4070   setupLUT = setupLUT || getVPS()->getViewSynthesisPredFlag( layerIdInVPS);
    4071 #endif
    4072 #endif
    40733928
    40743929#if H_3D_NBDV_REF
    4075 #if HHI_TOOL_PARAMETERS_I2_J0107
    40763930  setupLUT = setupLUT || getDepthRefinementFlag( );
    4077 #else
    4078   setupLUT = setupLUT || getVPS()->getDepthRefinementFlag( layerIdInVPS );
    4079 #endif
    40803931#endif
    40813932
    40823933#if H_3D_IV_MERGE
    4083 #if HHI_TOOL_PARAMETERS_I2_J0107
    40843934  setupLUT = setupLUT || ( getIvMvPredFlag() && getIsDepth() );
    4085 #else
    4086   setupLUT = setupLUT || ( getVPS()->getIvMvPredFlag(layerIdInVPS ) && getIsDepth() );
    4087 #endif
    4088 #endif
    4089 
    4090 #if !LGE_DDD_REMOVAL_J0042_J0030
    4091 #if H_3D_DDD
    4092 #if H_3D_FCO
    4093   if( getIsDepth() && getViewIndex() > 0 && getVPS()->getMPIFlag(layerIdInVPS))
    4094 #else
    4095   if( getIsDepth() && getViewIndex() > 0 )
    4096 #endif
    4097   {
    4098       TComSlice *pcTextSlice = getTexturePic()->getSlice( 0 );
    4099       memcpy( m_aiDDDInvScale, pcTextSlice->m_aiDDDInvScale, sizeof( Int ) * getViewIndex() );
    4100       memcpy( m_aiDDDInvOffset, pcTextSlice->m_aiDDDInvOffset, sizeof( Int ) * getViewIndex() );
    4101       memcpy( m_aiDDDShift, pcTextSlice->m_aiDDDShift, sizeof( Int ) * getViewIndex() );             
    4102   } 
    4103 #endif
    4104 #endif
     3935#endif
     3936
    41053937
    41063938  if( !setupLUT )
     
    41513983      m_depthToDisparityF[ i ][ d ] = ( invCodScale[ i ] * d + invOffset ) >> log2Div;
    41523984    }
    4153 #if !LGE_DDD_REMOVAL_J0042_J0030
    4154 #if H_3D_DDD
    4155     initializeDDDPara( vps->getCamParPrecision(), codScale[ i ], codOffset[ i ], i );
    4156 #endif
    4157 #endif
    4158   }
    4159 }
    4160 #endif
    4161 #endif
    4162 
    4163 #if !LGE_DDD_REMOVAL_J0042_J0030
    4164 #if H_3D_DDD
    4165 Void TComSlice::initializeDDDPara( UInt uiCamParsCodedPrecision, Int  iCodedScale,Int  iCodedOffset, Int iBaseViewIdx )
    4166 {
    4167     UInt uiViewId     = getViewIndex();
    4168 
    4169     if( uiViewId == 0 )
    4170     {
    4171         m_aiDDDInvScale[ iBaseViewIdx ] = m_aiDDDInvOffset[ iBaseViewIdx ] = m_aiDDDShift[ iBaseViewIdx ] = 0;
    4172         return;
    4173     }
    4174 
    4175 
    4176     Int iSign = iCodedScale >= 0 ? 1 : -1;
    4177     iCodedScale = abs( iCodedScale );
    4178 
    4179     Int iBitWidth = 0;
    4180 
    4181     const Int iInvPres = 9;
    4182 
    4183     while( ((( 1 << iBitWidth ) << 1 ) <= iCodedScale ) )
    4184     {
    4185         iBitWidth ++;
    4186     }
    4187     iBitWidth += iInvPres;
    4188     Int iTargetValue =  1 << iBitWidth;
    4189 
    4190     Int iMinError = MAX_INT;
    4191     Int iBestD = 1 << ( iInvPres - 1 );
    4192     for( Int d = 1 << ( iInvPres - 1 ); d < ( 1 << iInvPres ); d++ )
    4193     {
    4194         Int iError = abs( iCodedScale * d - iTargetValue );
    4195         if( iError < iMinError )
    4196         {
    4197             iMinError = iError;
    4198             iBestD = d;
    4199         }
    4200         if( iMinError == 0 )
    4201         {
    4202             break;
    4203         }
    4204     }
    4205     Int iRoundingDir = 0;
    4206     if( iCodedScale * iBestD > iTargetValue )
    4207     {
    4208         iRoundingDir = -1;
    4209     }
    4210     else if( iCodedScale * iBestD < iTargetValue )
    4211     {
    4212         iRoundingDir = 1;
    4213     }
    4214     Int iCamPres = uiCamParsCodedPrecision - 1;
    4215     m_aiDDDInvScale [ iBaseViewIdx ] = ( iBestD << ( iCamPres + g_bitDepthY )) * iSign;
    4216     m_aiDDDInvOffset[ iBaseViewIdx ] = -iSign * iBestD * ( iCodedOffset << g_bitDepthY );
    4217     m_aiDDDShift    [ iBaseViewIdx ] = iBitWidth;
    4218     m_aiDDDInvOffset[ iBaseViewIdx ] += 1 << ( m_aiDDDShift[ iBaseViewIdx ] - 1 );
    4219     m_aiDDDInvOffset[ iBaseViewIdx ] += ( 1 << ( m_aiDDDShift[ iBaseViewIdx ] - 4 ) ) * iRoundingDir;
    4220 
    4221     return;
    4222 }
    4223 
    4224 
    4225 #endif
    4226 #endif
     3985  }
     3986}
     3987#endif
     3988#endif
     3989
    42273990
    42283991#if H_MV
     
    42584021#endif
    42594022
    4260 #if !LGE_DDD_REMOVAL_J0042_J0030
    4261 #if H_3D_DBBP
    4262 Int TComSlice::getDepthFromDV( Int iDV, Int iBaseViewIdx )
    4263 {
    4264   return ClipY(( iDV * m_aiDDDInvScale[ iBaseViewIdx ] + m_aiDDDInvOffset[ iBaseViewIdx ] ) >> m_aiDDDShift[ iBaseViewIdx ]);
    4265 }
    4266 #endif
    4267 #endif
    4268 
    4269 #if HHI_TOOL_PARAMETERS_I2_J0107
     4023
    42704024#if H_3D
    42714025
     
    43644118}
    43654119#endif
    4366 #endif
    43674120
    43684121
  • branches/HTM-13.0-dev0/source/Lib/TLibCommon/TComSlice.h

    r1124 r1131  
    861861  TComRepFormat* m_repFormat             [MAX_NUM_LAYERS];
    862862  Bool        m_maxOneActiveRefLayerFlag;       
    863 #if H_MV_HLS7_GEN || H_MV_HLS_FIX
    864863  Bool        m_vpsPocLsbAlignedFlag;
    865 #endif
    866864  Bool        m_pocLsbNotPresentFlag     [MAX_NUM_LAYERS];
    867865
     
    884882  Int         m_dependencyFlag           [MAX_NUM_LAYERS][MAX_NUM_LAYERS];
    885883
    886 #if H_MV_FIX_NUM_VIEWS
    887884  Int         m_numViews;
    888 #endif
    889885  Int         m_numDirectRefLayers       [MAX_NUM_LAYERS];
    890886  Int         m_idDirectRefLayer         [MAX_NUM_LAYERS][MAX_NUM_LAYERS]; 
    891 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    892887#if H_3D
    893888  Int         m_numRefListLayers         [MAX_NUM_LAYERS];
    894889  Int         m_idRefListLayer           [MAX_NUM_LAYERS][MAX_NUM_LAYERS]; 
    895 #endif
    896890#endif
    897891
     
    919913  Void        xSetRefLayerFlags( Int currLayerId );
    920914  // VPS EXTENSION 2 SYNTAX ELEMENTS
    921 #if !HHI_TOOL_PARAMETERS_I2_J0107
    922 #if H_3D_ARP
    923   UInt        m_uiUseAdvResPred          [MAX_NUM_LAYERS   ];
    924   UInt        m_uiARPStepNum             [MAX_NUM_LAYERS   ];
    925 #endif
    926 #if H_3D_IV_MERGE
    927   Bool        m_ivMvPredFlag             [ MAX_NUM_LAYERS ];
    928   Bool        m_ivMvScalingFlag          [ MAX_NUM_LAYERS ];
    929 #if H_3D_SPIVMP
    930   Int         m_iSubPULog2Size           [MAX_NUM_LAYERS   ];
    931   Int         m_iSubPUMPILog2Size        [MAX_NUM_LAYERS   ];
    932 #endif
    933 #endif
    934 #if H_3D_QTLPC
    935   Bool        m_bLimQtPredFlag           [ MAX_NUM_LAYERS ];
    936 #endif
    937 #if H_3D_VSP
    938   Bool        m_viewSynthesisPredFlag    [ MAX_NUM_LAYERS ];
    939 #endif
    940 #if H_3D_NBDV_REF
    941   Bool        m_depthRefinementFlag      [ MAX_NUM_LAYERS ];
    942 #endif
    943   Bool        m_vpsDepthModesFlag        [MAX_NUM_LAYERS   ];
    944 #if H_3D
    945   Bool        m_bIVPFlag                 [MAX_NUM_LAYERS   ];
    946 #endif
    947 #endif
    948915#if H_3D
    949916  UInt        m_uiCamParPrecision;
     
    953920  Int         ***m_aaaiCodedOffset;
    954921
    955 #if H_MV_FIX_NUM_VIEWS
    956922#if HHI_VIEW_ID_LIST_I5_J0107
    957923  std::vector<Int>  m_viewOIdxList;
    958924#endif
    959 #endif
    960 
    961 #endif
    962 #if !HHI_TOOL_PARAMETERS_I2_J0107
    963 #if H_3D_INTER_SDC
    964   Bool        m_bInterSDCFlag[MAX_NUM_LAYERS   ];
    965 #endif
    966 #if H_3D_DBBP
    967   Bool        m_dbbpFlag[MAX_NUM_LAYERS];
    968 #endif
    969 #if H_3D_IV_MERGE
    970   Bool        m_bMPIFlag[MAX_NUM_LAYERS   ];
    971 #endif
    972 #if MTK_SINGLE_DEPTH_VPS_FLAG_J0060
    973   Bool        m_singleDepthModeFlag    [ MAX_NUM_LAYERS ];
    974 #endif
     925
    975926#endif
    976927
     
    11591110  Bool    getMaxOneActiveRefLayerFlag( )                                   { return m_maxOneActiveRefLayerFlag; }
    11601111
    1161 #if H_MV_HLS7_GEN || H_MV_HLS_FIX
    11621112  Void    setVpsPocLsbAlignedFlag( Bool flag )                             { m_vpsPocLsbAlignedFlag = flag; }
    11631113  Bool    getVpsPocLsbAlignedFlag(  )                                      { return m_vpsPocLsbAlignedFlag; }
    1164 #endif
    11651114
    11661115  Void    setDpbSize( TComDpbSize* val )                                   { assert( m_dpbSize != 0 ); m_dpbSize = val; }
     
    11961145  Void    setRefLayers();
    11971146
    1198 #if H_MV_FIX_NUM_VIEWS
    11991147  // To be aligned with spec naming, getViewIndex will be removed in future versions
    12001148  Int     getViewOrderIdx ( Int layerIdInNuh )                             { return getScalabilityId( getLayerIdInVps(layerIdInNuh), VIEW_ORDER_INDEX  ); }   
    12011149  Int     getViewIndex    ( Int layerIdInNuh )                             { return getViewOrderIdx( layerIdInNuh ); }   
    1202 #else
    1203   Int     getViewIndex    ( Int layerIdInNuh )                             { return getScalabilityId( getLayerIdInVps(layerIdInNuh), VIEW_ORDER_INDEX  ); }   
    1204 #endif
    12051150  Int     getAuxId        ( Int layerIdInNuh )                             { return getScalabilityId( getLayerIdInVps(layerIdInNuh), AUX_ID  ); }   
    12061151  Int     getDependencyId ( Int layerIdInNuh )                             { return getScalabilityId( getLayerIdInVps(layerIdInNuh), DEPENDENCY_ID  ); }   
    1207 #if H_MV_FIX_NUM_VIEWS
    12081152  Int     getNumViews()                                                    { return m_numViews; }
    12091153  Void    initNumViews();
     
    12111155  Int     getViewOIdxList( Int i )                                         { return m_viewOIdxList[i]; }
    12121156#endif
    1213 #else
    1214   Int     getNumViews();
    1215 #endif
    12161157
    12171158  Bool    getDependencyFlag( Int i, Int j )                                { return m_dependencyFlag[i][j]; }
    12181159  Int     getNumDirectRefLayers( Int layerIdInNuh )                        { return m_numDirectRefLayers[ layerIdInNuh ];  };                               
    1219 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    12201160#if H_3D
    12211161  Int     getNumRefListLayers( Int layerIdInNuh )                         { return m_numRefListLayers[ layerIdInNuh ];  };                               
    1222 #endif
    12231162#endif
    12241163
     
    12301169  Int     getIdPredictedLayer        ( Int i, Int j ) { assert( j >= 0 && j < getNumPredictedLayers( i )); return m_idPredictedLayer[i][j]; }
    12311170  Int     getIdDirectRefLayer        ( Int i, Int j ) { assert( j >= 0 && j < getNumDirectRefLayers( i )); return m_idDirectRefLayer[i][j]; }
    1232 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    12331171#if H_3D
    12341172  Int     getIdRefListLayer          ( Int i, Int j ) { assert( j >= 0 && j < getNumRefListLayers   ( i )); return m_idRefListLayer[i][j]; }
    1235 #endif
    12361173#endif
    12371174  Int     getNumIndependentLayers    (  )             { return m_numIndependentLayers; }
     
    13331270#if H_3D 
    13341271  Int     getDepthId      ( Int layerIdInNuh)                             { return getScalabilityId( getLayerIdInVps(layerIdInNuh), DEPTH_ID ); }
    1335 #if HHI_TOOL_PARAMETERS_I2_J0107
    13361272  Bool    getVpsDepthFlag( Int layerIdInNuh)                              { return (getDepthId( layerIdInNuh ) > 0);  }
    1337 #endif
    13381273  Int     getLayerIdInNuh( Int viewIndex, Bool depthFlag );   
    13391274
    1340 #if !HHI_TOOL_PARAMETERS_I2_J0107
    1341 #if H_3D_ARP
    1342   UInt    getUseAdvRP  ( Int layerIdInVps )                                { return m_uiUseAdvResPred[layerIdInVps];    }
    1343   UInt    getARPStepNum( Int layerIdInVps )                                { return m_uiARPStepNum[layerIdInVps];       }
    1344   Void    setUseAdvRP  ( Int layerIdInVps, UInt val )                      { m_uiUseAdvResPred[layerIdInVps] = val;     }
    1345   Void    setARPStepNum( Int layerIdInVps, UInt val )                      { m_uiARPStepNum[layerIdInVps]    = val;     }
    1346 #endif
    1347 #endif
    13481275
    13491276  Void createCamPars(Int iNumViews);
     
    13601287  Int* getInvCodedOffset     ( Int viewIndex )  { return m_aaaiCodedOffset[viewIndex][1]; }
    13611288
    1362 #if !HHI_TOOL_PARAMETERS_I2_J0107
    1363 #if H_3D_IV_MERGE
    1364   Void    setIvMvPredFlag     ( Int layerIdInVps, Bool val )  { m_ivMvPredFlag[ layerIdInVps ] = val; }
    1365   Bool    getIvMvPredFlag     ( Int layerIdInVps )            { return m_ivMvPredFlag[ layerIdInVps ]; };
    1366 #if H_3D_SPIVMP
    1367   Int     getSubPULog2Size(Int layerIdInVps)           { return m_iSubPULog2Size[layerIdInVps]; }
    1368   Void    setSubPULog2Size(Int layerIdInVps, Int u)    { m_iSubPULog2Size[layerIdInVps] = u;}
    1369   Int     getSubPUMPILog2Size(Int layerIdInVps)           { return m_iSubPUMPILog2Size[layerIdInVps]; }
    1370   Void    setSubPUMPILog2Size(Int layerIdInVps, Int u)    { m_iSubPUMPILog2Size[layerIdInVps] = u;}
    1371 #endif
    1372 #endif
    1373 #if H_3D_QTLPC
    1374   Void    setLimQtPredFlag    ( Int layerIdInVps, Bool val )  { m_bLimQtPredFlag[ layerIdInVps ] = val; }
    1375   Bool    getLimQtPredFlag    ( Int layerIdInVps ) { return m_bLimQtPredFlag[layerIdInVps];}
    1376 #endif
    1377 #if H_3D_VSP
    1378   Void    setViewSynthesisPredFlag  ( Int layerIdInVps, Bool val )  { m_viewSynthesisPredFlag[ layerIdInVps ] = val; }
    1379   Bool    getViewSynthesisPredFlag  ( Int layerIdInVps )            { return m_viewSynthesisPredFlag[ layerIdInVps ]; };
    1380 #endif
    1381 #if H_3D_NBDV_REF
    1382   Void    setDepthRefinementFlag  ( Int layerIdInVps, Bool val )  { m_depthRefinementFlag[ layerIdInVps ] = val; }
    1383   Bool    getDepthRefinementFlag  ( Int layerIdInVps )            { return m_depthRefinementFlag[ layerIdInVps ]; };
    1384 #endif
    1385   Void    setVpsDepthModesFlag( Int layerIdInVps, Bool val )               { m_vpsDepthModesFlag[ layerIdInVps ] = val; }
    1386   Bool    getVpsDepthModesFlag( Int layerIdInVps )                         { return m_vpsDepthModesFlag[ layerIdInVps ]; }
    1387 
    1388   Void    setIVPFlag( Int layerIdInVps, Bool val )                    { m_bIVPFlag[ layerIdInVps ] = val; }
    1389   Bool    getIVPFlag( Int layerIdInVps )                              { return m_bIVPFlag[ layerIdInVps ]; }
    1390 
    1391   Bool    getIvMvScalingFlag   ( Int layerIdInVps )                        { return m_ivMvScalingFlag[ layerIdInVps ]; }
    1392   Void    setIvMvScalingFlag   (Int layerIdInVps, Bool b )                 { m_ivMvScalingFlag[ layerIdInVps ] = b;    } 
    1393 
    1394 #if H_3D_INTER_SDC
    1395   Bool    getInterSDCFlag      ( Int layerIdInVps )           { return m_bInterSDCFlag[layerIdInVps]; }
    1396   Void    setInterSDCFlag      ( Int layerIdInVps, Bool bval ){ m_bInterSDCFlag[layerIdInVps] = bval; }
    1397 #endif
    1398 #if H_3D_DBBP
    1399   Bool getUseDBBP              ( Int layerIdInVps )         { return m_dbbpFlag[layerIdInVps]; }
    1400   Void setUseDBBP              ( Int layerIdInVps, Bool bval ){ m_dbbpFlag[layerIdInVps] = bval; }
    1401 #endif
    1402 #if H_3D_IV_MERGE
    1403   Bool    getMPIFlag      ( Int layerIdInVps )           { return m_bMPIFlag[layerIdInVps]; }
    1404   Void    setMPIFlag      ( Int layerIdInVps, Bool bval ){ m_bMPIFlag[layerIdInVps] = bval; }
    1405 #endif
    1406 #if MTK_SINGLE_DEPTH_VPS_FLAG_J0060
    1407   Void    setSingleDepthModeFlag  ( Int layerIdInVps, Bool val )  { m_singleDepthModeFlag[ layerIdInVps ] = val; }
    1408   Bool    getSingleDepthModeFlag  ( Int layerIdInVps )            { return m_singleDepthModeFlag[ layerIdInVps ]; };
    1409 #endif
    1410 #endif 
    14111289#endif
    14121290#endif
     
    16751553};
    16761554
    1677 #if HHI_TOOL_PARAMETERS_I2_J0107
    16781555#if H_3D
    16791556class TComSps3dExtension
     
    17621639
    17631640#endif
    1764 #endif
    17651641
    17661642/// SPS class
     
    18631739#endif
    18641740#if H_3D
    1865 #if HHI_TOOL_PARAMETERS_I2_J0107
    18661741  TComSps3dExtension m_sps3dExtension;
    1867 #endif
    18681742  UInt        m_uiCamParPrecision;
    18691743  Bool        m_bCamParInSliceHeader;
     
    20441918  Bool getInterViewMvVertConstraintFlag()         { return m_interViewMvVertConstraintFlag;}
    20451919
    2046 #if HHI_TOOL_PARAMETERS_I2_J0107
    20471920#if H_3D
    20481921  Void setSps3dExtension ( TComSps3dExtension& sps3dExtension ) { m_sps3dExtension = sps3dExtension; }
    20491922  TComSps3dExtension* getSps3dExtension ( )                     { return &m_sps3dExtension; }
    2050 #endif
    20511923#endif
    20521924
     
    25052377#endif
    25062378#endif
    2507 #if !LGE_DDD_REMOVAL_J0042_J0030
    2508 #if H_3D_DDD
    2509   Int          m_aiDDDInvScale [MAX_NUM_LAYERS];
    2510   Int          m_aiDDDInvOffset[MAX_NUM_LAYERS];
    2511   UInt         m_aiDDDShift    [MAX_NUM_LAYERS];
    2512 #endif
    2513 #endif
    25142379#if H_3D_SINGLE_DEPTH
    25152380  Bool      m_bApplySingleDepthMode;
     
    25192384  Int *m_aICEnableNum;
    25202385#endif
    2521 #if LGE_DEFAULT_DV_J0046
    25222386  Int       m_iDefaultRefViewIdx;
    25232387  Bool      m_bDefaultRefViewIdxAvailableFlag;
    2524 #endif
    2525 
    2526 #if HHI_TOOL_PARAMETERS_I2_J0107
     2388
    25272389  Bool m_ivMvPredFlag         ;
    25282390  Bool m_ivMvScalingFlag      ;
     
    25402402  Int  m_mpiSubPbSize         ;
    25412403  Int  m_subPbSize            ;
    2542 #endif
    25432404public:
    25442405  TComSlice();
     
    26102471#if H_3D
    26112472  TComPic*  getTexturePic       ()                              { return  m_ivPicsCurrPoc[0][ m_viewIndex ]; }
    2612 #endif
    2613 #if !MTK_SINGLE_DEPTH_VPS_FLAG_J0060
    2614 #if H_3D_SINGLE_DEPTH
    2615   Void      setApplySingleDepthMode( Bool b )                                { m_bApplySingleDepthMode = b; }
    2616   Bool      getApplySingleDepthMode()                                        { return m_bApplySingleDepthMode; }
    2617 #endif
    26182473#endif
    26192474#if H_3D_IC
     
    28532708  Int* getDepthToDisparityB( Int refViewIdx ) { return m_depthToDisparityB[ refViewIdx ]; };
    28542709  Int* getDepthToDisparityF( Int refViewIdx ) { return m_depthToDisparityF[ refViewIdx ]; };
    2855 #if !HHI_TOOL_PARAMETERS_I2_J0107
    2856   Bool getVpsDepthModesFlag  ()  { return getVPS()->getVpsDepthModesFlag( getVPS()->getLayerIdInVps( m_layerId ) ); }
    2857   Bool getIVPFlag       ()  { return getVPS()->getIVPFlag( getVPS()->getLayerIdInVps( m_layerId ) ); }
    2858 #endif
    28592710#endif
    28602711#if H_3D_IC
     
    29142765  Int  getPocMsbVal(  ) { return m_pocMsbVal; }
    29152766
    2916 #if H_MV_HLS_FIX
    29172767  Bool getCraOrBlaPicFlag() { return ( getCraPicFlag() || getBlaPicFlag() ); }
    29182768  Bool getPocMsbValRequiredFlag() { return ( getCraOrBlaPicFlag() && ( getVPS()->getVpsPocLsbAlignedFlag() || getVPS()->getNumDirectRefLayers( getLayerIdInVps() ) == 0 ) );  }
    2919 #else
    2920   Bool getPocMsbValRequiredFlag() { return m_pocMsbValRequiredFlag; }
    2921   Void setPocMsbValRequiredFlag(Bool x) { m_pocMsbValRequiredFlag = x; }
    2922 #endif
    29232769
    29242770
     
    29382784  // Additional variables derived in slice header semantics
    29392785
    2940 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    29412786#if H_3D
    29422787  Int  getNumInterLayerRefPicsMinus1Len( ) { return gCeilLog2(  getVPS()->getNumRefListLayers( getLayerId() )); }
     
    29472792#endif
    29482793
    2949 #else
    2950   Int  getNumInterLayerRefPicsMinus1Len( ) { return gCeilLog2(  getVPS()->getNumDirectRefLayers( getLayerId() )); }
    2951   Int  getInterLayerPredLayerIdcLen    ( ) { return gCeilLog2(  getVPS()->getNumDirectRefLayers( getLayerId() )); }
    2952 #endif
    29532794
    29542795  Int  getRefLayerPicFlag( Int i );
     
    29672808
    29682809
    2969 #if HHI_TOOL_PARAMETERS_I2_J0107
    29702810#if H_3D
    29712811  // 3D-HEVC tool parameters
     
    29872827  Int  getSubPbSize              ( ) { return m_subPbSize              ; };
    29882828#endif
    2989 #endif
    29902829
    29912830
     
    29932832  Bool inferPocMsbValPresentFlag(); 
    29942833#endif
    2995 #if !LGE_DDD_REMOVAL_J0042_J0030
    2996 #if H_3D_DDD
    2997   Void initializeDDDPara( UInt uiCamParsCodedPrecision, Int  iCodedScale,Int  iCodedOffset, Int iBaseViewIdx );
    2998   Int  getDepthFromDV( Int iDV, Int iBaseViewIdx );
    2999 #endif
    3000 #endif
    3001 #if LGE_DEFAULT_DV_J0046
     2834#if H_3D
    30022835  Int  getDefaultRefViewIdx() { return m_iDefaultRefViewIdx; }
    30032836  Void setDefaultRefViewIdx(Int iViewIdx) { m_iDefaultRefViewIdx = iViewIdx; }
     
    30052838  Bool getDefaultRefViewIdxAvailableFlag() { return m_bDefaultRefViewIdxAvailableFlag; }
    30062839  Void setDefaultRefViewIdxAvailableFlag(Bool bViewIdx) { m_bDefaultRefViewIdxAvailableFlag = bViewIdx; }
    3007 #endif
    3008 #if SEC_ARP_VIEW_REF_CHECK_J0037 || SEC_DBBP_VIEW_REF_CHECK_J0037
    30092840  Void setDefaultRefView( );
    30102841#endif
    3011 
    30122842protected:
    30132843  TComPic*  xGetRefPic  (TComList<TComPic*>& rcListPic,
  • branches/HTM-13.0-dev0/source/Lib/TLibCommon/TypeDef.h

    r1124 r1131  
    103103                                              // MTK_NBDV_TN_FIX_E0172     fix the issue of DV derivation from the temporal neighboring blocks, issue 7 in JCT3V-E0172
    104104                                              // MTK_TEXTURE_MRGCAND_BUGFIX_E0182  Bug fix for TEXTURE MERGING CANDIDATE     , JCT3V-E0182
    105 #define LGE_SIMP_DISP_AVAIL_J0041    1   // Use 2 status for disparity availability - DISP_AVAILABLE and DISP_NONE
     105                                              // LGE_SIMP_DISP_AVAIL_J0041    // Use 2 status for disparity availability - DISP_AVAILABLE and DISP_NONE
    106106
    107107#define H_3D_ARP                          1   // Advanced residual prediction (ARP), JCT3V-D0177
     
    129129                                              // MTK_LOW_LATENCY_IC_ENCODING_H0086_FIX  1  // Remove the global variables used in JCT3V-H0086
    130130                                              // SEC_IC_NEIGHBOR_CLIP_I0080    // Clipping of neighboring sample position, JCT3V-I0080
     131                                              // LGE_CHROMA_IC_J0050_J0034
    131132
    132133#if H_3D_NBDV
     
    156157                                              // NTT_STORE_SPDV_VSP_G0148 Storing Sub-PU based DV for VSP
    157158                                              // Restricted bi-prediction for VSP
    158 #define SEC_A1_BASED_VSP_J0039            1   // Removal of redundant VSP in Merge list
     159                                              // MTK_MRG_LIST_SIZE_CLEANUP_J0059   1   // Include VSP for deriving merge candidate list size, JCT3V-J0059
     160                                              // SEC_A1_BASED_VSP_J0039            1   // Removal of redundant VSP in Merge list
     161
    159162
    160163
     
    182185                                              // SEC_SIMP_SHIFTED_DV_I0086     Simplification of Shifted DV candidate, JCT3V-I0086
    183186
    184 #define MTK_MRG_LIST_SIZE_CLEANUP_J0059   1   // Include VSP for deriving merge candidate list size, JCT3V-J0059
     187
    185188
    186189
     
    231234                                              // SEPARATE_FLAG_I0085
    232235                                              // H_3D_DELTA_DLT
    233                                               // RWTH_DLT_CLIP_I0057               1
    234 
    235 
     236                                              // RWTH_DLT_CLIP_I0057
     237                                              // MTK_DMM_SIM_J0035
     238                                              // MTK_J0033
     239                                              // SHARP_DLT_SIMP_J0029              1   // DLT(DepthValue2Idx[]) table derivation cleanup
    236240
    237241#define H_3D_SINGLE_DEPTH                 1   // Single depth mode proposed in JCT3V-I0095
    238 #define MTK_SINGLE_DEPTH_VPS_FLAG_J0060   1   // Add VPS control flags and remove slice header control flag for single depth, JCT3V-J0060
    239 #define ALIGN_J0060_J0107                 1   // Alignment of changed tool parameters
    240 #define ALGIN_J0107_J0059                 1   // Alignment of changed tool parameters               
    241 
    242 #define MTK_J0033                         1
    243 #define SHARP_DLT_SIMP_J0029              1   // DLT(DepthValue2Idx[]) table derivation cleanup
     242                                              // HS_SP_SIMP_J0066
     243                                              // SINGLE_DEPTH_SIMP_J0115           1
     244                                              // MTK_SINGLE_DEPTH_VPS_FLAG_J0060   1   // Add VPS control flags and remove slice header control flag for single depth, JCT3V-J0060
    244245
    245246#define H_3D_INTER_SDC                    1   // INTER SDC, Inter simplified depth coding
     
    263264                                              // SHARP_DBBP_SIMPLE_FLTER_I0109     1   // Simple condition and one dimensional filter for DBBP
    264265                                              // SEC_DBBP_DMM4_THRESHOLD_I0076     Simplification of threshold derivation for DBBP and DMM4, JCT3V-I0076
    265 #define SEC_DBBP_VIEW_REF_CHECK_J0037     1   // Signaling dbbp_flag when the current slice has view reference picture(s), JCT3V-J0037 item4
     266                                              // SEC_DBBP_VIEW_REF_CHECK_J0037     1   // Signaling dbbp_flag when the current slice has view reference picture(s), JCT3V-J0037 item4
    266267
    267268#define H_3D_DDD                          1   // Disparity derived depth coding
    268 #define LGE_DDD_REMOVAL_J0042_J0030       1   // DDD removal
     269                                              // LGE_DDD_REMOVAL_J0042_J0030 DDD removal
    269270
    270271#define H_3D_FCO                          0   // Flexible coding order for 3D
     
    283284#define H_3D_FAST_DEPTH_INTRA             1   // Fast DMM and RBC Mode Selection
    284285                                              // SCU_HS_FAST_DEPTH_INTRA_E0238_HHIFIX
    285 #define MTK_DMM_SIM_J0035                 1
    286 #endif
     286#endif
     287
     288//HLS
     289//HHI_DEPENDENCY_SIGNALLING_I1_J0107
     290//HHI_TOOL_PARAMETERS_I2_J0107
     291//HHI_VPS_3D_EXTENSION_I3_J0107
    287292
    288293// Rate Control
     
    302307
    303308#if H_3D
    304 #define HHI_DEPENDENCY_SIGNALLING_I1_J0107     1
    305 #define HHI_TOOL_PARAMETERS_I2_J0107           1
    306 #define HHI_VPS_3D_EXTENSION_I3_J0107          1
    307309#define HHI_VIEW_ID_LIST_I5_J0107              0
    308310#endif
     
    314316#if H_3D_SINGLE_DEPTH
    315317#define SINGLE_DEPTH_MODE_CAND_LIST_SIZE            2 // size of the sample candidate list
    316 #define SINGLE_DEPTH_SIMP_J0115           1
     318
    317319#endif
    318320
     
    331333#define DVFROM_ABOVE                      1
    332334#define IDV_CANDS                         2
    333 #define LGE_DEFAULT_DV_J0046              1
    334335#endif
    335336
     
    367368#define IC_SHIFT_DIFF                     12
    368369#define IC_LOW_LATENCY_ENCODING_THRESHOLD 0.1 // Threshold for low-latency IC encoding in JCT3V-H0086
    369 #define LGE_CHROMA_IC_J0050_J0034         1
    370370#endif
    371371
     
    389389#endif
    390390
    391 
    392 #if H_3D_SPIVMP
    393 #define HS_SP_SIMP_J0066                        1
    394 #endif
    395391
    396392/////////////////////////////////////////////////////////////////////////////////
     
    935931enum DefaultMergCandOrder
    936932{
    937 #if SEC_A1_BASED_VSP_J0039
    938933  MRG_T = 0,            ///< MPI
    939934  MRG_D,                ///< DDD
     
    948943  MRG_IVSHIFT,          ///< Shifted IVMC of Shifted IVDC. (These are mutually exclusive)
    949944  MRG_COL               ///< Temporal co-located
    950 #else
    951   MRG_T = 0,            ///< MPI
    952   MRG_D,                ///< DDD
    953   MRG_IVMC,             ///< Temporal inter-view
    954   MRG_A1,               ///< Left
    955   MRG_B1,               ///< Above
    956   MRG_B0,               ///< Above right
    957   MRG_IVDC,             ///< Disparity inter-view
    958   MRG_VSP,              ///< VSP
    959   MRG_A0,               ///< Left bottom
    960   MRG_B2,               ///< Above left
    961   MRG_IVSHIFT,          ///< Shifted IVMC of Shifted IVDC. (These are mutually exclusive)
    962   MRG_COL               ///< Temporal co-located
    963 #endif
    964945};
    965946#endif
Note: See TracChangeset for help on using the changeset viewer.