-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
7,153 additions
and
248 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
set(GST_VERSION "1.24.2") | ||
if(ANDROID) | ||
set(GST_PATH "${CMAKE_SOURCE_DIR}"/gstreamer-1.0-android-universal.tar.xz) | ||
if(NOT EXISTS "${GST_PATH}") | ||
file(DOWNLOAD wget --quiet https://gstreamer.freedesktop.org/data/pkg/android/"${GST_VERSION}"/gstreamer-1.0-android-universal-"{GST_VERSION}".tar.xz "${GST_PATH}") | ||
execute_process(COMMAND mkdir gstreamer-1.0-android-universal) | ||
execute_process(COMMAND tar xf gstreamer-1.0-android-universal.tar.xz -C gstreamer-1.0-android-universal) | ||
endif() | ||
elseif(WIN32) | ||
|
||
elseif(UNIX AND APPLE AND NOT IOS) | ||
|
||
elseif(UNIX AND APPLE) | ||
|
||
elseif(UNIX) | ||
|
||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* | ||
* GStreamer | ||
* Copyright (C) 2015 Matthew Waters <matthew@centricular.com> | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Library General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 2 of the License, or (at your option) any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Library General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Library General Public | ||
* License along with this library; if not, write to the | ||
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, | ||
* Boston, MA 02110-1301, USA. | ||
*/ | ||
|
||
#ifdef HAVE_CONFIG_H | ||
#include "config.h" | ||
#endif | ||
|
||
#include "gstqt6elements.h" | ||
#include "qt6glitem.h" | ||
|
||
#include <QtConstructorMacros> | ||
|
||
static gboolean | ||
plugin_init (GstPlugin * plugin) | ||
{ | ||
gboolean ret = FALSE; | ||
// TODO(zdanek) fix after switching to gstreamer 1.20.0+ | ||
// original code from 1.20.0 | ||
// ret |= GST_ELEMENT_REGISTER (qml6glsink, plugin); | ||
ret |= gst_element_register_qml6glsink (plugin); | ||
|
||
return ret; | ||
} | ||
|
||
static void registerMetatypes() | ||
{ | ||
qmlRegisterType<Qt6GLVideoItem> ("org.freedesktop.gstreamer.GLVideoItem", 1, 0, "GstGLVideoItem"); | ||
} | ||
|
||
Q_CONSTRUCTOR_FUNCTION(registerMetatypes) | ||
|
||
#ifndef GST_PACKAGE_NAME | ||
#define GST_PACKAGE_NAME "GStreamer Bad Plug-ins (qmake)" | ||
#define GST_PACKAGE_ORIGIN "Unknown package origin" | ||
#define GST_LICENSE "LGPL" | ||
#define PACKAGE "gst-plugins-bad (qmake)" | ||
#define PACKAGE_VERSION "1.21.0.1" | ||
#endif | ||
|
||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, | ||
GST_VERSION_MINOR, | ||
qml6, | ||
"Qt6 Qml plugin", | ||
plugin_init, PACKAGE_VERSION, GST_LICENSE, GST_PACKAGE_NAME, | ||
GST_PACKAGE_ORIGIN) |
Oops, something went wrong.