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


Ignore:
Timestamp:
10 Apr 2014, 03:34:55 (12 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/TLibEncoder/TEncCavlc.cpp

    r663 r664  
    998998  Int numOutputLayerSets = vps->getNumOutputLayerSets() ;
    999999  assert( numOutputLayerSets - (Int)vps->getNumLayerSets() >= 0 );
     1000
     1001#if Q0165_NUM_ADD_OUTPUT_LAYER_SETS
     1002  if( vps->getNumLayerSets() > 1 )
     1003  {
     1004    WRITE_UVLC( numOutputLayerSets - vps->getNumLayerSets(), "num_add_output_layer_sets" );
     1005    WRITE_CODE( vps->getDefaultTargetOutputLayerIdc(), 2, "default_target_output_layer_idc" );
     1006  }
     1007#else
    10001008  WRITE_UVLC( numOutputLayerSets - vps->getNumLayerSets(), "num_add_output_layer_sets" );
    10011009#endif
     1010
     1011#endif
     1012
     1013#if !Q0165_NUM_ADD_OUTPUT_LAYER_SETS
    10021014  if( numOutputLayerSets > 1 )
    10031015  {
     
    10121024#endif
    10131025  }
     1026#endif
    10141027
    10151028  for(i = 1; i < numOutputLayerSets; i++)
     
    10591072      WRITE_FLAG(vps->getAltOuputLayerFlag(i), "alt_output_layer_flag[i]");
    10601073    }
     1074
     1075#if Q0165_OUTPUT_LAYER_SET
     1076    assert( NumOutputLayersInOutputLayerSet[i]>0 );
     1077#endif
     1078
    10611079#endif
    10621080  }
Note: See TracChangeset for help on using the changeset viewer.