Doxygen Book
tensor_filter_single.h
Go to the documentation of this file.
1 
25 #ifndef __G_TENSOR_FILTER_SINGLE_H__
26 #define __G_TENSOR_FILTER_SINGLE_H__
27 
28 #include <stdint.h>
29 #include <glib-object.h>
30 #include <tensor_typedef.h>
31 
32 G_BEGIN_DECLS
33 #define G_TYPE_TENSOR_FILTER_SINGLE \
34  (g_tensor_filter_single_get_type())
35 #define G_TENSOR_FILTER_SINGLE(obj) \
36  (G_TYPE_CHECK_INSTANCE_CAST((obj),G_TYPE_TENSOR_FILTER_SINGLE,GTensorFilterSingle))
37 #define G_TENSOR_FILTER_SINGLE_CLASS(klass) \
38  (G_TYPE_CHECK_CLASS_CAST((klass),G_TYPE_TENSOR_FILTER_SINGLE,GTensorFilterSingleClass))
39 #define G_IS_TENSOR_FILTER_SINGLE(obj) \
40  (G_TYPE_CHECK_INSTANCE_TYPE((obj),G_TYPE_TENSOR_FILTER_SINGLE))
41 #define G_IS_TENSOR_FILTER_SINGLE_CLASS(klass) \
42  (G_TYPE_CHECK_CLASS_TYPE((klass),G_TYPE_TENSOR_FILTER_SINGLE))
43 #define G_TENSOR_FILTER_SINGLE_CAST(obj) ((GTensorFilterSingle *)(obj))
44 
47 
52 {
53  GObject element;
55  /* private */
56  gpointer priv;
57 };
58 
63 {
64  GObjectClass parent;
67  gboolean (*invoke) (GTensorFilterSingle * self, const GstTensorMemory * input,
68  GstTensorMemory * output, gboolean allocate);
70  gboolean (*start) (GTensorFilterSingle * self);
72  gboolean (*stop) (GTensorFilterSingle * self);
74  gboolean (*input_configured) (GTensorFilterSingle * self);
76  gboolean (*output_configured) (GTensorFilterSingle * self);
79  const GstTensorsInfo * in_info, GstTensorsInfo * out_info);
84 };
85 
90 
91 G_END_DECLS
92 #endif /* __G_TENSOR_FILTER_SINGLE_H__ */
_GTensorFilterSingleClass::parent
GObjectClass parent
Definition: tensor_filter_single.h:64
GstTensorsInfo
Internal meta data exchange format for a other/tensors instance.
Definition: tensor_typedef.h:273
_GTensorFilterSingle::element
GObject element
Definition: tensor_filter_single.h:53
GstTensorMemory
The unit of each data tensors. It will be used as an input/output tensor of other/tensors.
Definition: tensor_typedef.h:252
_GTensorFilterSingleClass::set_input_info
gint(* set_input_info)(GTensorFilterSingle *self, const GstTensorsInfo *in_info, GstTensorsInfo *out_info)
Definition: tensor_filter_single.h:78
_GTensorFilterSingleClass::destroy_notify
void(* destroy_notify)(GTensorFilterSingle *self, GstTensorMemory *mem)
Definition: tensor_filter_single.h:83
_GTensorFilterSingleClass::start
gboolean(* start)(GTensorFilterSingle *self)
Definition: tensor_filter_single.h:70
_GTensorFilterSingleClass::output_configured
gboolean(* output_configured)(GTensorFilterSingle *self)
Definition: tensor_filter_single.h:76
_GTensorFilterSingle
Internal data structure for tensor_filter_single instances.
Definition: tensor_filter_single.h:51
_GTensorFilterSingle::priv
gpointer priv
Definition: tensor_filter_single.h:56
tensor_typedef.h
Common header file for NNStreamer, the GStreamer plugin for neural networks.
g_tensor_filter_single_get_type
GType g_tensor_filter_single_get_type(void)
Get Type function required for gst elements.
_GTensorFilterSingleClass::input_configured
gboolean(* input_configured)(GTensorFilterSingle *self)
Definition: tensor_filter_single.h:74
_GTensorFilterSingleClass::stop
gboolean(* stop)(GTensorFilterSingle *self)
Definition: tensor_filter_single.h:72
_GTensorFilterSingleClass::invoke
gboolean(* invoke)(GTensorFilterSingle *self, const GstTensorMemory *input, GstTensorMemory *output, gboolean allocate)
Definition: tensor_filter_single.h:67
_GTensorFilterSingleClass::allocate_in_invoke
gboolean(* allocate_in_invoke)(GTensorFilterSingle *self)
Definition: tensor_filter_single.h:81
_GTensorFilterSingleClass
GTensorFilterSingleClass inherits GObjectClass.
Definition: tensor_filter_single.h:62