Changeset 567 in SHVCSoftware for branches/SHM-5.0-dev/source/Lib/TLibDecoder
- Timestamp:
- 27 Jan 2014, 18:33:04 (11 years ago)
- Location:
- branches/SHM-5.0-dev/source/Lib/TLibDecoder
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-5.0-dev/source/Lib/TLibDecoder/SEIread.cpp
r442 r567 93 93 fprintf( g_hTrace, "===========Tone Mapping Info SEI message ===========\n"); 94 94 break; 95 #if M0043_LAYERS_PRESENT_SEI96 case SEI::LAYERS_ PRESENT:95 #if LAYERS_NOT_PRESENT_SEI 96 case SEI::LAYERS_NOT_PRESENT: 97 97 fprintf( g_hTrace, "=========== Layers Present SEI message ===========\n"); 98 98 break; … … 119 119 * unmarshal a single SEI message from bitstream bs 120 120 */ 121 #if M0043_LAYERS_PRESENT_SEI121 #if LAYERS_NOT_PRESENT_SEI 122 122 void SEIReader::parseSEImessage(TComInputBitstream* bs, SEIMessages& seis, const NalUnitType nalUnitType, TComVPS *vps, TComSPS *sps) 123 123 #else … … 130 130 do 131 131 { 132 #if M0043_LAYERS_PRESENT_SEI132 #if LAYERS_NOT_PRESENT_SEI 133 133 xReadSEImessage(seis, nalUnitType, vps, sps); 134 134 #else … … 145 145 } 146 146 147 #if M0043_LAYERS_PRESENT_SEI147 #if LAYERS_NOT_PRESENT_SEI 148 148 Void SEIReader::xReadSEImessage(SEIMessages& seis, const NalUnitType nalUnitType, TComVPS *vps, TComSPS *sps) 149 149 #else … … 254 254 xParseSEIToneMappingInfo((SEIToneMappingInfo&) *sei, payloadSize); 255 255 break; 256 #if M0043_LAYERS_PRESENT_SEI257 case SEI::LAYERS_ PRESENT:256 #if LAYERS_NOT_PRESENT_SEI 257 case SEI::LAYERS_NOT_PRESENT: 258 258 if (!vps) 259 259 { 260 printf ("Warning: Found Layers present SEI message, but no active VPS is available. Ignoring.");260 printf ("Warning: Found Layers not present SEI message, but no active VPS is available. Ignoring."); 261 261 } 262 262 else 263 263 { 264 sei = new SEILayers Present;265 xParseSEILayers Present((SEILayersPresent&) *sei, payloadSize, vps);264 sei = new SEILayersNotPresent; 265 xParseSEILayersNotPresent((SEILayersNotPresent&) *sei, payloadSize, vps); 266 266 } 267 267 break; … … 279 279 case SEI::SCALABLE_NESTING: 280 280 sei = new SEIScalableNesting; 281 #if M0043_LAYERS_PRESENT_SEI281 #if LAYERS_NOT_PRESENT_SEI 282 282 xParseSEIScalableNesting((SEIScalableNesting&) *sei, nalUnitType, payloadSize, vps, sps); 283 283 #else … … 741 741 } 742 742 743 #if M0043_LAYERS_PRESENT_SEI744 Void SEIReader::xParseSEILayers Present(SEILayersPresent &sei, UInt payloadSize, TComVPS *vps)743 #if LAYERS_NOT_PRESENT_SEI 744 Void SEIReader::xParseSEILayersNotPresent(SEILayersNotPresent &sei, UInt payloadSize, TComVPS *vps) 745 745 { 746 746 UInt uiCode; … … 752 752 for (; i < sei.m_vpsMaxLayers; i++) 753 753 { 754 READ_FLAG( uiCode, "layer_ present_flag" ); sei.m_layerPresentFlag[i] = uiCode ? true : false;754 READ_FLAG( uiCode, "layer_not_present_flag" ); sei.m_layerNotPresentFlag[i] = uiCode ? true : false; 755 755 } 756 756 for (; i < MAX_LAYERS; i++) 757 757 { 758 sei.m_layer PresentFlag[i] = false;758 sei.m_layerNotPresentFlag[i] = false; 759 759 } 760 760 xParseByteAlign(); … … 830 830 #endif 831 831 832 #if M0043_LAYERS_PRESENT_SEI832 #if LAYERS_NOT_PRESENT_SEI 833 833 Void SEIReader::xParseSEIScalableNesting(SEIScalableNesting& sei, const NalUnitType nalUnitType, UInt payloadSize, TComVPS *vps, TComSPS *sps) 834 834 #else … … 876 876 // read nested SEI messages 877 877 do { 878 #if M0043_LAYERS_PRESENT_SEI878 #if LAYERS_NOT_PRESENT_SEI 879 879 xReadSEImessage(sei.m_nestedSEIs, nalUnitType, vps, sps); 880 880 #else -
branches/SHM-5.0-dev/source/Lib/TLibDecoder/SEIread.h
r442 r567 56 56 SEIReader() {}; 57 57 virtual ~SEIReader() {}; 58 #if M0043_LAYERS_PRESENT_SEI58 #if LAYERS_NOT_PRESENT_SEI 59 59 Void parseSEImessage(TComInputBitstream* bs, SEIMessages& seis, const NalUnitType nalUnitType, TComVPS *vps, TComSPS *sps); 60 60 #else … … 62 62 #endif 63 63 protected: 64 #if M0043_LAYERS_PRESENT_SEI64 #if LAYERS_NOT_PRESENT_SEI 65 65 Void xReadSEImessage (SEIMessages& seis, const NalUnitType nalUnitType, TComVPS *vps, TComSPS *sps); 66 66 #else … … 83 83 Void xParseSEIInterLayerConstrainedTileSets (SEIInterLayerConstrainedTileSets &sei, UInt payloadSize); 84 84 #endif 85 #if M0043_LAYERS_PRESENT_SEI86 Void xParseSEILayers Present (SEILayersPresent &sei, UInt payloadSize, TComVPS *vps);85 #if LAYERS_NOT_PRESENT_SEI 86 Void xParseSEILayersNotPresent (SEILayersNotPresent &sei, UInt payloadSize, TComVPS *vps); 87 87 Void xParseSEIScalableNesting (SEIScalableNesting& sei, const NalUnitType nalUnitType, UInt payloadSize, TComVPS *vps, TComSPS *sps); 88 88 #else -
branches/SHM-5.0-dev/source/Lib/TLibDecoder/TDecTop.cpp
r562 r567 1656 1656 } 1657 1657 #endif 1658 #if M0043_LAYERS_PRESENT_SEI1658 #if LAYERS_NOT_PRESENT_SEI 1659 1659 m_seiReader.parseSEImessage( bs, m_pcPic->getSEIs(), nalUnitType, m_parameterSetManagerDecoder.getActiveVPS(), m_parameterSetManagerDecoder.getActiveSPS() ); 1660 1660 #else … … 1664 1664 else 1665 1665 { 1666 #if M0043_LAYERS_PRESENT_SEI1666 #if LAYERS_NOT_PRESENT_SEI 1667 1667 m_seiReader.parseSEImessage( bs, m_SEIs, nalUnitType, m_parameterSetManagerDecoder.getActiveVPS(), m_parameterSetManagerDecoder.getActiveSPS() ); 1668 1668 #else … … 1684 1684 if(nalUnitType == NAL_UNIT_SUFFIX_SEI) 1685 1685 { 1686 #if M0043_LAYERS_PRESENT_SEI1686 #if LAYERS_NOT_PRESENT_SEI 1687 1687 m_seiReader.parseSEImessage( bs, m_pcPic->getSEIs(), nalUnitType, m_parameterSetManagerDecoder.getActiveVPS(), m_parameterSetManagerDecoder.getActiveSPS() ); 1688 1688 #else … … 1692 1692 else 1693 1693 { 1694 #if M0043_LAYERS_PRESENT_SEI1694 #if LAYERS_NOT_PRESENT_SEI 1695 1695 m_seiReader.parseSEImessage( bs, m_SEIs, nalUnitType, m_parameterSetManagerDecoder.getActiveVPS(), m_parameterSetManagerDecoder.getActiveSPS() ); 1696 1696 #else
Note: See TracChangeset for help on using the changeset viewer.