|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <VideoManager.h>
Inheritance diagram for VideoManager:
Collaboration diagram for VideoManager:Signals | |
| void | aspectRatioChanged () |
| void | autoStreamConfiguredChanged () |
| void | decodingChanged () |
| void | fullScreenChanged () |
| void | hasVideoChanged () |
| void | imageFileChanged (const QString &filename) |
| void | isAutoStreamChanged () |
| void | isStreamSourceChanged () |
| void | isUvcChanged () |
| void | recordingChanged (bool recording) |
| void | recordingStarted (const QString &filename) |
| void | streamingChanged () |
| void | uvcVideoSourceIDChanged () |
| void | videoSizeChanged () |
Public Member Functions | |
| VideoManager (QObject *parent=nullptr) | |
| ~VideoManager () | |
| Q_INVOKABLE void | grabImage (const QString &imageFile=QString()) |
| Q_INVOKABLE void | startRecording (const QString &videoFile=QString()) |
| Q_INVOKABLE void | startVideo () |
| Q_INVOKABLE void | stopRecording () |
| Q_INVOKABLE void | stopVideo () |
| void | init (QQuickWindow *mainWindow) |
| void | startVideoBackendInit () |
| bool | waitForVideoBackendReady (std::chrono::milliseconds timeout=std::chrono::minutes(1)) |
| void | cleanup () |
| bool | autoStreamConfigured () const |
| bool | decoding () const |
| bool | fullScreen () const |
| bool | hasThermal () const |
| bool | hasVideo () const |
| bool | isStreamSource () const |
| bool | isUvc () const |
| bool | recording () const |
| bool | streaming () const |
| double | aspectRatio () const |
| double | hfov () const |
| double | thermalAspectRatio () const |
| double | thermalHfov () const |
| QSize | videoSize () const |
| QString | imageFile () const |
| QString | uvcVideoSourceID () const |
| void | setfullScreen (bool on) |
Static Public Member Functions | |
| static VideoManager * | instance () |
Friends | |
| class | VideoManagerInitTest |
Definition at line 23 of file VideoManager.h.
|
explicit |
Definition at line 45 of file VideoManager.cc.
References VideoBackend::disabledForUnitTests(), and VideoBackend::needsAsyncInit().
| VideoManager::~VideoManager | ( | ) |
Definition at line 62 of file VideoManager.cc.
| double VideoManager::aspectRatio | ( | ) | const |
Definition at line 408 of file VideoManager.cc.
References QGCVideoStreamInfo::aspectRatio(), QGCVideoStreamInfo::isThermal(), VideoReceiver::isThermal(), and VideoReceiver::videoStreamInfo().
|
signal |
Referenced by init().
| bool VideoManager::autoStreamConfigured | ( | ) | const |
Definition at line 577 of file VideoManager.cc.
References QGCVideoStreamInfo::isThermal(), VideoReceiver::isThermal(), QGCVideoStreamInfo::uri(), and VideoReceiver::videoStreamInfo().
Referenced by isStreamSource().
|
signal |
Referenced by init().
| void VideoManager::cleanup | ( | ) |
Definition at line 308 of file VideoManager.cc.
References QGCCorePlugin::instance(), QGCCorePlugin::releaseVideoSink(), and VideoReceiver::sink().
Referenced by QGCApplication::shutdown().
|
inline |
Definition at line 66 of file VideoManager.h.
Referenced by SimulatedCameraControl::hasVideoStream().
|
signal |
Referenced by SimulatedCameraControl::SimulatedCameraControl().
|
inline |
Definition at line 67 of file VideoManager.h.
|
signal |
Referenced by setfullScreen().
| void VideoManager::grabImage | ( | const QString & | imageFile = QString() | ) |
Definition at line 391 of file VideoManager.cc.
References SettingsManager::appSettings(), imageFile(), imageFileChanged(), SettingsManager::instance(), AppSettings::photoSavePath(), and VideoReceiver::takeScreenshot().
Referenced by VehicleCameraControl::handleCameraCaptureStatus(), and VehicleCameraControl::takePhoto().
| bool VideoManager::hasThermal | ( | ) | const |
Definition at line 461 of file VideoManager.cc.
References QGCVideoStreamInfo::isThermal(), VideoReceiver::isThermal(), and VideoReceiver::videoStreamInfo().
| bool VideoManager::hasVideo | ( | ) | const |
Definition at line 473 of file VideoManager.cc.
References VideoSettings::streamConfigured().
Referenced by SimulatedCameraControl::capturesVideo(), isUvc(), and startVideo().
|
signal |
Referenced by SimulatedCameraControl::SimulatedCameraControl().
| double VideoManager::hfov | ( | ) | const |
Definition at line 437 of file VideoManager.cc.
References QGCVideoStreamInfo::hfov(), QGCVideoStreamInfo::isThermal(), VideoReceiver::isThermal(), and VideoReceiver::videoStreamInfo().
|
inline |
Definition at line 79 of file VideoManager.h.
Referenced by grabImage().
|
signal |
Referenced by grabImage().
| void VideoManager::init | ( | QQuickWindow * | mainWindow | ) |
Definition at line 162 of file VideoManager.cc.
References MultiVehicleManager::activeVehicleChanged(), aspectRatioChanged(), autoStreamConfiguredChanged(), VideoBackend::bindDebugLevelFact(), SettingsManager::instance(), MultiVehicleManager::instance(), VideoBackend::needsAsyncInit(), VideoBackend::onMainWindowReady(), Fact::rawValueChanged(), and startVideoBackendInit().
|
static |
Definition at line 67 of file VideoManager.cc.
Referenced by VehicleCameraControl::_initWhenReady(), SimulatedCameraControl::capturesVideo(), SimulatedCameraControl::captureVideoState(), VehicleCameraControl::captureVideoState(), VehicleCameraControl::handleCameraCaptureStatus(), SimulatedCameraControl::hasVideoStream(), QGCApplication::shutdown(), SimulatedCameraControl::SimulatedCameraControl(), SimulatedCameraControl::startVideoRecording(), VehicleCameraControl::startVideoRecording(), SimulatedCameraControl::stopVideoRecording(), VehicleCameraControl::stopVideoRecording(), VideoSettings::streamConfigured(), and VehicleCameraControl::takePhoto().
|
signal |
| bool VideoManager::isStreamSource | ( | ) | const |
Definition at line 497 of file VideoManager.cc.
References autoStreamConfigured(), VideoSettings::videoSource3DRSolo, VideoSettings::videoSourceHerelinkAirUnit, VideoSettings::videoSourceHerelinkHotspot, VideoSettings::videoSourceMPEGTS, VideoSettings::videoSourceParrotDiscovery, VideoSettings::videoSourceRTSP, VideoSettings::videoSourceTCP, VideoSettings::videoSourceUDPH264, VideoSettings::videoSourceUDPH265, and VideoSettings::videoSourceYuneecMantisG.
|
signal |
| bool VideoManager::isUvc | ( | ) | const |
Definition at line 478 of file VideoManager.cc.
References UVCReceiver::enabled(), and hasVideo().
|
signal |
|
inline |
Definition at line 72 of file VideoManager.h.
|
signal |
|
signal |
| void VideoManager::setfullScreen | ( | bool | on | ) |
Definition at line 483 of file VideoManager.cc.
References VehicleLinkManager::communicationLost(), fullScreenChanged(), and Vehicle::vehicleLinkManager().
| void VideoManager::startRecording | ( | const QString & | videoFile = QString() | ) |
Definition at line 352 of file VideoManager.cc.
References SettingsManager::appSettings(), SettingsManager::instance(), VideoReceiver::isValidFileFormat(), kFileExtension, VideoReceiver::name(), QGC::showAppMessage(), VideoReceiver::started(), VideoReceiver::startRecording(), and AppSettings::videoSavePath().
Referenced by SimulatedCameraControl::startVideoRecording(), and VehicleCameraControl::startVideoRecording().
| void VideoManager::startVideo | ( | ) |
Definition at line 979 of file VideoManager.cc.
References hasVideo().
| void VideoManager::startVideoBackendInit | ( | ) |
Definition at line 72 of file VideoManager.cc.
References VideoBackend::initialize(), VideoBackend::needsAsyncInit(), and VideoBackend::prepareEnvironment().
Referenced by init(), and waitForVideoBackendReady().
| void VideoManager::stopRecording | ( | ) |
Definition at line 384 of file VideoManager.cc.
References VideoReceiver::stopRecording().
Referenced by SimulatedCameraControl::stopVideoRecording(), and VehicleCameraControl::stopVideoRecording().
| void VideoManager::stopVideo | ( | ) |
Definition at line 820 of file VideoManager.cc.
|
inline |
Definition at line 73 of file VideoManager.h.
|
signal |
| double VideoManager::thermalAspectRatio | ( | ) | const |
Definition at line 425 of file VideoManager.cc.
References QGCVideoStreamInfo::aspectRatio(), QGCVideoStreamInfo::isThermal(), VideoReceiver::isThermal(), and VideoReceiver::videoStreamInfo().
| double VideoManager::thermalHfov | ( | ) | const |
Definition at line 449 of file VideoManager.cc.
References QGCVideoStreamInfo::hfov(), QGCVideoStreamInfo::isThermal(), VideoReceiver::isThermal(), and VideoReceiver::videoStreamInfo().
|
inline |
Definition at line 80 of file VideoManager.h.
|
signal |
|
inline |
Definition at line 78 of file VideoManager.h.
|
signal |
| bool VideoManager::waitForVideoBackendReady | ( | std::chrono::milliseconds | timeout = std::chrono::minutes(1) | ) |
Definition at line 103 of file VideoManager.cc.
References VideoBackend::needsAsyncInit(), and startVideoBackendInit().
|
friend |
Definition at line 47 of file VideoManager.h.