QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
UVCReceiver.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtMultimedia/QCameraDevice>
4
6
7class QCamera;
8class QImageCapture;
9class QQuickItem;
10class QMediaDevices;
11
13{
14 Q_OBJECT
15
16public:
17 explicit UVCReceiver(QObject *parent = nullptr);
19
20 static bool enabled();
21 static QCameraDevice findCameraDevice(const QString &cameraId);
22 static void checkPermission();
23 static QString getSourceId();
24 static bool deviceExists(const QString &device);
25 static QStringList getDeviceNameList();
26
27public slots:
28 Q_INVOKABLE void adjustAspectRatio();
29
30private:
31 QCamera *_camera = nullptr;
32 QImageCapture *_imageCapture = nullptr;
33 QMediaDevices *_mediaDevices = nullptr;
34};
static QCameraDevice findCameraDevice(const QString &cameraId)
static bool enabled()
static bool deviceExists(const QString &device)
static QString getSourceId()
Q_INVOKABLE void adjustAspectRatio()
static QStringList getDeviceNameList()
static void checkPermission()