Doxygen Book
edge_elements.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: LGPL-2.1-only */
13 #include <gst/gst.h>
14 
15 #include "edge_sink.h"
16 #include "edge_src.h"
17 
21 static gboolean
22 plugin_init (GstPlugin * plugin)
23 {
24  if (!gst_element_register (plugin, GST_EDGE_ELEM_NAME_SINK, GST_RANK_NONE,
26  return FALSE;
27  }
28 
29  if (!gst_element_register (plugin, GST_EDGE_ELEM_NAME_SRC, GST_RANK_NONE,
31  return FALSE;
32  }
33 
34  return TRUE;
35 }
36 
37 #ifndef PACKAGE
38 #define PACKAGE GST_EDGE_PACKAGE
39 #endif
40 
41 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, GST_VERSION_MINOR, edge,
42  "A collection of GStreamer plugins to support NNStreamer edge feature",
43  plugin_init, VERSION, "LGPL", PACKAGE,
44  "https://github.com/nnstreamer/nnstreamer")
FALSE
return FALSE
Definition: gsttensor_transform.c:590
edge_src.h
Subscribe and push incoming data to the GStreamer pipeline.
GST_TYPE_EDGESINK
#define GST_TYPE_EDGESINK
Definition: edge_sink.h:25
GST_TYPE_EDGESRC
#define GST_TYPE_EDGESRC
Definition: edge_src.h:25
TRUE
return TRUE
Definition: gsttensor_if.c:897
GST_PLUGIN_DEFINE
GST_PLUGIN_DEFINE(GST_VERSION_MAJOR, GST_VERSION_MINOR, nnstreamer, "NNStreamer plugin library allows neural networks in GStreamer pipelines. Use nnstreamer-check utility for more information of the current NNStreamer installation.", gst_nnstreamer_init, VERSION, "LGPL", "nnstreamer", "https://github.com/nnstreamer/nnstreamer")
plugin_init
static gboolean plugin_init(GstPlugin *plugin)
The entry point of the Gstreamer Edge plugin.
Definition: edge_elements.c:22
GST_EDGE_ELEM_NAME_SINK
#define GST_EDGE_ELEM_NAME_SINK
Definition: edge_common.h:23
edge_sink.h
Publish incoming streams.
GST_EDGE_ELEM_NAME_SRC
#define GST_EDGE_ELEM_NAME_SRC
Definition: edge_common.h:24
PACKAGE
#define PACKAGE
Definition: edge_elements.c:38