Ignore:
Timestamp:
8 May 2013, 04:00:23 (12 years ago)
Author:
qualcomm
Message:

Layer ID list-related derived variables in VPS (MACRO: DERIVE_LAYER_ID_LIST_VARIABLES)

Derive variables layerSetLayerIdList and numLayerInIdList (variables derived L1003_v34). Useful for parsing syntax elements in the VPS.

From: Adarsh K. Ramasubramonian <aramasub@…>

File:
1 edited

Legend:

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

    r154 r160  
    16491649  ::memset(m_refLayerId,           0, sizeof(m_refLayerId          ));
    16501650#endif
     1651#if DERIVE_LAYER_ID_LIST_VARIABLES
     1652  ::memset(m_layerSetLayerIdList,  0, sizeof(m_layerSetLayerIdList));
     1653  ::memset(m_numLayerInIdList,     0, sizeof(m_numLayerInIdList   ));
     1654#endif
    16511655}
    16521656
     
    16571661  if( m_cprmsPresentFlag != NULL )     delete[] m_cprmsPresentFlag;
    16581662}
    1659 
     1663#if DERIVE_LAYER_ID_LIST_VARIABLES
     1664Void TComVPS::deriveLayerIdListVariables()
     1665{
     1666  // For layer 0
     1667  setNumLayersInIdList(0, 1);
     1668  setLayerSetLayerIdList(0, 0, 0);
     1669
     1670  // For other layers
     1671  Int i, m, n;
     1672  for( i = 1; i <= getNumLayerSets() - 1; i++ )
     1673  {
     1674    n = 0;
     1675    for( m = 0; m <= this->getMaxLayerId(); m++)
     1676    {
     1677      if(this->getLayerIdIncludedFlag(i, m))
     1678      {
     1679        setLayerSetLayerIdList(i, n, m);
     1680        n++;
     1681      }
     1682    }
     1683    setNumLayersInIdList(i, n);
     1684  }
     1685}
     1686#endif
    16601687// ------------------------------------------------------------------------------------------------
    16611688// Sequence parameter set (SPS)
Note: See TracChangeset for help on using the changeset viewer.