Ignore:
Timestamp:
7 Nov 2014, 14:12:21 (10 years ago)
Author:
tech
Message:

MV-HEVC related fix for derivation of number of views (H_MV_FIX_NUM_VIEWS).
Initial code for J0107 item 5 (not enabled yet). (HHI_VIEW_ID_LIST_I5_J0107)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-12.2-dev2-HHI/source/Lib/TLibCommon/TComSlice.cpp

    r1110 r1111  
    18791879  m_vpsBaseLayerAvailableFlag = true;
    18801880
     1881#if  H_MV_FIX_NUM_VIEWS
     1882  m_numViews = 0;
     1883#endif
    18811884
    18821885#endif
     
    19241927  m_vpsNonVuiExtensionLength = 0;
    19251928  m_splittingFlag    = false;
     1929
    19261930 
    19271931  for( Int i = 0; i < MAX_NUM_SCALABILITY_TYPES; i++ )
     
    21992203
    22002204
     2205#if H_MV_FIX_NUM_VIEWS
     2206Void     TComVPS::initNumViews( )
     2207{
     2208  Int m_numViews = 1;
     2209#if HHI_VIEW_ID_LIST_I5_J0107
     2210#if H_3D
     2211  AOF( m_viewOIdxList.size() == 0 );
     2212  m_viewOIdxList.push_back( 0 );       
     2213#endif
     2214#endif
     2215
     2216  for( Int i = 0; i <=  getMaxLayersMinus1(); i++ )
     2217  {
     2218    Int lId = getLayerIdInNuh( i );
     2219    if( i > 0 )
     2220    {
     2221      Bool newViewFlag = true;
     2222      for( Int j = 0; j < i; j++ )
     2223      {
     2224        if( getViewOrderIdx( lId )  ==  getViewOrderIdx( getLayerIdInNuh( j ) )  )
     2225        {
     2226          newViewFlag = false;
     2227        }
     2228      }
     2229      if( newViewFlag )
     2230      {
     2231        m_numViews++;
     2232#if HHI_VIEW_ID_LIST_I5_J0107
     2233#if H_3D
     2234        m_viewOIdxList.push_back( getViewOrderIdx( lId ) );       
     2235#endif
     2236#endif
     2237      }
     2238    }
     2239  }
     2240}
     2241#endif
     2242
     2243
    22012244Int TComVPS::getScalabilityId( Int layerIdInVps, ScalabilityType scalType )
    22022245{
     
    23572400}
    23582401
     2402#if !H_MV_FIX_NUM_VIEWS
    23592403Int TComVPS::getNumViews()
    23602404{
     
    23682412    }   
    23692413  }
    2370 
    23712414  return numViews;
    23722415}
     2416#endif
     2417
    23732418
    23742419Void TComVPS::deriveLayerSetLayerIdList()
Note: See TracChangeset for help on using the changeset viewer.