[vlc-devel] [PATCH v2 0/3] libvlc: provide API to render video in user defined GL context

Pierre Lamot pierre at videolabs.io
Thu Jul 12 11:57:35 CEST 2018

since V1:

all callbacks has been moved to the VGL module:
  - remove pre/post rendering callback in favor of a swap callback
  - remove init/destroy callback in favor of a resize callback
  - added a cleanup callback called during  module close

minor fixes

I don't have a proper solution for my projection inhibition yet. We could provide
a specialized vout window module which would set the inhibition and provide a callback
to inform the user about the actual projection, but this would imply that we can't rely
on specific window vout (on android we need to use the android window to have enable HW

Pierre Lamot (3):
  vgl: provide a module to allow rendering in a user defined opengl
  vgl: expose opengl callbacks through libvlc
  libvlc: add sdl_opengl_player sample

 doc/libvlc/sdl_opengl_player.cpp          | 322 ++++++++++++++++++++++
 include/vlc/libvlc_media_player.h         |  84 ++++++
 lib/libvlc.sym                            |   1 +
 lib/media_player.c                        |  45 +++
 modules/video_output/Makefile.am          |   2 +
 modules/video_output/opengl/vout_helper.c |   1 +
 modules/video_output/vgl.c                | 161 +++++++++++
 7 files changed, 616 insertions(+)
 create mode 100644 doc/libvlc/sdl_opengl_player.cpp
 create mode 100644 modules/video_output/vgl.c


More information about the vlc-devel mailing list