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

macro cleanup: DPB_PARAMS_MAXTLAYERS, MULTIPLE_PTL_SUPPORT

File:
1 edited

Legend:

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

    r1180 r1182  
    21092109  for (Int i = 0; i < maxNumSubLayersMinus1; i++)
    21102110  {
    2111 #if MULTIPLE_PTL_SUPPORT
     2111#if SVC_EXTENSION
    21122112    READ_FLAG( uiCode, "sub_layer_profile_present_flag[i]" ); rpcPTL->setSubLayerProfilePresentFlag(i, uiCode);
    21132113#else
     
    21312131  for(Int i = 0; i < maxNumSubLayersMinus1; i++)
    21322132  {
    2133 #if MULTIPLE_PTL_SUPPORT
     2133#if SVC_EXTENSION
    21342134    if( rpcPTL->getSubLayerProfilePresentFlag(i) )
    21352135#else
     
    21832183    READ_FLAG(    uiCode, "general_one_picture_only_constraint_flag");
    21842184    READ_FLAG(    uiCode, "general_lower_bit_rate_constraint_flag"); ptl->setLowerBitRateConstraintFlag(uiCode != 0);
    2185 #if MULTIPLE_PTL_SUPPORT
     2185#if SVC_EXTENSION
    21862186    READ_CODE(32, uiCode, "general_reserved_zero_34bits");  READ_CODE(2, uiCode, "general_reserved_zero_34bits");
    21872187  }
     
    26622662  {
    26632663    vps->setProfilePresentFlag(1, false);
    2664 #if MULTIPLE_PTL_SUPPORT
    26652664    parsePTL( vps->getPTL(1), vps->getProfilePresentFlag(1), vps->getMaxTLayers() - 1 );
    2666 #else
    2667     vps->getPTLForExtnPtr()->empty();
    2668     vps->getPTLForExtnPtr()->resize(2);
    2669     vps->getPTLForExtn(1)->copyProfileInfo( vps->getPTL() );
    2670     parsePTL( vps->getPTLForExtn(1), vps->getProfilePresentFlag(1), vps->getMaxTLayers() - 1 );
    2671 #endif
    26722665  }
    26732666
     
    28572850
    28582851  Int const numBitsForPtlIdx = vps->calculateLenOfSyntaxElement( vps->getNumProfileTierLevel() );
    2859 #if !MULTIPLE_PTL_SUPPORT
    2860   vps->getPTLForExtnPtr()->resize(vps->getNumProfileTierLevel());
    2861 #endif
    2862 
    2863   for(Int idx = vps->getBaseLayerInternalFlag() ? 2 : 1; idx < vps->getNumProfileTierLevel(); idx++)
     2852
     2853  for( Int idx = vps->getBaseLayerInternalFlag() ? 2 : 1; idx < vps->getNumProfileTierLevel(); idx++ )
    28642854  {
    28652855    READ_FLAG( uiCode, "vps_profile_present_flag[i]" ); vps->setProfilePresentFlag(idx, uiCode ? true : false);
     2856
    28662857    if( !vps->getProfilePresentFlag(idx) )
    28672858    {
    28682859      // Copy profile information from previous one
    2869 #if MULTIPLE_PTL_SUPPORT
    28702860      vps->getPTL(idx)->copyProfileInfo( vps->getPTL( idx - 1 ) );
    2871 #else
    2872       vps->getPTLForExtn(idx)->copyProfileInfo( (idx==1) ? vps->getPTL() : vps->getPTLForExtn( idx - 1 ) );
    2873 #endif
    2874     }
    2875 #if MULTIPLE_PTL_SUPPORT
     2861    }
     2862
    28762863    parsePTL( vps->getPTL(idx), vps->getProfilePresentFlag(idx), vps->getMaxTLayers() - 1 );
    2877 #else
    2878     parsePTL( vps->getPTLForExtn(idx), vps->getProfilePresentFlag(idx), vps->getMaxTLayers() - 1 );
    2879 #endif
    28802864  }
    28812865
     
    29522936
    29532937    vps->getProfileLevelTierIdx(i)->assign(vps->getNumLayersInIdList(layerSetIdxForOutputLayerSet), -1);
    2954     for(j = 0; j < vps->getNumLayersInIdList(layerSetIdxForOutputLayerSet) ; j++)
     2938
     2939    for( j = 0; j < vps->getNumLayersInIdList(layerSetIdxForOutputLayerSet); j++ )
    29552940    {
    29562941      if( vps->getNecessaryLayerFlag(i, j) && (vps->getNumProfileTierLevel()-1) > 0 )
     
    29592944        vps->setProfileLevelTierIdx(i, j, uiCode );
    29602945
    2961 #if MULTIPLE_PTL_SUPPORT
    29622946        //For conformance checking
    29632947        //Conformance of a layer in an output operation point associated with an OLS in a bitstream to the Scalable Main profile is indicated as follows:
     
    29772961          }
    29782962        }
    2979 #endif
    29802963      }
    29812964    }
Note: See TracChangeset for help on using the changeset viewer.