Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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/qcominitializer_p.h>
20#include <QtMultimedia/private/qwindowsmediafoundation_p.h>
21
22QT_BEGIN_NAMESPACE
23
24LRESULT QT_WIN_CALLBACK deviceNotificationWndProc(HWND, UINT, WPARAM, LPARAM);
25
27{
28public:
31
33protected:
34 QList<QCameraDevice> findVideoInputs() const override;
35
36private:
37 QComInitializer m_comInitializer;
38 HWND m_videoDeviceMsgWindow = nullptr;
39 HDEVNOTIFY m_videoDeviceNotification = nullptr;
40
41 QWindowsMediaFoundation *m_wmf{ QWindowsMediaFoundation::instance() };
42
44};
45
46
47QT_END_NAMESPACE
48
49#endif
Q_MULTIMEDIA_EXPORT ~QWindowsVideoDevices()
QList< QCameraDevice > findVideoInputs() const override
static QString getString(IMFActivate *device, const IID &id)
static std::optional< QCameraFormat > createCameraFormat(IMFMediaType *mediaFormat)
static QList< QCameraDevice > readCameraDevices(const QWindowsMediaFoundation &wmf, IMFAttributes *attr)
static std::optional< QCameraDevice > createCameraDevice(const QWindowsMediaFoundation &wmf, IMFActivate *device)