[Orc] add init function
authorJaeyun <jy1210.jung@samsung.com>
Wed, 28 Nov 2018 07:19:48 +0000 (16:19 +0900)
committerMyungJoo Ham <myungjoo.ham@gmail.com>
Thu, 29 Nov 2018 00:50:51 +0000 (00:50 +0000)
add orc_init to initialize orc library.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
gst/nnstreamer/nnstreamer.c

index 90ad087..a4ea767 100644 (file)
 #include <gst/gst.h>
 #include <gst/gstplugin.h>
 
+#ifdef HAVE_ORC
+#include <orc/orc.h>
+#endif
+
 #define NNSTREAMER_PLUGIN(name) \
   extern gboolean G_PASTE(nnstreamer_export_, name) (GstPlugin *plugin)
 
@@ -55,6 +59,11 @@ NNSTREAMER_PLUGIN (tensor_reposrc);
 static gboolean
 gst_nnstreamer_init (GstPlugin * plugin)
 {
+#ifdef HAVE_ORC
+  GST_INFO ("[NNStreamer] Initialize the Orc library");
+  orc_init ();
+#endif
+
   NNSTREAMER_INIT (tensor_converter, plugin);
   NNSTREAMER_INIT (tensor_aggregator, plugin);
   NNSTREAMER_INIT (tensor_decoder, plugin);