#define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274
#endif
-#ifdef USE_EGL_RPI
+#if !GST_GL_HAVE_EGLUINT64KHR
typedef khronos_uint64_t EGLuint64KHR;
#endif
#mesondefine GST_GL_HAVE_GLUINT64
#mesondefine GST_GL_HAVE_GLINT64
#mesondefine GST_GL_HAVE_EGLATTRIB
+#mesondefine GST_GL_HAVE_EGLUINT64KHR
G_END_DECLS
'GST_GL_HAVE_GLUINT64',
'GST_GL_HAVE_GLINT64',
'GST_GL_HAVE_EGLATTRIB',
+ 'GST_GL_HAVE_EGLUINT64KHR',
]
foreach option : glconf_options
if egl_dep.found() and cc.has_type('EGLAttrib', prefix : gl_include_block + egl_includes, dependencies : gl_lib_deps + [egl_dep], include_directories : gl_includes)
glconf.set('GST_GL_HAVE_EGLATTRIB', 1)
endif
+ if egl_dep.found() and cc.has_type('EGLuint64KHR', prefix : gl_include_block + egl_includes, dependencies : gl_lib_deps + [egl_dep], include_directories : gl_includes)
+ glconf.set('GST_GL_HAVE_EGLUINT64KHR', 1)
+ endif
message('Building libgstgl with GL api: ' + ' '.join(enabled_gl_apis))
message('Building libgstgl with GL platform: ' + ' '.join(enabled_gl_platforms))
GST_GL_HAVE_GLUINT64=0
GST_GL_HAVE_GLINT64=0
GST_GL_HAVE_EGLATTRIB=0
+GST_GL_HAVE_EGLUINT64KHR=0
old_CFLAGS=$CFLAGS
CFLAGS="$GL_CFLAGS $CFLAGS"
if test "x$ac_cv_type_EGLAttrib" = "xyes"; then
GST_GL_HAVE_EGLATTRIB=1
fi
+
+ AC_CHECK_TYPES(EGLuint64KHR, [], [], [[$EGL_INCLUDES]])
+ if test "x$ac_cv_type_EGLuint64KHR" = "xyes"; then
+ GST_GL_HAVE_EGLUINT64KHR=1
+ fi
fi
CFLAGS=$old_CFLAGS
#define GST_GL_HAVE_GLUINT64 $GST_GL_HAVE_GLUINT64
#define GST_GL_HAVE_GLINT64 $GST_GL_HAVE_GLINT64
#define GST_GL_HAVE_EGLATTRIB $GST_GL_HAVE_EGLATTRIB
+#define GST_GL_HAVE_EGLUINT64KHR $GST_GL_HAVE_EGLUINT64KHR
"
AC_CONFIG_COMMANDS([gst-libs/gst/gl/gstglconfig.h], [