summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-09-27 16:25:03 +0200
committerwm4 <wm4@nowhere>2015-09-27 16:25:03 +0200
commit2a7811176c58b2ff98347b12a8cc4ae39ba7e19b (patch)
treeb1aec578b88685c35955207479437c0c35bf3bbc
parent2e5df94f0f479a477e436c019a72c03498141159 (diff)
downloadmpv-2a7811176c58b2ff98347b12a8cc4ae39ba7e19b.tar.bz2
mpv-2a7811176c58b2ff98347b12a8cc4ae39ba7e19b.tar.xz
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.
-rw-r--r--video/out/opengl/hwdec_vaegl.c14
1 files changed, 14 insertions, 0 deletions
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;