Changeset 654 in SHVCSoftware
- Timestamp:
- 8 Apr 2014, 23:24:05 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-6-dev/source/Lib/TLibCommon/TComSlice.cpp
r652 r654 2448 2448 Void TComVPS::setRefLayersFlags(Int currLayerId) 2449 2449 { 2450 for (Int i = 0; i < getNumDirectRefLayers(currLayerId); i++)2450 for (Int i = 0; i < m_numDirectRefLayers[currLayerId]; i++) 2451 2451 { 2452 2452 UInt refLayerId = getRefLayerId(currLayerId, i); 2453 setRecursiveRefLayerFlag(currLayerId, refLayerId, true);2453 m_recursiveRefLayerFlag[currLayerId][refLayerId] = true; 2454 2454 for (Int k = 0; k < MAX_NUM_LAYER_IDS; k++) 2455 2455 { 2456 setRecursiveRefLayerFlag(currLayerId, k, (getRecursiveRefLayerFlag(currLayerId, k) | getRecursiveRefLayerFlag(refLayerId, k)));2456 m_recursiveRefLayerFlag[currLayerId][k] = m_recursiveRefLayerFlag[currLayerId][k] | m_recursiveRefLayerFlag[refLayerId][k]; 2457 2457 } 2458 2458 } … … 2461 2461 Void TComVPS::setNumRefLayers(Int currLayerId) 2462 2462 { 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]; 2466 2466 setRefLayersFlags(iNuhLId); 2467 2467 for (UInt j = 0; j < MAX_NUM_LAYER_IDS; j++) 2468 2468 { 2469 m_numberRefLayers[iNuhLId] += ( getRecursiveRefLayerFlag(iNuhLId, j)== true ? 1 : 0);2469 m_numberRefLayers[iNuhLId] += (m_recursiveRefLayerFlag[iNuhLId][j] == true ? 1 : 0); 2470 2470 } 2471 2471 }
Note: See TracChangeset for help on using the changeset viewer.