Doxygen Book
nnstreamer_subplugin.h
Go to the documentation of this file.
1 
32 #ifndef __GST_NNSTREAMER_SUBPLUGIN_H__
33 #define __GST_NNSTREAMER_SUBPLUGIN_H__
34 
35 #include <stdint.h>
36 #include "nnstreamer_conf.h"
37 
38 G_BEGIN_DECLS
39 
40 typedef enum {
49 
52 
53 #define NNS_SUBPLUGIN_CHECKER (0xdeadbeef)
54 
61 extern const void *
62 get_subplugin (subpluginType type, const char *name);
63 
70 extern gchar **
72 
80 extern gboolean
81 register_subplugin (subpluginType type, const char *name, const void *data);
82 
91 extern gboolean
92 unregister_subplugin (subpluginType type, const char *name);
93 
94 extern void
96  const gchar * prop, va_list varargs);
97 
98 extern GData *
100 
101 G_END_DECLS
102 #endif /* __GST_NNSTREAMER_SUBPLUGIN_H__ */
NNS_SUBPLUGIN_DECODER
@ NNS_SUBPLUGIN_DECODER
Definition: nnstreamer_subplugin.h:42
NNS_IF_CUSTOM
@ NNS_IF_CUSTOM
Definition: nnstreamer_subplugin.h:48
NNS_SUBPLUGIN_FILTER
@ NNS_SUBPLUGIN_FILTER
Definition: nnstreamer_subplugin.h:41
data
svtc_1 data
Definition: gsttensor_if.c:844
nnstreamer_conf.h
Internal header for conf/env-var management.
NNS_EASY_CUSTOM_FILTER
@ NNS_EASY_CUSTOM_FILTER
Definition: nnstreamer_subplugin.h:43
prop
GstTensorSrcIIOChannelProperties * prop
DTYPE_UNSIGNED ( .
Definition: gsttensor_srciio.c:110
get_subplugin
const void * get_subplugin(subpluginType type, const char *name)
Retrieve the registered data with the subplugin name.
Definition: nnstreamer_subplugin.c:141
register_subplugin
gboolean register_subplugin(subpluginType type, const char *name, const void *data)
Register the subplugin. If duplicated name exists, it is rejected.
Definition: nnstreamer_subplugin.c:225
NNS_CUSTOM_CONVERTER
@ NNS_CUSTOM_CONVERTER
Definition: nnstreamer_subplugin.h:46
NNSCONF_PATH_CONVERTERS
@ NNSCONF_PATH_CONVERTERS
Definition: nnstreamer_conf.h:68
NNS_SUBPLUGIN_TRAINER
@ NNS_SUBPLUGIN_TRAINER
Definition: nnstreamer_subplugin.h:45
NNSCONF_PATH_FILTERS
@ NNSCONF_PATH_FILTERS
Definition: nnstreamer_conf.h:64
NNSCONF_PATH_EASY_CUSTOM_FILTERS
@ NNSCONF_PATH_EASY_CUSTOM_FILTERS
Definition: nnstreamer_conf.h:67
subplugin_get_custom_property_desc
GData * subplugin_get_custom_property_desc(subpluginType type, const char *name)
common interface to get custom property description of a sub-plugin.
Definition: nnstreamer_subplugin.c:359
NNS_SUBPLUGIN_CONVERTER
@ NNS_SUBPLUGIN_CONVERTER
Definition: nnstreamer_subplugin.h:44
unregister_subplugin
gboolean unregister_subplugin(subpluginType type, const char *name)
Unregister the subplugin.
Definition: nnstreamer_subplugin.c:289
NNSCONF_PATH_TRAINERS
@ NNSCONF_PATH_TRAINERS
Definition: nnstreamer_conf.h:69
subpluginType
subpluginType
Definition: nnstreamer_subplugin.h:40
NNS_CUSTOM_DECODER
@ NNS_CUSTOM_DECODER
Definition: nnstreamer_subplugin.h:47
NNS_SUBPLUGIN_END
@ NNS_SUBPLUGIN_END
Definition: nnstreamer_subplugin.h:50
NNSCONF_PATH_DECODERS
@ NNSCONF_PATH_DECODERS
Definition: nnstreamer_conf.h:65
type
svtc_1 type
Definition: gsttensor_if.c:843
get_all_subplugins
gchar ** get_all_subplugins(subpluginType type)
Get the list of registered subplugins.
Definition: nnstreamer_subplugin.c:176
subplugin_set_custom_property_desc
void subplugin_set_custom_property_desc(subpluginType type, const char *name, const gchar *prop, va_list varargs)
common interface to set custom property description of a sub-plugin.
Definition: nnstreamer_subplugin.c:329