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

Steve Lhomme robux4 at videolabs.io
Sat Nov 18 14:26:33 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 D3D9 handling by centralizing the device creation and
release in libd3d9_common.

Steve Lhomme (14):
  d3d9_fmt: group some D3D9 objects together
  d3d9: move the device creation in libd3d9_common
  direct3d9: query the capabilities just before creating the device
  d3d9_fmt: add D3D9_ReleaseDevice() to match D3D9_CreateDevice()
  direct3d9: make the D3D9_Create/D3D9_Release more generic
  direct3d9: move D3D9_Create/D3D9_Destroy in libd3d9_cmmon
  d3d9_fmt: create a simpler D3D9Device for empty output
  dxva2: make use of the DLL loading/Device creation from libd3d9_common
  direct3d9: move the hxdll in vout_display_sys_t
  direct3d9: remove the secondary HWND storage
  direct3d9: remove the intermediate d3dctx from the openGL module
  direct3d9: remove the d3dctx structure
  d3d9_fmt: always tie the adapter ID to the d3d9_device_t
  d3d9_fmt: make IDirect3D9_GetAdapterDisplayMode simpler

 modules/codec/Makefile.am              |  11 +-
 modules/codec/avcodec/dxva2.c          |  99 +++------
 modules/video_chroma/Makefile.am       |   5 +-
 modules/video_chroma/d3d9_fmt.c        | 250 +++++++++++++++++++++
 modules/video_chroma/d3d9_fmt.h        |  47 +++-
 modules/video_output/Makefile.am       |  12 +-
 modules/video_output/win32/direct3d9.c | 386 ++++++++-------------------------
 7 files changed, 427 insertions(+), 383 deletions(-)
 create mode 100644 modules/video_chroma/d3d9_fmt.c


More information about the vlc-devel mailing list