Changeset 1169 in SHVCSoftware


Ignore:
Timestamp:
8 Jul 2015, 01:20:27 (9 years ago)
Author:
seregin
Message:

macro cleanup: LIST_OF_PTL

Location:
branches/SHM-dev/source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r1162 r1169  
    14241424    }
    14251425  }
    1426     vps->setIlpSshSignalingEnabledFlag(false);
    1427 #if VPS_EXTN_PROFILE_INFO
    1428 #if !MULTIPLE_PTL_SUPPORT
    1429 #if LIST_OF_PTL
    1430   vps->getPTLForExtnPtr()->resize(1);   // Dummy object - unused.
    1431   for(i = 0; i < vps->getMaxLayers(); i++)
    1432   {
    1433     // TODO: The profile tier level have to be given support to be included in the configuration files
    1434     if(i == 0)
    1435     {
    1436       if( vps->getBaseLayerInternalFlag() && vps->getMaxLayers() > 1 )
    1437       {
    1438         vps->setProfilePresentFlag(1, false);
    1439         vps->getPTLForExtnPtr()->push_back( *(m_acTEncTop[0].getSPS()->getPTL()) );
    1440       }
    1441     }
    1442     else  // i > 0
    1443     {
    1444       vps->setProfilePresentFlag(i, true);
    1445       // Note - may need to be changed for other layer structures.
    1446       vps->getPTLForExtnPtr()->push_back( *(m_acTEncTop[0].getSPS()->getPTL()) );
    1447     }
    1448   }
    1449 #else
    1450   vps->getPTLForExtnPtr()->resize(vps->getNumLayerSets());
    1451   for(Int setId = 1; setId < vps->getNumLayerSets(); setId++)
    1452   {
    1453     vps->setProfilePresentFlag(setId, true);
    1454     // Note - may need to be changed for other layer structures.
    1455     *(vps->getPTLForExtn(setId)) = *(m_acTEncTop[setId].getSPS()->getPTL());
    1456   }
    1457 #endif
    1458 #endif
    1459 #endif
     1426
     1427  vps->setIlpSshSignalingEnabledFlag(false);
    14601428
    14611429  // Direct reference layers
     
    15561524    }
    15571525  }
    1558 
     1526#endif
    15591527  // Target output layer
    1560 #if !MULTIPLE_PTL_SUPPORT
    1561 #if LIST_OF_PTL
    1562   vps->setNumProfileTierLevel( vps->getPTLForExtnPtr()->size() ); // +1 for the base VPS PTL()
    1563 #else
    1564   vps->setNumOutputLayerSets(vps->getNumLayerSets());
    1565   vps->setNumProfileTierLevel(vps->getNumLayerSets());
    1566 #endif
    1567 #endif
    1568 #endif
    15691528#if VPS_DPB_SIZE_TABLE
    15701529  vps->deriveNumberOfSubDpbs();
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1168 r1169  
    5353#define POC_RESET_VALUE_RESTRICTION      1      ///< R0223: Restriction on the value of full_poc_reset_flag
    5454#define PTL_SIGNALLING                   1      ///< Overall macro for all PTL-related signalling
    55 #if PTL_SIGNALLING
    56 #define LIST_OF_PTL                      1      ///< JCTVC-R0272: Signalling the PTL for the 0-th OLS
    57 #endif
     55
    5856#define BSP_INIT_ARRIVAL_SEI             1      ///< JCTVC-R0231: Make signalling of vcl_initial_arrival_delay independent of NalHrdBpPresentFlag
    5957#define VPS_VUI_BSP_HRD_PARAMS           1      ///< JCTVC-R0231: Define the VPS VUI BSP hrd_params() as a separate function, and apply changes adopted.
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1168 r1169  
    26722672  Int NumOutputLayersInOutputLayerSet[MAX_VPS_LAYER_SETS_PLUS1];
    26732673  Int OlsHighestOutputLayerId[MAX_VPS_LAYER_SETS_PLUS1];
    2674 #if LIST_OF_PTL
     2674
    26752675  if( vps->getMaxLayers() > 1 && vps->getBaseLayerInternalFlag() )
    26762676  {
     
    26852685#endif
    26862686  }
    2687 #endif
    26882687
    26892688  UInt numScalabilityTypes = 0, i = 0, j = 0;
     
    28762875  vps->getPTLForExtnPtr()->resize(vps->getNumProfileTierLevel());
    28772876#endif
    2878 #if LIST_OF_PTL
     2877
    28792878  for(Int idx = vps->getBaseLayerInternalFlag() ? 2 : 1; idx < vps->getNumProfileTierLevel(); idx++)
    2880 #else
    2881   for(Int idx = 1; idx <= vps->getNumProfileTierLevel() - 1; idx++)
    2882 #endif
    28832879  {
    28842880    READ_FLAG( uiCode, "vps_profile_present_flag[i]" ); vps->setProfilePresentFlag(idx, uiCode ? true : false);
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1168 r1169  
    19841984  Int NumOutputLayersInOutputLayerSet[MAX_VPS_LAYER_SETS_PLUS1];
    19851985  Int OlsHighestOutputLayerId[MAX_VPS_LAYER_SETS_PLUS1];
    1986 #if LIST_OF_PTL
     1986
    19871987  if( vps->getMaxLayers() > 1 && vps->getBaseLayerInternalFlag() )
    19881988  {
     
    19931993#endif
    19941994  }
    1995 #endif
    19961995
    19971996  UInt i = 0, j = 0;
     
    21242123  Int const numBitsForPtlIdx = vps->calculateLenOfSyntaxElement( vps->getNumProfileTierLevel() );
    21252124
    2126 #if LIST_OF_PTL
    21272125#if MULTIPLE_PTL_SUPPORT
    21282126  //Do something here to make sure the loop is correct to consider base layer internal stuff
     
    21312129#endif
    21322130  for(Int idx = vps->getBaseLayerInternalFlag() ? 2 : 1; idx < vps->getNumProfileTierLevel(); idx++)
    2133 #else
    2134   for(Int idx = 1; idx <= vps->getNumProfileTierLevel() - 1; idx++)
    2135 #endif
    21362131  {
    21372132#if MULTIPLE_PTL_SUPPORT
Note: See TracChangeset for help on using the changeset viewer.