Changeset 1062 in SHVCSoftware for branches/SHM-dev/source
- Timestamp:
- 4 Mar 2015, 22:34:20 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibEncoder/TEncSlice.cpp
r1057 r1062 142 142 { 143 143 Int layerIdx = slice->getLayerId(); 144 UInt prevLayerIdx = m_ppcTEncTop[layerIdx]->getPredLayerIdx( m_ppcTEncTop[layerIdx]->getNumActiveRefLayers() - 1); 145 144 UInt prevLayerIdx = 0; 145 if (m_ppcTEncTop[layerIdx]->getNumActiveRefLayers() > 0) 146 { 147 prevLayerIdx = m_ppcTEncTop[layerIdx]->getPredLayerIdx( m_ppcTEncTop[layerIdx]->getNumActiveRefLayers() - 1); 148 } 146 149 Double gamma = xCalEnhLambdaFactor( m_ppcTEncTop[prevLayerIdx]->getQP() - m_ppcTEncTop[layerIdx]->getQP() , 147 150 1.0 * m_ppcTEncTop[layerIdx]->getSourceWidth() * m_ppcTEncTop[layerIdx]->getSourceHeight()
Note: See TracChangeset for help on using the changeset viewer.