QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
gstplugin.cc
Go to the documentation of this file.
1
/*
2
* GStreamer
3
* Copyright (C) 2015 Matthew Waters <matthew@centricular.com>
4
*
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Library General Public
7
* License as published by the Free Software Foundation; either
8
* version 2 of the License, or (at your option) any later version.
9
*
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Library General Public License for more details.
14
*
15
* You should have received a copy of the GNU Library General Public
16
* License along with this library; if not, write to the
17
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
18
* Boston, MA 02110-1301, USA.
19
*/
20
21
#ifdef HAVE_CONFIG_H
22
#include "config.h"
23
#endif
24
25
#include "
gstqt6elements.h
"
26
#include "
qt6glitem.h
"
27
28
#include <QtConstructorMacros>
29
30
static
gboolean
31
plugin_init
(GstPlugin * plugin)
32
{
33
gboolean ret = FALSE;
34
// TODO(zdanek) fix after switching to gstreamer 1.20.0+
35
// original code from 1.20.0
36
// ret |= GST_ELEMENT_REGISTER (qml6glsink, plugin);
37
ret |=
gst_element_register_qml6glsink
(plugin);
38
39
return
ret;
40
}
41
42
static
void
registerMetatypes
()
43
{
44
qmlRegisterType<Qt6GLVideoItem> (
"org.freedesktop.gstreamer.Qt6GLVideoItem"
, 1, 0,
"GstGLQt6VideoItem"
);
45
}
46
47
Q_CONSTRUCTOR_FUNCTION(
registerMetatypes
)
48
49
#ifndef GST_PACKAGE_NAME
50
#define GST_PACKAGE_NAME "GStreamer Bad Plug-ins (qmake)"
51
#define GST_PACKAGE_ORIGIN "Unknown package origin"
52
#define GST_LICENSE "LGPL"
53
#define PACKAGE "gst-plugins-bad (qmake)"
54
#define PACKAGE_VERSION "1.21.0.1"
55
#endif
56
57
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
58
GST_VERSION_MINOR,
59
qml6,
60
"Qt6 Qml plugin"
,
61
plugin_init
,
PACKAGE_VERSION
,
GST_LICENSE
,
GST_PACKAGE_NAME
,
62
GST_PACKAGE_ORIGIN
)
GST_LICENSE
#define GST_LICENSE
Definition
gstplugin.cc:52
plugin_init
static gboolean plugin_init(GstPlugin *plugin)
Definition
gstplugin.cc:31
GST_PACKAGE_NAME
#define GST_PACKAGE_NAME
Definition
gstplugin.cc:50
PACKAGE_VERSION
#define PACKAGE_VERSION
Definition
gstplugin.cc:54
registerMetatypes
static void registerMetatypes()
Definition
gstplugin.cc:42
GST_PACKAGE_ORIGIN
#define GST_PACKAGE_ORIGIN
Definition
gstplugin.cc:51
gstqt6elements.h
gst_element_register_qml6glsink
gboolean gst_element_register_qml6glsink(GstPlugin *plugin)
qt6glitem.h
src
VideoManager
VideoReceiver
GStreamer
gstqml6gl
qt6
gstplugin.cc
Generated by
1.9.8