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

Pierre Lamot pierre at videolabs.io
Tue Jul 3 14:38:33 CEST 2018


Theses patches provide an API in libvlc to render video in a user defined
opengl context, by:

  - externalizing platform specific open functions (makeCurrentContext, getProcAdress).
  - externalizing rendering surface (ie: FBO) creation/destruction.
  - providing handler called before and after each draw calls.

Last patch allows to inihibits video projections performed by vlc (360 & stereo), to allow
users to perform their own but doesn't provide an API to retreive associated informations.

Pierre Lamot (4):
  vgl: provide a module to allow rendering in a user defined opengl
    context
  vgl: expose opengl callbacks through libvlc
  libvlc: add sdl_opengl_player sample
  vgl: add option to inhibit 360 and stereo projection

 doc/libvlc/sdl_opengl_player.cpp          | 316 ++++++++++++++++++++++
 include/vlc/libvlc_media_player.h         |  75 +++++
 include/vlc_opengl.h                      |  10 +
 lib/libvlc.sym                            |   1 +
 lib/media_player.c                        |  37 +++
 modules/video_output/Makefile.am          |   2 +
 modules/video_output/opengl/vout_helper.c |  82 ++++--
 modules/video_output/vgl.c                | 154 +++++++++++
 8 files changed, 660 insertions(+), 17 deletions(-)
 create mode 100644 doc/libvlc/sdl_opengl_player.cpp
 create mode 100644 modules/video_output/vgl.c

--
2.17.1


More information about the vlc-devel mailing list