From 37ff267ff5543c52c3eb88019c0ee5f3b1516cfc Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Wed, 17 Feb 2016 20:13:21 +1100 Subject: [PATCH] eglimagememory: add compatibility definitions for EGL dmabuf e.g. the RPi doesn't have them defined --- gst-libs/gst/gl/egl/gsteglimagememory.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gst-libs/gst/gl/egl/gsteglimagememory.c b/gst-libs/gst/gl/egl/gsteglimagememory.c index e6d2c10ce7..46098b507c 100644 --- a/gst-libs/gst/gl/egl/gsteglimagememory.c +++ b/gst-libs/gst/gl/egl/gsteglimagememory.c @@ -44,6 +44,26 @@ #endif #endif +#ifndef EGL_LINUX_DMA_BUF_EXT +#define EGL_LINUX_DMA_BUF_EXT 0x3270 +#endif + +#ifndef EGL_LINUX_DRM_FOURCC_EXT +#define EGL_LINUX_DRM_FOURCC_EXT 0x3271 +#endif + +#ifndef EGL_DMA_BUF_PLANE0_FD_EXT +#define EGL_DMA_BUF_PLANE0_FD_EXT 0x3272 +#endif + +#ifndef EGL_DMA_BUF_PLANE0_OFFSET_EXT +#define EGL_DMA_BUF_PLANE0_OFFSET_EXT 0x3273 +#endif + +#ifndef EGL_DMA_BUF_PLANE0_PITCH_EXT +#define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274 +#endif + GST_DEBUG_CATEGORY_STATIC (GST_CAT_EGL_IMAGE_MEMORY); #define GST_CAT_DEFAULT GST_CAT_EGL_IMAGE_MEMORY