Ignore:
Timestamp:
18 Sep 2015, 23:09:19 (9 years ago)
Author:
vidyo
Message:

LAYERS_NOT_PRESENT SEI message changes by Vidyo, Inc.
All the changes are under the #define NH_MV_LAYERS_NOT_PRESENT_SEI
Extra information passed into parseSEI - vps as MaxNumLayers is required in order to know how many flags to read.
contact:
jpadia@…, danny@…

Location:
branches/HTM-15.1-dev0-Vidyo/source/Lib/TLibEncoder
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-15.1-dev0-Vidyo/source/Lib/TLibEncoder/SEIwrite.cpp

    r1328 r1331  
    129129#endif
    130130#if NH_MV_SEI
    131 #if NH_MV_SEI_TBD
     131#if NH_MV_LAYERS_NOT_PRESENT_SEI
    132132   case SEI::LAYERS_NOT_PRESENT:
    133      xWriteSEILayersNotPresent(*static_cast<const SEILayersNotPresent*>(&sei));
     133       xWriteSEILayersNotPresent(*static_cast<const SEILayersNotPresent*>(&sei));
    134134     break;
    135135#endif
     
    881881}
    882882
    883 #if NH_MV_SEI_TBD
    884 Void SEIWriter::xWriteSEILayersNotPresent( const SEILayersNotPresent& sei)
     883#if NH_MV_LAYERS_NOT_PRESENT_SEI
     884Void SEIWriter::xWriteSEILayersNotPresent(const SEILayersNotPresent& sei)
    885885{
    886886  WRITE_CODE( sei.m_lnpSeiActiveVpsId, 4, "lnp_sei_active_vps_id" );
    887   for( Int i = 0; i  <=  MaxLayersMinus1; i++ )
     887  for( Int i = 0; i  <  sei.m_lnpSeiMaxLayers; i++ )
    888888  {
    889889    WRITE_FLAG( ( sei.m_layerNotPresentFlag[i] ? 1 : 0 ), "layer_not_present_flag" );
  • branches/HTM-15.1-dev0-Vidyo/source/Lib/TLibEncoder/SEIwrite.h

    r1328 r1331  
    8484
    8585#if NH_MV_SEI
    86 #if NH_MV_SEI_TBD
     86#if NH_MV_LAYERS_NOT_PRESENT_SEI
    8787  Void xWriteSEILayersNotPresent              ( const SEILayersNotPresent& sei);
    8888#endif
  • branches/HTM-15.1-dev0-Vidyo/source/Lib/TLibEncoder/TEncGOP.cpp

    r1328 r1331  
    329329  xClearSEIs(currentMessages, !testWrite);
    330330
     331#if NH_MV_LAYERS_NOT_PRESENT_SEI
     332  // Layers not present SEI message
     333  currentMessages = extractSeisByType(localMessages, SEI::LAYERS_NOT_PRESENT);
     334  xWriteSEISeparately(NAL_UNIT_PREFIX_SEI, currentMessages, accessUnit, itNalu, temporalId, sps);
     335  xClearSEIs(currentMessages, !testWrite);
     336#endif
     337
    331338  // And finally everything else one by one
    332339  xWriteSEISeparately(NAL_UNIT_PREFIX_SEI, localMessages, accessUnit, itNalu, temporalId, sps);
Note: See TracChangeset for help on using the changeset viewer.