summaryrefslogtreecommitdiffstats
path: root/src/plugins/directshow/player/directshowvideorenderercontrol.h
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@theqtcompany.com>2015-11-05 13:48:40 +0100
committerYoann Lopes <yoann.lopes@theqtcompany.com>2016-01-12 15:51:24 +0000
commit36549dbe148055d6ecf98952b05b4ff2310fe491 (patch)
treed7aa21a5efc2b9c80125e9ed4598188a0a11dec5 /src/plugins/directshow/player/directshowvideorenderercontrol.h
parent963a534e339c4515f0e1abf85c6e91ec3de145de (diff)
DirectShow: use the EVR in the renderer control.
As for the window control, the existing code from the WMF plugin has been refactored out and is now shared for both plugins. This enables HW-accelerated video decoding in QML, QGraphicsVideoItem and custom QAbstractVideoSurfaces (Angle is required). Task-number: QTBUG-45593 Change-Id: I1d4dbf5695cdd4dbee93f9f4a957fa4d813aa85d Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com>
Diffstat (limited to 'src/plugins/directshow/player/directshowvideorenderercontrol.h')
-rw-r--r--src/plugins/directshow/player/directshowvideorenderercontrol.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/plugins/directshow/player/directshowvideorenderercontrol.h b/src/plugins/directshow/player/directshowvideorenderercontrol.h
index b4828d1b0..e6f0bb3af 100644
--- a/src/plugins/directshow/player/directshowvideorenderercontrol.h
+++ b/src/plugins/directshow/player/directshowvideorenderercontrol.h
@@ -41,6 +41,10 @@
class DirectShowEventLoop;
class VideoSurfaceFilter;
+#ifdef CUSTOM_EVR_PRESENTER
+class EVRCustomPresenter;
+#endif
+
QT_USE_NAMESPACE
class DirectShowVideoRendererControl : public QVideoRendererControl
@@ -61,7 +65,11 @@ Q_SIGNALS:
private:
DirectShowEventLoop *m_loop;
QAbstractVideoSurface *m_surface;
- VideoSurfaceFilter *m_filter;
+ IBaseFilter *m_filter;
+
+#ifdef CUSTOM_EVR_PRESENTER
+ EVRCustomPresenter *m_evrPresenter;
+#endif
};
#endif