Changeset 1155 in SHVCSoftware


Ignore:
Timestamp:
8 Jul 2015, 00:34:36 (9 years ago)
Author:
seregin
Message:

macro cleanup: Q0165_NUM_ADD_OUTPUT_LAYER_SETS

Location:
branches/SHM-dev/source/Lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1154 r1155  
    158158#endif
    159159#define Q0165_OUTPUT_LAYER_SET           1      ///< JCTVC-Q0165: add a constraint to disallow an empty output layer set
    160 #define Q0165_NUM_ADD_OUTPUT_LAYER_SETS  1      ///< JCTVC-Q0165: signal num_add_olss and default_target_output_layer_idc when vps_num_layer_sets_minus1 is greater than 0
    161160
    162161#define Q0078_ADD_LAYER_SETS             1      ///< JCTVC-Q0078: additional layer sets and layer set config
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1154 r1155  
    28982898#endif
    28992899
    2900 #if Q0165_NUM_ADD_OUTPUT_LAYER_SETS
    29012900  if( vps->getNumLayerSets() > 1 )
    29022901  {
    2903     READ_UVLC( uiCode, "num_add_olss" );            vps->setNumAddOutputLayerSets( uiCode );
     2902    READ_UVLC( uiCode, "num_add_olss" );                  vps->setNumAddOutputLayerSets( uiCode );
    29042903    READ_CODE( 2, uiCode, "default_output_layer_idc" );   vps->setDefaultTargetOutputLayerIdc( uiCode );
    29052904  }
     
    29082907    vps->setNumAddOutputLayerSets( 0 );
    29092908  }
    2910 #else
    2911   READ_UVLC( uiCode, "num_add_output_layer_sets" );          vps->setNumAddOutputLayerSets( uiCode );
    2912 #endif
    29132909
    29142910  // The value of num_add_olss shall be in the range of 0 to 1023, inclusive.
     
    29182914
    29192915#if P0295_DEFAULT_OUT_LAYER_IDC
    2920 #if !Q0165_NUM_ADD_OUTPUT_LAYER_SETS
    2921   if( numOutputLayerSets > 1 )
    2922   {
    2923     READ_CODE( 2, uiCode, "default_target_output_layer_idc" );   vps->setDefaultTargetOutputLayerIdc( uiCode );
    2924   }
    2925 #endif
    29262916  vps->setNumOutputLayerSets( numOutputLayerSets );
    29272917
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1154 r1155  
    21532153  assert( numAddOutputLayerSets >= 0 && numAddOutputLayerSets < 1024 );
    21542154
    2155 #if Q0165_NUM_ADD_OUTPUT_LAYER_SETS
    21562155  if( vps->getNumLayerSets() > 1 )
    21572156  {
     
    21592158    WRITE_CODE( vps->getDefaultTargetOutputLayerIdc(), 2, "default_output_layer_idc" );
    21602159  }
    2161 #else
    2162   WRITE_UVLC( numOutputLayerSets - vps->getNumLayerSets(), "num_add_output_layer_sets" );
    2163 #endif
    2164 
    2165 #if !Q0165_NUM_ADD_OUTPUT_LAYER_SETS
    2166   if( numOutputLayerSets > 1 )
    2167   {
    2168 #if P0295_DEFAULT_OUT_LAYER_IDC
    2169     WRITE_CODE( vps->getDefaultTargetOutputLayerIdc(), 2, "default_target_output_layer_idc" );   
    2170 #else
    2171 #if O0109_DEFAULT_ONE_OUT_LAYER_IDC
    2172     WRITE_CODE( vps->getDefaultOneTargetOutputLayerIdc(), 2, "default_one_target_output_layer_idc" );   
    2173 #else
    2174     WRITE_FLAG( vps->getDefaultOneTargetOutputLayerFlag(), "default_one_target_output_layer_flag" );   
    2175 #endif
    2176 #endif
    2177   }
    2178 #endif
    21792160
    21802161  for(i = 1; i < numOutputLayerSets; i++)
Note: See TracChangeset for help on using the changeset viewer.