Ignore:
Timestamp:
7 Apr 2014, 23:08:52 (11 years ago)
Author:
seregin
Message:

update to HM-14.0

File:
1 edited

Legend:

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

    r644 r652  
    518518{
    519519  UInt val;
    520   READ_CODE(4, val, "active_vps_id");      sei.activeVPSId = val;
    521   READ_FLAG( val, "full_random_access_flag");  sei.m_fullRandomAccessFlag = val ? true : false;
    522   READ_FLAG( val, "no_param_set_update_flag"); sei.m_noParamSetUpdateFlag = val ? true : false;
     520  READ_CODE(4, val, "active_video_parameter_set_id");   sei.activeVPSId = val;
     521  READ_FLAG(   val, "self_contained_cvs_flag");         sei.m_selfContainedCvsFlag = val ? true : false;
     522  READ_FLAG(   val, "no_parameter_set_update_flag");    sei.m_noParameterSetUpdateFlag = val ? true : false;
    523523  READ_UVLC(   val, "num_sps_ids_minus1"); sei.numSpsIdsMinus1 = val;
    524524
    525   sei.activeSeqParamSetId.resize(sei.numSpsIdsMinus1 + 1);
     525  sei.activeSeqParameterSetId.resize(sei.numSpsIdsMinus1 + 1);
    526526  for (Int i=0; i < (sei.numSpsIdsMinus1 + 1); i++)
    527527  {
    528     READ_UVLC(val, "active_seq_param_set_id");  sei.activeSeqParamSetId[i] = val;
    529   }
    530 
    531   UInt uibits = m_pcBitstream->getNumBitsUntilByteAligned();
    532  
    533   while(uibits--)
    534   {
    535     READ_FLAG(val, "alignment_bit");
    536   }
     528    READ_UVLC(val, "active_seq_parameter_set_id");      sei.activeSeqParameterSetId[i] = val;
     529  }
     530
     531  xParseByteAlign();
    537532}
    538533
     
    812807    case 4:
    813808      {
    814         READ_CODE( 8, val, "camera_iso_speed_idc" );                     sei.m_cameraIsoSpeedValue = val;
    815         if( sei.m_cameraIsoSpeedValue == 255) //Extended_ISO
     809        READ_CODE( 8, val, "camera_iso_speed_idc" );                     sei.m_cameraIsoSpeedIdc = val;
     810        if( sei.m_cameraIsoSpeedIdc == 255) //Extended_ISO
    816811        {
    817812          READ_CODE( 32,   val,   "camera_iso_speed_value" );            sei.m_cameraIsoSpeedValue = val;
     813        }
     814        READ_CODE( 8, val, "exposure_index_idc" );                       sei.m_exposureIndexIdc = val;
     815        if( sei.m_exposureIndexIdc == 255) //Extended_ISO
     816        {
     817          READ_CODE( 32,   val,   "exposure_index_value" );              sei.m_exposureIndexValue = val;
    818818        }
    819819        READ_FLAG( val, "exposure_compensation_value_sign_flag" );       sei.m_exposureCompensationValueSignFlag = val;
Note: See TracChangeset for help on using the changeset viewer.