Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qgstreamervideodevices_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QGSTREAMERMEDIADEVICES_H
5#define QGSTREAMERMEDIADEVICES_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <private/qplatformvideodevices_p.h>
19#include <gst/gst.h>
20#include <qaudiodevice.h>
21#include <vector>
22
24
26{
27public:
29
30 QList<QCameraDevice> videoDevices() const override;
31 GstDevice *videoDevice(const QByteArray &id) const;
32
33 void addDevice(GstDevice *);
34 void removeDevice(GstDevice *);
35
36private:
37 struct QGstDevice {
38 GstDevice *gstDevice = nullptr;
40 };
41
42 quint64 m_idGenerator = 0;
43 std::vector<QGstDevice> m_videoSources;
44};
45
47
48#endif
\inmodule QtCore
Definition qbytearray.h:57
GstDevice * videoDevice(const QByteArray &id) const
QList< QCameraDevice > videoDevices() const override
Definition qlist.h:74
Combined button and popup list for selecting options.
GLenum GLuint id
[7]
unsigned long long quint64
Definition qtypes.h:56