Changeset 567 in SHVCSoftware for branches/SHM-5.0-dev/source/Lib/TLibEncoder
- Timestamp:
- 27 Jan 2014, 18:33:04 (11 years ago)
- Location:
- branches/SHM-5.0-dev/source/Lib/TLibEncoder
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-5.0-dev/source/Lib/TLibEncoder/SEIwrite.cpp
r442 r567 87 87 fprintf( g_hTrace, "=========== Tone Mapping Info SEI message ===========\n"); 88 88 break; 89 #if M0043_LAYERS_PRESENT_SEI90 case SEI::LAYERS_ PRESENT:89 #if LAYERS_NOT_PRESENT_SEI 90 case SEI::LAYERS_NOT_PRESENT: 91 91 fprintf( g_hTrace, "=========== Layers Present SEI message ===========\n"); 92 92 break; … … 150 150 xWriteSEIToneMappingInfo(*static_cast<const SEIToneMappingInfo*>(&sei)); 151 151 break; 152 #if M0043_LAYERS_PRESENT_SEI153 case SEI::LAYERS_ PRESENT:154 xWriteSEILayers Present(*static_cast<const SEILayersPresent*>(&sei));152 #if LAYERS_NOT_PRESENT_SEI 153 case SEI::LAYERS_NOT_PRESENT: 154 xWriteSEILayersNotPresent(*static_cast<const SEILayersNotPresent*>(&sei)); 155 155 break; 156 156 #endif … … 536 536 } 537 537 538 #if M0043_LAYERS_PRESENT_SEI539 Void SEIWriter::xWriteSEILayers Present(const SEILayersPresent& sei)538 #if LAYERS_NOT_PRESENT_SEI 539 Void SEIWriter::xWriteSEILayersNotPresent(const SEILayersNotPresent& sei) 540 540 { 541 541 WRITE_UVLC( sei.m_activeVpsId, "lp_sei_active_vps_id" ); 542 542 for (UInt i = 0; i < sei.m_vpsMaxLayers; i++) 543 543 { 544 WRITE_FLAG( sei.m_layer PresentFlag[i], "layer_present_flag" );544 WRITE_FLAG( sei.m_layerNotPresentFlag[i], "layer_not_present_flag" ); 545 545 } 546 546 xWriteByteAlign(); -
branches/SHM-5.0-dev/source/Lib/TLibEncoder/SEIwrite.h
r442 r567 64 64 Void xWriteSEIGradualDecodingRefreshInfo(const SEIGradualDecodingRefreshInfo &sei); 65 65 Void xWriteSEIToneMappingInfo(const SEIToneMappingInfo& sei); 66 #if M0043_LAYERS_PRESENT_SEI67 Void xWriteSEILayers Present(const SEILayersPresent& sei);66 #if LAYERS_NOT_PRESENT_SEI 67 Void xWriteSEILayersNotPresent(const SEILayersNotPresent& sei); 68 68 #endif 69 69 Void xWriteSEISOPDescription(const SEISOPDescription& sei); -
branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncCfg.h
r560 r567 305 305 Int m_gradualDecodingRefreshInfoEnabled; 306 306 Int m_decodingUnitInfoSEIEnabled; 307 #if M0043_LAYERS_PRESENT_SEI308 Int m_layers PresentSEIEnabled;307 #if LAYERS_NOT_PRESENT_SEI 308 Int m_layersNotPresentSEIEnabled; 309 309 #endif 310 310 Int m_SOPDescriptionSEIEnabled; … … 748 748 Void setDecodingUnitInfoSEIEnabled(Int b) { m_decodingUnitInfoSEIEnabled = b; } 749 749 Int getDecodingUnitInfoSEIEnabled() { return m_decodingUnitInfoSEIEnabled; } 750 #if M0043_LAYERS_PRESENT_SEI751 Void setLayers PresentSEIEnabled(Int b) { m_layersPresentSEIEnabled = b; }752 Int getLayers PresentSEIEnabled() { return m_layersPresentSEIEnabled; }750 #if LAYERS_NOT_PRESENT_SEI 751 Void setLayersNotPresentSEIEnabled(Int b) { m_layersNotPresentSEIEnabled = b; } 752 Int getLayersNotPresentSEIEnabled() { return m_layersNotPresentSEIEnabled; } 753 753 #endif 754 754 Void setSOPDescriptionSEIEnabled(Int b) { m_SOPDescriptionSEIEnabled = b; } -
branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r564 r567 167 167 } 168 168 169 #if M0043_LAYERS_PRESENT_SEI170 SEILayers Present* TEncGOP::xCreateSEILayersPresent ()169 #if LAYERS_NOT_PRESENT_SEI 170 SEILayersNotPresent* TEncGOP::xCreateSEILayersNotPresent () 171 171 { 172 172 UInt i = 0; 173 SEILayers Present *seiLayersPresent = new SEILayersPresent();174 seiLayers Present->m_activeVpsId = m_pcCfg->getVPS()->getVPSId();175 seiLayers Present->m_vpsMaxLayers = m_pcCfg->getVPS()->getMaxLayers();176 for ( ; i < seiLayers Present->m_vpsMaxLayers; i++)177 { 178 seiLayers Present->m_layerPresentFlag[i] = true;173 SEILayersNotPresent *seiLayersNotPresent = new SEILayersNotPresent(); 174 seiLayersNotPresent->m_activeVpsId = m_pcCfg->getVPS()->getVPSId(); 175 seiLayersNotPresent->m_vpsMaxLayers = m_pcCfg->getVPS()->getMaxLayers(); 176 for ( ; i < seiLayersNotPresent->m_vpsMaxLayers; i++) 177 { 178 seiLayersNotPresent->m_layerNotPresentFlag[i] = true; 179 179 } 180 180 for ( ; i < MAX_LAYERS; i++) 181 181 { 182 seiLayers Present->m_layerPresentFlag[i] = false;183 } 184 return seiLayers Present;182 seiLayersNotPresent->m_layerNotPresentFlag[i] = false; 183 } 184 return seiLayersNotPresent; 185 185 } 186 186 #endif … … 363 363 } 364 364 365 #if M0043_LAYERS_PRESENT_SEI366 if(m_pcCfg->getLayers PresentSEIEnabled())367 { 368 SEILayers Present *sei = xCreateSEILayersPresent ();365 #if LAYERS_NOT_PRESENT_SEI 366 if(m_pcCfg->getLayersNotPresentSEIEnabled()) 367 { 368 SEILayersNotPresent *sei = xCreateSEILayersNotPresent (); 369 369 m_pcEntropyCoder->setBitstream(&nalu.m_Bitstream); 370 370 m_seiWriter.writeSEImessage(nalu.m_Bitstream, *sei, sps); -
branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncGOP.h
r562 r567 181 181 182 182 SEIActiveParameterSets* xCreateSEIActiveParameterSets (TComSPS *sps); 183 #if M0043_LAYERS_PRESENT_SEI184 SEILayers Present* xCreateSEILayersPresent ();183 #if LAYERS_NOT_PRESENT_SEI 184 SEILayersNotPresent* xCreateSEILayersNotPresent (); 185 185 #endif 186 186 SEIFramePacking* xCreateSEIFramePacking();
Note: See TracChangeset for help on using the changeset viewer.