31#if QT_DEPRECATED_SINCE(6
, 13
)
32 enum QT_DEPRECATED_VERSION_X_6_13(
"QVideoFrame::HandleType is deprecated and will be "
33 "removed in a future Qt version.") HandleType
45 ReadWrite = ReadOnly | WriteOnly
49#if QT_DEPRECATED_SINCE(6
, 7
)
52 Rotation0 Q_DECL_ENUMERATOR_DEPRECATED_X(
"Use QtVideo::Rotation::None instead") = 0,
53 Rotation90 Q_DECL_ENUMERATOR_DEPRECATED_X(
"Use QtVideo::Rotation::Clockwise90 instead") = 90,
54 Rotation180 Q_DECL_ENUMERATOR_DEPRECATED_X(
"Use QtVideo::Rotation::Clockwise180 instead") = 180,
55 Rotation270 Q_DECL_ENUMERATOR_DEPRECATED_X(
"Use QtVideo::Rotation::Clockwise270 instead") = 270
60 QVideoFrame(
const QVideoFrameFormat &format);
61 explicit QVideoFrame(
const QImage &image);
62 explicit QVideoFrame(std::unique_ptr<QAbstractVideoBuffer> videoBuffer);
63 QVideoFrame(
const QVideoFrame &other);
66 QVideoFrame(QVideoFrame &&other)
noexcept =
default;
67 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(QVideoFrame)
68 void swap(QVideoFrame &other)
noexcept
72 QVideoFrame &operator =(
const QVideoFrame &other);
73 bool operator==(
const QVideoFrame &other)
const;
74 bool operator!=(
const QVideoFrame &other)
const;
78 QVideoFrameFormat::PixelFormat pixelFormat()
const;
80 QVideoFrameFormat surfaceFormat()
const;
81#if QT_DEPRECATED_SINCE(6
, 13
)
83 QT_WARNING_DISABLE_DEPRECATED
84 QT_DEPRECATED_VERSION_X_6_13(
"QVideoFrame::handleType() is deprecated and will be "
85 "removed in a future Qt version.")
86 QVideoFrame::HandleType handleType()
const;
94 bool isMapped()
const;
95 bool isReadable()
const;
96 bool isWritable()
const;
98 QVideoFrame::MapMode mapMode()
const;
100 bool map(QVideoFrame::MapMode mode);
103 int bytesPerLine(
int plane)
const;
105 uchar *bits(
int plane);
106 const uchar *bits(
int plane)
const;
107 int mappedBytes(
int plane)
const;
108 int planeCount()
const;
110 qint64 startTime()
const;
111 void setStartTime(qint64 time);
113 qint64 endTime()
const;
114 void setEndTime(qint64 time);
116#if QT_DEPRECATED_SINCE(6
, 7
)
117 QT_DEPRECATED_VERSION_X_6_7(
"Use QVideoFrame::setRotation(QtVideo::Rotation) instead")
118 void setRotationAngle(RotationAngle angle) { setRotation(QtVideo::Rotation(angle)); }
120 QT_DEPRECATED_VERSION_X_6_7(
"Use QVideoFrame::rotation() instead")
121 RotationAngle rotationAngle()
const {
return RotationAngle(rotation()); }
124 void setRotation(QtVideo::Rotation angle);
125 QtVideo::Rotation rotation()
const;
127 void setMirrored(
bool);
128 bool mirrored()
const;
130 void setStreamFrameRate(qreal rate);
131 qreal streamFrameRate()
const;
133 QImage toImage()
const;
135 struct PaintOptions {
136 QColor backgroundColor = Qt::transparent;
137 Qt::AspectRatioMode aspectRatioMode = Qt::KeepAspectRatio;
139 DontDrawSubtitles = 0x1
141 Q_DECLARE_FLAGS(PaintFlags, PaintFlag)
142 PaintFlags paintFlags = {};
145 QString subtitleText()
const;
146 void setSubtitleText(
const QString &text);
148 void paint(QPainter *painter,
const QRectF &rect,
const PaintOptions &options);
150#if QT_DEPRECATED_SINCE(6
, 8
)
151 QT_DEPRECATED_VERSION_X_6_8(
"The constructor is internal and deprecated")
152 QVideoFrame(QAbstractVideoBuffer *buffer,
const QVideoFrameFormat &format);
154 QT_DEPRECATED_VERSION_X_6_8(
"The method is internal and deprecated")
155 QAbstractVideoBuffer *videoBuffer()
const;
158 friend class QVideoFramePrivate;
159 QExplicitlySharedDataPointer<QVideoFramePrivate> d;
QVideoFrameTexturesHandles is the base class, providing texture handles for frame planes....
QVideoFrameTextures is the base class representing an abstraction layer between QVideoFrame's texture...