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/SEIwrite.cpp

    r191 r292  
    8989    break;
    9090#endif
     91#if M0043_LAYERS_PRESENT_SEI
     92  case SEI::LAYERS_PRESENT:
     93    fprintf( g_hTrace, "=========== Layers Present SEI message ===========\n");
     94    break;
     95#endif
    9196#if L0208_SOP_DESCRIPTION_SEI
    9297  case SEI::SOP_DESCRIPTION:
     
    150155  case SEI::TONE_MAPPING_INFO:
    151156    xWriteSEIToneMappingInfo(*static_cast<const SEIToneMappingInfo*>(&sei));
     157    break;
     158#endif
     159#if M0043_LAYERS_PRESENT_SEI
     160  case SEI::LAYERS_PRESENT:
     161    xWriteSEILayersPresent(*static_cast<const SEILayersPresent*>(&sei));
    152162    break;
    153163#endif
     
    591601}
    592602
     603#if M0043_LAYERS_PRESENT_SEI
     604Void SEIWriter::xWriteSEILayersPresent(const SEILayersPresent& sei)
     605{
     606  WRITE_UVLC( sei.m_activeVpsId,           "lp_sei_active_vps_id" );
     607  for (UInt i = 0; i < sei.m_vpsMaxLayers; i++)
     608  {
     609    WRITE_FLAG( sei.m_layerPresentFlag[i], "layer_present_flag"   );
     610  }
     611  xWriteByteAlign();
     612}
     613#endif
     614
    593615#if L0208_SOP_DESCRIPTION_SEI
    594616Void SEIWriter::xWriteSEISOPDescription(const SEISOPDescription& sei)
Note: See TracChangeset for help on using the changeset viewer.