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


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/TLibEncoder/TEncCavlc.cpp

    r453 r454  
    812812}
    813813
     814#if SVC_EXTENSION
    814815#if VPS_EXTNS
    815816Void TEncCavlc::codeVPSExtension (TComVPS *vps)
     
    907908#if VPS_EXTN_PROFILE_INFO
    908909  // Profile-tier-level signalling
    909 #if VPS_PROFILE_OUTPUT_LAYERS
    910910  WRITE_CODE( vps->getNumLayerSets() - 1   , 10, "vps_number_layer_sets_minus1" );     
    911911  WRITE_CODE( vps->getNumProfileTierLevel() - 1,  6, "vps_num_profile_tier_level_minus1");
    912912  for(Int idx = 1; idx <= vps->getNumProfileTierLevel() - 1; idx++)
    913 #else
    914   for(Int idx = 1; idx <= vps->getNumLayerSets() - 1; idx++)
    915 #endif
    916913  {
    917914    WRITE_FLAG( vps->getProfilePresentFlag(idx),       "vps_profile_present_flag[i]" );
    918915    if( !vps->getProfilePresentFlag(idx) )
    919916    {
    920 #if VPS_PROFILE_OUTPUT_LAYERS
    921917      WRITE_CODE( vps->getProfileLayerSetRef(idx) - 1, 6, "profile_ref_minus1[i]" );
    922 #else
    923       WRITE_UVLC( vps->getProfileLayerSetRef(idx) - 1, "vps_profile_layer_set_ref_minus1[i]" );
    924 #endif
    925918    }
    926919    codePTL( vps->getPTLForExtn(idx), vps->getProfilePresentFlag(idx), vps->getMaxTLayers() - 1 );
     
    928921#endif
    929922
    930 #if VPS_PROFILE_OUTPUT_LAYERS
    931923  Int numOutputLayerSets = vps->getNumOutputLayerSets() ;
    932924  WRITE_FLAG(  (numOutputLayerSets > vps->getNumLayerSets()), "more_output_layer_sets_than_default_flag" );
     
    963955    WRITE_CODE( vps->getProfileLevelTierIdx(i), numBits, "profile_level_tier_idx[i]" );     
    964956  }
    965 #else
    966 #if VPS_EXTN_OP_LAYER_SETS
    967   // Target output layer signalling
    968   WRITE_UVLC( vps->getNumOutputLayerSets(),            "vps_num_output_layer_sets");
    969   for(i = 0; i < vps->getNumOutputLayerSets(); i++)
    970   {
    971 #if VPS_OUTPUT_LAYER_SET_IDX
    972     assert(vps->getOutputLayerSetIdx(i) > 0);
    973     WRITE_UVLC( vps->getOutputLayerSetIdx(i) - 1,           "vps_output_layer_set_idx_minus1[i]");
    974 #else
    975     WRITE_UVLC( vps->getOutputLayerSetIdx(i),           "vps_output_layer_set_idx[i]");
    976 #endif
    977     Int lsIdx = vps->getOutputLayerSetIdx(i);
    978     for(j = 0; j <= vps->getMaxLayerId(); j++)
    979     {
    980       if(vps->getLayerIdIncludedFlag(lsIdx, j))
    981       {
    982         WRITE_FLAG( vps->getOutputLayerFlag(lsIdx, j), "vps_output_layer_flag[lsIdx][j]");
    983       }
    984     }
    985   }
    986 #endif
    987 #endif
    988 
     957 
    989958#if REPN_FORMAT_IN_VPS
    990959  WRITE_FLAG( vps->getRepFormatIdxPresentFlag(), "rep_format_idx_present_flag");
     
    11621131}
    11631132#endif
     1133#endif //SVC_EXTENSION
    11641134
    11651135Void TEncCavlc::codeSliceHeader         ( TComSlice* pcSlice )
Note: See TracChangeset for help on using the changeset viewer.