[vlc-devel] [PATCH] vaapi: add typedefs for OES_EGL_image extension

Alexandre Janniaux ajanni at videolabs.io
Sat Oct 19 14:57:07 CEST 2019


OES_EGL_image extension is an OpenGL ES extension and the typedef might
not be available on EGL or OpenGL extension headers.

As of October 19 2019, it makes compilation fail on my ArchLinux
because they are not defined anymore in the headers included.
---
 modules/video_output/opengl/converter_vaapi.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/video_output/opengl/converter_vaapi.c b/modules/video_output/opengl/converter_vaapi.c
index 36e3e974ec..1246b3bdb4 100644
--- a/modules/video_output/opengl/converter_vaapi.c
+++ b/modules/video_output/opengl/converter_vaapi.c
@@ -35,6 +35,12 @@
 #include "converter.h"
 #include "../../hw/vaapi/vlc_vaapi.h"

+/* From https://www.khronos.org/registry/OpenGL/extensions/OES/OES_EGL_image.txt
+ * The extension is an OpenGL ES extension but can (and usually is) available on
+ * OpenGL implementations. */
+typedef void *GLeglImageOES;
+typedef void (*PFNGLEGLIMAGETARGETTEXTURE2DOESPROC)(GLenum target, GLeglImageOES image);
+
 struct priv
 {
     VADisplay vadpy;
--
2.23.0



More information about the vlc-devel mailing list