Changeset 1130 in SHVCSoftware for branches/SHM-dev/source/App


Ignore:
Timestamp:
7 Jul 2015, 03:13:38 (10 years ago)
Author:
seregin
Message:

macro cleanup: M0040_ADAPTIVE_RESOLUTION_CHANGE

Location:
branches/SHM-dev/source/App/TAppEncoder
Files:
3 edited

Legend:

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

    r1128 r1130  
    16851685  ("SEITemporalMotionVectorPredictionConstraints",             m_TMVPConstraintsSEIEnabled,              0, "Control generation of TMVP constrants SEI message")
    16861686#endif
    1687 #if M0040_ADAPTIVE_RESOLUTION_CHANGE
    16881687  ("AdaptiveResolutionChange",     m_adaptiveResolutionChange, 0, "Adaptive resolution change frame number. Should coincide with EL RAP picture. (0: disable)")
    1689 #endif
    16901688#if R0071_IRAP_EOS_CROSS_LAYER_IMPACTS
    16911689  ("LayerSwitchOffBegin%d", cfg_layerSwitchOffBegin, 0, MAX_LAYERS, "Switch layer %d off after given poc")
     
    43494347  }
    43504348#endif //VPS_EXTN_DIRECT_REF_LAYERS
    4351 #if M0040_ADAPTIVE_RESOLUTION_CHANGE
    4352   if (m_adaptiveResolutionChange > 0)
     4349
     4350  if( m_adaptiveResolutionChange > 0 )
    43534351  {
    43544352    xConfirmPara(m_numLayers != 2, "Adaptive resolution change works with 2 layers only");
    43554353    xConfirmPara(m_acLayerCfg[1].m_iIntraPeriod == 0 || (m_adaptiveResolutionChange % m_acLayerCfg[1].m_iIntraPeriod) != 0, "Adaptive resolution change must happen at enhancement layer RAP picture");
    43564354  }
    4357 #endif
    4358 
    4359   if (m_adaptiveResolutionChange > 0)
     4355
     4356  if( m_adaptiveResolutionChange > 0 )
    43604357  {
    43614358    xConfirmPara(m_crossLayerIrapAlignFlag != 0, "Cross layer IRAP alignment must be disabled when using adaptive resolution change.");
    43624359  }
    4363   if (m_skipPictureAtArcSwitch)
     4360
     4361  if( m_skipPictureAtArcSwitch )
    43644362  {
    43654363    xConfirmPara(m_adaptiveResolutionChange <= 0, "Skip picture at ARC switching only works when Adaptive Resolution Change is active (AdaptiveResolutionChange > 0)");
     
    44974495  printf("Auxiliary pictures                : %d\n", m_scalabilityMask[AUX_ID] );
    44984496#endif
    4499 #if M0040_ADAPTIVE_RESOLUTION_CHANGE
    45004497  printf("Adaptive Resolution Change        : %d\n", m_adaptiveResolutionChange );
    4501 #endif
    45024498  printf("Skip picture at ARC switch        : %d\n", m_skipPictureAtArcSwitch );
    45034499  printf("Align picture type                : %d\n", m_crossLayerPictureTypeAlignFlag );
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.h

    r1128 r1130  
    473473  Void  xPrintUsage     ();                                   ///< print usage
    474474#if SVC_EXTENSION
    475 #if M0040_ADAPTIVE_RESOLUTION_CHANGE
    476475  Int       m_adaptiveResolutionChange;                       ///< Indicate adaptive resolution change frame
    477 #endif
    478476  Bool      m_skipPictureAtArcSwitch;                         ///< Indicates that when ARC up-switching is performed the higher layer picture is a skip picture
    479477#if REPN_FORMAT_IN_VPS
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r1128 r1130  
    787787    }
    788788
    789 #if M0040_ADAPTIVE_RESOLUTION_CHANGE
    790789    m_acTEncTop[layer].setAdaptiveResolutionChange               ( m_adaptiveResolutionChange );
    791 #endif
    792790#if R0071_IRAP_EOS_CROSS_LAYER_IMPACTS
    793791    m_acTEncTop[layer].setLayerSwitchOffBegin                    (m_acLayerCfg[layer].m_layerSwitchOffBegin);
     
    17691767      }
    17701768    }
    1771 #if M0040_ADAPTIVE_RESOLUTION_CHANGE
    17721769  vps->setSingleLayerForNonIrapFlag(m_adaptiveResolutionChange > 0 ? true : false);
    1773 #endif
    17741770  vps->setHigherLayerIrapSkipFlag(m_skipPictureAtArcSwitch);
    17751771
     
    20952091#endif
    20962092
    2097 #if M0040_ADAPTIVE_RESOLUTION_CHANGE
    2098     if (m_adaptiveResolutionChange)
     2093    if( m_adaptiveResolutionChange )
    20992094    {
    21002095      for(UInt layer = 0; layer < m_numLayers; layer++)
     
    21082103      }
    21092104    }
    2110 #endif
    21112105
    21122106    // loop through frames in one GOP
     
    25092503      TComPicYuv*  pcPicYuvRecBottom  = *(iterPicYuvRec++);
    25102504
    2511 #if M0040_ADAPTIVE_RESOLUTION_CHANGE
    2512       if (!m_acLayerCfg[layer].getReconFile().empty() && pcPicYuvRecTop->isReconstructed() && pcPicYuvRecBottom->isReconstructed())
    2513 #else
    2514       if (!m_acLayerCfg[layer].getReconFile().empty())
    2515 #endif
     2505      if( !m_acLayerCfg[layer].getReconFile().empty() && pcPicYuvRecTop->isReconstructed() && pcPicYuvRecBottom->isReconstructed() )
    25162506      {
    25172507#if REPN_FORMAT_IN_VPS
     
    25382528    {
    25392529      TComPicYuv*  pcPicYuvRec  = *(iterPicYuvRec++);
    2540 #if M0040_ADAPTIVE_RESOLUTION_CHANGE
    2541       if (!m_acLayerCfg[layer].getReconFile().empty() && pcPicYuvRec->isReconstructed())
    2542 #else
    2543       if (!m_acLayerCfg[layer].getReconFile().empty())
    2544 #endif
     2530      if( !m_acLayerCfg[layer].getReconFile().empty() && pcPicYuvRec->isReconstructed() )
    25452531      {
    25462532#if REPN_FORMAT_IN_VPS
     
    25642550    list<AccessUnit>::const_iterator iterBitstream = accessUnits.begin();
    25652551
    2566 #if M0040_ADAPTIVE_RESOLUTION_CHANGE
    2567     for ( i = 0; i < iNumEncoded/2 && iterBitstream != accessUnits.end(); i++ )
    2568 #else
    2569     for ( i = 0; i < iNumEncoded/2; i++ )
    2570 #endif
     2552    for( i = 0; i < iNumEncoded/2 && iterBitstream != accessUnits.end(); i++ )
    25712553    {
    25722554      const AccessUnit& auTop = *(iterBitstream++);
     
    25852567    list<AccessUnit>::const_iterator iterBitstream = accessUnits.begin();
    25862568
    2587 #if M0040_ADAPTIVE_RESOLUTION_CHANGE
    2588     for ( i = 0; i < iNumEncoded && iterBitstream != accessUnits.end(); i++ )
    2589 #else
    2590     for ( i = 0; i < iNumEncoded; i++ )
    2591 #endif
     2569    for( i = 0; i < iNumEncoded && iterBitstream != accessUnits.end(); i++ )
    25922570    {
    25932571      const AccessUnit& au = *(iterBitstream++);
Note: See TracChangeset for help on using the changeset viewer.