Changeset 1200 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder
- Timestamp:
- 8 Jul 2015, 20:22:40 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp
r1199 r1200 611 611 612 612 #if SVC_EXTENSION //Temporal solution, should be modified 613 if( m_layerId > 0)614 { 615 for( UInt i = 0; i < m_cVPS.getNumDirectRefLayers( m_layerId ); i++ )613 if( m_layerId > 0 ) 614 { 615 for( UInt i = 0; i < m_cVPS.getNumDirectRefLayers( m_layerId ); i++ ) 616 616 { 617 617 const Window scalEL = getPPS()->getScaledRefLayerWindowForLayer(m_cVPS.getRefLayerId(m_layerId, i)); … … 621 621 622 622 TEncTop *pcEncTopBase = (TEncTop *)getRefLayerEnc( i ); 623 #if O0194_DIFFERENT_BITDEPTH_EL_BL 623 624 624 UInt refLayerId = m_cVPS.getRefLayerId(m_layerId, i); 625 625 Bool sameBitDepths = ( g_bitDepthLayer[CHANNEL_TYPE_LUMA][m_layerId] == g_bitDepthLayer[CHANNEL_TYPE_LUMA][refLayerId] ) && ( g_bitDepthLayer[CHANNEL_TYPE_CHROMA][m_layerId] == g_bitDepthLayer[CHANNEL_TYPE_CHROMA][refLayerId] ); … … 644 644 #endif 645 645 ) 646 #else647 if(m_iSourceWidth != pcEncTopBase->getSourceWidth() || m_iSourceHeight != pcEncTopBase->getSourceHeight()648 || !equalOffsets649 || !zeroPhase650 )651 #endif652 646 { 653 647 pcEPic->setSpatialEnhLayerFlag( i, true ); … … 658 652 } 659 653 } 660 #endif 661 662 #if SVC_EXTENSION 654 663 655 pcEPic->create( m_iSourceWidth, m_iSourceHeight, m_chromaFormatIDC, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, m_cPPS.getMaxCuDQPDepth()+1 , 664 656 m_conformanceWindow, m_defaultDisplayWindow, m_numReorderPics, &m_cSPS); … … 673 665 674 666 #if SVC_EXTENSION //Temporal solution, should be modified 675 if( m_layerId > 0)676 { 677 for( UInt i = 0; i < m_cVPS.getNumDirectRefLayers( m_layerId ); i++ )667 if( m_layerId > 0 ) 668 { 669 for( UInt i = 0; i < m_cVPS.getNumDirectRefLayers( m_layerId ); i++ ) 678 670 { 679 671 const Window scalEL = getPPS()->getScaledRefLayerWindowForLayer(m_cVPS.getRefLayerId(m_layerId, i)); … … 683 675 684 676 TEncTop *pcEncTopBase = (TEncTop *)getRefLayerEnc( i ); 685 #if O0194_DIFFERENT_BITDEPTH_EL_BL 677 686 678 UInt refLayerId = m_cVPS.getRefLayerId(m_layerId, i); 687 679 Bool sameBitDepths = ( g_bitDepthLayer[CHANNEL_TYPE_LUMA][m_layerId] == g_bitDepthLayer[CHANNEL_TYPE_LUMA][refLayerId] ) && ( g_bitDepthLayer[CHANNEL_TYPE_CHROMA][m_layerId] == g_bitDepthLayer[CHANNEL_TYPE_CHROMA][refLayerId] ); … … 696 688 || pcEncTopBase->getSPS()->getMaxCUWidth() != m_cSPS.getMaxCUWidth() || pcEncTopBase->getSPS()->getMaxCUHeight() != m_cSPS.getMaxCUHeight() || pcEncTopBase->getSPS()->getMaxCUDepth() != m_cSPS.getMaxCUDepth() 697 689 #endif 698 ) 699 #else 700 if(m_iSourceWidth != pcEncTopBase->getSourceWidth() || m_iSourceHeight != pcEncTopBase->getSourceHeight() 701 || !equalOffsets 702 || !zeroPhase 703 ) 704 #endif 690 ) 705 691 { 706 692 rpcPic->setSpatialEnhLayerFlag( i, true ); … … 711 697 } 712 698 } 713 #endif 714 715 #if SVC_EXTENSION 699 716 700 rpcPic->create( m_iSourceWidth, m_iSourceHeight, m_chromaFormatIDC, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, m_conformanceWindow, m_defaultDisplayWindow, m_numReorderPics, &m_cSPS); 717 701 #else //SVC_EXTENSION
Note: See TracChangeset for help on using the changeset viewer.