Ignore:
Timestamp:
14 Jul 2015, 12:31:09 (9 years ago)
Author:
tech
Message:

Merged HTM-14.1-update-dev3@1273.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-14.1-update-dev2/source/Lib/TLibCommon/TComSlice.cpp

    r1225 r1274  
    224224    m_aaiCodedScale [i].resize(MAX_NUM_LAYERS);
    225225  }
     226 
    226227#endif
    227228
     
    277278    m_iSliceChromaQpDelta[component] = 0;
    278279  }
    279 #if H_3D_IV_MERGE
     280#if NH_3D_IV_MERGE
    280281  m_maxNumMergeCand = MRG_MAX_NUM_CANDS_MEM;
    281282#else
     
    19951996      m_dimensionId[i][j] = 0;
    19961997    }
    1997 #if H_3D_ARP
     1998#if NH_3D_ARP
    19981999#endif
    19992000  } 
     
    20312032Int TComVPS::scalTypeToScalIdx( ScalabilityType scalType ) const
    20322033{
    2033   assert( scalType >= 0 && scalType <= MAX_NUM_SCALABILITY_TYPES );
    2034   assert( scalType == MAX_NUM_SCALABILITY_TYPES || getScalabilityMaskFlag( scalType ) );
     2034  assert( (Int)scalType >= 0 && (Int)scalType <= MAX_NUM_SCALABILITY_TYPES );
     2035  assert( (Int)scalType == MAX_NUM_SCALABILITY_TYPES || getScalabilityMaskFlag( scalType ) );
    20352036  Int scalIdx = 0;
    20362037  for( Int curScalType = 0; curScalType < scalType; curScalType++ )
     
    35843585#endif
    35853586}
    3586 #if H_3D
    3587 Void TComSlice::setDefaultRefView( )
    3588 {
    3589   setDefaultRefViewIdx( -1 );
    3590   setDefaultRefViewIdxAvailableFlag( false );
     3587#if NH_3D_NBDV
     3588Void TComSlice::setDefaultRefView()
     3589{
     3590  setDefaultRefViewIdx(-1);
     3591  setDefaultRefViewIdxAvailableFlag(false);
    35913592
    35923593  Int valid = 0;
    35933594  Int DefaultRefViewIdx = -1;
    3594   for( UInt curViewIdx = 0; curViewIdx < getViewIndex() && valid == 0; curViewIdx++ )
    3595   {
    3596     for( Int iRefListId = 0; ( iRefListId < (isInterB() ? 2 : 1) ) && !isIntra() && valid == 0; iRefListId++ )
    3597     {
    3598       RefPicList eRefPicList = RefPicList( iRefListId );
    3599       Int        iNumRefPics = getNumRefIdx( eRefPicList );
    3600       for( Int i = 0; i < iNumRefPics; i++ )
     3595
     3596  for(UInt curViewIdx = 0; curViewIdx < getViewIndex() && valid == 0; curViewIdx++)
     3597  {
     3598    for(Int iRefListId = 0; (iRefListId < (isInterB() ? 2 : 1)) && !isIntra() && valid == 0; iRefListId++)
     3599    {
     3600      RefPicList eRefPicList = RefPicList(iRefListId);
     3601      Int        iNumRefPics = getNumRefIdx(eRefPicList);
     3602
     3603      for(Int i = 0; i < iNumRefPics; i++)
    36013604      {
    3602         if(getPOC() == getRefPic( eRefPicList, i )->getPOC() && curViewIdx == getRefPic( eRefPicList, i )->getViewIndex())
     3605        if(getPOC() == getRefPic(eRefPicList, i)->getPOC() && curViewIdx == getRefPic(eRefPicList, i)->getViewIndex())
    36033606        {
    36043607          valid = 1;
     
    36093612    }
    36103613  }
    3611   if( valid )
    3612   {
    3613     setDefaultRefViewIdx( DefaultRefViewIdx );
    3614     setDefaultRefViewIdxAvailableFlag( true );   
    3615   }
    3616 }
    3617 #endif
    3618 
    3619 #if H_3D_ARP
     3614
     3615  if(valid)
     3616  {
     3617    setDefaultRefViewIdx(DefaultRefViewIdx);
     3618    setDefaultRefViewIdxAvailableFlag(true);
     3619  }
     3620}
     3621#endif
     3622
     3623#if NH_3D_ARP
    36203624Void TComSlice::setARPStepNum( TComPicLists*ivPicLists )
    36213625{
     
    36843688          m_arpRefPicAvailable[eRefPicList][layerIdInNuh] = false;
    36853689        }
     3690      }
     3691    }
     3692  }
     3693  if( m_nARPStepNum > 1)
     3694  {
     3695    for(Int i = 0; i < getNumActiveRefLayerPics(); i ++ )
     3696    {
     3697      Int  iLayerId = getRefPicLayerId( i );
     3698      Int  iViewIdx =   getVPS()->getViewIndex(iLayerId);
     3699      Bool bIsDepth = ( getVPS()->getDepthId  ( iLayerId ) == 1 );
     3700      if( iViewIdx<getViewIndex() && !bIsDepth )
     3701      {
     3702        setBaseViewRefPicList( ivPicLists->getPicList( iLayerId ), iViewIdx );
    36863703      }
    36873704    }
     
    38443861  setupLUT = setupLUT || getViewSynthesisPredFlag( );
    38453862
    3846 #if H_3D_NBDV_REF
     3863#if NH_3D_NBDV_REF
    38473864  setupLUT = setupLUT || getDepthRefinementFlag( );
    38483865#endif 
    38493866
    3850 #if H_3D_IV_MERGE
     3867#if NH_3D_IV_MERGE
    38513868  setupLUT = setupLUT || ( getIvMvPredFlag() && getIsDepth() );
    38523869#endif
Note: See TracChangeset for help on using the changeset viewer.