Changeset 1000 in SHVCSoftware for branches/SHM-upgrade/source/App
- Timestamp:
- 22 Jan 2015, 07:22:02 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-upgrade/source/App/TAppEncoder/TAppEncTop.cpp
r998 r1000 1249 1249 { 1250 1250 #if SVC_EXTENSION 1251 TComVPS* vps = m_acTEncTop[0].getVPS(); 1252 m_acTEncTop[0].getVPS()->setMaxLayers( m_numLayers ); 1253 1254 UInt i = 0, dimIdLen = 0; 1255 1256 while((1 << dimIdLen) < m_numLayers) 1257 { 1258 dimIdLen++; 1259 } 1260 vps->setDimensionIdLen(0, dimIdLen); 1261 vps->setNuhLayerIdPresentFlag(false); 1262 vps->setLayerIdInNuh(0, 0); 1263 vps->setLayerIdInVps(0, 0); 1264 for(i = 1; i < vps->getMaxLayers(); i++) 1265 { 1266 vps->setLayerIdInNuh(i, i); 1267 vps->setLayerIdInVps(vps->getLayerIdInNuh(i), i); 1268 vps->setDimensionId(i, 0, i); 1269 } 1270 1251 1271 for(UInt layer=0; layer<m_numLayers; layer++) 1252 1272 { … … 1276 1296 #endif 1277 1297 } 1278 m_acTEncTop[0].getVPS()->setMaxLayers( m_numLayers ); 1298 1279 1299 #if VPS_EXTN_OP_LAYER_SETS 1280 TComVPS* vps = m_acTEncTop[0].getVPS();1281 1300 vps->setMaxLayerId(m_numLayers - 1); // Set max-layer ID 1282 1301 … … 1370 1389 #endif 1371 1390 #if VPS_EXTN_MASK_AND_DIM_INFO 1372 UInt i = 0, dimIdLen = 0;1373 1391 #if AVC_BASE 1374 1392 #if VPS_AVC_BL_FLAG_REMOVAL … … 1408 1426 vps->setNumScalabilityTypes(0); 1409 1427 } 1410 while((1 << dimIdLen) < m_numLayers) 1411 { 1412 dimIdLen++; 1413 } 1414 vps->setDimensionIdLen(0, dimIdLen); 1415 vps->setNuhLayerIdPresentFlag(false); 1416 vps->setLayerIdInNuh(0, 0); 1417 vps->setLayerIdInVps(0, 0); 1418 for(i = 1; i < vps->getMaxLayers(); i++) 1419 { 1420 vps->setLayerIdInNuh(i, i); 1421 vps->setLayerIdInVps(vps->getLayerIdInNuh(i), i); 1422 vps->setDimensionId(i, 0, i); 1423 } 1428 1424 1429 #if AUXILIARY_PICTURES 1425 1430 if (m_scalabilityMask[3])
Note: See TracChangeset for help on using the changeset viewer.