Changeset 1043 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder
- Timestamp:
- 2 Mar 2015, 21:08:06 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibEncoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1030 r1043 1077 1077 #if N0065_LAYER_POC_ALIGNMENT 1078 1078 #if O0062_POC_LSB_NOT_PRESENT_FLAG 1079 if( (pcSlice->getLayerId() > 0 && !pcSlice->getVPS()->getPocLsbNotPresentFlag( pcSlice->getVPS()->getLayerId InVps(pcSlice->getLayerId())) ) || !pcSlice->getIdrPicFlag())1079 if( (pcSlice->getLayerId() > 0 && !pcSlice->getVPS()->getPocLsbNotPresentFlag( pcSlice->getVPS()->getLayerIdxInVps(pcSlice->getLayerId())) ) || !pcSlice->getIdrPicFlag()) 1080 1080 #else 1081 1081 if( pcSlice->getLayerId() > 0 || !pcSlice->getIdrPicFlag() ) … … 2747 2747 for(Int k = 0; k < vps->getNumLayersInIdList(optLsIdx); k++ ) { 2748 2748 Int lId = vps->getLayerSetLayerIdList(optLsIdx, k); 2749 maxSLMinus1 = max(maxSLMinus1, vps->getMaxTSLayersMinus1(vps->getLayerId InVps(lId)));2749 maxSLMinus1 = max(maxSLMinus1, vps->getMaxTSLayersMinus1(vps->getLayerIdxInVps(lId))); 2750 2750 } 2751 2751 MaxSubLayersInLayerSetMinus1[ i ] = maxSLMinus1; … … 2957 2957 { 2958 2958 #if VPS_VUI_TILES_NOT_IN_USE__FLAG 2959 layerIdx = vps->getLayerId InVps(vps->getRefLayerId(vps->getLayerIdInNuh(i), j));2959 layerIdx = vps->getLayerIdxInVps(vps->getRefLayerId(vps->getLayerIdInNuh(i), j)); 2960 2960 if (vps->getTilesInUseFlag(i) && vps->getTilesInUseFlag(layerIdx)) { 2961 2961 WRITE_FLAG( vps->getTileBoundariesAlignedFlag(i,j) ? 1 : 0 , "tile_boundaries_aligned_flag[i][j]" ); -
branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp
r1030 r1043 930 930 { 931 931 #if REPN_FORMAT_IN_VPS 932 m_cSPS.setBitDepth (ChannelType(channelType), m_cVPS.getVpsRepFormat( m_cVPS.getVpsRepFormatIdx( m_cVPS.getLayerId InVps( m_layerId ) ) )->getBitDepthVps(ChannelType(channelType)) );933 m_cSPS.setQpBDOffset (ChannelType(channelType), (6 * (m_cVPS.getVpsRepFormat( m_cVPS.getVpsRepFormatIdx( m_cVPS.getLayerId InVps( m_layerId ) ) )->getBitDepthVps(ChannelType(channelType)) - 8)));932 m_cSPS.setBitDepth (ChannelType(channelType), m_cVPS.getVpsRepFormat( m_cVPS.getVpsRepFormatIdx( m_cVPS.getLayerIdxInVps( m_layerId ) ) )->getBitDepthVps(ChannelType(channelType)) ); 933 m_cSPS.setQpBDOffset (ChannelType(channelType), (6 * (m_cVPS.getVpsRepFormat( m_cVPS.getVpsRepFormatIdx( m_cVPS.getLayerIdxInVps( m_layerId ) ) )->getBitDepthVps(ChannelType(channelType)) - 8))); 934 934 #else 935 935 m_cSPS.setBitDepth (ChannelType(channelType), g_bitDepth[channelType] ); … … 1580 1580 { 1581 1581 #if O0096_REP_FORMAT_INDEX 1582 RepFormat *repFormat = m_cVPS.getVpsRepFormat( m_cSPS.getUpdateRepFormatFlag() ? m_cSPS.getUpdateRepFormatIndex() : m_cVPS.getVpsRepFormatIdx( m_cVPS.getLayerId InVps(m_layerId) ) );1583 #else 1584 RepFormat *repFormat = m_cVPS.getVpsRepFormat( m_cVPS.getVpsRepFormatIdx( m_cVPS.getLayerId InVps(m_layerId) ) );1582 RepFormat *repFormat = m_cVPS.getVpsRepFormat( m_cSPS.getUpdateRepFormatFlag() ? m_cSPS.getUpdateRepFormatIndex() : m_cVPS.getVpsRepFormatIdx( m_cVPS.getLayerIdxInVps(m_layerId) ) ); 1583 #else 1584 RepFormat *repFormat = m_cVPS.getVpsRepFormat( m_cVPS.getVpsRepFormatIdx( m_cVPS.getLayerIdxInVps(m_layerId) ) ); 1585 1585 #endif 1586 1586 Int bitDepthY,bitDepthC,picWidth,picHeight; … … 1645 1645 if( m_cVPS.getNumRefLayers( m_layerId ) == 0 ) 1646 1646 { 1647 UInt layerIdx = m_cVPS.getLayerId InVps( m_layerId );1647 UInt layerIdx = m_cVPS.getLayerIdxInVps( m_layerId ); 1648 1648 RepFormat* repFmt = m_cVPS.getVpsRepFormat(m_cVPS.getVpsRepFormatIdx(layerIdx)); 1649 1649
Note: See TracChangeset for help on using the changeset viewer.