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
23
QT_BEGIN_NAMESPACE
24
25
class
QGstreamerVideoDevices
:
public
QPlatformVideoDevices
26
{
27
public
:
28
QGstreamerVideoDevices
(
QPlatformMediaIntegration
*integration);
29
30
QList<QCameraDevice>
videoDevices
()
const override
;
31
GstDevice *
videoDevice
(
const
QByteArray
&
id
)
const
;
32
33
void
addDevice
(GstDevice *);
34
void
removeDevice
(GstDevice *);
35
36
private
:
37
struct
QGstDevice {
38
GstDevice *gstDevice =
nullptr
;
39
QByteArray
id
;
40
};
41
42
quint64
m_idGenerator = 0;
43
std::vector<QGstDevice> m_videoSources;
44
};
45
46
QT_END_NAMESPACE
47
48
#endif
QByteArray
\inmodule QtCore
Definition
qbytearray.h:57
QGstreamerVideoDevices
Definition
qgstreamervideodevices_p.h:26
QGstreamerVideoDevices::removeDevice
void removeDevice(GstDevice *)
Definition
qgstreamervideodevices.cpp:130
QGstreamerVideoDevices::videoDevice
GstDevice * videoDevice(const QByteArray &id) const
Definition
qgstreamervideodevices.cpp:143
QGstreamerVideoDevices::videoDevices
QList< QCameraDevice > videoDevices() const override
Definition
qgstreamervideodevices.cpp:64
QGstreamerVideoDevices::addDevice
void addDevice(GstDevice *)
Definition
qgstreamervideodevices.cpp:120
QList
Definition
qlist.h:74
QPlatformMediaIntegration
Definition
qplatformmediaintegration_p.h:56
QPlatformVideoDevices
Definition
qplatformvideodevices_p.h:26
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
qaudiodevice.h
id
GLenum GLuint id
[7]
Definition
qopengles2ext.h:151
quint64
unsigned long long quint64
Definition
qtypes.h:56
qtmultimedia
src
plugins
multimedia
gstreamer
qgstreamervideodevices_p.h
Generated by
1.9.7