Changeset 1000 in SHVCSoftware for branches/SHM-upgrade/source/App


Ignore:
Timestamp:
22 Jan 2015, 07:22:02 (10 years ago)
Author:
seregin
Message:

port using layerIdx in repformat (rev 999)

File:
1 edited

Legend:

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

    r998 r1000  
    12491249{
    12501250#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
    12511271  for(UInt layer=0; layer<m_numLayers; layer++)
    12521272  {
     
    12761296#endif
    12771297  }
    1278   m_acTEncTop[0].getVPS()->setMaxLayers( m_numLayers );
     1298
    12791299#if VPS_EXTN_OP_LAYER_SETS
    1280   TComVPS* vps = m_acTEncTop[0].getVPS();
    12811300  vps->setMaxLayerId(m_numLayers - 1);    // Set max-layer ID
    12821301
     
    13701389#endif
    13711390#if VPS_EXTN_MASK_AND_DIM_INFO
    1372   UInt i = 0, dimIdLen = 0;
    13731391#if AVC_BASE
    13741392#if VPS_AVC_BL_FLAG_REMOVAL
     
    14081426    vps->setNumScalabilityTypes(0);
    14091427  }
    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 
    14241429#if AUXILIARY_PICTURES
    14251430  if (m_scalabilityMask[3])
Note: See TracChangeset for help on using the changeset viewer.