5#include <QtCore/QString>
34inline quint64
frameStatsField(
const GstStructure* stats,
const char* field)
noexcept
38 (void) gst_structure_get_uint64(stats, field, &value);
44inline quint64
frameStatsGrowth(
const GstStructure* stats,
const GstStructure* since,
const char* field)
noexcept
48 return (now > before) ? (now - before) : 0;
HwVideoBufferPath
GPU zero-copy path a frame is imported through; None means the frame takes the CPU path.
struct _GstElement GstElement
std::unique_ptr< GstStructure, GstStructureDeleter > GstStructurePtr
GstVideoSink that pushes decoded frames into a Qt QVideoSink; sole sink in qgcvideosinkbin....
const char * sinkFramesField(HwVideoBufferPath path)
quint64 frameStatsGrowth(const GstStructure *stats, const GstStructure *since, const char *field) noexcept
How far the guint64 field grew from since to stats, two "frame-stats" values of the same sink.
constexpr const char * kSupersededFramesField
PathStats formatSinkStats(const GstStructure *stats, const GstStructure *since)
constexpr const char * kGpuFallbacksField
guint64 "frame-stats" field holding the frames a GPU path was tried for but the CPU delivered.
quint64 frameStatsField(const GstStructure *stats, const char *field) noexcept
The guint64 field of stats, a "frame-stats" or any other structure; 0 without the structure or the fi...
constexpr const char * kStreamDemotionsField
guint64 "frame-stats" field holding the caps epochs that started on a GPU path and fell back to the C...
GStreamer::GstStructurePtr frameStats(GstElement *sinkOrBin)
The "frame-stats" of sinkOrBin, a qgcqvideosink or the qgcvideosinkbin around one; null for other ele...
constexpr const char * kTiledDropsField
Formatted per-path frame counts + the total delivered through GPU paths.