Changeset 224 in SHVCSoftware for branches/SHM-2.1-dev/source/Lib/TLibEncoder


Ignore:
Timestamp:
22 May 2013, 20:38:25 (11 years ago)
Author:
qualcomm
Message:

Conditional signaling of temporal sub-layer information in SPS (MACRO: SPS_SUB_LAYER_INFO)

Do not signal sps_max_sub_layers_minus1 and sps_temporal_id_nesting_flag for nuh_layer_id > 0.

From: Adarsh K. Ramasubramonian <aramasub@…>

File:
1 edited

Legend:

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

    r216 r224  
    439439#endif
    440440  WRITE_CODE( pcSPS->getVPSId (),          4,       "sps_video_parameter_set_id" );
    441   WRITE_CODE( pcSPS->getMaxTLayers() - 1,  3,       "sps_max_sub_layers_minus1" );
    442   WRITE_FLAG( pcSPS->getTemporalIdNestingFlag() ? 1 : 0,                             "sps_temporal_id_nesting_flag" );
     441#if SPS_SUB_LAYER_INFO
     442  if(pcSPS->getLayerId() == 0)
     443  {
     444#endif
     445    WRITE_CODE( pcSPS->getMaxTLayers() - 1,  3,       "sps_max_sub_layers_minus1" );
     446    WRITE_FLAG( pcSPS->getTemporalIdNestingFlag() ? 1 : 0,                             "sps_temporal_id_nesting_flag" );
     447#if SPS_SUB_LAYER_INFO
     448  }
     449#endif
    443450  codePTL(pcSPS->getPTL(), 1, pcSPS->getMaxTLayers() - 1);
    444451  WRITE_UVLC( pcSPS->getSPSId (),                   "sps_seq_parameter_set_id" );
Note: See TracChangeset for help on using the changeset viewer.