summaryrefslogtreecommitdiffstats
path: root/src/plugins/multimedia/ffmpeg/qffmpeghwaccel_vaapi.cpp
diff options
context:
space:
mode:
authorPiotr Srebrny <piotr.srebrny@qt.io>2022-03-28 13:24:28 +0200
committerPiotr Srebrny <piotr.srebrny@qt.io>2022-04-25 11:02:27 +0200
commitaaa9e0eaf2f36aac3ae93026fdfcfb5041fb8a54 (patch)
treedeb7409e59a5437dcd59a29f764995cd2401eaf0 /src/plugins/multimedia/ffmpeg/qffmpeghwaccel_vaapi.cpp
parente5c2e8c99ef76a6b4493ff562e5398fc3f2dbb69 (diff)
Enable HW acceleration on Windows with D3D11 textures
This patch enables HW accelerated decoding of video with D3D11. The decoded frames arrive as a texture array with an index into the array pointing to where the decoded frame is located. This texture is shared with the D3D11 display device. Two elements are missing: 1) D3D11 rendered texture sharing with OpenGL display QRhi 2) Seting up the correct D3D11 adapter for texture decoding to avoid copying texture between decoding adapter and displaying adapter Change-Id: I18629a7d18471607d9920cf23cf9d81adcec1e7c Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/plugins/multimedia/ffmpeg/qffmpeghwaccel_vaapi.cpp')
-rw-r--r--src/plugins/multimedia/ffmpeg/qffmpeghwaccel_vaapi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/multimedia/ffmpeg/qffmpeghwaccel_vaapi.cpp b/src/plugins/multimedia/ffmpeg/qffmpeghwaccel_vaapi.cpp
index fe946efdc..09e06c64a 100644
--- a/src/plugins/multimedia/ffmpeg/qffmpeghwaccel_vaapi.cpp
+++ b/src/plugins/multimedia/ffmpeg/qffmpeghwaccel_vaapi.cpp
@@ -187,7 +187,7 @@ class VAAPITextureSet : public TextureSet
{
public:
~VAAPITextureSet();
- qint64 texture(int plane) override {
+ qint64 textureHandle(int plane) override {
return textures[plane];
}