Doxygen Book
nnstreamer.c
Go to the documentation of this file.
1 
44 #ifdef HAVE_CONFIG_H
45 #include <config.h>
46 #endif
47 
48 #include <gst/gst.h>
49 
56 #include <elements/gsttensor_if.h>
58 #include <elements/gsttensor_mux.h>
68 
69 #ifdef _ENABLE_SRC_IIO
71 #endif
72 
74 #if defined(ENABLE_NNSTREAMER_EDGE)
78 #endif
79 
80 #define NNSTREAMER_INIT(plugin,name,type) \
81  do { \
82  if (!gst_element_register (plugin, "tensor_" # name, GST_RANK_NONE, GST_TYPE_TENSOR_
83  GST_ERROR ("Failed to register nnstreamer plugin : tensor_" # name); \
84  return FALSE; \
85  } \
86  } while (0)
87 
91 static gboolean
92 gst_nnstreamer_init (GstPlugin * plugin)
93 {
94  NNSTREAMER_INIT (plugin, aggregator, AGGREGATOR);
95  NNSTREAMER_INIT (plugin, converter, CONVERTER);
96  NNSTREAMER_INIT (plugin, crop, CROP);
97  NNSTREAMER_INIT (plugin, debug, DEBUG);
98  NNSTREAMER_INIT (plugin, decoder, DECODER);
99  NNSTREAMER_INIT (plugin, demux, DEMUX);
100  NNSTREAMER_INIT (plugin, filter, FILTER);
101  NNSTREAMER_INIT (plugin, merge, MERGE);
102  NNSTREAMER_INIT (plugin, mux, MUX);
103  NNSTREAMER_INIT (plugin, reposink, REPOSINK);
104  NNSTREAMER_INIT (plugin, reposrc, REPOSRC);
105  NNSTREAMER_INIT (plugin, sink, SINK);
106  NNSTREAMER_INIT (plugin, sparse_enc, SPARSE_ENC);
107  NNSTREAMER_INIT (plugin, sparse_dec, SPARSE_DEC);
108  NNSTREAMER_INIT (plugin, split, SPLIT);
109  NNSTREAMER_INIT (plugin, transform, TRANSFORM);
110  NNSTREAMER_INIT (plugin, if, IF);
111  NNSTREAMER_INIT (plugin, rate, RATE);
112  NNSTREAMER_INIT (plugin, trainer, TRAINER);
113 #if defined(ENABLE_NNSTREAMER_EDGE)
114  NNSTREAMER_INIT (plugin, query_serversrc, QUERY_SERVERSRC);
115  NNSTREAMER_INIT (plugin, query_serversink, QUERY_SERVERSINK);
116  NNSTREAMER_INIT (plugin, query_client, QUERY_CLIENT);
117 #endif
118 #ifdef _ENABLE_SRC_IIO
119  NNSTREAMER_INIT (plugin, src_iio, SRC_IIO);
120 #endif
121  return TRUE;
122 }
123 
124 #ifndef PACKAGE
125 #define PACKAGE "nnstreamer"
126 #endif
127 
128 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
129  GST_VERSION_MINOR,
130  nnstreamer,
131  "NNStreamer plugin library allows neural networks in GStreamer pipelines. Use nnstreamer-check utility for more information of the current NNStreamer installation.",
132  gst_nnstreamer_init, VERSION, "LGPL", "nnstreamer",
133  "https://github.com/nnstreamer/nnstreamer");
nnstreamer
Definition: tensor_filter_support_cc.cc:46
gsttensor_aggregator.h
GStreamer plugin to aggregate tensor stream.
gsttensor_rate.h
GStreamer plugin to adjust tensor rate.
tensor_query_serversrc.h
GStreamer plugin to handle tensor query_server src.
gsttensor_merge.h
GStreamer plugin to merge tensors (as a filter for other general neural network filters)
gsttensor_debug.h
GStreamer plugin to help debug tensor streams.
gsttensor_decoder.h
GStreamer plugin to convert tensors to media types.
tensor_filter.h
GStreamer plugin to use general neural network frameworks as filters.
gsttensor_demux.h
GStreamer plugin to demux tensors (as a filter for other general neural network filters)
gsttensor_sparsedec.h
GStreamer element to decode sparse tensors into dense tensors.
gsttensor_split.h
GStreamer plugin to split tensor (as a filter for other general neural network filters)
tensor_query_client.h
GStreamer plugin to handle tensor query client.
tensor_query_serversink.h
GStreamer plugin to handle tensor query_server sink.
gsttensor_mux.h
GStreamer plugin to mux tensors (as a filter for other general neural network filters)
gsttensor_sink.h
GStreamer plugin to handle tensor stream.
gsttensor_srciio.h
GStreamer plugin to support linux IIO as tensor(s)
gsttensor_transform.h
GStreamer plugin to transform tensor dimension or type.
TRUE
return TRUE
Definition: gsttensor_if.c:897
gsttensor_reposrc.h
GStreamer plugin to handle tensor repository.
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")
gsttensor_reposink.h
GStreamer plugin to handle tensor repository.
gsttensor_converter.h
GStreamer plugin to convert media types to tensors (as a filter for other general neural network filt...
gsttensor_crop.h
GStreamer element to crop the regions of incoming tensor.
gsttensor_trainer.h
GStreamer plugin to train tensor data using NN Frameworks.
gsttensor_if.h
GStreamer plugin to control flow based on tensor values.
NNSTREAMER_INIT
#define NNSTREAMER_INIT(plugin, name, type)
Definition: nnstreamer.c:80
gsttensor_sparseenc.h
GStreamer element to encode sparse tensors into dense tensors.