register filter subplugins (custom-filter support) when building single-shot library
Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
$(NNSTREAMER_CAPI_SRCS) \
$(NNSTREAMER_PLUGINS_SRCS) \
$(NNSTREAMER_SOURCE_AMC_SRCS) \
- $(NNSTREAMER_FILTER_CPP_SRCS) \
$(NNSTREAMER_DECODER_BB_SRCS) \
$(NNSTREAMER_DECODER_DV_SRCS) \
$(NNSTREAMER_DECODER_IL_SRCS) \
#if !defined (NNS_SINGLE_ONLY)
GST_PLUGIN_STATIC_DECLARE (nnstreamer);
GST_PLUGIN_STATIC_DECLARE (amcsrc);
-extern void init_filter_cpp (void);
-extern void init_filter_custom (void);
-extern void init_filter_custom_easy (void);
extern void init_dv (void);
extern void init_bb (void);
extern void init_il (void);
extern void init_is (void);
#endif
+extern void init_filter_cpp (void);
+extern void init_filter_custom (void);
+extern void init_filter_custom_easy (void);
+
#if defined (ENABLE_TENSORFLOW_LITE)
extern void init_filter_tflite (void);
#endif
/* Android MediaCodec */
GST_PLUGIN_STATIC_REGISTER (amcsrc);
- /* tensor-filter sub-plugins */
- init_filter_cpp ();
- init_filter_custom ();
- init_filter_custom_easy ();
-
/* tensor-decoder sub-plugins */
init_dv ();
init_bb ();
init_is ();
#endif
+ /* tensor-filter sub-plugins */
+ init_filter_cpp ();
+ init_filter_custom ();
+ init_filter_custom_easy ();
+
#if defined (ENABLE_TENSORFLOW_LITE)
init_filter_tflite ();
#endif
jclass clazz, jint fw_type)
{
ml_nnfw_type_e nnfw;
+
if (!nns_get_nnfw_type (fw_type, &nnfw)) {
return JNI_FALSE;
}
$(NNSTREAMER_GST_HOME) \
$(NNSTREAMER_GST_HOME)/include
-# nnstreamer common sources. (including tensor-filter common)
+# nnstreamer common sources. (including tensor-filter common, custom filter)
NNSTREAMER_COMMON_SRCS := \
$(NNSTREAMER_GST_HOME)/nnstreamer_conf.c \
$(NNSTREAMER_GST_HOME)/nnstreamer_subplugin.c \
$(NNSTREAMER_GST_HOME)/tensor_filter/tensor_filter_common.c \
$(NNSTREAMER_GST_HOME)/tensor_filter/tensor_filter_custom.c \
$(NNSTREAMER_GST_HOME)/tensor_filter/tensor_filter_custom_easy.c \
- $(NNSTREAMER_GST_HOME)/tensor_filter/tensor_filter_support_cc.cc
+ $(NNSTREAMER_GST_HOME)/tensor_filter/tensor_filter_support_cc.cc \
+ $(NNSTREAMER_EXT_HOME)/tensor_filter/tensor_filter_cpp.cc
# nnstreamer plugins. Not used for SINGLE-only build.
NNSTREAMER_PLUGINS_SRCS := \
$(NNSTREAMER_EXT_HOME)/android_source/gstamcsrc.c \
$(NNSTREAMER_EXT_HOME)/android_source/gstamcsrc_looper.cc
-# filter cpp
-NNSTREAMER_FILTER_CPP_SRCS := \
- $(NNSTREAMER_EXT_HOME)/tensor_filter/tensor_filter_cpp.cc
-
# filter tensorflow
NNSTREAMER_FILTER_TF_SRCS := \
$(NNSTREAMER_EXT_HOME)/tensor_filter/tensor_filter_tensorflow.cc