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


Ignore:
Timestamp:
8 Jul 2015, 23:49:21 (9 years ago)
Author:
seregin
Message:

macro cleanup: OLS_IDX_CHK

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

Legend:

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

    r1185 r1218  
    330330   case SEI::SUB_BITSTREAM_PROPERTY:
    331331     sei = new SEISubBitstreamProperty;
    332 #if OLS_IDX_CHK
    333332     xParseSEISubBitstreamProperty((SEISubBitstreamProperty&) *sei, vps, pDecodedMessageOutputStream);
    334 #else
    335      xParseSEISubBitstreamProperty((SEISubBitstreamProperty&) *sei, pDecodedMessageOutputStream);
    336 #endif
    337333     break;
    338334#endif
     
    14891485
    14901486#if SUB_BITSTREAM_PROPERTY_SEI
    1491 #if OLS_IDX_CHK
    14921487Void SEIReader::xParseSEISubBitstreamProperty(SEISubBitstreamProperty &sei, TComVPS *vps, std::ostream *pDecodedMessageOutputStream)
    1493 #else
    1494 Void SEIReader::xParseSEISubBitstreamProperty(SEISubBitstreamProperty &sei, std::ostream *pDecodedMessageOutputStream)
    1495 #endif
    14961488{
    14971489  UInt uiCode;
     
    15031495    sei_read_code( pDecodedMessageOutputStream,  2, uiCode, "sub_bitstream_mode[i]"           ); sei.m_subBitstreamMode[i] = uiCode;
    15041496    sei_read_uvlc( pDecodedMessageOutputStream,     uiCode, "output_layer_set_idx_to_vps[i]"  );
    1505 #if OLS_IDX_CHK
    1506       // The value of output_layer_set_idx_to_vps[ i ]  shall be in the range of 0 to NumOutputLayerSets − 1, inclusive.
    1507       assert(uiCode > 0 && uiCode <= vps->getNumOutputLayerSets()-1);
    1508 #endif
    1509       sei.m_outputLayerSetIdxToVps[i] = uiCode;
     1497
     1498    // The value of output_layer_set_idx_to_vps[ i ]  shall be in the range of 0 to NumOutputLayerSets − 1, inclusive.
     1499    assert(uiCode > 0 && uiCode <= vps->getNumOutputLayerSets()-1);
     1500
     1501    sei.m_outputLayerSetIdxToVps[i] = uiCode;
     1502
    15101503    sei_read_code( pDecodedMessageOutputStream,  3, uiCode, "highest_sub_layer_id[i]"         ); sei.m_highestSublayerId[i] = uiCode;
    15111504    sei_read_code( pDecodedMessageOutputStream, 16, uiCode, "avg_bit_rate[i]"                 ); sei.m_avgBitRate[i] = uiCode;
  • branches/SHM-dev/source/Lib/TLibDecoder/SEIread.h

    r1185 r1218  
    117117#endif
    118118#if SUB_BITSTREAM_PROPERTY_SEI
    119 #if OLS_IDX_CHK
    120119Void   xParseSEISubBitstreamProperty          (SEISubBitstreamProperty &sei, TComVPS *vps, std::ostream *pDecodedMessageOutputStream);
    121 #else
    122 Void   xParseSEISubBitstreamProperty          (SEISubBitstreamProperty &sei, std::ostream *pDecodedMessageOutputStream);
    123 #endif
    124120#endif
    125121#if LAYERS_NOT_PRESENT_SEI
Note: See TracChangeset for help on using the changeset viewer.