Changeset 1151 in SHVCSoftware for branches/SHM-dev/source


Ignore:
Timestamp:
8 Jul 2015, 00:21:05 (9 years ago)
Author:
seregin
Message:

macro cleanup: NECESSARY_LAYER_FLAG

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

Legend:

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

    r1150 r1151  
    16581658  }
    16591659#endif
    1660 #if NECESSARY_LAYER_FLAG
     1660
    16611661  vps->deriveNecessaryLayerFlag();
    16621662  vps->checkNecessaryLayerFlagCondition();
    1663 #endif
     1663
    16641664#if !MULTIPLE_PTL_SUPPORT
    16651665#if PER_LAYER_PTL
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp

    r1150 r1151  
    20282028  ::memset(m_directDependencyType, 0, sizeof(m_directDependencyType));
    20292029
    2030 #if !NECESSARY_LAYER_FLAG
    2031 #if DERIVE_LAYER_ID_LIST_VARIABLES
    2032   ::memset(m_layerSetLayerIdList,  0, sizeof(m_layerSetLayerIdList));
    2033   ::memset(m_numLayerInIdList,     0, sizeof(m_numLayerInIdList   ));
    2034 #endif
    2035 #endif
    20362030#if !PER_LAYER_PTL
    20372031  ::memset(m_profileLevelTierIdx,  0, sizeof(m_profileLevelTierIdx));
     
    31513145
    31523146#if DERIVE_LAYER_ID_LIST_VARIABLES
    3153 #if NECESSARY_LAYER_FLAG
    31543147Void TComVPS::deriveLayerIdListVariables()
    31553148{
     
    31723165  }
    31733166}
    3174 #else
    3175 Void TComVPS::deriveLayerIdListVariables()
    3176 {
    3177   // For layer 0
    3178   m_numLayerInIdList[0] = 1;
    3179   m_layerSetLayerIdList[0][0] = 0;
    3180  
    3181   // For other layers
    3182   Int i, m, n;
    3183   for( i = 1; i < m_numLayerSets; i++ )
    3184   {
    3185     n = 0;
    3186     for( m = 0; m <= m_maxLayerId; m++)
    3187     {
    3188       if( m_layerIdIncludedFlag[i][m] )
    3189       {
    3190         m_layerSetLayerIdList[i][n++] = m;
    3191       }
    3192     }
    3193     m_numLayerInIdList[i] = n;
    3194   }
    3195 }
    3196 #endif
    31973167#endif
    31983168#if VPS_DPB_SIZE_TABLE
     
    35283498}
    35293499#endif
    3530 #if NECESSARY_LAYER_FLAG
     3500
    35313501Void TComVPS::deriveNecessaryLayerFlag()
    35323502{
     
    35393509  }
    35403510}
     3511
    35413512Void TComVPS::deriveNecessaryLayerFlag(Int const olsIdx)
    35423513{
     
    35633534  m_numNecessaryLayers.push_back(std::accumulate(m_necessaryLayerFlag[olsIdx].begin(), m_necessaryLayerFlag[olsIdx].end(), 0));
    35643535}
     3536
    35653537Void TComVPS::checkNecessaryLayerFlagCondition()
    35663538{
     
    35903562  }
    35913563}
    3592 #endif
     3564
    35933565#if PER_LAYER_PTL
    35943566Int TComVPS::calculateLenOfSyntaxElement( Int const numVal )
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h

    r1150 r1151  
    598598#if DERIVE_LAYER_ID_LIST_VARIABLES
    599599#if Q0078_ADD_LAYER_SETS
    600 #if NECESSARY_LAYER_FLAG
    601600  std::vector< std::vector<Int> >     m_layerSetLayerIdList;
    602601  std::vector<Int>                    m_numLayerInIdList;
    603 #else
    604   Int         m_layerSetLayerIdList[MAX_VPS_LAYER_SETS_PLUS1 + MAX_NUM_ADD_LAYER_SETS][MAX_VPS_LAYER_IDX_PLUS1];
    605   Int         m_numLayerInIdList[MAX_VPS_LAYER_SETS_PLUS1 + MAX_NUM_ADD_LAYER_SETS];
    606 #endif
    607602#else
    608603  Int         m_layerSetLayerIdList[MAX_VPS_LAYER_SETS_PLUS1][MAX_VPS_LAYER_IDX_PLUS1];
     
    825820  Bool       m_vpsPocLsbAlignedFlag;
    826821#endif
    827 #if NECESSARY_LAYER_FLAG
    828822  std::vector< std::vector<Bool> > m_necessaryLayerFlag;
    829   std::vector<Int>               m_numNecessaryLayers;
    830 #endif
     823  std::vector<Int>                 m_numNecessaryLayers;
    831824#endif //SVC_EXTENSION
    832825
     
    12981291#endif
    12991292#if O0164_MULTI_LAYER_HRD
    1300   Void setBspHrdParameters( UInt hrdIdx, UInt frameRate, UInt numDU, UInt bitRate, Bool randomAccess );
    1301 #endif
    1302 #if NECESSARY_LAYER_FLAG
    1303   Void  deriveNecessaryLayerFlag();
    1304   Void  deriveNecessaryLayerFlag(Int const olsIdx);
    1305   Void  checkNecessaryLayerFlagCondition();
    1306 #endif
    1307   Void  calculateMaxSLInLayerSets();
     1293  Void   setBspHrdParameters( UInt hrdIdx, UInt frameRate, UInt numDU, UInt bitRate, Bool randomAccess );
     1294#endif
     1295  Void   deriveNecessaryLayerFlag();
     1296  Void   deriveNecessaryLayerFlag(Int const olsIdx);
     1297  Void   checkNecessaryLayerFlagCondition();
     1298  Void   calculateMaxSLInLayerSets();
    13081299#endif //SVC_EXTENSION
    13091300};
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1150 r1151  
    5757#if PTL_SIGNALLING
    5858#define LIST_OF_PTL                      1      ///< JCTVC-R0272: Signalling the PTL for the 0-th OLS
    59 #define NECESSARY_LAYER_FLAG             1      ////< Derivation of NecessaryLayerFlag
    6059#define PER_LAYER_PTL                    1      ///< Signal profile-tier-level information for each layer.
    6160#endif
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1148 r1151  
    29462946#endif
    29472947  vps->setNumOutputLayerSets( numOutputLayerSets );
    2948 #if NECESSARY_LAYER_FLAG
     2948
    29492949  // Default output layer set
    29502950  vps->setOutputLayerSetIdx(0, 0);
     
    29552955  vps->getProfileLevelTierIdx(0)->push_back( vps->getBaseLayerInternalFlag() && vps->getMaxLayers() > 1 ? 1 : 0);
    29562956#endif
    2957 #endif
     2957
    29582958  for(i = 1; i < numOutputLayerSets; i++)
    29592959  {
     
    30113011      }
    30123012    }
    3013 #if NECESSARY_LAYER_FLAG
     3013
    30143014    vps->deriveNecessaryLayerFlag(i); 
    3015 #endif
     3015
    30163016#if PER_LAYER_PTL
    30173017    vps->getProfileLevelTierIdx(i)->assign(vps->getNumLayersInIdList(layerSetIdxForOutputLayerSet), -1);
     
    30783078#endif
    30793079  }
    3080 #if NECESSARY_LAYER_FLAG
     3080
    30813081  vps->checkNecessaryLayerFlagCondition(); 
    3082 #endif
     3082
    30833083#else
    30843084  if( numOutputLayerSets > 1 )
     
    33693369  }
    33703370
    3371 #if NECESSARY_LAYER_FLAG
    33723371  // Default output layer set
    33733372  // The value of NumLayersInIdList[ 0 ] is set equal to 1 and the value of LayerSetLayerIdList[ 0 ][ 0 ] is set equal to 0.
     
    33783377
    33793378  vps->deriveNecessaryLayerFlag(0);
    3380 #endif
    33813379
    33823380  // The value of sub_layer_dpb_info_present_flag[ i ][ 0 ] for any possible value of i is inferred to be equal to 1
Note: See TracChangeset for help on using the changeset viewer.