[vlc-devel] [PATCH 05/31] decoder device: use a structure to read the opaque of VLC_DECODER_DEVICE_D3D11VA

Steve Lhomme robux4 at ycbcr.xyz
Fri Jul 5 16:19:44 CEST 2019


For now it's just a ID3D11DeviceContext but it might evolve into a ID3D11Device
combined with an adapter LUID, or just the adapter LUID.
---
 include/vlc_codec.h              | 2 +-
 modules/video_chroma/d3d11_fmt.h | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/include/vlc_codec.h b/include/vlc_codec.h
index 1f0588ee70..223550ce9c 100644
--- a/include/vlc_codec.h
+++ b/include/vlc_codec.h
@@ -516,7 +516,7 @@ typedef struct vlc_decoder_device
      * VAAPI: VADisplay
      * VDPAU: vdp_t *
      * DXVA2: d3d9_decoder_device_t*
-     * D3D11VA: ID3D11DeviceContext*
+     * D3D11VA: d3d11_decoder_device_t*
      * AWindow: android AWindowHandler*
      * MMAL: MMAL_PORT_T*
      */
diff --git a/modules/video_chroma/d3d11_fmt.h b/modules/video_chroma/d3d11_fmt.h
index ab3573edac..7a57b4aa69 100644
--- a/modules/video_chroma/d3d11_fmt.h
+++ b/modules/video_chroma/d3d11_fmt.h
@@ -77,6 +77,11 @@ typedef struct
     DXGI_FORMAT                   formatTexture;
 } picture_sys_d3d11_t;
 
+typedef struct
+{
+    ID3D11DeviceContext *device;
+} d3d11_decoder_device_t;
+
 /* index to use for texture/resource that use a known DXGI format
  * (ie not DXGI_FORMAT_UNKNWON) */
 #define KNOWN_DXGI_INDEX   0
-- 
2.17.1



More information about the vlc-devel mailing list