Qt 6.x
The Qt SDK
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/qt_windows.h>
20#include <QtCore/private/qsystemlibrary_p.h>
21#include <memory>
22#include <mfapi.h>
23
24struct IMFMediaType;
25
27
29{
30public:
32
34
35 decltype(&::MFCreateMediaType) mfCreateMediaType = nullptr;
36 decltype(&::MFCreateMemoryBuffer) mfCreateMemoryBuffer = nullptr;
37 decltype(&::MFCreateSample) mfCreateSample = nullptr;
38
39private:
40 QWindowsMediaFoundation() : m_mfplat(QStringLiteral("Mfplat.dll")) {}
41
42 QSystemLibrary m_mfplat;
43};
44
46
47#endif // QWINDOWSMEDIAFOUNDATION_H
static QWindowsMediaFoundation * instance()
decltype(&::MFCreateMediaType) mfCreateMediaType
decltype(&::MFCreateMemoryBuffer) mfCreateMemoryBuffer
decltype(&::MFCreateSample) mfCreateSample
Combined button and popup list for selecting options.
#define QStringLiteral(str)