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
removed_api.cpp
Go to the documentation of this file.
1// Copyright (C) 2024 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#define QT_MULTIMEDIA_BUILD_REMOVED_API
5
6#include <QtMultimedia/qtmultimediaglobal.h>
7
8#if QT_MULTIMEDIA_REMOVED_SINCE(6, 10) && !defined(Q_QDOC)
9
10#include <QtCore/qdebug.h>
11
12#include "qaudio.h"
13
14QT_BEGIN_NAMESPACE
15
16namespace QAudio {
17float convertVolume(float volume, VolumeScale from, VolumeScale to)
18{
19 return QtAudio::convertVolume(volume, from, to);
20}
21} // namespace QAudio
22
23QT_END_NAMESPACE
24
25#endif // QT_MULTIMEDIA_REMOVED_SINCE(6, 10) && !defined(Q_QDOC)
26
27#if QT_MULTIMEDIA_REMOVED_SINCE(6, 11) && !defined(Q_QDOC)
28
29# include <QtMultimedia/qvideoframeformat.h>
30# include <QtMultimedia/private/qmultimedia_enum_to_string_converter_p.h>
31
32QT_BEGIN_NAMESPACE
33
34// clang-format off
35
36# ifndef QT_NO_DEBUG_STREAM
37# if QT_DEPRECATED_SINCE(6, 4)
38QT_MM_MAKE_STRING_RESOLVER(QVideoFrameFormat::YCbCrColorSpace, QtMultimediaPrivate::EnumName,
39 (QVideoFrameFormat::YCbCr_Undefined, "YCbCr_Undefined")
40 (QVideoFrameFormat::YCbCr_BT601, "YCbCr_BT601")
41 (QVideoFrameFormat::YCbCr_BT709, "YCbCr_BT709")
42 (QVideoFrameFormat::YCbCr_xvYCC601, "YCbCr_xvYCC601")
43 (QVideoFrameFormat::YCbCr_xvYCC709, "YCbCr_xvYCC709")
44 (QVideoFrameFormat::YCbCr_JPEG, "YCbCr_JPEG")
45 (QVideoFrameFormat::YCbCr_BT2020, "YCbCr_BT2020")
46 );
47QT_MM_DEFINE_QDEBUG_ENUM(QVideoFrameFormat::YCbCrColorSpace);
48# endif // QT_DEPRECATED_SINCE(6, 4)
49
50QT_MM_MAKE_STRING_RESOLVER(QVideoFrameFormat::ColorSpace, QtMultimediaPrivate::EnumName,
51 (QVideoFrameFormat::ColorSpace_BT601, "ColorSpace_BT601")
52 (QVideoFrameFormat::ColorSpace_BT709, "ColorSpace_BT709")
53 (QVideoFrameFormat::ColorSpace_AdobeRgb, "ColorSpace_AdobeRgb")
54 (QVideoFrameFormat::ColorSpace_BT2020, "ColorSpace_BT2020")
55 (QVideoFrameFormat::ColorSpace_Undefined, "ColorSpace_Undefined")
56 );
57QT_MM_DEFINE_QDEBUG_ENUM(QVideoFrameFormat::ColorSpace);
58
59QT_MM_MAKE_STRING_RESOLVER(QVideoFrameFormat::Direction, QtMultimediaPrivate::EnumName,
60 (QVideoFrameFormat::TopToBottom, "TopToBottom")
61 (QVideoFrameFormat::BottomToTop, "BottomToTop")
62 );
63QT_MM_DEFINE_QDEBUG_ENUM(QVideoFrameFormat::Direction);
64
65# endif // QT_NO_DEBUG_STREAM
66
67// clang-format off
68
69QT_END_NAMESPACE
70
71#endif // QT_MULTIMEDIA_REMOVED_SINCE(6, 11) && !defined(Q_QDOC)