Changeset 546 in SHVCSoftware for branches/SHM-4.1-dev/source/Lib/TLibDecoder


Ignore:
Timestamp:
15 Jan 2014, 01:06:24 (11 years ago)
Author:
qualcomm
Message:

JCTVC-O0137: Reserve value 63 for vps_max_layers_minus1 (Macro: O0137_MAX_LAYERID)

Reserve the value of 63 for vps_max_layers_minus1, but allow bistreams to contain the value. Decoder ignore NUTs with layer ID equal to 63.

Patch from Karsten Suehring <karsten.suehring@…>

From: Adarsh K. Ramasubramonian <aramasub@…>

Location:
branches/SHM-4.1-dev/source/Lib/TLibDecoder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-4.1-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r545 r546  
    866866  READ_CODE( 2,  uiCode,  "vps_reserved_three_2bits" );           assert(uiCode == 3);
    867867#if VPS_RENAME
    868   READ_CODE( 6,  uiCode,  "vps_max_layers_minus1" );              pcVPS->setMaxLayers( uiCode + 1);
     868#if O0137_MAX_LAYERID
     869  READ_CODE( 6,  uiCode,  "vps_max_layers_minus1" );              pcVPS->setMaxLayers( min( 62u, uiCode) + 1 );
     870#else
     871  READ_CODE( 6,  uiCode,  "vps_max_layers_minus1" );              pcVPS->setMaxLayers( uiCode + 1 );
     872#endif
    869873#else
    870874  READ_CODE( 6,  uiCode,  "vps_reserved_zero_6bits" );            assert(uiCode == 0);
  • branches/SHM-4.1-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r539 r546  
    17341734  m_cEntropyDecoder.setBitstream      (nalu.m_Bitstream);
    17351735
     1736#if O0137_MAX_LAYERID
     1737  // ignore any NAL units with nuh_layer_id == 63
     1738  if (nalu.m_layerId == 63 )
     1739  { 
     1740    return false;
     1741  }
     1742#endif
    17361743  switch (nalu.m_nalUnitType)
    17371744  {
Note: See TracChangeset for help on using the changeset viewer.