Changeset 900 in SHVCSoftware


Ignore:
Timestamp:
6 Oct 2014, 21:23:30 (10 years ago)
Author:
sharp
Message:
  1. Deshpande (Sharp) <sdeshpande@…>

JCTVC-R0155 proposal2 - valid range for output_layer_set_idx_to_vps[i]

Location:
branches/SHM-dev/source/Lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r899 r900  
    263263#define DEF_OPT_LAYER_IDC                1      ///< JCTVC-R0154: proposal2 - default_output_layer_idc and output_layer_flag[i][j]
    264264#define ISLICE_TYPE_NUMDIR               1      ///< JCTVC-R0155: Proposal 1 I slice_type
     265#define OLS_IDX_CHK                      1      ///< JCTVC-R0155: Proposal 2 valid range for output_layer_set_idx_to_vps[i]
    265266#define R0340_RESAMPLING_MODIFICATION    1      ///< JCTVC-R0340: set of changes regarding resampling (as listed below)
    266267#if R0340_RESAMPLING_MODIFICATION
  • branches/SHM-dev/source/Lib/TLibDecoder/SEIread.cpp

    r894 r900  
    359359   case SEI::SUB_BITSTREAM_PROPERTY:
    360360     sei = new SEISubBitstreamProperty;
     361#if OLS_IDX_CHK
     362     xParseSEISubBitstreamProperty((SEISubBitstreamProperty&) *sei, vps);
     363#else
    361364     xParseSEISubBitstreamProperty((SEISubBitstreamProperty&) *sei);
     365#endif
    362366     break;
    363367#endif
     
    13491353#endif
    13501354#if SUB_BITSTREAM_PROPERTY_SEI
     1355#if OLS_IDX_CHK
     1356Void SEIReader::xParseSEISubBitstreamProperty(SEISubBitstreamProperty &sei, TComVPS *vps)
     1357#else
    13511358Void SEIReader::xParseSEISubBitstreamProperty(SEISubBitstreamProperty &sei)
     1359#endif
    13521360{
    13531361  UInt uiCode;
     
    13581366  {
    13591367    READ_CODE(  2, uiCode, "sub_bitstream_mode[i]"           ); sei.m_subBitstreamMode[i] = uiCode;
    1360     READ_UVLC(     uiCode, "output_layer_set_idx_to_vps[i]"  ); sei.m_outputLayerSetIdxToVps[i] = uiCode;
     1368    READ_UVLC(     uiCode, "output_layer_set_idx_to_vps[i]"  );
     1369#if OLS_IDX_CHK
     1370      // The value of output_layer_set_idx_to_vps[ i ]  shall be in the range of 0 to NumOutputLayerSets − 1, inclusive.
     1371      assert(uiCode > 0 && uiCode <= vps->getNumOutputLayerSets()-1);
     1372#endif
     1373      sei.m_outputLayerSetIdxToVps[i] = uiCode;
    13611374    READ_CODE(  3, uiCode, "highest_sub_layer_id[i]"         ); sei.m_highestSublayerId[i] = uiCode;
    13621375    READ_CODE( 16, uiCode, "avg_bit_rate[i]"                 ); sei.m_avgBitRate[i] = uiCode;
  • branches/SHM-dev/source/Lib/TLibDecoder/SEIread.h

    r894 r900  
    107107#endif
    108108#if SUB_BITSTREAM_PROPERTY_SEI
     109#if OLS_IDX_CHK
     110Void   xParseSEISubBitstreamProperty   (SEISubBitstreamProperty &sei, TComVPS *vps);
     111#else
    109112Void   xParseSEISubBitstreamProperty   (SEISubBitstreamProperty &sei);
     113#endif
    110114#endif
    111115#if LAYERS_NOT_PRESENT_SEI
Note: See TracChangeset for help on using the changeset viewer.