QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
VideoSettings Class Reference

#include <VideoSettings.h>

Inheritance diagram for VideoSettings:
Collaboration diagram for VideoSettings:

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

Detailed Description

Definition at line 11 of file VideoSettings.h.

Member Enumeration Documentation

◆ VideoBackendChoice

videoBackend's values (Video.SettingsGroup.json).

Enumerator
VideoBackendGStreamer 
VideoBackendQtMultimedia 

Definition at line 76 of file VideoSettings.h.

◆ VideoFit

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.

Constructor & Destructor Documentation

◆ VideoSettings()

VideoSettings::VideoSettings ( QObject * parent = nullptr)

Member Function Documentation

◆ disabledVideoSource()

QString VideoSettings::disabledVideoSource ( )
inline

Definition at line 95 of file VideoSettings.h.

References videoDisabled.

◆ mpegtsVideoSource()

QString VideoSettings::mpegtsVideoSource ( )
inline

Definition at line 94 of file VideoSettings.h.

References videoSourceMPEGTS.

◆ pruneUnavailableDecoders()

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.

◆ rtspVideoSource()

QString VideoSettings::rtspVideoSource ( )
inline

Definition at line 90 of file VideoSettings.h.

References rtspVideoSource(), and videoSourceRTSP.

Referenced by rtspVideoSource().

◆ tcpVideoSource()

QString VideoSettings::tcpVideoSource ( )
inline

Definition at line 93 of file VideoSettings.h.

References videoSourceTCP.

◆ udp264VideoSource()

QString VideoSettings::udp264VideoSource ( )
inline

Definition at line 91 of file VideoSettings.h.

References videoSourceUDPH264.

◆ udp265VideoSource()

QString VideoSettings::udp265VideoSource ( )
inline

Definition at line 92 of file VideoSettings.h.

References videoSourceUDPH265.

◆ VideoSettingsTest

friend class VideoSettingsTest
friend

Definition at line 17 of file VideoSettings.h.

References VideoSettingsTest.

Referenced by VideoSettingsTest.

Member Data Documentation

◆ videoDisabled

const char* VideoSettings::videoDisabled = QT_TRANSLATE_NOOP("VideoSettings", "Video Stream Disabled")
staticconstexpr

Definition at line 102 of file VideoSettings.h.

Referenced by disabledVideoSource(), and Vehicle::Vehicle().

◆ videoSource3DRSolo

const char* VideoSettings::videoSource3DRSolo = QT_TRANSLATE_NOOP("VideoSettings", "3DR Solo (requires restart)")
staticconstexpr

Definition at line 110 of file VideoSettings.h.

Referenced by APMFirmwarePlugin::initializeVehicle().

◆ videoSourceHerelinkAirUnit

const char* VideoSettings::videoSourceHerelinkAirUnit = QT_TRANSLATE_NOOP("VideoSettings", "Herelink AirUnit")
staticconstexpr

Definition at line 113 of file VideoSettings.h.

◆ videoSourceHerelinkHotspot

const char* VideoSettings::videoSourceHerelinkHotspot = QT_TRANSLATE_NOOP("VideoSettings", "Herelink Hotspot")
staticconstexpr

Definition at line 114 of file VideoSettings.h.

◆ videoSourceMPEGTS

const char* VideoSettings::videoSourceMPEGTS = QT_TRANSLATE_NOOP("VideoSettings", "MPEG-TS Video Stream")
staticconstexpr

Definition at line 107 of file VideoSettings.h.

Referenced by mpegtsVideoSource().

◆ videoSourceParrotDiscovery

const char* VideoSettings::videoSourceParrotDiscovery = QT_TRANSLATE_NOOP("VideoSettings", "Parrot Discovery")
staticconstexpr

Definition at line 111 of file VideoSettings.h.

◆ videoSourceRTSP

const char* VideoSettings::videoSourceRTSP = QT_TRANSLATE_NOOP("VideoSettings", "RTSP Video Stream")
staticconstexpr

Definition at line 103 of file VideoSettings.h.

Referenced by rtspVideoSource().

◆ videoSourceTCP

const char* VideoSettings::videoSourceTCP = QT_TRANSLATE_NOOP("VideoSettings", "TCP-MPEG2 Video Stream")
staticconstexpr

Definition at line 106 of file VideoSettings.h.

Referenced by tcpVideoSource().

◆ videoSourceUDPH264

const char* VideoSettings::videoSourceUDPH264 = QT_TRANSLATE_NOOP("VideoSettings", "UDP h.264 Video Stream")
staticconstexpr

Definition at line 104 of file VideoSettings.h.

Referenced by udp264VideoSource(), and Vehicle::Vehicle().

◆ videoSourceUDPH265

const char* VideoSettings::videoSourceUDPH265 = QT_TRANSLATE_NOOP("VideoSettings", "UDP h.265 Video Stream")
staticconstexpr

Definition at line 105 of file VideoSettings.h.

Referenced by udp265VideoSource().

◆ videoSourceYuneecMantisG

const char* VideoSettings::videoSourceYuneecMantisG = QT_TRANSLATE_NOOP("VideoSettings", "Yuneec Mantis G")
staticconstexpr

Definition at line 112 of file VideoSettings.h.


The documentation for this class was generated from the following files: