Changeset 654 in SHVCSoftware


Ignore:
Timestamp:
8 Apr 2014, 23:24:05 (11 years ago)
Author:
seregin
Message:

fix max layer id in setNumRefLayers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-6-dev/source/Lib/TLibCommon/TComSlice.cpp

    r652 r654  
    24482448Void TComVPS::setRefLayersFlags(Int currLayerId)
    24492449{
    2450   for (Int i = 0; i < getNumDirectRefLayers(currLayerId); i++)
     2450  for (Int i = 0; i < m_numDirectRefLayers[currLayerId]; i++)
    24512451  {
    24522452    UInt refLayerId = getRefLayerId(currLayerId, i);
    2453     setRecursiveRefLayerFlag(currLayerId, refLayerId, true);
     2453    m_recursiveRefLayerFlag[currLayerId][refLayerId] = true;
    24542454    for (Int k = 0; k < MAX_NUM_LAYER_IDS; k++)
    24552455    {
    2456       setRecursiveRefLayerFlag(currLayerId, k, (getRecursiveRefLayerFlag(currLayerId, k) | getRecursiveRefLayerFlag(refLayerId, k)));
     2456      m_recursiveRefLayerFlag[currLayerId][k] = m_recursiveRefLayerFlag[currLayerId][k] | m_recursiveRefLayerFlag[refLayerId][k];
    24572457    }
    24582458  }
     
    24612461Void TComVPS::setNumRefLayers(Int currLayerId)
    24622462{
    2463   for (Int i = 0; i <= getMaxLayers(); i++)
    2464   {
    2465     UInt iNuhLId = getLayerIdInNuh(i);
     2463  for (Int i = 0; i < m_uiMaxLayers; i++)
     2464  {
     2465    UInt iNuhLId = m_layerIdInNuh[i];
    24662466    setRefLayersFlags(iNuhLId);
    24672467    for (UInt j = 0; j < MAX_NUM_LAYER_IDS; j++)
    24682468    {
    2469       m_numberRefLayers[iNuhLId] += (getRecursiveRefLayerFlag(iNuhLId, j) == true ? 1 : 0);
     2469      m_numberRefLayers[iNuhLId] += (m_recursiveRefLayerFlag[iNuhLId][j] == true ? 1 : 0);
    24702470    }
    24712471  }
Note: See TracChangeset for help on using the changeset viewer.