Doxygen Book
tensor_query_client.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: LGPL-2.1-only */
13 #ifndef __GST_TENSOR_QUERY_CLIENT_H__
14 #define __GST_TENSOR_QUERY_CLIENT_H__
15 
16 #include <gst/gst.h>
17 #include <gio/gio.h>
18 #include <tensor_common.h>
19 #include <nnstreamer-edge.h>
20 
21 G_BEGIN_DECLS
22 
23 #define GST_TYPE_TENSOR_QUERY_CLIENT \
24  (gst_tensor_query_client_get_type())
25 #define GST_TENSOR_QUERY_CLIENT(obj) \
26  (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_TENSOR_QUERY_CLIENT,GstTensorQueryClient))
27 #define GST_TENSOR_QUERY_CLIENT_CLASS(klass) \
28  (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_TENSOR_QUERY_CLIENT,GstTensorQueryClientClass))
29 #define GST_IS_TENSOR_QUERY_CLIENT(obj) \
30  (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TENSOR_QUERY_CLIENT))
31 #define GST_IS_TENSOR_QUERY_CLIENT_CLASS(klass) \
32  (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TENSOR_QUERY_CLIENT))
33 #define GST_TENSOR_QUERY_CLIENT_CAST(obj) ((GstTensorQueryClient *)(obj))
34 
37 
42 {
43  GstElement element;
44  GstPad *sinkpad;
45  GstPad *srcpad;
47  gboolean silent;
48  gchar *in_caps_str;
49  gboolean is_tensor;
51  guint timeout;
53  /* Query-hybrid feature */
54  gchar *topic;
55  gchar *host;
56  guint16 port;
57  gchar *dest_host;
58  guint16 dest_port;
59 
60  nns_edge_connect_type_e connect_type;
61  nns_edge_h edge_h;
62  GAsyncQueue *msg_queue;
63 
64  guint max_request;
66 };
67 
72 {
73  GstElementClass parent_class;
74 };
75 
77 
78 G_END_DECLS
79 #endif /* __GST_TENSOR_QUERY_CLIENT_H__ */
_GstTensorQueryClient::requested_num
guint requested_num
Definition: tensor_query_client.h:65
_GstTensorQueryClient::is_tensor
gboolean is_tensor
Definition: tensor_query_client.h:49
_GstTensorQueryClient::edge_h
nns_edge_h edge_h
Definition: tensor_query_client.h:61
_GstTensorQueryClient::sinkpad
GstPad * sinkpad
Definition: tensor_query_client.h:44
_GstTensorQueryClient::in_caps_str
gchar * in_caps_str
Definition: tensor_query_client.h:48
_GstTensorQueryClient::dest_host
gchar * dest_host
Definition: tensor_query_client.h:57
_GstTensorQueryClient::srcpad
GstPad * srcpad
Definition: tensor_query_client.h:45
_GstTensorQueryClient::host
gchar * host
Definition: tensor_query_client.h:55
_GstTensorQueryClient::max_request
guint max_request
Definition: tensor_query_client.h:64
_GstTensorQueryClient::msg_queue
GAsyncQueue * msg_queue
Definition: tensor_query_client.h:62
_GstTensorQueryClient
GstTensorQueryClient data structure.
Definition: tensor_query_client.h:41
_GstTensorQueryClient::silent
gboolean silent
Definition: tensor_query_client.h:47
_GstTensorQueryClient::port
guint16 port
Definition: tensor_query_client.h:56
_GstTensorQueryClient::element
GstElement element
Definition: tensor_query_client.h:43
_GstTensorQueryClient::topic
gchar * topic
Definition: tensor_query_client.h:54
_GstTensorQueryClient::config
GstTensorsConfig config
Definition: tensor_query_client.h:50
_GstTensorQueryClient::dest_port
guint16 dest_port
Definition: tensor_query_client.h:58
GstTensorsConfig
Internal data structure for configured tensors info (for other/tensors).
Definition: tensor_typedef.h:284
_GstTensorQueryClientClass::parent_class
GstElementClass parent_class
Definition: tensor_query_client.h:73
tensor_common.h
Common header file for NNStreamer, the GStreamer plugin for neural networks.
_GstTensorQueryClient::timeout
guint timeout
Definition: tensor_query_client.h:51
_GstTensorQueryClientClass
GstTensorQueryClientClass data structure.
Definition: tensor_query_client.h:71
gst_tensor_query_client_get_type
GType gst_tensor_query_client_get_type(void)
_GstTensorQueryClient::connect_type
nns_edge_connect_type_e connect_type
Definition: tensor_query_client.h:60