Changeset 1200 in SHVCSoftware for branches/SHM-dev/source/Lib
- Timestamp:
- 8 Jul 2015, 20:22:40 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/CommonDef.h
r1177 r1200 140 140 extern Int g_bitDepth[MAX_NUM_CHANNEL_TYPE]; 141 141 142 #if O0194_DIFFERENT_BITDEPTH_EL_BL142 #if SVC_EXTENSION 143 143 extern Int g_bitDepthLayer[MAX_NUM_CHANNEL_TYPE][MAX_LAYERS]; 144 144 #endif -
branches/SHM-dev/source/Lib/TLibCommon/TComRom.cpp
r1029 r1200 678 678 UInt g_predefSetIntraModes[NUM_INTRA_MODE-1] = {26,10,18,34,2,22,14,30,6,24,12,28,8,20,16,32,4,17,19,15,21,13,23,11,25,9,27,7,29,5,31,3,33,0,2}; 679 679 #endif 680 #if O0194_DIFFERENT_BITDEPTH_EL_BL681 680 Int g_bitDepthLayer[MAX_NUM_CHANNEL_TYPE][MAX_LAYERS]; 682 #endif683 681 #if O0194_WEIGHTED_PREDICTION_CGS 684 682 void * g_refWeightACDCParam; // type=wpACDCParam -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp
r1199 r1200 515 515 ); 516 516 517 #if O0194_DIFFERENT_BITDEPTH_EL_BL518 517 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] ); 519 518 … … 525 524 #endif 526 525 ) // ratio 1x 527 #else528 if(!( g_posScalingFactor[refLayerIdc][0] == 65536 && g_posScalingFactor[refLayerIdc][1] == 65536 ) || (!scalingOffset)) // ratio 1x529 #endif530 526 { 531 527 UInt predType = m_pcVPS->getDirectDependencyType( m_layerId, refLayerId ) + 1; -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1199 r1200 58 58 #define O0164_MULTI_LAYER_HRD 1 ///< JCTVC-O0164: Multi-layer HRD operation 59 59 60 #define O0194_DIFFERENT_BITDEPTH_EL_BL 1 ///< JCTVC-O0194: Support for different bitdepth values for BL and EL, add required configuration parameters (and Some bugfixes when REPN_FORMAT_IN_VPS (JCTVC-N0092) is enabled)61 #if O0194_DIFFERENT_BITDEPTH_EL_BL62 60 #define O0194_JOINT_US_BITSHIFT 1 ///< JCTVC-O0194: Joint Upsampling and bit-shift 63 #endif64 61 #define Q0048_CGS_3D_ASYMLUT 1 ///< JCTVC-Q0048: Colour gamut scalability with look-up table 65 62 #if Q0048_CGS_3D_ASYMLUT -
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1199 r1200 1790 1790 1791 1791 #if REPN_FORMAT_IN_VPS 1792 #if O0194_DIFFERENT_BITDEPTH_EL_BL1793 1792 g_bitDepthLayer[CHANNEL_TYPE_LUMA][pcSlice->getLayerId()] = pcSlice->getBitDepthY(); 1794 1793 g_bitDepthLayer[CHANNEL_TYPE_CHROMA][pcSlice->getLayerId()] = pcSlice->getBitDepthC(); 1795 #endif 1794 1796 1795 assert( pcSlice->getSliceQp() >= -pcSlice->getQpBDOffsetY() ); 1797 1796 #else -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp
r1199 r1200 567 567 pBLPic->getSlice(0)->setVPS( activeVPS ); 568 568 569 #if O0194_DIFFERENT_BITDEPTH_EL_BL570 569 g_bitDepthLayer[CHANNEL_TYPE_LUMA][0] = repFormat->getBitDepthVpsLuma(); 571 570 g_bitDepthLayer[CHANNEL_TYPE_CHROMA][0] = repFormat->getBitDepthVpsChroma(); 572 #endif573 571 } 574 572 } -
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.