Changeset 866 in SHVCSoftware for branches/SHM-dev/source/App/TAppEncoder


Ignore:
Timestamp:
13 Aug 2014, 03:52:31 (10 years ago)
Author:
qualcomm
Message:

PTL information for each layer (Macro: PER_LAYER_PTL)

Signal PTL information for each layer in each output layer set. Support for specifying different PTL information for different output layer sets will be added in a future patch.

From: Adarsh K. Ramasubramonian <aramasub@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r865 r866  
    14811481#endif
    14821482#endif
     1483#if !PER_LAYER_PTL
    14831484  for(i = 1; i < vps->getNumLayerSets(); i++)
    14841485  {
     
    14881489#endif
    14891490  } 
     1491#endif
    14901492#endif
    14911493 #if VPS_DPB_SIZE_TABLE
     
    15541556  vps->deriveNecessaryLayerFlag();
    15551557  vps->checkNecessaryLayerFlagCondition();
     1558#endif
     1559#if PER_LAYER_PTL
     1560  vps->getProfileLevelTierIdx()->resize(vps->getNumOutputLayerSets());
     1561  vps->getProfileLevelTierIdx(0)->push_back( vps->getBaseLayerInternalFlag() && vps->getMaxLayers() > 1 ? 1 : 0 ); // Default 0-th output layer set
     1562  for(i = 1; i < vps->getNumOutputLayerSets(); i++)
     1563  {
     1564    Int layerSetIdxForOutputLayerSet = vps->getOutputLayerSetIdx( i );
     1565    Int numLayerInLayerSet = vps->getNumLayersInIdList( layerSetIdxForOutputLayerSet );
     1566    for(Int j = 0; j < numLayerInLayerSet; j++)
     1567    {
     1568      Int layerIdxInVps = vps->getLayerIdInVps( vps->getLayerSetLayerIdList(layerSetIdxForOutputLayerSet, j) );
     1569      if( vps->getNecessaryLayerFlag(i, j) )
     1570      {
     1571        vps->getProfileLevelTierIdx(i)->push_back( vps->getBaseLayerInternalFlag() && vps->getMaxLayers() > 1 ? layerIdxInVps + 1 : layerIdxInVps);
     1572      }
     1573      else
     1574      {
     1575        vps->getProfileLevelTierIdx(i)->push_back( -1 );
     1576      }
     1577    }
     1578  }
    15561579#endif
    15571580  // Initialize dpb_size_table() for all ouput layer sets in the VPS extension
Note: See TracChangeset for help on using the changeset viewer.