[vlc-devel] [PATCH 00/14] Direct3D11 cleaning

Steve Lhomme robux4 at videolabs.io
Sat Nov 18 14:29:14 CET 2017

In order to fix #18936 we need a way to access the D3D9 device that was created
by the vout or the decoder but not accessible directly to the filter, because
the picture pool it's using was created by the core and not the one with that

These patches clean the D3D11 handling by centralizing the device creation and
release in libd3d11_common.

Steve Lhomme (14):
  d3d11: rename d3d11_handle_t to d3d11_device_t
  direct3d11: rename hd3d11 to d3d_dev
  d3d11_fmt: introduce d3d11_handle_t to keep a handle on the DLL
  d3d11_fmt: simplify the call to D3D11_CreateDevice()
  d3d11_fmt: add D3D11_ReleaseDevice()
  direct3d11: use D3D11_ReleaseDevice()
  d3d11va: make use of d3d11_device_t rather than internal variables
  d3d11_fmt: add D3D11_Create and D3D11_Destroy
  d3d11: use D3D11_Create and D3D11_Destroy
  d3d11_fmt: move the DXGI debug handling in D3D11_CreateDevice
  d3d11_fmt: keep track if we own the device or not
  directx_va: do not load the DLL if it's already loaded
  directx_va: remove unused d3ddev
  directx_va: move the DXVA2 loading outside of directx_va

 modules/codec/avcodec/d3d11va.c         | 136 +++++++++---------------
 modules/codec/avcodec/directx_va.c      |  15 +--
 modules/codec/avcodec/directx_va.h      |   9 +-
 modules/codec/avcodec/dxva2.c           |  23 ++--
 modules/video_chroma/d3d11_fmt.c        |  98 ++++++++++++++---
 modules/video_chroma/d3d11_fmt.h        |  26 ++++-
 modules/video_output/win32/direct3d11.c | 183 ++++++++++++++------------------
 7 files changed, 251 insertions(+), 239 deletions(-)


More information about the vlc-devel mailing list