Ignore:
Timestamp:
15 Jul 2015, 14:57:32 (9 years ago)
Author:
tech
Message:

Merged 14.1-update-dev2@1277.

Location:
branches/HTM-14.1-update-dev1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-14.1-update-dev1

  • branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComSlice.cpp

    r1258 r1279  
    140140, m_pocMsbValRequiredFlag         (false)
    141141#endif
    142 #if H_3D_IC
     142#if NH_3D_IC
    143143, m_bApplyIC                      (false)
    144144, m_icSkipParseFlag               (false)
     
    278278    m_iSliceChromaQpDelta[component] = 0;
    279279  }
    280 #if H_3D_IV_MERGE
     280#if NH_3D_IV_MERGE
    281281  m_maxNumMergeCand = MRG_MAX_NUM_CANDS_MEM;
    282282#else
     
    289289  m_cabacInitFlag        = false;
    290290  m_enableTMVPFlag = true;
    291 #if H_3D_TMVP
     291#if NH_3D_TMVP
    292292  m_aiAlterRefIdx[0]                  = -1;
    293293  m_aiAlterRefIdx[1]                  = -1;
     
    824824  }
    825825}
    826 #if H_3D
    827 #if H_3D_TMVP
     826#if NH_3D
     827#if NH_3D_TMVP
    828828Void TComSlice::generateAlterRefforTMVP()
    829829{
     
    11711171  m_bApplyDIS = pSrc->m_bApplyDIS;
    11721172#endif
    1173 #if H_3D_IC
     1173#if NH_3D_IC
    11741174  m_bApplyIC = pSrc->m_bApplyIC;
    11751175  m_icSkipParseFlag = pSrc->m_icSkipParseFlag;
     
    19961996      m_dimensionId[i][j] = 0;
    19971997    }
    1998 #if H_3D_ARP
     1998#if NH_3D_ARP
    19991999#endif
    20002000  } 
     
    35713571#endif
    35723572}
    3573 #if H_3D
    3574 Void TComSlice::setDefaultRefView( )
    3575 {
    3576   setDefaultRefViewIdx( -1 );
    3577   setDefaultRefViewIdxAvailableFlag( false );
     3573#if NH_3D_NBDV
     3574Void TComSlice::setDefaultRefView()
     3575{
     3576  setDefaultRefViewIdx(-1);
     3577  setDefaultRefViewIdxAvailableFlag(false);
    35783578
    35793579  Int valid = 0;
    35803580  Int DefaultRefViewIdx = -1;
    3581   for( UInt curViewIdx = 0; curViewIdx < getViewIndex() && valid == 0; curViewIdx++ )
    3582   {
    3583     for( Int iRefListId = 0; ( iRefListId < (isInterB() ? 2 : 1) ) && !isIntra() && valid == 0; iRefListId++ )
    3584     {
    3585       RefPicList eRefPicList = RefPicList( iRefListId );
    3586       Int        iNumRefPics = getNumRefIdx( eRefPicList );
    3587       for( Int i = 0; i < iNumRefPics; i++ )
     3581
     3582  for(UInt curViewIdx = 0; curViewIdx < getViewIndex() && valid == 0; curViewIdx++)
     3583  {
     3584    for(Int iRefListId = 0; (iRefListId < (isInterB() ? 2 : 1)) && !isIntra() && valid == 0; iRefListId++)
     3585    {
     3586      RefPicList eRefPicList = RefPicList(iRefListId);
     3587      Int        iNumRefPics = getNumRefIdx(eRefPicList);
     3588
     3589      for(Int i = 0; i < iNumRefPics; i++)
    35883590      {
    3589         if(getPOC() == getRefPic( eRefPicList, i )->getPOC() && curViewIdx == getRefPic( eRefPicList, i )->getViewIndex())
     3591        if(getPOC() == getRefPic(eRefPicList, i)->getPOC() && curViewIdx == getRefPic(eRefPicList, i)->getViewIndex())
    35903592        {
    35913593          valid = 1;
     
    35963598    }
    35973599  }
    3598   if( valid )
    3599   {
    3600     setDefaultRefViewIdx( DefaultRefViewIdx );
    3601     setDefaultRefViewIdxAvailableFlag( true );   
    3602   }
    3603 }
    3604 #endif
    3605 
    3606 #if H_3D_ARP
     3600
     3601  if(valid)
     3602  {
     3603    setDefaultRefViewIdx(DefaultRefViewIdx);
     3604    setDefaultRefViewIdxAvailableFlag(true);
     3605  }
     3606}
     3607#endif
     3608
     3609#if NH_3D_ARP
    36073610Void TComSlice::setARPStepNum( TComPicLists*ivPicLists )
    36083611{
     
    36743677    }
    36753678  }
    3676 }
    3677 #endif
    3678 
    3679 #if H_3D_IC
     3679  if( m_nARPStepNum > 1)
     3680  {
     3681    for(Int i = 0; i < getNumActiveRefLayerPics(); i ++ )
     3682    {
     3683      Int  iLayerId = getRefPicLayerId( i );
     3684      Int  iViewIdx =   getVPS()->getViewIndex(iLayerId);
     3685      Bool bIsDepth = ( getVPS()->getDepthId  ( iLayerId ) == 1 );
     3686      if( iViewIdx<getViewIndex() && !bIsDepth )
     3687      {
     3688        setBaseViewRefPicList( ivPicLists->getPicList( iLayerId ), iViewIdx );
     3689      }
     3690    }
     3691  }
     3692}
     3693#endif
     3694
     3695#if NH_3D_IC
    36803696// This is an encoder only function and should be moved to TEncSlice or TEncSearch!!
    36813697Void TComSlice::xSetApplyIC(Bool bUseLowLatencyICEnc)
     
    37663782    {
    37673783      // Histogram building - luminance
    3768       Int iMaxPelValue = ( 1 << g_bitDepthY );
     3784      Int iMaxPelValue = ( 1 << getSPS()->getBitDepth(CHANNEL_TYPE_LUMA) );
    37693785      Int *aiRefOrgHist = (Int *) xMalloc( Int,iMaxPelValue );
    37703786      Int *aiCurrHist   = (Int *) xMalloc( Int,iMaxPelValue );
     
    37723788      memset( aiCurrHist, 0, iMaxPelValue*sizeof(Int) );
    37733789
    3774       Int iWidth   = pcCurrPicYuv->getWidth();
    3775       Int iHeight  = pcCurrPicYuv->getHeight();
    3776 
    3777       Pel* pCurrY   = pcCurrPicYuv ->getLumaAddr();
    3778       Pel* pRefOrgY = pcRefPicYuvOrg  ->getLumaAddr();
    3779       Int iCurrStride = pcCurrPicYuv->getStride();
    3780       Int iRefStride = pcRefPicYuvOrg->getStride();
    3781 
     3790      Int iWidth   = pcCurrPicYuv->getWidth(COMPONENT_Y);
     3791      Int iHeight  = pcCurrPicYuv->getHeight(COMPONENT_Y);
     3792      Pel* pCurrY   = pcCurrPicYuv->getAddr(COMPONENT_Y);
     3793      Pel* pRefOrgY = pcRefPicYuvOrg->getAddr(COMPONENT_Y);
     3794      Int iCurrStride = pcCurrPicYuv->getStride(COMPONENT_Y);
     3795      Int iRefStride = pcRefPicYuvOrg->getStride(COMPONENT_Y);
    37823796      for ( Int y = 0; y < iHeight; y++ )
    37833797      {
     
    38333847  setupLUT = setupLUT || getViewSynthesisPredFlag( );
    38343848
    3835 #if H_3D_NBDV_REF
     3849#if NH_3D_NBDV_REF
    38363850  setupLUT = setupLUT || getDepthRefinementFlag( );
    38373851#endif 
    38383852
    3839 #if H_3D_IV_MERGE
     3853#if NH_3D_IV_MERGE
    38403854  setupLUT = setupLUT || ( getIvMvPredFlag() && getIsDepth() );
    38413855#endif
Note: See TracChangeset for help on using the changeset viewer.