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


Ignore:
Timestamp:
8 Nov 2013, 07:59:51 (11 years ago)
Author:
seregin
Message:

remove VPS_PROFILE_OUTPUT_LAYERS macro

File:
1 edited

Legend:

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

    r453 r454  
    992992}
    993993
     994#if SVC_EXTENSION
    994995#if VPS_EXTNS
    995996Void TDecCavlc::parseVPSExtension(TComVPS *vps)
     
    11211122#if VPS_EXTN_PROFILE_INFO
    11221123  // Profile-tier-level signalling
    1123 #if VPS_PROFILE_OUTPUT_LAYERS
    11241124  READ_CODE( 10, uiCode, "vps_number_layer_sets_minus1" );     assert( uiCode == (vps->getNumLayerSets() - 1) );
    11251125  READ_CODE(  6, uiCode, "vps_num_profile_tier_level_minus1"); vps->setNumProfileTierLevel( uiCode + 1 );
    11261126  vps->getPTLForExtnPtr()->resize(vps->getNumProfileTierLevel());
    11271127  for(Int idx = 1; idx <= vps->getNumProfileTierLevel() - 1; idx++)
    1128 #else
    1129   vps->getPTLForExtnPtr()->resize(vps->getNumLayerSets());
    1130   for(Int idx = 1; idx <= vps->getNumLayerSets() - 1; idx++)
    1131 #endif
    11321128  {
    11331129    READ_FLAG( uiCode, "vps_profile_present_flag[i]" ); vps->setProfilePresentFlag(idx, uiCode ? true : false);
    11341130    if( !vps->getProfilePresentFlag(idx) )
    11351131    {
    1136 #if VPS_PROFILE_OUTPUT_LAYERS
    11371132      READ_CODE( 6, uiCode, "profile_ref_minus1[i]" ); vps->setProfileLayerSetRef(idx, uiCode + 1);
    1138 #else
    1139       READ_UVLC( uiCode, "vps_profile_layer_set_ref_minus1[i]" ); vps->setProfileLayerSetRef(idx, uiCode + 1);
    1140 #endif
    11411133      assert( vps->getProfileLayerSetRef(idx) < idx );
     1134
    11421135      // Copy profile information as indicated
    11431136      vps->getPTLForExtn(idx)->copyProfileInfo( vps->getPTLForExtn( vps->getProfileLayerSetRef(idx) ) );
     
    11471140#endif
    11481141
    1149 #if VPS_PROFILE_OUTPUT_LAYERS
    11501142  READ_FLAG( uiCode, "more_output_layer_sets_than_default_flag" ); vps->setMoreOutputLayerSetsThanDefaultFlag( uiCode ? true : false );
    11511143  Int numOutputLayerSets = 0;
     
    12081200    READ_CODE( numBits, uiCode, "profile_level_tier_idx[i]" );     vps->setProfileLevelTierIdx(i, uiCode);
    12091201  }
    1210 #else
    1211 #if VPS_EXTN_OP_LAYER_SETS
    1212   // Target output layer signalling
    1213   READ_UVLC( uiCode,            "vps_num_output_layer_sets"); vps->setNumOutputLayerSets(uiCode);
    1214   for(i = 0; i < vps->getNumOutputLayerSets(); i++)
    1215   {
    1216 #if VPS_OUTPUT_LAYER_SET_IDX
    1217     READ_UVLC( uiCode,           "vps_output_layer_set_idx_minus1[i]"); vps->setOutputLayerSetIdx(i, uiCode + 1);
    1218 #else
    1219     READ_UVLC( uiCode,           "vps_output_layer_set_idx[i]"); vps->setOutputLayerSetIdx(i, uiCode);
    1220 #endif
    1221     Int lsIdx = vps->getOutputLayerSetIdx(i);
    1222     for(j = 0; j <= vps->getMaxLayerId(); j++)
    1223     {
    1224       if(vps->getLayerIdIncludedFlag(lsIdx, j))
    1225       {
    1226         READ_FLAG( uiCode, "vps_output_layer_flag[lsIdx][j]"); vps->setOutputLayerFlag(lsIdx, j, uiCode);
    1227       }
    1228     }
    1229   }
    1230 #endif
    1231 #endif
     1202
    12321203#if REPN_FORMAT_IN_VPS
    12331204  READ_FLAG( uiCode, "rep_format_idx_present_flag");
     
    14561427#endif
    14571428}
    1458 #endif
     1429#endif
     1430#endif //SVC_EXTENSION
     1431
    14591432Void TDecCavlc::parseSliceHeader (TComSlice*& rpcSlice, ParameterSetManagerDecoder *parameterSetManager)
    14601433{
Note: See TracChangeset for help on using the changeset viewer.