[Orc] remove unnecessary code
authorJaeyun <jy1210.jung@samsung.com>
Mon, 22 Apr 2019 10:09:13 +0000 (19:09 +0900)
committerwooksong <wook16.song@samsung.com>
Tue, 23 Apr 2019 09:06:22 +0000 (18:06 +0900)
We don't need to init orc functions.
It will be called when creating new orc program.

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

index 2157d55..c10cc45 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)
 
@@ -81,11 +77,6 @@ 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);
index 4a6782e..21baae7 100644 (file)
@@ -38,7 +38,7 @@
 #include "nnstreamer_plugin_api.h"
 
 #ifdef HAVE_ORC
-#include <orc/orc.h>
+#include <orc/orcfunctions.h>
 
 #define nns_memcpy(d,s,n) do { \
     if ((n) > 100) orc_memcpy ((d), (s), (n)); \