QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GstRtpPacketProbe.h
Go to the documentation of this file.
1#pragma once
2
3#include <gst/gst.h>
4#include <optional>
5
6#include <QtCore/QtTypes>
7
8namespace GStreamer {
9
12{
13 quint64 packetsReceived = 0;
15 quint64 packetsLost = 0;
17 double jitterMs = -1.0;
18};
19
28bool countRtpPackets(GstElement* bin, GstPad* pad, int clockRate);
29
31std::optional<RtpPacketCounts> rtpPacketCounts(GstElement* bin);
32
33} // namespace GStreamer
struct _GstElement GstElement
std::optional< RtpPacketCounts > rtpPacketCounts(GstElement *bin)
What countRtpPackets() counted for bin so far, from any thread; nullopt for a bin without it,...
bool countRtpPackets(GstElement *bin, GstPad *pad, int clockRate)
What countRtpPackets() has counted for a bin since it was installed.
quint64 packetsLost
Shrinks when a packet counted as lost arrives late.
double jitterMs
The interarrival jitter as a jitter buffer measures it; -1 until measured.