Changeset 1182 in SHVCSoftware for branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
- Timestamp:
- 8 Jul 2015, 03:09:51 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r1173 r1182 193 193 #endif 194 194 195 #if MULTIPLE_PTL_SUPPORT196 195 //Populate PTL in VPS 197 196 TComVPS *pVPS = m_acTEncTop[0].getVPS(); … … 209 208 pVPS->setNumProfileTierLevel(m_numPTLInfo); 210 209 211 std::vector< int> myvector;210 std::vector<Int> myvector; 212 211 vps->getProfileLevelTierIdx()->resize(m_numOutputLayerSets); 213 for (int ii = 0; ii < m_numOutputLayerSets; ii++)212 for( Int ii = 0; ii < m_numOutputLayerSets; ii++ ) 214 213 { 215 214 myvector = m_listOfLayerPTLofOlss[ii]; 216 215 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 ) 218 217 { 219 218 pVPS->addProfileLevelTierIdx(ii, it[0]); 220 219 } 221 220 } 222 #endif223 221 224 222 assert( m_numLayers <= MAX_LAYERS ); … … 243 241 #endif 244 242 245 #if MULTIPLE_PTL_SUPPORT246 243 Int layerPTLIdx = m_acLayerCfg[layer].m_layerPTLIdx; 247 244 m_acTEncTop[layer].setProfile ( m_profileList[layerPTLIdx] ); … … 255 252 m_acTEncTop[layer].setIntraConstraintFlag ( m_acLayerCfg[layer].m_intraConstraintFlag ); 256 253 m_acTEncTop[layer].setLowerBitRateConstraintFlag ( m_acLayerCfg[layer].m_lowerBitRateConstraintFlag ); 257 #else258 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 #endif269 254 270 255 m_acTEncTop[layer].setPrintMSEBasedSequencePSNR ( m_printMSEBasedSequencePSNR); … … 1555 1540 vps->deriveNecessaryLayerFlag(); 1556 1541 vps->checkNecessaryLayerFlagCondition(); 1557 1558 #if !MULTIPLE_PTL_SUPPORT1559 vps->getProfileLevelTierIdx()->resize(vps->getNumOutputLayerSets());1560 vps->getProfileLevelTierIdx(0)->push_back( vps->getBaseLayerInternalFlag() && vps->getMaxLayers() > 1 ? 1 : 0 ); // Default 0-th output layer set1561 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 else1573 {1574 vps->getProfileLevelTierIdx(i)->push_back( -1 );1575 }1576 }1577 }1578 #endif1579 1580 1542 vps->calculateMaxSLInLayerSets(); 1581 1543 1582 1544 // 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++ ) 1584 1546 { 1585 1547 Int layerSetIdxForOutputLayerSet = vps->getOutputLayerSetIdx( i ); … … 1601 1563 } 1602 1564 #endif 1565 1603 1566 vps->setMaxOneActiveRefLayerFlag(maxDirectRefLayers > 1 ? false : true); 1604 1567 #if O0062_POC_LSB_NOT_PRESENT_FLAG
Note: See TracChangeset for help on using the changeset viewer.