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
qmultimediautils_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 QMULTIMEDIAUTILS_P_H
5#define QMULTIMEDIAUTILS_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/qtmultimediaglobal.h>
19#include <QtMultimedia/qtvideo.h>
20#include <QtMultimedia/private/qmaybe_p.h>
21#include <QtCore/qsize.h>
22#include <QtCore/qurl.h>
23#include <QtGui/rhi/qrhi.h>
24
26
27class QRhiSwapChain;
28class QVideoFrame;
30
31struct Fraction {
34};
35
36Q_MULTIMEDIA_EXPORT Fraction qRealToFraction(qreal value);
37
38Q_MULTIMEDIA_EXPORT QSize qCalculateFrameSize(QSize resolution, Fraction pixelAspectRatio);
39
40// TODO: after adding pixel aspect ratio to QVideoFrameFormat, the function should
41// consider PAR as well as rotation
42Q_MULTIMEDIA_EXPORT QSize qRotatedFrameSize(QSize size, int rotation);
43
45{
46 return qRotatedFrameSize(size, qToUnderlying(rotation));
47}
48
49Q_MULTIMEDIA_EXPORT QSize qRotatedFrameSize(const QVideoFrame &frame);
50
51Q_MULTIMEDIA_EXPORT QUrl qMediaFromUserInput(QUrl fileName);
52
53Q_MULTIMEDIA_EXPORT bool qIsAutoHdrEnabled();
54
55Q_MULTIMEDIA_EXPORT QRhiSwapChain::Format
57
58Q_MULTIMEDIA_EXPORT bool
60 QRhiSwapChain::Format requiredSwapChainFormat);
61
63
64#endif // QMULTIMEDIAUTILS_P_H
65
\inmodule QtGui
Definition qrhi.h:1549
Format
Describes the swapchain format.
Definition qrhi.h:1561
\inmodule QtCore
Definition qsize.h:25
\inmodule QtCore
Definition qurl.h:94
The QVideoFrameFormat class specifies the stream format of a video presentation surface.
The QVideoFrame class represents a frame of video data.
Definition qvideoframe.h:27
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
Q_MULTIMEDIA_EXPORT bool qIsAutoHdrEnabled()
Q_MULTIMEDIA_EXPORT QSize qCalculateFrameSize(QSize resolution, Fraction pixelAspectRatio)
Q_MULTIMEDIA_EXPORT Fraction qRealToFraction(qreal value)
Q_MULTIMEDIA_EXPORT QUrl qMediaFromUserInput(QUrl fileName)
Q_MULTIMEDIA_EXPORT QSize qRotatedFrameSize(QSize size, int rotation)
Q_MULTIMEDIA_EXPORT bool qShouldUpdateSwapChainFormat(QRhiSwapChain *swapChain, QRhiSwapChain::Format requiredSwapChainFormat)
Q_MULTIMEDIA_EXPORT QRhiSwapChain::Format qGetRequiredSwapChainFormat(const QVideoFrameFormat &format)
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum format
QT_BEGIN_NAMESPACE constexpr std::underlying_type_t< Enum > qToUnderlying(Enum e) noexcept
double qreal
Definition qtypes.h:187
QFrame frame
[0]