QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GstSourceFactory.h
Go to the documentation of this file.
1#pragma once
2
3#include <chrono>
4#include <gst/gstelement.h>
5#include <gst/gstpad.h>
6#include <optional>
7
8#include <QtCore/QLoggingCategory>
9#include <QtCore/QString>
10
11Q_DECLARE_LOGGING_CATEGORY(GstSourceFactoryLog)
12
14
22
32
45GstElement* create(const QString& uri, const Config& config);
46
48inline constexpr std::chrono::milliseconds kRtspUdpTimeout{5000};
49
53std::optional<std::chrono::milliseconds> connectGracePeriod(const QString& uri);
54
58
62void reportDroppedPackets(GstElement* jitterBuffer);
63
64// The H.264/H.265 setup create() gives the depayloaders and parsers it builds or parsebin plugs
65// (GstH26xParameterSetGate.cc).
66
69void configureH26xParser(GstElement* element);
70
74void configureH26xRtpDepayloader(GstElement* element, bool requestKeyframes);
75
79void gateOnParameterSets(GstPad* depayloaderSrc, bool h265);
80
81} // namespace GStreamer::SourceFactory
struct _GstElement GstElement
The RTSP source GStreamer::SourceFactory::create() builds, with QGC's transport, latency and retransm...
void reportDroppedPackets(GstElement *jitterBuffer)
GstElement * create(const QString &uri, const Config &config)
@ None
No playout buffering; omits an explicit buffer or sets rtspsrc latency to zero.
@ DropOnLatency
rtpjitterbuffer with drop-on-latency=TRUE.
void gateOnParameterSets(GstPad *depayloaderSrc, bool h265)
constexpr std::chrono::milliseconds kRtspUdpTimeout
rtspsrc waits this long for UDP data before it retries the session over TCP ("timeout").
void configureH26xParser(GstElement *element)
void configureH26xRtpDepayloader(GstElement *element, bool requestKeyframes)
std::optional< std::chrono::milliseconds > connectGracePeriod(const QString &uri)
bool doRetransmission
RTSP only: plain UDP/TCP sources have no RTCP back-channel for NACKs.