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

Function createBitrateEntryForAU

YUViewLib/src/parser/VVC/ParserAnnexBVVC.cpp:70–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68{
69
70BitratePlotModel::BitrateEntry
71createBitrateEntryForAU(ParsingState & parsingState,
72 std::optional<BitratePlotModel::BitrateEntry> bitrateEntry)
73{
74 BitratePlotModel::BitrateEntry entry;
75 if (bitrateEntry)
76 {
77 entry.pts = bitrateEntry->pts;
78 entry.dts = bitrateEntry->dts;
79 entry.duration = bitrateEntry->duration;
80 }
81 else
82 {
83 entry.pts = parsingState.currentAU.poc;
84 entry.dts = int(parsingState.currentAU.counter);
85 entry.duration = 1;
86 }
87 entry.bitrate = unsigned(parsingState.currentAU.sizeBytes);
88 entry.keyframe = parsingState.currentAU.isKeyframe;
89 return entry;
90}
91
92} // namespace
93

Callers 1

parseAndAddNALUnitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected