4#ifndef QMULTIMEDIAUTILS_P_H
5#define QMULTIMEDIAUTILS_P_H
18#include <QtMultimedia/qtmultimediaglobal.h>
19#include <QtMultimedia/private/qmaybe_p.h>
20#include <QtMultimedia/private/qvideotransformation_p.h>
21#include <QtCore/qsize.h>
22#include <QtCore/qurl.h>
23#include <QtGui/rhi/qrhi.h>
29class QVideoFrameFormat;
36Q_MULTIMEDIA_EXPORT Fraction qRealToFraction(qreal value);
38Q_MULTIMEDIA_EXPORT
QSize qCalculateFrameSize(QSize resolution, Fraction pixelAspectRatio);
42Q_MULTIMEDIA_EXPORT
QSize qRotatedFrameSize(QSize size,
int rotation);
46 return qRotatedFrameSize(size, qToUnderlying(rotation));
49Q_MULTIMEDIA_EXPORT
QSize qRotatedFramePresentationSize(
const QVideoFrame &frame);
51Q_MULTIMEDIA_EXPORT
QUrl qMediaFromUserInput(QUrl fileName);
55Q_MULTIMEDIA_EXPORT QRhiSwapChain::Format
56qGetRequiredSwapChainFormat(
const QVideoFrameFormat &format);
58Q_MULTIMEDIA_EXPORT
bool
60 QRhiSwapChain::Format requiredSwapChainFormat);
62Q_MULTIMEDIA_EXPORT VideoTransformation
63qNormalizedSurfaceTransformation(
const QVideoFrameFormat &format);
65Q_MULTIMEDIA_EXPORT VideoTransformation qNormalizedFrameTransformation(
66 const QVideoFrame &frame, VideoTransformation videoOutputTransformation = {});
68Q_MULTIMEDIA_EXPORT QtVideo::Rotation
69qVideoRotationFromDegrees(
int clockwiseDegrees);
72 int videoOutputRotation)
74 return qNormalizedFrameTransformation(
75 frame, VideoTransformation{ qVideoRotationFromDegrees(videoOutputRotation) });
79
80
81
82
83
84
85
86
87
88
89
90
91
92Q_MULTIMEDIA_EXPORT VideoTransformationOpt qVideoTransformationFromMatrix(
const QTransform &matrix);
Combined button and popup list for selecting options.
Q_STATIC_LOGGING_CATEGORY(lcAccessibilityCore, "qt.accessibility.core")