Changeset 1009 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder
- Timestamp:
- 3 Feb 2015, 23:11:03 (11 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibEncoder
- Files:
-
- 2 edited
-
TEncCavlc.cpp (modified) (1 diff)
-
TEncTop.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r980 r1009 2092 2092 if( vps->getNumRefLayers(vps->getLayerIdInNuh(i)) == 0 ) 2093 2093 { 2094 if( (vps->getSPSId(i) == 0) && (vps->getPPSId(i) == 0) )2095 {2096 vps->setBaseLayerPSCompatibilityFlag(i, 1);2097 }2098 else2099 {2100 vps->setBaseLayerPSCompatibilityFlag(i, 0);2101 }2102 2094 WRITE_FLAG(vps->getBaseLayerPSCompatibilityFlag(i), "base_layer_parameter_set_compatibility_flag" ); 2103 2095 } -
branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp
r999 r1009 1792 1792 } 1793 1793 } 1794 1795 #if P0182_VPS_VUI_PS_FLAG 1796 if( m_cVPS.getNumRefLayers( m_layerId ) == 0 ) 1797 { 1798 UInt layerIdx = m_cVPS.getLayerIdInVps( m_layerId ); 1799 RepFormat* repFormat = m_cVPS.getVpsRepFormat(m_cVPS.getVpsRepFormatIdx(layerIdx)); 1800 1801 if( m_cPPS.getLayerId() == 0 && 1802 m_cSPS.getLayerId() == 0 && 1803 repFormat->getChromaFormatVpsIdc() == m_cSPS.getChromaFormatIdc() && 1804 repFormat->getSeparateColourPlaneVpsFlag() == 0 && 1805 repFormat->getPicHeightVpsInLumaSamples() == m_cSPS.getPicHeightInLumaSamples() && 1806 repFormat->getPicWidthVpsInLumaSamples() == m_cSPS.getPicWidthInLumaSamples() && 1807 repFormat->getBitDepthVpsLuma() == m_cSPS.getBitDepthY() && 1808 repFormat->getBitDepthVpsChroma() == m_cSPS.getBitDepthC() && 1809 repFormat->getConformanceWindowVps().getWindowLeftOffset() == m_cSPS.getConformanceWindow().getWindowLeftOffset() && 1810 repFormat->getConformanceWindowVps().getWindowRightOffset() == m_cSPS.getConformanceWindow().getWindowRightOffset() && 1811 repFormat->getConformanceWindowVps().getWindowTopOffset() == m_cSPS.getConformanceWindow().getWindowTopOffset() && 1812 repFormat->getConformanceWindowVps().getWindowBottomOffset() == m_cSPS.getConformanceWindow().getWindowBottomOffset() ) 1813 { 1814 m_cVPS.setBaseLayerPSCompatibilityFlag(layerIdx, 1); 1815 } 1816 else 1817 { 1818 m_cVPS.setBaseLayerPSCompatibilityFlag(layerIdx, 0); 1819 } 1820 } 1821 #endif 1794 1822 } 1795 1823 }
Note: See TracChangeset for help on using the changeset viewer.