summaryrefslogtreecommitdiffstats
path: root/src/qtmultimediaquicktools/qdeclarativevideooutput_render_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qtmultimediaquicktools/qdeclarativevideooutput_render_p.h')
-rw-r--r--src/qtmultimediaquicktools/qdeclarativevideooutput_render_p.h22
1 files changed, 3 insertions, 19 deletions
diff --git a/src/qtmultimediaquicktools/qdeclarativevideooutput_render_p.h b/src/qtmultimediaquicktools/qdeclarativevideooutput_render_p.h
index 17ed319e0..874b237ca 100644
--- a/src/qtmultimediaquicktools/qdeclarativevideooutput_render_p.h
+++ b/src/qtmultimediaquicktools/qdeclarativevideooutput_render_p.h
@@ -63,7 +63,7 @@
QT_BEGIN_NAMESPACE
-class QSGVideoItemSurface;
+class QVideoSink;
class QObject;
class QAbstractVideoFilter;
class QVideoFilterRunnable;
@@ -79,7 +79,7 @@ public:
QSize nativeSize() const;
void updateGeometry();
QSGNode *updatePaintNode(QSGNode *oldNode, QQuickItem::UpdatePaintNodeData *data);
- QAbstractVideoSurface *videoSurface() const;
+ QVideoSink *videoSink() const;
QRectF adjustedViewport() const;
friend class QSGVideoItemSurface;
@@ -96,7 +96,7 @@ private:
QDeclarativeVideoOutput *q;
QList<QSGVideoNodeFactoryInterface*> m_videoNodeFactories;
- QSGVideoItemSurface *m_surface;
+ QVideoSink *m_sink;
QVideoSurfaceFormat m_surfaceFormat;
QVideoFrame m_frame;
@@ -118,22 +118,6 @@ private:
QList<Filter> m_filters;
};
-class QSGVideoItemSurface : public QAbstractVideoSurface
-{
- Q_OBJECT
-public:
- explicit QSGVideoItemSurface(QDeclarativeVideoBackend *backend, QObject *parent = 0);
- ~QSGVideoItemSurface();
- QList<QVideoFrame::PixelFormat> supportedPixelFormats(QVideoFrame::HandleType handleType) const override;
- bool start(const QVideoSurfaceFormat &format) override;
- void stop() override;
- bool present(const QVideoFrame &frame) override;
-
-private:
- QDeclarativeVideoBackend *m_backend;
-};
-
-
namespace {
inline bool qIsDefaultAspect(int o)