qml: Enable qmlglsink for eglfs
https://bugzilla.gnome.org/show_bug.cgi?id=763044
This commit is contained in:
parent
14c6fece09
commit
180405714c
13
configure.ac
13
configure.ac
@ -2886,7 +2886,8 @@ AG_GST_CHECK_FEATURE(QT, [Qt elements], qt, [
|
|||||||
HAVE_QT_WINDOWING="yes"
|
HAVE_QT_WINDOWING="yes"
|
||||||
], [AC_MSG_NOTICE([Could not find Qt Wayland integration])])
|
], [AC_MSG_NOTICE([Could not find Qt Wayland integration])])
|
||||||
fi
|
fi
|
||||||
if test "x$GST_GL_HAVE_WINDOW_ANDROID" = "x1" -a "x$GST_GL_HAVE_PLATFORM_EGL" = "x1"; then
|
if test "x$GST_GL_HAVE_PLATFORM_EGL" = "x1"; then
|
||||||
|
if test "x$GST_GL_HAVE_WINDOW_ANDROID" = "x1"; then
|
||||||
PKG_CHECK_MODULES(QT_ANDROID, Qt5AndroidExtras, [
|
PKG_CHECK_MODULES(QT_ANDROID, Qt5AndroidExtras, [
|
||||||
# c++ on android requires a standard library and there are multiple
|
# c++ on android requires a standard library and there are multiple
|
||||||
# choices. cerbero provides a pkg-config file the describes a choice
|
# choices. cerbero provides a pkg-config file the describes a choice
|
||||||
@ -2897,13 +2898,17 @@ AG_GST_CHECK_FEATURE(QT, [Qt elements], qt, [
|
|||||||
QT_LIBS="$QT_LIBS $GNUSTL_LIBS"
|
QT_LIBS="$QT_LIBS $GNUSTL_LIBS"
|
||||||
], [
|
], [
|
||||||
AC_MSG_NOTICE([Could not find Standard C++ library])])
|
AC_MSG_NOTICE([Could not find Standard C++ library])])
|
||||||
|
AC_DEFINE([HAVE_QT_EGLFS], [],
|
||||||
AC_DEFINE([HAVE_QT_ANDROID], [],
|
[Define if Qt eglfs integration is installed])
|
||||||
[Define if Qt Android integration is installed])
|
|
||||||
QT_CFLAGS="$QT_CFLAGS $QT_ANDROID_CFLAGS"
|
QT_CFLAGS="$QT_CFLAGS $QT_ANDROID_CFLAGS"
|
||||||
QT_LIBS="$QT_LIBS $QT_ANDROID_LIBS"
|
QT_LIBS="$QT_LIBS $QT_ANDROID_LIBS"
|
||||||
HAVE_QT_WINDOWING="yes"
|
HAVE_QT_WINDOWING="yes"
|
||||||
], [AC_MSG_NOTICE([Could not find Qt Android integration])])
|
], [AC_MSG_NOTICE([Could not find Qt Android integration])])
|
||||||
|
else
|
||||||
|
AC_DEFINE([HAVE_QT_EGLFS], [],
|
||||||
|
[Define if Qt eglfs integration is installed])
|
||||||
|
HAVE_QT_WINDOWING="yes"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if test "x$GST_GL_HAVE_WINDOW_COCOA" = "x1" -a "x$GST_GL_HAVE_PLATFORM_CGL" = "x1"; then
|
if test "x$GST_GL_HAVE_WINDOW_COCOA" = "x1" -a "x$GST_GL_HAVE_PLATFORM_CGL" = "x1"; then
|
||||||
PKG_CHECK_MODULES(QT_MAC, Qt5MacExtras, [
|
PKG_CHECK_MODULES(QT_MAC, Qt5MacExtras, [
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
#include <gst/gl/wayland/gstgldisplay_wayland.h>
|
#include <gst/gl/wayland/gstgldisplay_wayland.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if GST_GL_HAVE_WINDOW_ANDROID && GST_GL_HAVE_PLATFORM_EGL && defined (HAVE_QT_ANDROID)
|
#if GST_GL_HAVE_PLATFORM_EGL && defined (HAVE_QT_EGLFS)
|
||||||
#include <gst/gl/egl/gstgldisplay_egl.h>
|
#include <gst/gl/egl/gstgldisplay_egl.h>
|
||||||
#include <gst/gl/egl/gstglcontext_egl.h>
|
#include <gst/gl/egl/gstglcontext_egl.h>
|
||||||
#endif
|
#endif
|
||||||
@ -162,10 +162,14 @@ QtGLVideoItem::QtGLVideoItem()
|
|||||||
gst_gl_display_wayland_new_with_display (wayland_display);
|
gst_gl_display_wayland_new_with_display (wayland_display);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if GST_GL_HAVE_WINDOW_ANDROID && GST_GL_HAVE_PLATFORM_EGL && defined (HAVE_QT_ANDROID)
|
#if GST_GL_HAVE_PLATFORM_EGL && GST_GL_HAVE_WINDOW_ANDROID
|
||||||
if (QString::fromUtf8 ("android") == app->platformName())
|
if (QString::fromUtf8 ("android") == app->platformName())
|
||||||
this->priv->display = (GstGLDisplay *) gst_gl_display_egl_new ();
|
this->priv->display = (GstGLDisplay *) gst_gl_display_egl_new ();
|
||||||
|
#elif GST_GL_HAVE_PLATFORM_EGL && defined (HAVE_QT_EGLFS)
|
||||||
|
if (QString::fromUtf8("eglfs") == app->platformName())
|
||||||
|
this->priv->display = (GstGLDisplay *) gst_gl_display_egl_new ();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if GST_GL_HAVE_WINDOW_COCOA && GST_GL_HAVE_PLATFORM_COCOA && defined (HAVE_QT_MAC)
|
#if GST_GL_HAVE_WINDOW_COCOA && GST_GL_HAVE_PLATFORM_COCOA && defined (HAVE_QT_MAC)
|
||||||
if (QString::fromUtf8 ("cocoa") == app->platformName())
|
if (QString::fromUtf8 ("cocoa") == app->platformName())
|
||||||
this->priv->display = (GstGLDisplay *) gst_gl_display_cocoa_new ();
|
this->priv->display = (GstGLDisplay *) gst_gl_display_cocoa_new ();
|
||||||
@ -348,7 +352,8 @@ QtGLVideoItem::onSceneGraphInitialized ()
|
|||||||
platform, gl_api);
|
platform, gl_api);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if GST_GL_HAVE_WINDOW_ANDROID && GST_GL_HAVE_PLATFORM_EGL && defined (HAVE_QT_ANDROID)
|
|
||||||
|
#if GST_GL_HAVE_PLATFORM_EGL && defined (HAVE_QT_EGLFS)
|
||||||
if (GST_IS_GL_DISPLAY_EGL (this->priv->display)) {
|
if (GST_IS_GL_DISPLAY_EGL (this->priv->display)) {
|
||||||
platform = GST_GL_PLATFORM_EGL;
|
platform = GST_GL_PLATFORM_EGL;
|
||||||
gl_api = gst_gl_context_get_current_gl_api (platform, NULL, NULL);
|
gl_api = gst_gl_context_get_current_gl_api (platform, NULL, NULL);
|
||||||
@ -359,6 +364,7 @@ QtGLVideoItem::onSceneGraphInitialized ()
|
|||||||
platform, gl_api);
|
platform, gl_api);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if GST_GL_HAVE_WINDOW_COCOA && GST_GL_HAVE_PLATFORM_COCOA && defined (HAVE_QT_MAC)
|
#if GST_GL_HAVE_WINDOW_COCOA && GST_GL_HAVE_PLATFORM_COCOA && defined (HAVE_QT_MAC)
|
||||||
if (this->priv->display) {
|
if (this->priv->display) {
|
||||||
platform = GST_GL_PLATFORM_CGL;
|
platform = GST_GL_PLATFORM_CGL;
|
||||||
|
@ -30,8 +30,10 @@
|
|||||||
|
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wredundant-decls"
|
#pragma GCC diagnostic ignored "-Wredundant-decls"
|
||||||
|
#if !defined(__cplusplus)
|
||||||
#pragma GCC optimize ("gnu89-inline")
|
#pragma GCC optimize ("gnu89-inline")
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef EGL_EGLEXT_PROTOTYPES
|
#ifndef EGL_EGLEXT_PROTOTYPES
|
||||||
#define EGL_EGLEXT_PROTOTYPES 1
|
#define EGL_EGLEXT_PROTOTYPES 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user