Doxygen Book
nnstreamer_plugin_api_decoder.h
Go to the documentation of this file.
1 
24 #ifndef __NNS_PLUGIN_API_DECODER_H__
25 #define __NNS_PLUGIN_API_DECODER_H__
26 
27 #include "tensor_typedef.h"
28 #include <gst/gst.h>
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
38 typedef struct _GstTensorDecoderDef
39 {
40  char *modename;
42  int (*init) (void **private_data);
48  void (*exit) (void **private_data);
53  int (*setOption) (void **private_data, int opNum, const char *param);
61  GstCaps *(*getOutCaps) (void **private_data, const GstTensorsConfig *config);
71  GstFlowReturn (*decode) (void **private_data, const GstTensorsConfig *config,
72  const GstTensorMemory *input, GstBuffer *outbuf);
82  size_t (*getTransformSize) (void **private_data, const GstTensorsConfig *config,
83  GstCaps *caps, size_t size, GstCaps *othercaps,
84  GstPadDirection direction);
98 
99 /* extern functions for subplugin management, exist in tensor_decoder.c */
105 extern int
107 
112 extern void
113 nnstreamer_decoder_exit (const char *name);
114 
120 extern const GstTensorDecoderDef *
121 nnstreamer_decoder_find (const char *name);
122 
126 extern void
127 nnstreamer_decoder_set_custom_property_desc (const char *name, const char *prop, ...);
128 
129 #ifdef __cplusplus
130 }
131 #endif
132 
133 #endif /* __NNS_PLUGIN_API_DECODER_H__ */
_GstTensorDecoderDef
Decoder definitions for different semantics of tensors This allows developers to create their own dec...
Definition: nnstreamer_plugin_api_decoder.h:38
nnstreamer_decoder_exit
void nnstreamer_decoder_exit(const char *name)
Decoder's sub-plugin may call this to unregister itself.
Definition: gsttensor_decoder.c:166
nnstreamer_decoder_set_custom_property_desc
void nnstreamer_decoder_set_custom_property_desc(const char *name, const char *prop,...)
set custom property description for tensor decoder sub-plugin
Definition: gsttensor_decoder.c:186
_GstTensorDecoderDef::getTransformSize
size_t(* getTransformSize)(void **private_data, const GstTensorsConfig *config, GstCaps *caps, size_t size, GstCaps *othercaps, GstPadDirection direction)
Definition: nnstreamer_plugin_api_decoder.h:82
prop
GstTensorSrcIIOChannelProperties * prop
DTYPE_UNSIGNED ( .
Definition: gsttensor_srciio.c:110
nnstreamer_decoder_find
const GstTensorDecoderDef * nnstreamer_decoder_find(const char *name)
Find decoder sub-plugin with the name.
Definition: gsttensor_decoder.c:177
GstTensorMemory
The unit of each data tensors. It will be used as an input/output tensor of other/tensors.
Definition: tensor_typedef.h:252
nnstreamer_decoder_probe
int nnstreamer_decoder_probe(GstTensorDecoderDef *decoder)
Decoder's sub-plugin should call this function to register itself.
Definition: gsttensor_decoder.c:155
_GstTensorDecoderDef::setOption
int(* setOption)(void **private_data, int opNum, const char *param)
Definition: nnstreamer_plugin_api_decoder.h:53
GstTensorsConfig
Internal data structure for configured tensors info (for other/tensors).
Definition: tensor_typedef.h:284
_GstTensorDecoderDef::init
int(* init)(void **private_data)
Definition: nnstreamer_plugin_api_decoder.h:42
GstTensorDecoderDef
struct _GstTensorDecoderDef GstTensorDecoderDef
Decoder definitions for different semantics of tensors This allows developers to create their own dec...
tensor_typedef.h
Common header file for NNStreamer, the GStreamer plugin for neural networks.
_GstTensorDecoderDef::exit
void(* exit)(void **private_data)
Definition: nnstreamer_plugin_api_decoder.h:48
_GstTensorDecoderDef::modename
char * modename
Definition: nnstreamer_plugin_api_decoder.h:40
_GstTensorDecoderDef::decode
GstFlowReturn(* decode)(void **private_data, const GstTensorsConfig *config, const GstTensorMemory *input, GstBuffer *outbuf)
Definition: nnstreamer_plugin_api_decoder.h:71