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/App/TAppEncoder/TAppEncTop.cpp

    r1173 r1182  
    193193#endif
    194194
    195 #if MULTIPLE_PTL_SUPPORT
    196195  //Populate PTL in VPS
    197196  TComVPS *pVPS = m_acTEncTop[0].getVPS();
     
    209208  pVPS->setNumProfileTierLevel(m_numPTLInfo);
    210209
    211   std::vector<int> myvector;
     210  std::vector<Int> myvector;
    212211  vps->getProfileLevelTierIdx()->resize(m_numOutputLayerSets);
    213   for (int ii = 0; ii < m_numOutputLayerSets; ii++)
     212  for( Int ii = 0; ii < m_numOutputLayerSets; ii++ )
    214213  {
    215214    myvector =  m_listOfLayerPTLofOlss[ii];
    216215
    217     for (std::vector<int>::iterator it = myvector.begin() ; it != myvector.end(); ++it)
     216    for( std::vector<Int>::iterator it = myvector.begin() ; it != myvector.end(); ++it )
    218217    {
    219218      pVPS->addProfileLevelTierIdx(ii, it[0]);
    220219    }
    221220  }
    222 #endif
    223221
    224222  assert( m_numLayers <= MAX_LAYERS );
     
    243241#endif
    244242   
    245 #if MULTIPLE_PTL_SUPPORT
    246243    Int layerPTLIdx = m_acLayerCfg[layer].m_layerPTLIdx;
    247244    m_acTEncTop[layer].setProfile                                         ( m_profileList[layerPTLIdx] );
     
    255252    m_acTEncTop[layer].setIntraConstraintFlag                             ( m_acLayerCfg[layer].m_intraConstraintFlag );
    256253    m_acTEncTop[layer].setLowerBitRateConstraintFlag                      ( m_acLayerCfg[layer].m_lowerBitRateConstraintFlag );
    257 #else
    258     m_acTEncTop[layer].setProfile                                         ( m_profile );
    259     m_acTEncTop[layer].setLevel                                           ( m_levelTier, m_level );
    260     m_acTEncTop[layer].setProgressiveSourceFlag                           ( m_progressiveSourceFlag );
    261     m_acTEncTop[layer].setInterlacedSourceFlag                            ( m_interlacedSourceFlag );
    262     m_acTEncTop[layer].setNonPackedConstraintFlag                         ( m_nonPackedConstraintFlag );
    263     m_acTEncTop[layer].setFrameOnlyConstraintFlag                         ( m_frameOnlyConstraintFlag );
    264     m_acTEncTop[layer].setBitDepthConstraintValue                         ( m_bitDepthConstraint );
    265     m_acTEncTop[layer].setChromaFormatConstraintValue                     ( m_acLayerCfg[layer].m_chromaFormatConstraint );
    266     m_acTEncTop[layer].setIntraConstraintFlag                             ( m_intraConstraintFlag );
    267     m_acTEncTop[layer].setLowerBitRateConstraintFlag                      ( m_lowerBitRateConstraintFlag );
    268 #endif
    269254
    270255    m_acTEncTop[layer].setPrintMSEBasedSequencePSNR                       ( m_printMSEBasedSequencePSNR);
     
    15551540  vps->deriveNecessaryLayerFlag();
    15561541  vps->checkNecessaryLayerFlagCondition();
    1557 
    1558 #if !MULTIPLE_PTL_SUPPORT
    1559   vps->getProfileLevelTierIdx()->resize(vps->getNumOutputLayerSets());
    1560   vps->getProfileLevelTierIdx(0)->push_back( vps->getBaseLayerInternalFlag() && vps->getMaxLayers() > 1 ? 1 : 0 ); // Default 0-th output layer set
    1561   for(i = 1; i < vps->getNumOutputLayerSets(); i++)
    1562   {
    1563     Int layerSetIdxForOutputLayerSet = vps->getOutputLayerSetIdx( i );
    1564     Int numLayerInLayerSet = vps->getNumLayersInIdList( layerSetIdxForOutputLayerSet );
    1565     for(Int j = 0; j < numLayerInLayerSet; j++)
    1566     {
    1567       Int layerIdxInVps = vps->getLayerIdxInVps( vps->getLayerSetLayerIdList(layerSetIdxForOutputLayerSet, j) );
    1568       if( vps->getNecessaryLayerFlag(i, j) )
    1569       {
    1570         vps->getProfileLevelTierIdx(i)->push_back( vps->getBaseLayerInternalFlag() && vps->getMaxLayers() > 1 ? layerIdxInVps + 1 : layerIdxInVps);
    1571       }
    1572       else
    1573       {
    1574         vps->getProfileLevelTierIdx(i)->push_back( -1 );
    1575       }
    1576     }
    1577   }
    1578 #endif
    1579 
    15801542  vps->calculateMaxSLInLayerSets();
    15811543
    15821544  // Initialize dpb_size_table() for all ouput layer sets in the VPS extension
    1583   for(i = 1; i < vps->getNumOutputLayerSets(); i++)
     1545  for( i = 1; i < vps->getNumOutputLayerSets(); i++ )
    15841546  {
    15851547    Int layerSetIdxForOutputLayerSet = vps->getOutputLayerSetIdx( i );
     
    16011563  }
    16021564#endif
     1565
    16031566    vps->setMaxOneActiveRefLayerFlag(maxDirectRefLayers > 1 ? false : true);
    16041567#if O0062_POC_LSB_NOT_PRESENT_FLAG
Note: See TracChangeset for help on using the changeset viewer.