MCPcopy Create free account
hub / github.com/IENT/YUView / parseExtradata_mpeg2

Method parseExtradata_mpeg2

YUViewLib/src/parser/AVFormat/ParserAVFormat.cpp:226–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226bool ParserAVFormat::parseExtradata_mpeg2(ByteVector &extradata)
227{
228 if (extradata.empty() || !packetModel->rootItem)
229 return true;
230
231 if (extradata.at(0) == 0)
232 {
233 this->parseByteVectorAnnexBStartCodes(
234 extradata,
235 PacketDataFormat::RawNAL,
236 {},
237 packetModel->rootItem->createChildItem("Extradata (Raw Mpeg2 units)"));
238 }
239 else
240 packetModel->rootItem->createChildItem(
241 "Unsupported extradata format (configurationVersion != 1)");
242
243 return true;
244}
245
246std::map<std::string, unsigned>
247ParserAVFormat::parseByteVectorAnnexBStartCodes(ByteVector & data,

Callers 1

parseExtradataMethod · 0.95

Calls 3

createChildItemMethod · 0.80
atMethod · 0.45

Tested by

no test coverage detected