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
qwindowsmultimediautils_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 QWINDOWSMULTIMEDIATUTILS_P_H
5#define QWINDOWSMULTIMEDIATUTILS_P_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/qmediaformat.h>
19#include <QtMultimedia/qvideoframeformat.h>
20#include <QtMultimedia/private/qtmultimediaglobal_p.h>
21
22#include <guiddef.h>
23
24#include <optional>
25
26struct IMFMediaType;
27
28QT_BEGIN_NAMESPACE
29
30class QCameraFormat;
31
32namespace QWMF {
33
35
38
41
44
45Q_MULTIMEDIA_EXPORT GUID videoFormatForCodec(QMediaFormat::VideoCodec codec);
47
48Q_MULTIMEDIA_EXPORT GUID audioFormatForCodec(QMediaFormat::AudioCodec codec);
50
53
56
57} // namespace QWMF
58
59QT_END_NAMESPACE
60
61#endif
GUID audioFormatForCodec(QMediaFormat::AudioCodec codec)
QVideoFrameFormat::ColorRange colorRangeFromNominalRange(UINT32 nominalRange)
QMediaFormat::VideoCodec codecForVideoFormat(GUID format)
QMediaFormat::AudioCodec codecForAudioFormat(GUID format)
QVideoFrameFormat::PixelFormat pixelFormatFromMediaSubtype(const GUID &subtype)
std::optional< GUID > containerForVideoFileFormat(QMediaFormat::FileFormat format)
GUID videoFormatForCodec(QMediaFormat::VideoCodec codec)
QVideoFrameFormat::ColorSpace colorSpaceFromMatrix(UINT32 yuvMatrix)
std::optional< QCameraFormat > cameraFormatFromMediaType(IMFMediaType *mediaFormat)
std::optional< GUID > containerForAudioFileFormat(QMediaFormat::FileFormat format)