Ignore:
Timestamp:
18 Jun 2013, 23:11:33 (11 years ago)
Author:
vidyo
Message:

Implementation of M0043 - Layers Present SEI.
This is disabled by default. Enable this by setting M0043_LAYERS_PRESENT_SEI to 1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-2.1-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r291 r292  
    173173}
    174174
     175#if M0043_LAYERS_PRESENT_SEI
     176SEILayersPresent* TEncGOP::xCreateSEILayersPresent ()
     177{
     178  UInt i = 0;
     179  SEILayersPresent *seiLayersPresent = new SEILayersPresent();
     180  seiLayersPresent->m_activeVpsId = m_pcCfg->getVPS()->getVPSId();
     181  seiLayersPresent->m_vpsMaxLayers = m_pcCfg->getVPS()->getMaxLayers();
     182  for ( ; i < seiLayersPresent->m_vpsMaxLayers; i++)
     183  {
     184    seiLayersPresent->m_layerPresentFlag[i] = true;
     185  }
     186  for ( ; i < MAX_LAYERS; i++)
     187  {
     188    seiLayersPresent->m_layerPresentFlag[i] = false;
     189  }
     190  return seiLayersPresent;
     191}
     192#endif
     193
    175194SEIFramePacking* TEncGOP::xCreateSEIFramePacking()
    176195{
     
    319338#endif
    320339  }
     340
     341#if M0043_LAYERS_PRESENT_SEI
     342  if(m_pcCfg->getLayersPresentSEIEnabled())
     343  {
     344    SEILayersPresent *sei = xCreateSEILayersPresent ();
     345    m_pcEntropyCoder->setBitstream(&nalu.m_Bitstream);
     346    m_seiWriter.writeSEImessage(nalu.m_Bitstream, *sei, sps);
     347    writeRBSPTrailingBits(nalu.m_Bitstream);
     348    accessUnit.push_back(new NALUnitEBSP(nalu));
     349    delete sei;
     350  }
     351#endif
    321352
    322353  if(m_pcCfg->getFramePackingArrangementSEIEnabled())
Note: See TracChangeset for help on using the changeset viewer.