Changeset 1154 in SHVCSoftware


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

macro cleanup: VPS_EXTN_UEV_CODING

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

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp

    r1153 r1154  
    19601960#endif
    19611961, m_numProfileTierLevel       (0)
    1962 #if !VPS_EXTN_UEV_CODING
    1963 , m_moreOutputLayerSetsThanDefaultFlag (false)
    1964 #endif
    19651962, m_numAddOutputLayerSets     (0)
    19661963#if P0295_DEFAULT_OUT_LAYER_IDC
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h

    r1153 r1154  
    665665
    666666  UInt       m_numProfileTierLevel;
    667 #if !VPS_EXTN_UEV_CODING
    668   Bool       m_moreOutputLayerSetsThanDefaultFlag;
    669 #endif
    670667  Int        m_numAddOutputLayerSets;
    671668#if P0295_DEFAULT_OUT_LAYER_IDC
     
    10331030  UInt   getNumProfileTierLevel()                                { return m_numProfileTierLevel; }
    10341031  Void   setNumProfileTierLevel(Int x)                           { m_numProfileTierLevel = x;    }
    1035 
    1036 #if !VPS_EXTN_UEV_CODING
    1037   Bool   getMoreOutputLayerSetsThanDefaultFlag()                 { return m_moreOutputLayerSetsThanDefaultFlag;}
    1038   Void   setMoreOutputLayerSetsThanDefaultFlag(Bool x)           { m_moreOutputLayerSetsThanDefaultFlag = x   ;}
    1039 #endif
    1040 
    10411032  Int    getNumAddOutputLayerSets()                              { return m_numAddOutputLayerSets; }
    10421033  Void   setNumAddOutputLayerSets(Int x)                         { m_numAddOutputLayerSets = x   ; }
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1153 r1154  
    7777
    7878#define DISCARDABLE_PIC_RPS              1      ///< JCTVC-P0130: Inter-layer RPS and temporal RPS should not contain picture with discardable_flag equal to 1
    79 #define VPS_EXTN_UEV_CODING              1      ///< JCTVC-P0306: Code some syntax elements as ue(v), and remove some syntax elements that duplicate behaviour
    8079#define ALIGNED_BUMPING                  1      ///< JCTVC-P0192: Align bumping of pictures in an AU
    8180#define FIX_ALIGN_BUMPING                1
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1153 r1154  
    28682868#if VPS_EXTN_PROFILE_INFO
    28692869  // Profile-tier-level signalling
    2870 #if !VPS_EXTN_UEV_CODING
    2871   READ_CODE( 10, uiCode, "vps_number_layer_sets_minus1" );     assert( uiCode == (vps->getNumLayerSets() - 1) );
    2872   READ_CODE(  6, uiCode, "vps_num_profile_tier_level_minus1"); vps->setNumProfileTierLevel( uiCode + 1 );
    2873 #else
    28742870  READ_UVLC(  uiCode, "vps_num_profile_tier_level_minus1"); vps->setNumProfileTierLevel( uiCode + 1 );
    2875 #endif
     2871
    28762872  Int const numBitsForPtlIdx = vps->calculateLenOfSyntaxElement( vps->getNumProfileTierLevel() );
    28772873#if !MULTIPLE_PTL_SUPPORT
     
    29022898#endif
    29032899
    2904 #if !VPS_EXTN_UEV_CODING
    2905   READ_FLAG( uiCode, "more_output_layer_sets_than_default_flag" ); vps->setMoreOutputLayerSetsThanDefaultFlag( uiCode ? true : false );
    2906   Int numOutputLayerSets = 0;
    2907   if(! vps->getMoreOutputLayerSetsThanDefaultFlag() )
    2908   {
    2909     numOutputLayerSets = vps->getNumLayerSets();
    2910   }
    2911   else
    2912   {
    2913     READ_CODE( 10, uiCode, "num_add_output_layer_sets" );          vps->setNumAddOutputLayerSets( uiCode );
    2914     numOutputLayerSets = vps->getNumLayerSets() + vps->getNumAddOutputLayerSets();
    2915   }
    2916 #else
    2917 
    29182900#if Q0165_NUM_ADD_OUTPUT_LAYER_SETS
    29192901  if( vps->getNumLayerSets() > 1 )
     
    29342916
    29352917  Int numOutputLayerSets = vps->getNumLayerSets() + vps->getNumAddOutputLayerSets();
    2936 #endif
    29372918
    29382919#if P0295_DEFAULT_OUT_LAYER_IDC
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1153 r1154  
    21202120#if VPS_EXTN_PROFILE_INFO
    21212121  // Profile-tier-level signalling
    2122 #if !VPS_EXTN_UEV_CODING
    2123   WRITE_CODE( vps->getNumLayerSets() - 1   , 10, "vps_number_layer_sets_minus1" );     
    2124   WRITE_CODE( vps->getNumProfileTierLevel() - 1,  6, "vps_num_profile_tier_level_minus1");
    2125 #else
    21262122  WRITE_UVLC( vps->getNumProfileTierLevel() - 1, "vps_num_profile_tier_level_minus1");
     2123
    21272124  Int const numBitsForPtlIdx = vps->calculateLenOfSyntaxElement( vps->getNumProfileTierLevel() );
    2128 #endif
     2125
    21292126#if LIST_OF_PTL
    21302127#if MULTIPLE_PTL_SUPPORT
     
    21502147#endif
    21512148
    2152 #if !VPS_EXTN_UEV_CODING
    2153   Int numOutputLayerSets = vps->getNumOutputLayerSets() ;
    2154   WRITE_FLAG(  (numOutputLayerSets > vps->getNumLayerSets()), "more_output_layer_sets_than_default_flag" );
    2155   if(numOutputLayerSets > vps->getNumLayerSets())
    2156   {
    2157     WRITE_CODE( numOutputLayerSets - vps->getNumLayerSets(), 10, "num_add_output_layer_sets" );
    2158   }
    2159 #else
    21602149  Int numOutputLayerSets = vps->getNumOutputLayerSets();
    21612150  Int numAddOutputLayerSets = numOutputLayerSets - (Int)vps->getNumLayerSets();
     
    21722161#else
    21732162  WRITE_UVLC( numOutputLayerSets - vps->getNumLayerSets(), "num_add_output_layer_sets" );
    2174 #endif
    21752163#endif
    21762164
Note: See TracChangeset for help on using the changeset viewer.