diff options
Diffstat (limited to 'src/multimedia/video/qvideosink.h')
-rw-r--r-- | src/multimedia/video/qvideosink.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/multimedia/video/qvideosink.h b/src/multimedia/video/qvideosink.h index e4ae146c0..2c7da355b 100644 --- a/src/multimedia/video/qvideosink.h +++ b/src/multimedia/video/qvideosink.h @@ -40,6 +40,7 @@ #ifndef QABSTRACTVIDEOSINK_H #define QABSTRACTVIDEOSINK_H +#include <QtMultimedia/qtmultimediaglobal.h> #include <QtCore/qobject.h> #include <QtGui/qwindowdefs.h> @@ -51,7 +52,7 @@ class QVideoFrame; class QVideoSinkPrivate; -class QVideoSink : public QObject +class Q_MULTIMEDIA_EXPORT QVideoSink : public QObject { Q_OBJECT public: @@ -59,6 +60,7 @@ public: { Memory, NativeWindow, + NativeTexture, OpenGL, Metal, Direct3D11, @@ -71,6 +73,8 @@ public: GraphicsType graphicsType() const; void setGraphicsType(GraphicsType type); + static bool isGraphicsTypeSupported(GraphicsType type); + // setter sets graphics type to NativeWindow WId nativeWindowId() const; void setNativeWindowId(WId id); @@ -108,7 +112,7 @@ public: Q_SIGNALS: // would never get called in windowed mode - QVideoFrame newVideoFrame() const; + QVideoFrame newVideoFrame(const QVideoFrame &frame) const; private: QVideoSinkPrivate *d = nullptr; |