QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
UVCDevices.h
Go to the documentation of this file.
1#pragma once
2
3#include <functional>
4
5#include <QtCore/QString>
6#include <QtCore/qcontainerfwd.h>
7#include <QtMultimedia/QCameraDevice>
8#include <QtMultimedia/QVideoFrameFormat>
9
10class QObject;
11
14namespace UVCDevices {
15
17QStringList deviceNames();
19QCameraDevice device(const QString& description);
20bool deviceExists(const QString& description);
21
23QString pixelFormatName(QVideoFrameFormat::PixelFormat pixelFormat);
25QString formatName(const QCameraFormat& format);
28QStringList formatNames(const QCameraDevice& device);
30QCameraFormat format(const QCameraDevice& device, const QString& name);
33void requestPermission(QObject* context, std::function<void()> granted);
34
35} // namespace UVCDevices
QStringList formatNames(const QCameraDevice &device)
Definition UVCDevices.cc:60
QStringList deviceNames()
Descriptions of the attached cameras.
Definition UVCDevices.cc:12
void requestPermission(QObject *context, std::function< void()> granted)
Definition UVCDevices.cc:89
QString formatName(const QCameraFormat &format)
"1920x1080 30 fps MJPEG": a camera format as settings store it and menus show it.
Definition UVCDevices.cc:51
QCameraDevice device(const QString &description)
The attached camera of description description; a null device when none is.
Definition UVCDevices.cc:21
QString pixelFormatName(QVideoFrameFormat::PixelFormat pixelFormat)
"MJPEG", "YUYV", "NV12", ...; empty for an invalid format.
Definition UVCDevices.cc:38
QCameraFormat format(const QCameraDevice &device, const QString &name)
The format of device that formatName() calls name; a null format for none.
Definition UVCDevices.cc:78
bool deviceExists(const QString &description)
Definition UVCDevices.cc:33