Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qwindowsvideodevices_p.h
Go to the documentation of this file.
1
// Copyright (C) 2022 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
QWINDOWSVIDEODEVICES_H
5
#
define
QWINDOWSVIDEODEVICES_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
<
QtMultimedia
/
private
/
qplatformvideodevices_p
.
h
>
19
#
include
<
QtMultimedia
/
private
/
qwindowsmediafoundation_p
.
h
>
20
21
QT_BEGIN_NAMESPACE
22
23
LRESULT QT_WIN_CALLBACK deviceNotificationWndProc(HWND, UINT, WPARAM, LPARAM);
24
25
class
QWindowsVideoDevices
:
public
QPlatformVideoDevices
26
{
27
public
:
28
Q_MULTIMEDIA_EXPORT
QWindowsVideoDevices
(
QPlatformMediaIntegration
*
integration
);
29
Q_MULTIMEDIA_EXPORT
~
QWindowsVideoDevices
();
30
31
using
QPlatformVideoDevices
::
onVideoInputsChanged
;
32
protected
:
33
QList
<
QCameraDevice
>
findVideoInputs
()
const
override
;
34
35
private
:
36
HWND m_videoDeviceMsgWindow =
nullptr
;
37
HDEVNOTIFY m_videoDeviceNotification =
nullptr
;
38
39
QWindowsMediaFoundation *m_wmf{
QWindowsMediaFoundation
::
instance
() };
40
41
friend
LRESULT
QT_WIN_CALLBACK
deviceNotificationWndProc
(
HWND
,
UINT
,
WPARAM
,
LPARAM
);
42
};
43
44
45
QT_END_NAMESPACE
46
47
#
endif
QWindowsVideoDevices
Definition
qwindowsvideodevices_p.h:26
QWindowsVideoDevices::~QWindowsVideoDevices
Q_MULTIMEDIA_EXPORT ~QWindowsVideoDevices()
Definition
qwindowsvideodevices.cpp:114
QWindowsVideoDevices::findVideoInputs
QList< QCameraDevice > findVideoInputs() const override
Definition
qwindowsvideodevices.cpp:199
QT_BEGIN_NAMESPACE::createMessageOnlyWindow
HWND createMessageOnlyWindow()
Definition
qwindowsvideodevices.cpp:62
QT_BEGIN_NAMESPACE::getWindowsClassName
LPCWSTR getWindowsClassName()
Definition
qwindowsvideodevices.cpp:49
getString
static QString getString(IMFActivate *device, const IID &id)
Definition
qwindowsvideodevices.cpp:126
readCameraDevices
static QList< QCameraDevice > readCameraDevices(const QWindowsMediaFoundation &wmf, IMFAttributes *attr)
Definition
qwindowsvideodevices.cpp:177
createCameraDevice
static std::optional< QCameraDevice > createCameraDevice(const QWindowsMediaFoundation &wmf, IMFActivate *device)
Definition
qwindowsvideodevices.cpp:138
qtmultimedia
src
multimedia
windows
qwindowsvideodevices_p.h
Generated on
for Qt by
1.18.0