Changeset 243 in SHVCSoftware for branches/SHM-2.1-dev/source/App


Ignore:
Timestamp:
29 May 2013, 08:13:57 (12 years ago)
Author:
qualcomm
Message:

Encoder fix for output layer set and profile-tier-level index to not use hard-coded values.

From: Adarsh K. Ramasubramonian <aramasub@…>

File:
1 edited

Legend:

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

    r212 r243  
    877877  // Target output layer
    878878#if VPS_PROFILE_OUTPUT_LAYERS
    879   vps->setNumOutputLayerSets(2);    // 2 including the default base-layer set.
    880   vps->setNumProfileTierLevel(2);   // 1 for the enhancement layer
    881   vps->setProfileLevelTierIdx(1, 1);
     879  vps->setNumOutputLayerSets(vps->getNumLayerSets());   
     880  vps->setNumProfileTierLevel(vps->getNumLayerSets());   
    882881  vps->setDefaultOneTargetOutputLayerFlag(true);
    883   Int lsIdx = 1;
    884   vps->setOutputLayerSetIdx(1, lsIdx); // Because only one layer set
     882  for(Int i = 1; i < vps->getNumLayerSets(); i++)
     883  {
     884    vps->setProfileLevelTierIdx(i, i);
     885    vps->setOutputLayerSetIdx(i, i);
     886  }
    885887#else
    886888  vps->setNumOutputLayerSets(1);
     
    888890  vps->setOutputLayerSetIdx(0, lsIdx); // Because only one layer set
    889891#endif
    890   // Include the highest layer as output layer
    891   for(UInt layer=0; layer <= vps->getMaxLayerId() ; layer++)
    892   {
    893     if(vps->getLayerIdIncludedFlag(lsIdx, layer))
    894     {
    895       vps->setOutputLayerFlag(lsIdx, layer, layer == (vps->getMaxLayerId()));
     892  for(Int lsIdx = 1; lsIdx < vps->getNumLayerSets(); lsIdx++)
     893  {
     894    // Include the highest layer as output layer
     895    for(UInt layer=0; layer <= vps->getMaxLayerId() ; layer++)
     896    {
     897      if(vps->getLayerIdIncludedFlag(lsIdx, layer))
     898      {
     899        vps->setOutputLayerFlag(lsIdx, layer, layer == (vps->getMaxLayerId()));
     900      }
    896901    }
    897902  }
Note: See TracChangeset for help on using the changeset viewer.