[vlc-devel] [RFC PATCH 0/8] VAAPI direct rendering via OpenGL
Thomas Guillem
thomas at gllm.fr
Fri Feb 10 11:35:54 CET 2017
This set of patch is still experimental (or WIP) and follows the 2 following
patches from Petri:
https://patches.videolan.org/patch/14315/
https://patches.videolan.org/patch/14316/
As discussed during FOSDEM, we prefer avoiding creating a new vout for each
hwdec API and use the current OpenGL one (in order to benefit from 360 shaders,
and others color conversions). So we probably won't merge the va/xcb_display.c
module.
For now, direct rendering is only working with GLX, but it's not really future
proof (won't work with Wayland or EGL). See the last patches comment for EGL
issues.
I don't really like having a single OpenGL module linking with VAAPI (or maybe
others hwdec API that will come later). But I think it's better to fix that
issue for the next VLC release 4.0.
Thomas Guillem (8):
WIP: vlc_va: hack
WIP: avcodec: va: force opaque direct rendering
configure: add more vaapi checks
vlc_opengl: vlc_gl_GetNativeDpy
vlc_opengl: add vlc_gl_GetEglContexts
opengl: move android mk rule
opengl: add OPENGL_DISPLAY_CFLGS/LIBS mk rules
WIP: opengl: add converter_va
configure.ac | 22 +++
include/vlc_opengl.h | 13 ++
modules/codec/avcodec/va.c | 2 +-
modules/codec/avcodec/vaapi.c | 280 +++------------------------
modules/codec/avcodec/video.c | 2 +-
modules/hw/va/vlc_va.c | 10 +-
modules/hw/va/vlc_va.h | 6 +
modules/video_output/Makefile.am | 36 +++-
modules/video_output/glx.c | 9 +
modules/video_output/opengl/converter_va.c | 291 +++++++++++++++++++++++++++++
modules/video_output/opengl/egl.c | 26 +++
modules/video_output/opengl/internal.h | 6 +
modules/video_output/opengl/vout_helper.c | 3 +
13 files changed, 440 insertions(+), 266 deletions(-)
create mode 100644 modules/video_output/opengl/converter_va.c
--
2.11.0
More information about the vlc-devel
mailing list