Ignore:
Timestamp:
1 Oct 2013, 22:08:33 (11 years ago)
Author:
qualcomm
Message:

Signal view ID-related syntax elements in VPS (Macro: VIEW_ID_RELATED_SIGNALING)

Introduce signaling of view_id_len_minus1 and view_id_val.

From: Adarsh K. Ramasubramonian <aramasub@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-3.1-dev/source/Lib/TLibCommon/TComSlice.cpp

    r405 r407  
    17551755, m_vpsNumRepFormats          (1)
    17561756#endif
     1757#if VIEW_ID_RELATED_SIGNALING
     1758, m_viewIdLenMinus1           (0)
     1759#endif
    17571760{
    17581761  for( Int i = 0; i < MAX_TLAYER; i++)
     
    18321835  ::memset( m_vpsRepFormatIdx, 0, sizeof(m_vpsRepFormatIdx) );
    18331836#endif
     1837#if VIEW_ID_RELATED_SIGNALING
     1838  ::memset(m_viewIdVal, 0, sizeof(m_viewIdVal));
     1839#endif
    18341840}
    18351841
     
    18621868    setNumLayersInIdList(i, n);
    18631869  }
     1870}
     1871#endif
     1872#if VIEW_ID_RELATED_SIGNALING
     1873Int TComVPS::getNumViews()
     1874{
     1875  Int numViews = 1;
     1876  for( Int i = 0; i <= getMaxLayers() - 1; i++ )
     1877  {
     1878    Int lId = getLayerIdInNuh( i );
     1879    if ( i > 0 && ( getViewIndex( lId ) != getScalabilityId( i - 1, VIEW_ORDER_INDEX ) ) )
     1880    {
     1881      numViews++;
     1882    }   
     1883  }
     1884
     1885  return numViews;
     1886}
     1887Int TComVPS::getScalabilityId( Int layerIdInVps, ScalabilityType scalType )
     1888{
     1889  return getScalabilityMask( scalType ) ? getDimensionId( layerIdInVps, scalTypeToScalIdx( scalType ) ) : 0;
     1890
     1891Int TComVPS::scalTypeToScalIdx( ScalabilityType scalType )
     1892{
     1893  assert( scalType >= 0 && scalType <= MAX_VPS_NUM_SCALABILITY_TYPES );
     1894  assert( scalType == MAX_VPS_NUM_SCALABILITY_TYPES || getScalabilityMask( scalType ) );
     1895  Int scalIdx = 0;
     1896  for( Int curScalType = 0; curScalType < scalType; curScalType++ )
     1897  {
     1898    scalIdx += ( getScalabilityMask( curScalType ) ? 1 : 0 );
     1899
     1900  }
     1901
     1902  return scalIdx;
    18641903}
    18651904#endif
Note: See TracChangeset for help on using the changeset viewer.