From 2a7811176c58b2ff98347b12a8cc4ae39ba7e19b Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 27 Sep 2015 16:25:03 +0200 Subject: vo_opengl: vaapi: provide symbols for missing extensions We also could just check at build time, but since it's not much, just redefine them inline if not present. --- video/out/opengl/hwdec_vaegl.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/video/out/opengl/hwdec_vaegl.c b/video/out/opengl/hwdec_vaegl.c index cbdcbb8755..b3d5cabecf 100644 --- a/video/out/opengl/hwdec_vaegl.c +++ b/video/out/opengl/hwdec_vaegl.c @@ -33,6 +33,20 @@ #include "video/mp_image_pool.h" #include "common.h" +#ifndef GL_OES_EGL_image +typedef void* GLeglImageOES; +#endif +#ifndef EGL_KHR_image +typedef void *EGLImageKHR; +#endif + +#ifndef EGL_LINUX_DRM_FOURCC_EXT +#define EGL_LINUX_DRM_FOURCC_EXT 0x3271 +#define EGL_DMA_BUF_PLANE0_FD_EXT 0x3272 +#define EGL_DMA_BUF_PLANE0_OFFSET_EXT 0x3273 +#define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274 +#endif + struct priv { struct mp_log *log; struct mp_vaapi_ctx *ctx; -- cgit v1.2.3