Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qwindowsmediafoundation_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 QWINDOWSMEDIAFOUNDATION_H
5#define QWINDOWSMEDIAFOUNDATION_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/qtmultimediaglobal_p.h>
19#include <QtCore/private/qsystemlibrary_p.h>
20#include <mfapi.h>
21
23
25{
26public:
28
31
32 bool valid() const;
33
34 decltype(&::MFStartup) mfStartup = nullptr;
35 decltype(&::MFShutdown) mfShutdown = nullptr;
36 decltype(&::MFCreateMediaType) mfCreateMediaType = nullptr;
37 decltype(&::MFCreateMemoryBuffer) mfCreateMemoryBuffer = nullptr;
38 decltype(&::MFCreateSample) mfCreateSample = nullptr;
39
40private:
41 QSystemLibrary m_mfplat{ QStringLiteral("Mfplat.dll") };
42 bool m_valid = false;
43};
44
46{
47 Q_DISABLE_COPY_MOVE(QMFRuntimeInit)
48public:
51
52private:
54 HRESULT m_initResult;
55};
56
58
59#endif // QWINDOWSMEDIAFOUNDATION_H
QMFRuntimeInit(QWindowsMediaFoundation *wmf)
static QWindowsMediaFoundation * instance()
decltype(&::MFCreateMediaType) mfCreateMediaType
decltype(&::MFCreateMemoryBuffer) mfCreateMemoryBuffer
decltype(&::MFStartup) mfStartup
decltype(&::MFCreateSample) mfCreateSample
decltype(&::MFShutdown) mfShutdown
Combined button and popup list for selecting options.
#define QStringLiteral(str)
long HRESULT