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


Ignore:
Timestamp:
8 Jul 2015, 03:09:51 (10 years ago)
Author:
seregin
Message:

macro cleanup: DPB_PARAMS_MAXTLAYERS, MULTIPLE_PTL_SUPPORT

Location:
branches/SHM-dev/source/Lib/TLibEncoder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1180 r1182  
    13331333  for (Int i = 0; i < maxNumSubLayersMinus1; i++)
    13341334  {
    1335 #if MULTIPLE_PTL_SUPPORT
     1335#if SVC_EXTENSION
    13361336    WRITE_FLAG( pcPTL->getSubLayerProfilePresentFlag(i), "sub_layer_profile_present_flag[i]" );
    13371337#else
     
    13551355  for(Int i = 0; i < maxNumSubLayersMinus1; i++)
    13561356  {
    1357 #if MULTIPLE_PTL_SUPPORT
     1357#if SVC_EXTENSION
    13581358    if( pcPTL->getSubLayerProfilePresentFlag(i) )
    13591359#else
     
    13731373  WRITE_CODE( ptl->getProfileSpace(), 2 ,     "XXX_profile_space[]");
    13741374  WRITE_FLAG( ptl->getTierFlag()==Level::HIGH, "XXX_tier_flag[]"    );
    1375 #if MULTIPLE_PTL_SUPPORT
     1375#if SVC_EXTENSION
    13761376  WRITE_CODE( (ptl->getProfileIdc() == Profile::SCALABLEMAIN || ptl->getProfileIdc() == Profile::SCALABLEMAIN10) ? 7 : Int(ptl->getProfileIdc()), 5 ,  "XXX_profile_idc[]"  );
    13771377#else
     
    14011401    WRITE_FLAG(0,                                    "general_one_picture_only_constraint_flag");
    14021402    WRITE_FLAG(ptl->getLowerBitRateConstraintFlag(), "general_lower_bit_rate_constraint_flag");
    1403 #if MULTIPLE_PTL_SUPPORT
     1403#if SVC_EXTENSION
    14041404    WRITE_CODE(0, 32,  "general_reserved_zero_34bits");  WRITE_CODE(0, 2,  "general_reserved_zero_34bits");
    14051405  }
     
    19771977  if( vps->getMaxLayers() > 1 && vps->getBaseLayerInternalFlag() )
    19781978  {
    1979 #if MULTIPLE_PTL_SUPPORT
    19801979    codePTL( vps->getPTL(1), false, vps->getMaxTLayers() - 1 );
    1981 #else
    1982     codePTL( vps->getPTLForExtn(1), false, vps->getMaxTLayers() - 1 );
    1983 #endif
    19841980  }
    19851981
     
    21122108  Int const numBitsForPtlIdx = vps->calculateLenOfSyntaxElement( vps->getNumProfileTierLevel() );
    21132109
    2114 #if MULTIPLE_PTL_SUPPORT
    21152110  //Do something here to make sure the loop is correct to consider base layer internal stuff
    2116 #else
    2117   assert( vps->getNumProfileTierLevel() == vps->getPTLForExtnPtr()->size());
    2118 #endif
    2119   for(Int idx = vps->getBaseLayerInternalFlag() ? 2 : 1; idx < vps->getNumProfileTierLevel(); idx++)
    2120   {
    2121 #if MULTIPLE_PTL_SUPPORT
     2111
     2112  for( Int idx = vps->getBaseLayerInternalFlag() ? 2 : 1; idx < vps->getNumProfileTierLevel(); idx++ )
     2113  {
    21222114    vps->setProfilePresentFlag(idx, true);
    2123 #endif
     2115
    21242116    WRITE_FLAG( vps->getProfilePresentFlag(idx),       "vps_profile_present_flag[i]" );
    2125 #if MULTIPLE_PTL_SUPPORT
     2117
    21262118    codePTL( vps->getPTL(idx), vps->getProfilePresentFlag(idx), vps->getMaxTLayers() - 1 );
    2127 #else
    2128     codePTL( vps->getPTLForExtn(idx), vps->getProfilePresentFlag(idx), vps->getMaxTLayers() - 1 );
    2129 #endif
    21302119  }
    21312120
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp

    r1174 r1182  
    240240
    241241  // set the VPS profile information
    242 #if !MULTIPLE_PTL_SUPPORT
    243   *m_cVPS.getPTL() = *m_cSPS.getPTL();
    244 #endif
    245242#if VPS_VUI_BSP_HRD_PARAMS
    246243  m_cVPS.getTimingInfo()->setTimingInfoPresentFlag       ( true );
    247244#else
     245  *m_cVPS.getPTL() = *m_cSPS.getPTL();
    248246  m_cVPS.getTimingInfo()->setTimingInfoPresentFlag       ( false );
    249247#endif
Note: See TracChangeset for help on using the changeset viewer.