Doxygen Book
gsttensor_sink.h
Go to the documentation of this file.
1 
27 #ifndef __GST_TENSOR_SINK_H__
28 #define __GST_TENSOR_SINK_H__
29 
30 #include <gst/gst.h>
31 #include <gst/base/gstbasesink.h>
32 #include <tensor_common.h>
33 
34 G_BEGIN_DECLS
35 
36 #define GST_TYPE_TENSOR_SINK \
37  (gst_tensor_sink_get_type())
38 #define GST_TENSOR_SINK(obj) \
39  (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_TENSOR_SINK,GstTensorSink))
40 #define GST_TENSOR_SINK_CLASS(klass) \
41  (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_TENSOR_SINK,GstTensorSinkClass))
42 #define GST_IS_TENSOR_SINK(obj) \
43  (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TENSOR_SINK))
44 #define GST_IS_TENSOR_SINK_CLASS(klass) \
45  (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TENSOR_SINK))
46 
49 
56 {
57  GstBaseSink element;
59  GMutex mutex;
60  gboolean silent;
61  gboolean emit_signal;
62  guint signal_rate;
63  GstClockTime last_render_time;
64 };
65 
72 {
73  GstBaseSinkClass parent_class;
76  void (*new_data) (GstElement * element, GstBuffer * buffer);
77  void (*stream_start) (GstElement * element);
78  void (*eos) (GstElement * element);
79 };
80 
84 GType gst_tensor_sink_get_type (void);
85 
86 G_END_DECLS
87 
88 #endif
_GstTensorSinkClass::new_data
void(* new_data)(GstElement *element, GstBuffer *buffer)
Definition: gsttensor_sink.h:76
_GstTensorSinkClass
GstTensorSinkClass data structure.
Definition: gsttensor_sink.h:71
_GstTensorSinkClass::parent_class
GstBaseSinkClass parent_class
Definition: gsttensor_sink.h:73
_GstTensorSink::emit_signal
gboolean emit_signal
Definition: gsttensor_sink.h:61
_GstTensorSink::signal_rate
guint signal_rate
Definition: gsttensor_sink.h:62
_GstTensorSink::element
GstBaseSink element
Definition: gsttensor_sink.h:57
_GstTensorSink::mutex
GMutex mutex
Definition: gsttensor_sink.h:59
tensor_common.h
Common header file for NNStreamer, the GStreamer plugin for neural networks.
_GstTensorSinkClass::stream_start
void(* stream_start)(GstElement *element)
Definition: gsttensor_sink.h:77
_GstTensorSink
GstTensorSink data structure.
Definition: gsttensor_sink.h:55
_GstTensorSinkClass::eos
void(* eos)(GstElement *element)
Definition: gsttensor_sink.h:78
gst_tensor_sink_get_type
GType gst_tensor_sink_get_type(void)
Function to get type of tensor_sink.
_GstTensorSink::silent
gboolean silent
Definition: gsttensor_sink.h:60
_GstTensorSink::last_render_time
GstClockTime last_render_time
Definition: gsttensor_sink.h:63