Doxygen Book
edge_src.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: LGPL-2.1-only */
13 #ifndef __GST_EDGE_SRC_H__
14 #define __GST_EDGE_SRC_H__
15 
16 #include <gst/gst.h>
17 #include <gst/base/gstbasesrc.h>
18 #include "edge_common.h"
19 #include <nnstreamer-edge.h>
20 #include "nnstreamer_log.h"
21 #include "nnstreamer_plugin_api.h"
22 #include "nnstreamer_util.h"
23 
24 G_BEGIN_DECLS
25 #define GST_TYPE_EDGESRC \
26  (gst_edgesrc_get_type())
27 #define GST_EDGESRC(obj) \
28  (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_EDGESRC,GstEdgeSrc))
29 #define GST_EDGESRC_CLASS(klass) \
30  (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_EDGESRC,GstEdgeSrcClass))
31 #define GST_IS_EDGESRC(obj) \
32  (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_EDGESRC))
33 #define GST_IS_EDGESRC_CLASS(klass) \
34  (G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_EDGESRC))
35 #define GST_EDGESRC_CAST(obj) ((GstEdgeSrc *) (obj))
36 typedef struct _GstEdgeSrc GstEdgeSrc;
38 
43 {
44  GstBaseSrc element;
45 
46  gchar *dest_host;
47  guint16 dest_port;
48  gchar *topic;
49 
50  nns_edge_connect_type_e connect_type;
51  nns_edge_h edge_h;
52  GAsyncQueue *msg_queue;
53 
54  gboolean playing;
55 
56  gchar* custom_lib;
57 };
58 
63 {
64  GstBaseSrcClass parent_class;
65 };
66 
67 GType gst_edgesrc_get_type (void);
68 
69 G_END_DECLS
70 #endif /* __GST_EDGE_SRC_H__ */
_GstEdgeSrc::msg_queue
GAsyncQueue * msg_queue
Definition: edge_src.h:52
edge_common.h
Common functions for edge sink and src.
_GstEdgeSrc::connect_type
nns_edge_connect_type_e connect_type
Definition: edge_src.h:50
nnstreamer_log.h
Internal log util for NNStreamer plugins and native APIs.
_GstEdgeSrc::custom_lib
gchar * custom_lib
Definition: edge_src.h:56
_GstEdgeSrc::topic
gchar * topic
Definition: edge_src.h:48
_GstEdgeSrc::element
GstBaseSrc element
Definition: edge_src.h:44
_GstEdgeSrc::edge_h
nns_edge_h edge_h
Definition: edge_src.h:51
_GstEdgeSrc
GstEdgeSrc data structure.
Definition: edge_src.h:42
_GstEdgeSrc::dest_port
guint16 dest_port
Definition: edge_src.h:47
_GstEdgeSrc::dest_host
gchar * dest_host
Definition: edge_src.h:46
_GstEdgeSrc::playing
gboolean playing
Definition: edge_src.h:54
nnstreamer_util.h
Optional NNStreamer utility functions for sub-plugin writers and users.
_GstEdgeSrcClass::parent_class
GstBaseSrcClass parent_class
Definition: edge_src.h:64
_GstEdgeSrcClass
GstEdgeSrcClass data structure.
Definition: edge_src.h:62
gst_edgesrc_get_type
GType gst_edgesrc_get_type(void)
nnstreamer_plugin_api.h
Optional/Additional NNStreamer APIs for sub-plugin writers. (Need Gst devel)