#include <VideoSettings.h>
Public Types | |
| enum | VideoFit { VideoFitWidth = 0 , VideoFitHeight = 1 , VideoFitFill = 2 , VideoFitNoCrop = 3 } |
| For RTSP streams only: the others keep VideoReceiver::Config's timeout. More... | |
| enum | VideoBackendChoice { VideoBackendGStreamer = 0 , VideoBackendQtMultimedia = 1 } |
| videoBackend's values (Video.SettingsGroup.json). More... | |
Public Member Functions | |
| VideoSettings (QObject *parent=nullptr) | |
| QString | rtspVideoSource () |
| QString | udp264VideoSource () |
| QString | udp265VideoSource () |
| QString | tcpVideoSource () |
| QString | mpegtsVideoSource () |
| QString | disabledVideoSource () |
| void | pruneUnavailableDecoders () |
| Public Member Functions inherited from SettingsGroup | |
| SettingsGroup (const QString &name, const QString &settingsGroup, QObject *parent=nullptr) | |
| virtual bool | userVisible () |
| virtual void | setUserVisible (bool vis) |
| QString | settingsGroup () const |
Static Public Attributes | |
| static constexpr const char * | videoDisabled = QT_TRANSLATE_NOOP("VideoSettings", "Video Stream Disabled") |
| static constexpr const char * | videoSourceRTSP = QT_TRANSLATE_NOOP("VideoSettings", "RTSP Video Stream") |
| static constexpr const char * | videoSourceUDPH264 = QT_TRANSLATE_NOOP("VideoSettings", "UDP h.264 Video Stream") |
| static constexpr const char * | videoSourceUDPH265 = QT_TRANSLATE_NOOP("VideoSettings", "UDP h.265 Video Stream") |
| static constexpr const char * | videoSourceTCP = QT_TRANSLATE_NOOP("VideoSettings", "TCP-MPEG2 Video Stream") |
| static constexpr const char * | videoSourceMPEGTS = QT_TRANSLATE_NOOP("VideoSettings", "MPEG-TS Video Stream") |
| static constexpr const char * | videoSource3DRSolo = QT_TRANSLATE_NOOP("VideoSettings", "3DR Solo (requires restart)") |
| static constexpr const char * | videoSourceParrotDiscovery = QT_TRANSLATE_NOOP("VideoSettings", "Parrot Discovery") |
| static constexpr const char * | videoSourceYuneecMantisG = QT_TRANSLATE_NOOP("VideoSettings", "Yuneec Mantis G") |
| static constexpr const char * | videoSourceHerelinkAirUnit = QT_TRANSLATE_NOOP("VideoSettings", "Herelink AirUnit") |
| static constexpr const char * | videoSourceHerelinkHotspot = QT_TRANSLATE_NOOP("VideoSettings", "Herelink Hotspot") |
Friends | |
| class | VideoSettingsTest |
Additional Inherited Members | |
| Signals inherited from SettingsGroup | |
| void | userVisibleChanged () |
| Protected Member Functions inherited from SettingsGroup | |
| SettingsFact * | _createSettingsFact (const QString &factName) |
| Protected Attributes inherited from SettingsGroup | |
| bool | _userVisible |
| QString | _name |
| QString | _settingsGroup |
| QMap< QString, FactMetaData * > | _nameToMetaDataMap |
Definition at line 11 of file VideoSettings.h.
videoBackend's values (Video.SettingsGroup.json).
| Enumerator | |
|---|---|
| VideoBackendGStreamer | |
| VideoBackendQtMultimedia | |
Definition at line 76 of file VideoSettings.h.
For RTSP streams only: the others keep VideoReceiver::Config's timeout.
For streams of every transport, despite its name, which is the one settings are stored under. How many other video sources the video view shows in tiles beside the main video; 0 for none. The USB camera to show in a tile while the video source is a stream; empty for none. The tile's USB camera is the main picture, and the stream is in its tile: what a tap on the camera's tile chose. For every recording Qt encodes, a USB camera's or a Qt Multimedia stream's, despite their names, which are the ones the settings are stored under. videoFit's values (Video.SettingsGroup.json).
| Enumerator | |
|---|---|
| VideoFitWidth | |
| VideoFitHeight | |
| VideoFitFill | |
| VideoFitNoCrop | |
Definition at line 66 of file VideoSettings.h.
| VideoSettings::VideoSettings | ( | QObject * | parent = nullptr | ) |
References DEFINE_SETTING_NAME_GROUP, DEFINE_SETTINGFACT, and VideoSettings().
Referenced by VideoSettings().
|
inline |
Definition at line 95 of file VideoSettings.h.
References videoDisabled.
|
inline |
Definition at line 94 of file VideoSettings.h.
References videoSourceMPEGTS.
| void VideoSettings::pruneUnavailableDecoders | ( | ) |
Remove hardware forced-decoder options absent from the running GStreamer registry, and reset the active choice to Default if it was pruned. Call after the video backend has initialized (the registry is empty until then).
Definition at line 210 of file VideoSettings.cc.
References SettingsGroup::_nameToMetaDataMap, VideoBackend::availableDecoderFamilies(), Default, DirectX3D, Fact::enumsChanged(), FactMetaData::enumValues(), VideoBackend::instance(), Intel, NVIDIA, Fact::rawValue(), FactMetaData::removeEnumInfo(), Fact::setRawValue(), VAAPI, VideoToolbox, and Vulkan.
|
inline |
Definition at line 90 of file VideoSettings.h.
References rtspVideoSource(), and videoSourceRTSP.
Referenced by rtspVideoSource().
|
inline |
Definition at line 93 of file VideoSettings.h.
References videoSourceTCP.
|
inline |
Definition at line 91 of file VideoSettings.h.
References videoSourceUDPH264.
|
inline |
Definition at line 92 of file VideoSettings.h.
References videoSourceUDPH265.
|
friend |
Definition at line 17 of file VideoSettings.h.
References VideoSettingsTest.
Referenced by VideoSettingsTest.
|
staticconstexpr |
Definition at line 102 of file VideoSettings.h.
Referenced by disabledVideoSource(), and Vehicle::Vehicle().
|
staticconstexpr |
Definition at line 110 of file VideoSettings.h.
Referenced by APMFirmwarePlugin::initializeVehicle().
|
staticconstexpr |
Definition at line 113 of file VideoSettings.h.
|
staticconstexpr |
Definition at line 114 of file VideoSettings.h.
|
staticconstexpr |
Definition at line 107 of file VideoSettings.h.
Referenced by mpegtsVideoSource().
|
staticconstexpr |
Definition at line 111 of file VideoSettings.h.
|
staticconstexpr |
Definition at line 103 of file VideoSettings.h.
Referenced by rtspVideoSource().
|
staticconstexpr |
Definition at line 106 of file VideoSettings.h.
Referenced by tcpVideoSource().
|
staticconstexpr |
Definition at line 104 of file VideoSettings.h.
Referenced by udp264VideoSource(), and Vehicle::Vehicle().
|
staticconstexpr |
Definition at line 105 of file VideoSettings.h.
Referenced by udp265VideoSource().
|
staticconstexpr |
Definition at line 112 of file VideoSettings.h.