WMF: enabled HW-accelerated video decoding for the QML video item.
authorYoann Lopes <yoann.lopes@digia.com>
Mon, 14 Jan 2013 16:44:06 +0000 (17:44 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 23 Jan 2013 21:34:07 +0000 (22:34 +0100)
commit101c78983a8acd6cc7a7cb314700fabd6e8909dc
treec3cd299610a550cd57dba17d92fe705a3ac55151
parent02add40392f1f708a1875f7088a853aa12ffca62
WMF: enabled HW-accelerated video decoding for the QML video item.

It also applies to QGraphicsVideoItem when used on a GL viewport.
We now have a new video sink that is based on Microsoft's EVR sink, we just
replace the default Presenter with our own. Frames are rendered into D3D
surfaces using DXVA, then copied into a shared D3D/EGL surface and finally
bound to a GL texture to be used by the video surface.
The shared D3D/EGL surface is a feature provided by ANGLE and therefore Qt
must be compiled with ANGLE for this new video sink to be compiled and
used.

Change-Id: I0b7b9968eed5488f9ef1a2dcca5213bd0af232ab
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
12 files changed:
src/imports/multimedia/qsgvideonode_texture.cpp
src/plugins/wmf/evrcustompresenter.cpp [new file with mode: 0644]
src/plugins/wmf/evrcustompresenter.h [new file with mode: 0644]
src/plugins/wmf/evrd3dpresentengine.cpp [new file with mode: 0644]
src/plugins/wmf/evrd3dpresentengine.h [new file with mode: 0644]
src/plugins/wmf/mfactivate.cpp [new file with mode: 0644]
src/plugins/wmf/mfactivate.h [new file with mode: 0644]
src/plugins/wmf/mfglobal.cpp [new file with mode: 0644]
src/plugins/wmf/mfglobal.h [new file with mode: 0644]
src/plugins/wmf/player/mfvideorenderercontrol.cpp
src/plugins/wmf/player/mfvideorenderercontrol.h
src/plugins/wmf/wmf.pro