Doxygen Book
nnstreamer_plugin_api_converter.h
Go to the documentation of this file.
1 
24 #ifndef __NNS_PLUGIN_API_CONVERTER_H__
25 #define __NNS_PLUGIN_API_CONVERTER_H__
26 
27 #include "tensor_typedef.h"
28 #include <gst/gst.h>
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 /***********************************************
35 * External Converters *
36 ************************************************/
37 
42 {
43  const char *name;
44 
45  /* 1. chain function, data handling. */
46  GstBuffer *(*convert) (GstBuffer * in_buf, GstTensorsConfig * config, void *priv_data);
55  /* 2. get_out_config (type conf, input(media) to output(tensor)) */
56  gboolean (*get_out_config) (const GstCaps * in_caps,
57  GstTensorsConfig * config);
65  /* 3. query_caps (type conf, output(tensor) to input(media)) */
66  GstCaps *(*query_caps) (const GstTensorsConfig * config);
73  int (*open) (const gchar *script_path, void **priv_data);
80  void (*close) (void **priv_data);
86 
93 extern const NNStreamerExternalConverter *
94 nnstreamer_converter_find (const char *name);
95 
102 
107 extern void unregisterExternalConverter (const char *prefix);
108 
112 extern void
113 nnstreamer_converter_set_custom_property_desc (const char *name, const char *prop, ...);
114 
115 #ifdef __cplusplus
116 }
117 #endif
118 #endif /* __NNS_PLUGIN_API_CONVERTER_H__ */
registerExternalConverter
int registerExternalConverter(NNStreamerExternalConverter *ex)
Converter's sub-plugin should call this function to register itself.
Definition: gsttensor_converter.c:2389
_NNStreamerExternalConverter::open
int(* open)(const gchar *script_path, void **priv_data)
Definition: nnstreamer_plugin_api_converter.h:75
prop
GstTensorSrcIIOChannelProperties * prop
DTYPE_UNSIGNED ( .
Definition: gsttensor_srciio.c:110
unregisterExternalConverter
void unregisterExternalConverter(const char *prefix)
Converter's sub-plugin may call this to unregister itself.
Definition: gsttensor_converter.c:2399
_NNStreamerExternalConverter::close
void(* close)(void **priv_data)
Definition: nnstreamer_plugin_api_converter.h:82
_NNStreamerExternalConverter::name
const char * name
Definition: nnstreamer_plugin_api_converter.h:45
nnstreamer_converter_find
const NNStreamerExternalConverter * nnstreamer_converter_find(const char *name)
Find converter sub-plugin with the name.
Definition: gsttensor_converter.c:2360
nnstreamer_converter_set_custom_property_desc
void nnstreamer_converter_set_custom_property_desc(const char *name, const char *prop,...)
set custom property description for tensor converter sub-plugin
Definition: gsttensor_converter.c:2457
GstTensorsConfig
Internal data structure for configured tensors info (for other/tensors).
Definition: tensor_typedef.h:284
tensor_typedef.h
Common header file for NNStreamer, the GStreamer plugin for neural networks.
_NNStreamerExternalConverter::get_out_config
gboolean(* get_out_config)(const GstCaps *in_caps, GstTensorsConfig *config)
Definition: nnstreamer_plugin_api_converter.h:58
NNStreamerExternalConverter
struct _NNStreamerExternalConverter NNStreamerExternalConverter
Converter's subplugin implementation.
_NNStreamerExternalConverter
Converter's subplugin implementation.
Definition: nnstreamer_plugin_api_converter.h:41