Changeset 292 in SHVCSoftware for branches/SHM-2.1-dev/source/Lib/TLibEncoder/TEncGOP.cpp
- Timestamp:
- 18 Jun 2013, 23:11:33 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-2.1-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r291 r292 173 173 } 174 174 175 #if M0043_LAYERS_PRESENT_SEI 176 SEILayersPresent* TEncGOP::xCreateSEILayersPresent () 177 { 178 UInt i = 0; 179 SEILayersPresent *seiLayersPresent = new SEILayersPresent(); 180 seiLayersPresent->m_activeVpsId = m_pcCfg->getVPS()->getVPSId(); 181 seiLayersPresent->m_vpsMaxLayers = m_pcCfg->getVPS()->getMaxLayers(); 182 for ( ; i < seiLayersPresent->m_vpsMaxLayers; i++) 183 { 184 seiLayersPresent->m_layerPresentFlag[i] = true; 185 } 186 for ( ; i < MAX_LAYERS; i++) 187 { 188 seiLayersPresent->m_layerPresentFlag[i] = false; 189 } 190 return seiLayersPresent; 191 } 192 #endif 193 175 194 SEIFramePacking* TEncGOP::xCreateSEIFramePacking() 176 195 { … … 319 338 #endif 320 339 } 340 341 #if M0043_LAYERS_PRESENT_SEI 342 if(m_pcCfg->getLayersPresentSEIEnabled()) 343 { 344 SEILayersPresent *sei = xCreateSEILayersPresent (); 345 m_pcEntropyCoder->setBitstream(&nalu.m_Bitstream); 346 m_seiWriter.writeSEImessage(nalu.m_Bitstream, *sei, sps); 347 writeRBSPTrailingBits(nalu.m_Bitstream); 348 accessUnit.push_back(new NALUnitEBSP(nalu)); 349 delete sei; 350 } 351 #endif 321 352 322 353 if(m_pcCfg->getFramePackingArrangementSEIEnabled())
Note: See TracChangeset for help on using the changeset viewer.