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


Ignore:
Timestamp:
10 Apr 2014, 03:34:55 (11 years ago)
Author:
sharp
Message:

Following macros for Q0165 were introduced:

Q0165_OUTPUT_LAYER_SET: add a constraint to disallow an empty output layer set,
Q0165_NUM_ADD_OUTPUT_LAYER_SETS: signal num_add_output_layer_set and default_target_output_layer_idc when vps_num_layer_sets_minus1 is greater than 0

by Takeshi Tsukuba (tsukuba.takeshi@…)

File:
1 edited

Legend:

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

    r663 r664  
    12541254  }
    12551255#else
     1256
     1257#if Q0165_NUM_ADD_OUTPUT_LAYER_SETS
     1258  if( vps->getNumLayerSets() > 1 )
     1259  {
     1260    READ_UVLC( uiCode, "num_add_output_layer_sets" );            vps->setNumAddOutputLayerSets( uiCode );
     1261    READ_CODE( 2, uiCode, "default_target_output_layer_idc" );   vps->setDefaultTargetOutputLayerIdc( uiCode );
     1262  }
     1263  else
     1264  {
     1265    vps->setNumAddOutputLayerSets( 0 );
     1266  }
     1267#else
    12561268  READ_UVLC( uiCode, "num_add_output_layer_sets" );          vps->setNumAddOutputLayerSets( uiCode );
     1269#endif
    12571270  Int numOutputLayerSets = vps->getNumLayerSets() + vps->getNumAddOutputLayerSets();
    12581271#endif
    12591272
    12601273#if P0295_DEFAULT_OUT_LAYER_IDC
     1274#if !Q0165_NUM_ADD_OUTPUT_LAYER_SETS
    12611275  if( numOutputLayerSets > 1 )
    12621276  {
    12631277    READ_CODE( 2, uiCode, "default_target_output_layer_idc" );   vps->setDefaultTargetOutputLayerIdc( uiCode );
    12641278  }
     1279#endif
    12651280  vps->setNumOutputLayerSets( numOutputLayerSets );
    12661281
     
    13341349      vps->setAltOuputLayerFlag(i, uiCode ? true : false);
    13351350    }
     1351#if Q0165_OUTPUT_LAYER_SET
     1352    assert( NumOutputLayersInOutputLayerSet[i]>0 );
     1353#endif
     1354
    13361355#endif
    13371356  }
Note: See TracChangeset for help on using the changeset viewer.