Doxygen Book
gsttensor_converter.h
Go to the documentation of this file.
1 
34 #ifndef __GST_TENSOR_CONVERTER_H__
35 #define __GST_TENSOR_CONVERTER_H__
36 
37 #include <gst/gst.h>
38 #include <tensor_common.h>
41 
42 G_BEGIN_DECLS
43 
44 #define GST_TYPE_TENSOR_CONVERTER \
45  (gst_tensor_converter_get_type())
46 #define GST_TENSOR_CONVERTER(obj) \
47  (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_TENSOR_CONVERTER,GstTensorConverter))
48 #define GST_TENSOR_CONVERTER_CLASS(klass) \
49  (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_TENSOR_CONVERTER,GstTensorConverterClass))
50 #define GST_IS_TENSOR_CONVERTER(obj) \
51  (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TENSOR_CONVERTER))
52 #define GST_IS_TENSOR_CONVERTER_CLASS(klass) \
53  (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TENSOR_CONVERTER))
54 
57 typedef struct
58 {
60  void * data;
62 
66 typedef enum {
71 
76 {
77  GstElement element;
79  GstPad *sinkpad;
80  GstPad *srcpad;
82  gboolean silent;
83  gboolean set_timestamp;
87  GHashTable *adapter_table;
92 
93  gsize frame_size;
94  gboolean remove_padding;
95  gboolean tensors_configured;
98  gboolean have_segment;
99  gboolean need_segment;
100  GstSegment segment;
101  GstClockTime old_timestamp;
104  gchar *mode_option;
105  gchar *ext_fw;
108 
109  void *priv_data;
110 };
111 
116 {
117  GstElementClass parent_class;
118 };
119 
123 GType gst_tensor_converter_get_type (void);
124 
125 
126 G_END_DECLS
127 
128 #endif
_GstTensorConverter::need_segment
gboolean need_segment
Definition: gsttensor_converter.h:99
gst_tensor_converter_get_type
GType gst_tensor_converter_get_type(void)
Get Type function required for gst elements.
_GstTensorConverter::priv_data
void * priv_data
Definition: gsttensor_converter.h:109
_CONVERTER_MODE_CUSTOM_SCRIPT
@ _CONVERTER_MODE_CUSTOM_SCRIPT
Definition: gsttensor_converter.h:69
converter_custom_cb_s::data
void * data
Definition: gsttensor_converter.h:60
GstTensorsInfo
Internal meta data exchange format for a other/tensors instance.
Definition: tensor_typedef.h:273
_GstTensorConverter::silent
gboolean silent
Definition: gsttensor_converter.h:82
_GstTensorConverter::adapter_table
GHashTable * adapter_table
Definition: gsttensor_converter.h:87
_GstTensorConverter::externalConverter
const NNStreamerExternalConverter * externalConverter
Definition: gsttensor_converter.h:91
_GstTensorConverter::have_segment
gboolean have_segment
Definition: gsttensor_converter.h:98
_GstTensorConverter::mode
tensor_converter_mode mode
Definition: gsttensor_converter.h:103
tensor_converter_mode
tensor_converter_mode
tensor converter mode
Definition: gsttensor_converter.h:66
_CONVERTER_MODE_NONE
@ _CONVERTER_MODE_NONE
Definition: gsttensor_converter.h:67
_GstTensorConverter::sinkpad
GstPad * sinkpad
Definition: gsttensor_converter.h:79
_GstTensorConverter::ext_fw
gchar * ext_fw
Definition: gsttensor_converter.h:105
tensor_converter_custom.h
NNStreamer APIs for tensor_converter custom condition.
_GstTensorConverter::frames_per_tensor
guint frames_per_tensor
Definition: gsttensor_converter.h:84
_GstTensorConverter::srcpad
GstPad * srcpad
Definition: gsttensor_converter.h:80
_GstTensorConverter::element
GstElement element
Definition: gsttensor_converter.h:77
_GstTensorConverter::frame_size
gsize frame_size
Definition: gsttensor_converter.h:93
GstTensorsConfig
Internal data structure for configured tensors info (for other/tensors).
Definition: tensor_typedef.h:284
_GstTensorConverter::in_media_type
media_type in_media_type
Definition: gsttensor_converter.h:89
_GstTensorConverterClass
GstTensorConverterClass data structure.
Definition: gsttensor_converter.h:115
_GstTensorConverter::tensors_configured
gboolean tensors_configured
Definition: gsttensor_converter.h:95
nnstreamer_plugin_api_converter.h
Mandatory APIs for NNStreamer Converter sub-plugins (Need Gst Devel)
_CONVERTER_MODE_CUSTOM_CODE
@ _CONVERTER_MODE_CUSTOM_CODE
Definition: gsttensor_converter.h:68
_GstTensorConverter
Internal data structure for tensor_converter instances.
Definition: gsttensor_converter.h:75
media_type
enum _nns_media_type media_type
Float16 compiler extension support.
_GstTensorConverter::remove_padding
gboolean remove_padding
Definition: gsttensor_converter.h:94
_GstTensorConverter::tensors_info
GstTensorsInfo tensors_info
Definition: gsttensor_converter.h:85
tensor_common.h
Common header file for NNStreamer, the GStreamer plugin for neural networks.
_GstTensorConverterClass::parent_class
GstElementClass parent_class
Definition: gsttensor_converter.h:117
_GstTensorConverter::old_timestamp
GstClockTime old_timestamp
Definition: gsttensor_converter.h:101
_GstTensorConverter::custom
converter_custom_cb_s custom
Definition: gsttensor_converter.h:106
tensor_converter_custom
G_BEGIN_DECLS typedef GstBuffer *(* tensor_converter_custom)(GstBuffer *in_buf, void *data, GstTensorsConfig *config)
Convert to tensors as customized operation.
Definition: tensor_converter_custom.h:31
_GstTensorConverter::segment
GstSegment segment
Definition: gsttensor_converter.h:100
_GstTensorConverter::set_timestamp
gboolean set_timestamp
Definition: gsttensor_converter.h:83
_GstTensorConverter::do_not_append_header
gboolean do_not_append_header
Definition: gsttensor_converter.h:107
converter_custom_cb_s::func
tensor_converter_custom func
Definition: gsttensor_converter.h:59
_GstTensorConverter::mode_option
gchar * mode_option
Definition: gsttensor_converter.h:104
_GstTensorConverter::tensors_config
GstTensorsConfig tensors_config
Definition: gsttensor_converter.h:96
converter_custom_cb_s
Definition: gsttensor_converter.h:57
_NNStreamerExternalConverter
Converter's subplugin implementation.
Definition: nnstreamer_plugin_api_converter.h:41