summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2019-02-11 10:01:55 -0500
committerTim-Philipp Müller <tim@centricular.com>2019-05-01 17:41:33 +0100
commit1dfd9963743a1f702d68176897a53529eddf8ecd (patch)
treeeafe6091a81edd5f5000c00662e96011c10c9588
parent094b59bd75b3e59f3d0805d8b7c0df72454d06b6 (diff)
downloadgstreamer-plugins-base-1dfd9963743a1f702d68176897a53529eddf8ecd.tar.gz
eglimage: Add some more defines
This allow building on advertised version of libdrm drm_fourcc.h files. Fixes #549
-rw-r--r--gst-libs/gst/gl/egl/gsteglimage.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/egl/gsteglimage.c b/gst-libs/gst/gl/egl/gsteglimage.c
index 0eee71e03..b7f2d989e 100644
--- a/gst-libs/gst/gl/egl/gsteglimage.c
+++ b/gst-libs/gst/gl/egl/gsteglimage.c
@@ -86,6 +86,34 @@
#define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274
#endif
+#ifndef DRM_FORMAT_MOD_LINEAR
+#define DRM_FORMAT_MOD_LINEAR 0ULL
+#endif
+
+#ifndef EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT
+#define EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT 0x3443
+#endif
+
+#ifndef EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT
+#define EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT 0x3444
+#endif
+
+#ifndef EGL_DMA_BUF_PLANE1_MODIFIER_LO_EXT
+#define EGL_DMA_BUF_PLANE1_MODIFIER_LO_EXT 0x3445
+#endif
+
+#ifndef EGL_DMA_BUF_PLANE1_MODIFIER_HI_EXT
+#define EGL_DMA_BUF_PLANE1_MODIFIER_HI_EXT 0x3446
+#endif
+
+#ifndef EGL_DMA_BUF_PLANE2_MODIFIER_LO_EXT
+#define EGL_DMA_BUF_PLANE2_MODIFIER_LO_EXT 0x3447
+#endif
+
+#ifndef EGL_DMA_BUF_PLANE2_MODIFIER_HI_EXT
+#define EGL_DMA_BUF_PLANE2_MODIFIER_HI_EXT 0x3448
+#endif
+
#if !GST_GL_HAVE_EGLUINT64KHR
typedef khronos_uint64_t EGLuint64KHR;
#endif