QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
VideoSettings.cc File Reference
#include "VideoSettings.h"
#include <QtCore/QVariantList>
#include <QtMultimedia/QMediaDevices>
#include "UVCDevices.h"
#include "VideoBackend.h"
Include dependency graph for VideoSettings.cc:

Go to the source code of this file.

Macros

#define DECLARE_VIDEO_SETTINGSFACT_VISIBLE(NAME, VISIBLE)

Functions

 DECLARE_SETTINGGROUP (Video, "Video")
 DECLARE_SETTINGSFACT_NO_FUNC (VideoSettings, videoSource)
 DECLARE_SETTINGSFACT_NO_FUNC (VideoSettings, uvcTileCamera)
 DECLARE_VIDEO_SETTINGSFACT_VISIBLE (forceCpuVideoPath, VideoBackend::instance().capabilities().gpuVideoPath) void VideoSettings

Macro Definition Documentation

◆ DECLARE_VIDEO_SETTINGSFACT_VISIBLE

#define DECLARE_VIDEO_SETTINGSFACT_VISIBLE ( NAME,
VISIBLE )
Value:
{ \
if (!_##NAME##Fact) { \
_##NAME##Fact = _createSettingsFact(NAME##Name); \
_##NAME##Fact->setUserVisible(VISIBLE); \
} \
return _##NAME##Fact; \
}
#define DECLARE_SETTINGSFACT_NO_FUNC(CLASS, NAME)
A Fact is used to hold a single value within the system.
Definition Fact.h:15

Definition at line 150 of file VideoSettings.cc.

Referenced by DECLARE_VIDEO_SETTINGSFACT_VISIBLE().

Function Documentation

◆ DECLARE_SETTINGGROUP()

DECLARE_SETTINGGROUP ( Video ,
"Video"  )

Definition at line 23 of file VideoSettings.cc.

◆ DECLARE_SETTINGSFACT_NO_FUNC() [1/2]

DECLARE_SETTINGSFACT_NO_FUNC ( VideoSettings ,
uvcTileCamera  )

Definition at line 137 of file VideoSettings.cc.

References Fact::rawValueChanged().

◆ DECLARE_SETTINGSFACT_NO_FUNC() [2/2]

DECLARE_SETTINGSFACT_NO_FUNC ( VideoSettings ,
videoSource  )

Definition at line 123 of file VideoSettings.cc.

References DECLARE_SETTINGSFACT_NO_FUNC, and Fact::rawValueChanged().

◆ DECLARE_VIDEO_SETTINGSFACT_VISIBLE()

DECLARE_VIDEO_SETTINGSFACT_VISIBLE ( forceCpuVideoPath ,
VideoBackend::instance().capabilities(). gpuVideoPath )