[vlc-devel] [PATCH 0/9 v3] libvlc surface callbacks

Steve Lhomme robux4 at ycbcr.xyz
Fri Jan 18 16:32:11 CET 2019


This is an alternative version of the previous patchset where the D3D contexts
are not passed when the callbacks are set but returned from the setup callback.
The documentation explicitly says that a reference to the D3D objects are held
until the finish callback is called.

This branch can be found at https://code.videolan.org/robUx4/vlc/tree/libvlc/callbacks/19
And the previous patchset corresponds to this branch https://code.videolan.org/robUx4/vlc/tree/libvlc/callbacks/18

Steve Lhomme (9):
  libvlc: add a bool return value to the resize callback
  libvlc: add a callback to notify the host when the rendering
    starts/ends
  libvlc: the setup callback for video surfaces returns a pointer
  direct3d9: handle external callbacks to render into an external
    surface
  libvlc: add callbacks to render to an external D3D9 surface
  doc: add a sample app to test the Direct3D9 host of libvlc
  direct3d11: handle external callbacks to render into an external
    surface
  libvlc: add callbacks to render to an external D3D11 surface
  doc: add a sample Win32 app to test the Direct3D11 host of libvlc

 doc/libvlc/d3d11_player.cpp             | 466 ++++++++++++++++++++++++
 doc/libvlc/d3d9_player.c                | 301 +++++++++++++++
 doc/libvlc/sdl_opengl_player.cpp        |  10 +-
 include/vlc/libvlc_media_player.h       |  82 ++++-
 lib/media_player.c                      |  23 ++
 modules/video_output/vgl.c              |   6 +-
 modules/video_output/win32/direct3d11.c |  58 ++-
 modules/video_output/win32/direct3d9.c  |  44 ++-
 8 files changed, 952 insertions(+), 38 deletions(-)
 create mode 100644 doc/libvlc/d3d11_player.cpp
 create mode 100644 doc/libvlc/d3d9_player.c

-- 
2.17.1



More information about the vlc-devel mailing list