QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GstReceiverRequest.h
Go to the documentation of this file.
1#pragma once
2
3#include <memory>
4#include <optional>
5
6#include <QtCore/QMetaType>
7#include <QtCore/QString>
8
9#include "VideoReceiver.h"
10#include "VideoStreamStats.h"
11
12typedef struct _GstElement GstElement;
13
14// What GstVideoReceiver and its GstReceiverWorker pass between their threads: the receiver hands over the whole
15// GstReceiverRequest after each of its requests, and the worker reports its whole GstReceiverStatus after each change.
16
24
27{
28 bool active = false;
29 QString name;
31 std::shared_ptr<GstElement> videoSink;
33 quint64 restarts = 0;
35 quint64 reconnects = 0;
36 std::optional<GstRecordingRequest> recording;
37};
38
49
50Q_DECLARE_METATYPE(GstReceiverStatus)
struct _GstElement GstElement
FileFormat
Values are persisted by VideoSettings::recordingFormat.
@ Stopped
Inactive, no URI, or given up after a failure (autoReconnect off).
Everything the receiver asks for, as it stands after each of its requests.
VideoReceiver::Config config
quint64 restarts
Counts restart() calls: a new count restarts the stream, with videoSink.
quint64 reconnects
Counts reconnectNow() calls: a new count cuts a reconnect's backoff short.
std::shared_ptr< GstElement > videoSink
std::optional< GstRecordingRequest > recording
What the worker reports, as it stands after each change.
VideoReceiver::State state
VideoStreamStats stats
About once a second while streaming, and invalid once the session stops.
VideoReceiver::FileFormat format