Changeset 1130 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder


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/Lib/TLibDecoder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1128 r1130  
    34633463  vps->setCrossLayerIrapAlignFlag( false );
    34643464
    3465 #if M0040_ADAPTIVE_RESOLUTION_CHANGE
    34663465  // When single_layer_for_non_irap_flag is not present, it is inferred to be equal to 0.
    34673466  vps->setSingleLayerForNonIrapFlag( false );
    3468 #endif
    34693467
    34703468  // When higher_layer_irap_skip_flag is not present it is inferred to be equal to 0
     
    38343832#endif
    38353833
    3836 #if M0040_ADAPTIVE_RESOLUTION_CHANGE
    38373834  READ_FLAG(uiCode, "single_layer_for_non_irap_flag" ); vps->setSingleLayerForNonIrapFlag(uiCode == 1 ? true : false);
    3838 #endif
     3835
    38393836  READ_FLAG(uiCode, "higher_layer_irap_skip_flag" ); vps->setHigherLayerIrapSkipFlag(uiCode == 1 ? true : false);
    38403837
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r1123 r1130  
    17111711    // Create upsampling reference layer pictures for all possible dependent layers and do it only once for the first slice.
    17121712    // Other slices might choose which reference pictures to be used for inter-layer prediction
    1713     if( m_layerId > 0 && m_uiSliceIdx == 0 )
    1714     {     
    1715 #if M0040_ADAPTIVE_RESOLUTION_CHANGE
    1716       if( !pcSlice->getVPS()->getSingleLayerForNonIrapFlag() || ( pcSlice->getVPS()->getSingleLayerForNonIrapFlag() && pcSlice->isIRAP() ) )
    1717 #endif
     1713    if( m_layerId > 0 && m_uiSliceIdx == 0 && ( !pcSlice->getVPS()->getSingleLayerForNonIrapFlag() || pcSlice->isIRAP() ) )
     1714    {
    17181715      for( Int i = 0; i < pcSlice->getNumILRRefIdx(); i++ )
    17191716      {
     
    18651862      pcSlice->setRefPicList( m_cListPic, false, m_cIlpPic);
    18661863    }
    1867 #if M0040_ADAPTIVE_RESOLUTION_CHANGE
    18681864    else if ( m_layerId > 0 )
    18691865    {
    18701866      pcSlice->setRefPicList( m_cListPic, false, NULL);
    18711867    }
    1872 #endif
    18731868#if MFM_ENCCONSTRAINT
    18741869    if( pcSlice->getMFMEnabledFlag() )
     
    18891884#endif
    18901885   
    1891     if( m_layerId > 0 && pcSlice->getVPS()->getCrossLayerIrapAlignFlag() )
    1892     {
    1893 #if M0040_ADAPTIVE_RESOLUTION_CHANGE
    1894       if( !pcSlice->getVPS()->getSingleLayerForNonIrapFlag() || ( pcSlice->getVPS()->getSingleLayerForNonIrapFlag() && pcSlice->isIRAP() ) )
    1895 #endif
     1886    if( m_layerId > 0 && pcSlice->getVPS()->getCrossLayerIrapAlignFlag() && ( !pcSlice->getVPS()->getSingleLayerForNonIrapFlag() || pcSlice->isIRAP() ) )
     1887    {
    18961888      for(Int dependentLayerIdx = 0; dependentLayerIdx < pcSlice->getVPS()->getNumDirectRefLayers(m_layerId); dependentLayerIdx++)
    18971889      {
Note: See TracChangeset for help on using the changeset viewer.