46 for (SEIMessages::iterator it=seiList.begin(); it!=seiList.end(); it++)
48 if ((*it)->payloadType() == seiType)
50 result.push_back(*it);
60 SEIMessages::iterator it=seiList.begin();
61 while ( it!=seiList.end() )
63 if ((*it)->payloadType() == seiType)
65 result.push_back(*it);
66 it = seiList.erase(it);
79 for (SEIMessages::iterator it=seiList.begin(); it!=seiList.end(); it++)
137 std::vector<UInt> listOfIndices;
140 for(RNSEIWindowVec::const_iterator iterNew = newRegions.begin();
141 iterNew != newRegions.end(); iterNew++)
144 Bool foundRegion =
false;
146 for(RNSEIWindowVec::const_iterator iterRef =
m_regions.begin();
147 !foundRegion && iterRef !=
m_regions.end(); iterRef++)
149 if( (*iterNew) == (*iterRef) )
151 listOfIndices.push_back(iterRef -
m_regions.begin());
154 else if( iterRef->checkSameID(*iterNew) )
157 std::cout <<
"Two different regions have the same ID; please check.\n";
158 std::cout <<
"Region:" << (*iterNew) <<
"\n";
159 std::cout <<
"Region:" << (*iterRef) <<
"\n";
163 addNewRegion = !foundRegion;
168 listOfIndices.push_back(
m_regions.size());
172 if(listOfIndices.empty())
174 std::cout <<
"Unable to add regions to the regional nesting SEI.\n";
227 #if ERP_SR_OV_SEI_MESSAGE
241 default:
return "Unknown";
Int getWindowTopOffset() const
UInt m_initialCpbRemovalDelay[MAX_CPB_CNT][2]
Defines version information, constants and small in-line functions.
void copyTo(SEIBufferingPeriod &target)
Int getWindowBottomOffset() const
void copyTo(SEIPictureTiming &target)
Int getWindowLeftOffset() const
Void deleteSEIs(SEIMessages &seiList)
delete list of SEI messages (freeing the referenced objects)
SEIMessages getSeisByType(SEIMessages &seiList, SEI::PayloadType seiType)
output a selection of SEI messages by payload type. Ownership stays in original message list...
Bool m_rapCpbParamsPresentFlag
std::vector< UInt > m_numNalusInDuMinus1
static const TChar * getSEIMessageString(SEI::PayloadType payloadType)
SEIMessages extractSeisByType(SEIMessages &seiList, SEI::PayloadType seiType)
remove a selection of SEI messages by payload type from the original list and return them in a new li...
std::ostream & operator<<(std::ostream &left, const RuntimeError &right)
Convenient formatted output operator that just outputs the what string.
std::vector< std::pair< std::vector< UInt >, SEI * > > m_rnSeiMessages
const RNSEIWindowVec & getRegions()
UInt m_numDecodingUnitsMinus1
UInt m_bpSeqParameterSetId
UInt m_initialAltCpbRemovalDelayOffset[MAX_CPB_CNT][2]
UInt m_auCpbRemovalDelayDelta
UInt m_initialCpbRemovalDelayOffset[MAX_CPB_CNT][2]
UInt m_duCommonCpbRemovalDelayMinus1
std::vector< RNSEIWindow > RNSEIWindowVec
UInt m_initialAltCpbRemovalDelay[MAX_CPB_CNT][2]
Bool m_duCommonCpbRemovalDelayFlag
std::vector< UInt > m_duCpbRemovalDelayMinus1
std::list< SEI * > SEIMessages
Void addRegionalSEI(std::vector< UInt > listInd, SEI *sei)
Int getWindowRightOffset() const
UInt m_picDpbOutputDuDelay