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