- Timestamp:
- 7 Jul 2015, 02:00:49 (9 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibCommon
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp
r1119 r1120 2177 2177 , m_chromaFormatIdc (CHROMA_420) 2178 2178 , m_uiMaxTLayers ( 1) 2179 #if R0279_REP_FORMAT_INBL2180 , m_bV1CompatibleSPSFlag ( 0)2181 #endif2182 2179 // Structure 2183 2180 , m_picWidthInLumaSamples (352) … … 2217 2214 , m_layerId ( 0 ) 2218 2215 , m_extensionFlag ( false ) 2216 , m_bV1CompatibleSPSFlag ( 0) 2219 2217 #if REPN_FORMAT_IN_VPS 2220 2218 , m_updateRepFormatFlag (false) … … 3703 3701 UInt retVal, layerId = getLayerId(); 3704 3702 3705 #if R0279_REP_FORMAT_INBL3706 3703 if ( layerId == 0 || sps->getV1CompatibleSPSFlag() == 1 ) 3707 3704 { 3708 3705 if( layerId == 0 && vps->getNonHEVCBaseLayerFlag() ) 3709 #else3710 if ( layerId == 0 )3711 {3712 if( vps->getAvcBaseLayerFlag() )3713 #endif3714 3706 { 3715 3707 retVal = vps->getVpsRepFormat(layerId)->getPicWidthVpsInLumaSamples(); … … 3734 3726 UInt retVal, layerId = getLayerId(); 3735 3727 3736 #if R0279_REP_FORMAT_INBL3737 3728 if ( layerId == 0 || sps->getV1CompatibleSPSFlag() == 1 ) 3738 3729 { 3739 3730 if( layerId == 0 && vps->getNonHEVCBaseLayerFlag() ) 3740 #else3741 if ( layerId == 0 )3742 {3743 if( vps->getAvcBaseLayerFlag() )3744 #endif3745 3731 { 3746 3732 retVal = vps->getVpsRepFormat(layerId)->getPicHeightVpsInLumaSamples(); … … 3774 3760 #endif 3775 3761 3776 #if R0279_REP_FORMAT_INBL3777 3762 if ( layerId == 0 || sps->getV1CompatibleSPSFlag() == 1 ) 3778 3763 { 3779 3764 if( layerId == 0 && vps->getNonHEVCBaseLayerFlag() ) 3780 #else3781 if ( layerId == 0 )3782 {3783 if( vps->getAvcBaseLayerFlag() )3784 #endif3785 3765 { 3786 3766 retVal = vps->getVpsRepFormat(layerId)->getChromaFormatVpsIdc(); … … 3805 3785 UInt retVal, layerId = getLayerId(); 3806 3786 3807 #if R0279_REP_FORMAT_INBL3808 3787 if ( layerId == 0 || sps->getV1CompatibleSPSFlag() == 1 ) 3809 3788 { 3810 #else3811 if ( layerId == 0 )3812 {3813 #endif3814 3789 if( layerId == 0 && vps->getNonHEVCBaseLayerFlag() ) 3815 3790 { … … 3835 3810 UInt retVal, layerId = getLayerId(); 3836 3811 3837 #if R0279_REP_FORMAT_INBL3838 3812 if ( layerId == 0 || sps->getV1CompatibleSPSFlag() == 1 ) 3839 3813 { 3840 #else3841 if ( layerId == 0 )3842 {3843 #endif3844 3814 if( layerId == 0 && vps->getNonHEVCBaseLayerFlag() ) 3845 3815 { … … 3875 3845 UInt layerId = getLayerId(); 3876 3846 3877 #if R0279_REP_FORMAT_INBL3878 3847 if ( layerId == 0 || sps->getV1CompatibleSPSFlag() == 1 ) 3879 3848 { 3880 3849 if( layerId == 0 && vps->getNonHEVCBaseLayerFlag() ) 3881 #else3882 if ( layerId == 0 )3883 {3884 if( vps->getAvcBaseLayerFlag() )3885 #endif3886 3850 { 3887 3851 return vps->getVpsRepFormat(layerId)->getConformanceWindowVps(); -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r1119 r1120 1532 1532 UInt m_uiMaxTLayers; // maximum number of temporal layers 1533 1533 1534 #if R0279_REP_FORMAT_INBL1535 Bool m_bV1CompatibleSPSFlag;1536 #endif1537 1538 1534 // Structure 1539 1535 UInt m_picWidthInLumaSamples; … … 1612 1608 UInt m_layerId; 1613 1609 Bool m_extensionFlag; 1610 Bool m_bV1CompatibleSPSFlag; 1614 1611 UInt m_numScaledRefLayerOffsets; 1615 1612 Bool m_multiLayerExtSpsFlag; … … 1644 1641 static Int getWinUnitX (Int chromaFormatIdc) { assert (chromaFormatIdc >= 0 && chromaFormatIdc <= MAX_CHROMA_FORMAT_IDC); return m_winUnitX[chromaFormatIdc]; } 1645 1642 static Int getWinUnitY (Int chromaFormatIdc) { assert (chromaFormatIdc >= 0 && chromaFormatIdc <= MAX_CHROMA_FORMAT_IDC); return m_winUnitY[chromaFormatIdc]; } 1646 1647 #if R0279_REP_FORMAT_INBL //These two functions shall be used / called when the syntax element sps_ext_or_max_sub_layers_minus1 and V1CompatibleSPSFlag are implemented1648 Bool getV1CompatibleSPSFlag() {return m_bV1CompatibleSPSFlag;}1649 Void setV1CompatibleSPSFlag(Bool x) { m_bV1CompatibleSPSFlag = x;}1650 #endif1651 1643 1652 1644 // structure … … 1787 1779 Bool getMultiLayerExtSpsFlag() { return m_multiLayerExtSpsFlag; } 1788 1780 Void setMultiLayerExtSpsFlag(Bool flag) { m_multiLayerExtSpsFlag = flag; } 1781 1782 //These two functions shall be used / called when the syntax element sps_ext_or_max_sub_layers_minus1 and V1CompatibleSPSFlag are implemented 1783 Bool getV1CompatibleSPSFlag() { return m_bV1CompatibleSPSFlag; } 1784 Void setV1CompatibleSPSFlag(Bool x) { m_bV1CompatibleSPSFlag = x; } 1785 1789 1786 #if R0042_PROFILE_INDICATION 1790 1787 Int getNumDirectRefLayers() { return m_NumDirectRefLayers; } -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1119 r1120 68 68 #define R0226_CONSTRAINT_TMVP_SEI 1 ///< JCTVC-R0226, Modification to semantics in temporal motion vector prediction constraints SEI message 69 69 #define R0226_SLICE_TMVP 1 ///< JCTVC-R0226, Regarding slice_temporal_mvp_enabled_flag 70 #define R0279_REP_FORMAT_INBL 1 ///< JCTVC-R0279, For any independent non-base layer the used representation format is the one that is signalled in the active SPS for the layer71 70 #define R0227_VUI_BSP_HRD_FLAG 1 ///< JCTVC-R0227, Conformance checking such that VPS VUI HRD only present if VPS timing info is signalled 72 71 #define R0227_REP_FORMAT_CONSTRAINT 1 ///< JCTVC-R0227, Conformance checking such that representation format of a particular layer shall not be greater than the one defined in VPS for that layer
Note: See TracChangeset for help on using the changeset viewer.