Changeset 1502 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp
- Timestamp:
- 11 Dec 2015, 00:05:48 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp
r1459 r1502 288 288 if(getUseScalingListId() == SCALING_LIST_OFF) 289 289 { 290 #if SVC_EXTENSION291 getTrQuant()->setFlatScalingList( maxLog2TrDynamicRange, m_cVPS.getBitDepths(&m_cSPS, m_layerId) );292 #else293 290 getTrQuant()->setFlatScalingList(maxLog2TrDynamicRange, m_cSPS.getBitDepths()); 294 #endif295 291 getTrQuant()->setUseScalingList(false); 296 292 m_cSPS.setScalingListPresentFlag(false); … … 311 307 312 308 // infer the scaling list from the reference layer 313 getTrQuant()->setScalingList( &m_ppcTEncTop[m_cVPS.getLayerIdxInVps(refLayerId)]->getSPS()->getScalingList(), maxLog2TrDynamicRange, m_ cVPS.getBitDepths(&m_cSPS, m_layerId) );309 getTrQuant()->setScalingList( &m_ppcTEncTop[m_cVPS.getLayerIdxInVps(refLayerId)]->getSPS()->getScalingList(), maxLog2TrDynamicRange, m_ppcTEncTop[m_cVPS.getLayerIdxInVps(refLayerId)]->getSPS()->getBitDepths() ); 314 310 } 315 311 else … … 320 316 m_cPPS.setScalingListPresentFlag(false); 321 317 322 #if SVC_EXTENSION323 getTrQuant()->setScalingList(&(m_cSPS.getScalingList()), maxLog2TrDynamicRange, m_cVPS.getBitDepths(&m_cSPS, m_layerId));324 #else325 318 getTrQuant()->setScalingList(&(m_cSPS.getScalingList()), maxLog2TrDynamicRange, m_cSPS.getBitDepths()); 326 #endif327 319 #if SVC_EXTENSION 328 320 } … … 344 336 345 337 // infer the scaling list from the reference layer 346 getTrQuant()->setScalingList( &m_ppcTEncTop[m_cVPS.getLayerIdxInVps(refLayerId)]->getSPS()->getScalingList(), maxLog2TrDynamicRange, m_ cVPS.getBitDepths(&m_cSPS, m_layerId) );338 getTrQuant()->setScalingList( &m_ppcTEncTop[m_cVPS.getLayerIdxInVps(refLayerId)]->getSPS()->getScalingList(), maxLog2TrDynamicRange, m_ppcTEncTop[m_cVPS.getLayerIdxInVps(refLayerId)]->getSPS()->getBitDepths() ); 347 339 } 348 340 else … … 731 723 TEncTop *pcEncTopBase = (TEncTop *)getRefLayerEnc( i ); 732 724 733 UInt refLayerId = m_cVPS.getRefLayerId(m_layerId, i); 734 735 const Int bitDepthLuma = m_cVPS.getBitDepth(CHANNEL_TYPE_LUMA, &m_cSPS, m_layerId); 736 const Int bitDepthChroma = m_cVPS.getBitDepth(CHANNEL_TYPE_CHROMA, &m_cSPS, m_layerId); 737 const Int refBitDepthLuma = m_cVPS.getBitDepth(CHANNEL_TYPE_LUMA, pcEncTopBase->getSPS(), refLayerId); 738 const Int refBitDepthChroma = m_cVPS.getBitDepth(CHANNEL_TYPE_CHROMA, pcEncTopBase->getSPS(), refLayerId); 725 const Int bitDepthLuma = m_cSPS.getBitDepth(CHANNEL_TYPE_LUMA); 726 const Int bitDepthChroma = m_cSPS.getBitDepth(CHANNEL_TYPE_CHROMA); 727 const Int refBitDepthLuma = pcEncTopBase->getSPS()->getBitDepth(CHANNEL_TYPE_LUMA); 728 const Int refBitDepthChroma = pcEncTopBase->getSPS()->getBitDepth(CHANNEL_TYPE_CHROMA); 739 729 740 730 Bool sameBitDepths = ( bitDepthLuma == refBitDepthLuma ) && ( bitDepthChroma == refBitDepthChroma ); … … 781 771 TEncTop *pcEncTopBase = (TEncTop *)getRefLayerEnc( i ); 782 772 783 UInt refLayerId = m_cVPS.getRefLayerId(m_layerId, i); 784 785 const Int bitDepthLuma = m_cVPS.getBitDepth(CHANNEL_TYPE_LUMA, &m_cSPS, m_layerId); 786 const Int bitDepthChroma = m_cVPS.getBitDepth(CHANNEL_TYPE_CHROMA, &m_cSPS, m_layerId); 787 const Int refBitDepthLuma = m_cVPS.getBitDepth(CHANNEL_TYPE_LUMA, pcEncTopBase->getSPS(), refLayerId); 788 const Int refBitDepthChroma = m_cVPS.getBitDepth(CHANNEL_TYPE_CHROMA, pcEncTopBase->getSPS(), refLayerId); 773 const Int bitDepthLuma = m_cSPS.getBitDepth(CHANNEL_TYPE_LUMA); 774 const Int bitDepthChroma = m_cSPS.getBitDepth(CHANNEL_TYPE_CHROMA); 775 const Int refBitDepthLuma = m_cSPS.getBitDepth(CHANNEL_TYPE_LUMA); 776 const Int refBitDepthChroma = m_cSPS.getBitDepth(CHANNEL_TYPE_CHROMA); 789 777 790 778 Bool sameBitDepths = ( bitDepthLuma == refBitDepthLuma ) && ( bitDepthChroma == refBitDepthChroma ); … … 1034 1022 m_cSPS.getSpsRangeExtension().setPersistentRiceAdaptationEnabledFlag(m_persistentRiceAdaptationEnabledFlag); 1035 1023 m_cSPS.getSpsRangeExtension().setCabacBypassAlignmentEnabledFlag(m_cabacBypassAlignmentEnabledFlag); 1024 1025 #if SVC_EXTENSION 1026 m_cSPS.inferSPS( m_layerId, &m_cVPS ); 1027 #endif 1036 1028 } 1037 1029
Note: See TracChangeset for help on using the changeset viewer.