From: Jaeyun Date: Wed, 28 Nov 2018 07:19:48 +0000 (+0900) Subject: [Orc] add init function X-Git-Tag: v0.0.3~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=208778804e0f07cd09d301c6c01b7ac6df54b51b;p=platform%2Fupstream%2Fnnstreamer.git [Orc] add init function add orc_init to initialize orc library. Signed-off-by: Jaeyun Jung --- diff --git a/gst/nnstreamer/nnstreamer.c b/gst/nnstreamer/nnstreamer.c index 90ad087..a4ea767 100644 --- a/gst/nnstreamer/nnstreamer.c +++ b/gst/nnstreamer/nnstreamer.c @@ -25,6 +25,10 @@ #include #include +#ifdef HAVE_ORC +#include +#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);