|
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 | startGStreamerInit () |
| bool | waitForGStreamerInit (int timeoutMs=60000) |
| 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 () |
| static bool | gstreamerEnabled () |
| static bool | qtmultimediaEnabled () |
| static bool | uvcEnabled () |
Friends | |
| class | VideoManagerInitTest |
Definition at line 18 of file VideoManager.h.
|
explicit |
Definition at line 56 of file VideoManager.cc.
| VideoManager::~VideoManager | ( | ) |
Definition at line 73 of file VideoManager.cc.
| double VideoManager::aspectRatio | ( | ) | const |
Definition at line 399 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 583 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 299 of file VideoManager.cc.
References QGCCorePlugin::instance(), QGCCorePlugin::releaseVideoSink(), and VideoReceiver::sink().
Referenced by QGCApplication::shutdown().
|
inline |
Definition at line 64 of file VideoManager.h.
Referenced by SimulatedCameraControl::hasVideoStream().
|
signal |
Referenced by SimulatedCameraControl::SimulatedCameraControl().
|
inline |
Definition at line 65 of file VideoManager.h.
|
signal |
Referenced by setfullScreen().
| void VideoManager::grabImage | ( | const QString & | imageFile = QString() | ) |
Definition at line 382 of file VideoManager.cc.
References SettingsManager::appSettings(), imageFile(), imageFileChanged(), SettingsManager::instance(), AppSettings::photoSavePath(), and VideoReceiver::takeScreenshot().
Referenced by VehicleCameraControl::handleCameraCaptureStatus(), and VehicleCameraControl::takePhoto().
|
static |
Definition at line 470 of file VideoManager.cc.
| bool VideoManager::hasThermal | ( | ) | const |
Definition at line 448 of file VideoManager.cc.
References QGCVideoStreamInfo::isThermal(), VideoReceiver::isThermal(), and VideoReceiver::videoStreamInfo().
| bool VideoManager::hasVideo | ( | ) | const |
Definition at line 460 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 424 of file VideoManager.cc.
References QGCVideoStreamInfo::hfov(), QGCVideoStreamInfo::isThermal(), VideoReceiver::isThermal(), and VideoReceiver::videoStreamInfo().
|
inline |
Definition at line 77 of file VideoManager.h.
Referenced by grabImage().
|
signal |
Referenced by grabImage().
| void VideoManager::init | ( | QQuickWindow * | mainWindow | ) |
Definition at line 165 of file VideoManager.cc.
References MultiVehicleManager::activeVehicleChanged(), SettingsManager::appSettings(), aspectRatioChanged(), autoStreamConfiguredChanged(), QGCRhiCapture::connectWindow(), SettingsManager::instance(), MultiVehicleManager::instance(), Fact::rawValueChanged(), GStreamer::setDebugLevel(), and startGStreamerInit().
|
static |
Definition at line 78 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 503 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 465 of file VideoManager.cc.
References hasVideo(), and uvcEnabled().
|
signal |
|
static |
Definition at line 484 of file VideoManager.cc.
References QtMultimediaReceiver::enabled().
|
inline |
Definition at line 70 of file VideoManager.h.
|
signal |
|
signal |
| void VideoManager::setfullScreen | ( | bool | on | ) |
Definition at line 489 of file VideoManager.cc.
References VehicleLinkManager::communicationLost(), fullScreenChanged(), and Vehicle::vehicleLinkManager().
| void VideoManager::startGStreamerInit | ( | ) |
Definition at line 83 of file VideoManager.cc.
References GStreamer::initialize(), and GStreamer::prepareEnvironment().
Referenced by init(), and waitForGStreamerInit().
| void VideoManager::startRecording | ( | const QString & | videoFile = QString() | ) |
Definition at line 343 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 1002 of file VideoManager.cc.
References hasVideo().
| void VideoManager::stopRecording | ( | ) |
Definition at line 375 of file VideoManager.cc.
References VideoReceiver::stopRecording().
Referenced by SimulatedCameraControl::stopVideoRecording(), and VehicleCameraControl::stopVideoRecording().
| void VideoManager::stopVideo | ( | ) |
Definition at line 814 of file VideoManager.cc.
|
inline |
Definition at line 71 of file VideoManager.h.
|
signal |
| double VideoManager::thermalAspectRatio | ( | ) | const |
Definition at line 412 of file VideoManager.cc.
References QGCVideoStreamInfo::aspectRatio(), QGCVideoStreamInfo::isThermal(), VideoReceiver::isThermal(), and VideoReceiver::videoStreamInfo().
| double VideoManager::thermalHfov | ( | ) | const |
Definition at line 436 of file VideoManager.cc.
References QGCVideoStreamInfo::hfov(), QGCVideoStreamInfo::isThermal(), VideoReceiver::isThermal(), and VideoReceiver::videoStreamInfo().
|
static |
Definition at line 479 of file VideoManager.cc.
References UVCReceiver::enabled().
Referenced by isUvc().
|
inline |
Definition at line 78 of file VideoManager.h.
|
signal |
|
inline |
Definition at line 76 of file VideoManager.h.
|
signal |
| bool VideoManager::waitForGStreamerInit | ( | int | timeoutMs = 60000 | ) |
Definition at line 110 of file VideoManager.cc.
References startGStreamerInit().
|
friend |
Definition at line 45 of file VideoManager.h.