QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
VideoSettings.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtQmlIntegration/QtQmlIntegration>
4
5#include "SettingsGroup.h"
6
8{
9 Q_OBJECT
10 QML_ELEMENT
11 QML_UNCREATABLE("")
12public:
13 VideoSettings(QObject* parent = nullptr);
15
32
33 Q_PROPERTY(bool streamConfigured READ streamConfigured NOTIFY streamConfiguredChanged)
34 Q_PROPERTY(QString rtspVideoSource READ rtspVideoSource CONSTANT)
35 Q_PROPERTY(QString udp264VideoSource READ udp264VideoSource CONSTANT)
36 Q_PROPERTY(QString udp265VideoSource READ udp265VideoSource CONSTANT)
37 Q_PROPERTY(QString tcpVideoSource READ tcpVideoSource CONSTANT)
38 Q_PROPERTY(QString mpegtsVideoSource READ mpegtsVideoSource CONSTANT)
39 Q_PROPERTY(QString disabledVideoSource READ disabledVideoSource CONSTANT)
40
41 bool streamConfigured ();
42 QString rtspVideoSource () { return videoSourceRTSP; }
45 QString tcpVideoSource () { return videoSourceTCP; }
46 QString mpegtsVideoSource () { return videoSourceMPEGTS; }
47 QString disabledVideoSource () { return videoDisabled; }
48
49 static constexpr const char* videoSourceNoVideo = QT_TRANSLATE_NOOP("VideoSettings", "No Video Available");
50 static constexpr const char* videoDisabled = QT_TRANSLATE_NOOP("VideoSettings", "Video Stream Disabled");
51 static constexpr const char* videoSourceRTSP = QT_TRANSLATE_NOOP("VideoSettings", "RTSP Video Stream");
52 static constexpr const char* videoSourceUDPH264 = QT_TRANSLATE_NOOP("VideoSettings", "UDP h.264 Video Stream");
53 static constexpr const char* videoSourceUDPH265 = QT_TRANSLATE_NOOP("VideoSettings", "UDP h.265 Video Stream");
54 static constexpr const char* videoSourceTCP = QT_TRANSLATE_NOOP("VideoSettings", "TCP-MPEG2 Video Stream");
55 static constexpr const char* videoSourceMPEGTS = QT_TRANSLATE_NOOP("VideoSettings", "MPEG-TS Video Stream");
56 static constexpr const char* videoSource3DRSolo = QT_TRANSLATE_NOOP("VideoSettings", "3DR Solo (requires restart)");
57 static constexpr const char* videoSourceParrotDiscovery = QT_TRANSLATE_NOOP("VideoSettings", "Parrot Discovery");
58 static constexpr const char* videoSourceYuneecMantisG = QT_TRANSLATE_NOOP("VideoSettings", "Yuneec Mantis G");
59 static constexpr const char* videoSourceHerelinkAirUnit = QT_TRANSLATE_NOOP("VideoSettings", "Herelink AirUnit");
60 static constexpr const char* videoSourceHerelinkHotspot = QT_TRANSLATE_NOOP("VideoSettings", "Herelink Hotspot");
61
62signals:
63 void streamConfiguredChanged (bool configured);
64
65private slots:
66 void _configChanged (QVariant value);
67
68private:
69 void _setDefaults ();
70 void _setForceVideoDecodeList();
71
72private:
73 bool _noVideo = false;
74
75};
#define DEFINE_SETTING_NAME_GROUP()
#define DEFINE_SETTINGFACT(NAME)
QString rtspVideoSource()
Fact *gridLines READ gridLines CONSTANT Fact * gridLines()
Fact *disableWhenDisarmed READ disableWhenDisarmed CONSTANT Fact * disableWhenDisarmed()
static constexpr const char * videoSource3DRSolo
Fact *rtspUrl READ rtspUrl CONSTANT Fact * rtspUrl()
static constexpr const char * videoSourceParrotDiscovery
static constexpr const char * videoSourceTCP
QString mpegtsVideoSource()
Fact *recordingFormat READ recordingFormat CONSTANT Fact * recordingFormat()
QString tcpVideoSource()
static constexpr const char * videoSourceUDPH264
static constexpr const char * videoSourceHerelinkHotspot
Fact *videoFit READ videoFit CONSTANT Fact * videoFit()
Fact *forceVideoDecoder READ forceVideoDecoder CONSTANT Fact * forceVideoDecoder()
Fact *aspectRatio READ aspectRatio CONSTANT Fact * aspectRatio()
QString disabledVideoSource()
bool streamConfigured READ streamConfigured NOTIFY streamConfiguredChanged(QString rtspVideoSource READ rtspVideoSource CONSTANT) 1(QString udp264VideoSource READ udp264VideoSource CONSTANT) 1(QString udp265VideoSource READ udp265VideoSource CONSTANT) 1(QString tcpVideoSource READ tcpVideoSource CONSTANT) 1(QString mpegtsVideoSource READ mpegtsVideoSource CONSTANT) 1(QString disabledVideoSource READ disabledVideoSource CONSTANT) bool streamConfigured()
Fact *showRecControl READ showRecControl CONSTANT Fact * showRecControl()
static constexpr const char * videoSourceRTSP
QString udp265VideoSource()
Fact *enableStorageLimit READ enableStorageLimit CONSTANT Fact * enableStorageLimit()
Fact *streamEnabled READ streamEnabled CONSTANT Fact * streamEnabled()
Fact *rtspTimeout READ rtspTimeout CONSTANT Fact * rtspTimeout()
QString udp264VideoSource()
static constexpr const char * videoDisabled
Fact *maxVideoSize READ maxVideoSize CONSTANT Fact * maxVideoSize()
Fact *udpUrl READ udpUrl CONSTANT Fact * udpUrl()
Fact *tcpUrl READ tcpUrl CONSTANT Fact * tcpUrl()
Fact *videoSource READ videoSource CONSTANT Fact * videoSource()
static constexpr const char * videoSourceYuneecMantisG
static constexpr const char * videoSourceUDPH265
void streamConfiguredChanged(bool configured)
static constexpr const char * videoSourceNoVideo
Fact *lowLatencyMode READ lowLatencyMode CONSTANT Fact * lowLatencyMode()
static constexpr const char * videoSourceMPEGTS
static constexpr const char * videoSourceHerelinkAirUnit