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
qvideosink.h
Go to the documentation of this file.
1// Copyright (C) 2016 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 QABSTRACTVIDEOSINK_H
5#define QABSTRACTVIDEOSINK_H
6
7#include <QtMultimedia/qtmultimediaglobal.h>
8#include <QtCore/qobject.h>
9#include <QtGui/qwindowdefs.h>
10
12
13class QRectF;
15class QVideoFrame;
16
19class QRhi;
20
21class Q_MULTIMEDIA_EXPORT QVideoSink : public QObject
22{
24 Q_PROPERTY(QString subtitleText READ subtitleText WRITE setSubtitleText NOTIFY subtitleTextChanged)
25 Q_PROPERTY(QSize videoSize READ videoSize NOTIFY videoSizeChanged)
26public:
27 QVideoSink(QObject *parent = nullptr);
28 ~QVideoSink();
29
30 QRhi *rhi() const;
31 void setRhi(QRhi *rhi);
32
33 QSize videoSize() const;
34
35 QString subtitleText() const;
36 void setSubtitleText(const QString &subtitle);
37
38 void setVideoFrame(const QVideoFrame &frame);
39 QVideoFrame videoFrame() const;
40
41 QPlatformVideoSink *platformVideoSink() const;
43 void videoFrameChanged(const QVideoFrame &frame) QT6_ONLY(const);
44 void subtitleTextChanged(const QString &subtitleText) QT6_ONLY(const);
45 void videoSizeChanged();
46
48 friend class QMediaPlayerPrivate;
50 void setSource(QObject *source);
51
52 QVideoSinkPrivate *d = nullptr;
53};
54
56
57#endif
\inmodule QtCore
Definition qobject.h:103
\inmodule QtCore\reentrant
Definition qrect.h:484
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
Definition qrhi.h:1804
\inmodule QtCore
Definition qsize.h:25
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
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
The QVideoSink class represents a generic sink for video data.
Definition qvideosink.h:22
Combined button and popup list for selecting options.
class QT6_ONLY(Q_CORE_EXPORT) QChar
Definition qchar.h:44
GLsizei GLsizei GLchar * source
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SIGNALS
QFrame frame
[0]