diff options
author | wm4 <wm4@nowhere> | 2015-09-27 16:25:03 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-09-27 16:25:03 +0200 |
commit | 2a7811176c58b2ff98347b12a8cc4ae39ba7e19b (patch) | |
tree | b1aec578b88685c35955207479437c0c35bf3bbc /video/out/opengl | |
parent | 2e5df94f0f479a477e436c019a72c03498141159 (diff) | |
download | mpv-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.
Diffstat (limited to 'video/out/opengl')
-rw-r--r-- | video/out/opengl/hwdec_vaegl.c | 14 |
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; |