GStreamer plugin to handle meta_query for server elements. More...
Go to the source code of this file.
Functions | |
G_LOCK_DEFINE_STATIC (query_server_table) | |
mutex for tensor-query server table. More... | |
static void | init_queryserver (void) |
Internal function to release query server data. More... | |
static GstTensorQueryServer * | gst_tensor_query_server_get_handle (const guint id) |
Get nnstreamer edge server handle. More... | |
gboolean | gst_tensor_query_server_add_data (const guint id) |
Add nnstreamer edge server handle into hash table. More... | |
gboolean | gst_tensor_query_server_prepare (const guint id, nns_edge_connect_type_e connect_type, GstTensorQueryEdgeInfo *edge_info) |
Prepare edge connection and its handle. More... | |
gboolean | gst_tensor_query_server_send_buffer (const guint id, GstBuffer *buffer) |
Send buffer to connected edge device. More... | |
void | gst_tensor_query_server_release_edge_handle (const guint id) |
Release nnstreamer edge handle of query server. More... | |
void | gst_tensor_query_server_remove_data (const guint id) |
Remove GstTensorQueryServer. More... | |
gboolean | gst_tensor_query_server_wait_sink (const guint id) |
Wait until the sink is configured and get server info handle. More... | |
void | gst_tensor_query_server_set_configured (const guint id) |
set query server sink configured. More... | |
void | gst_tensor_query_server_set_caps (const guint id, const gchar *caps_str) |
set query server caps. More... | |
static void | fini_queryserver (void) |
Destruct the query server. More... | |
Variables | |
static GHashTable * | _qs_table = NULL |
Table for query server data. More... | |
GStreamer plugin to handle meta_query for server elements.
Copyright (C) 2021 Samsung Electronics Co., Ltd.
Definition in file tensor_query_server.c.
|
static |
Destruct the query server.
Internal error (init not called?)
Definition at line 385 of file tensor_query_server.c.
G_LOCK_DEFINE_STATIC | ( | query_server_table | ) |
mutex for tensor-query server table.
gboolean gst_tensor_query_server_add_data | ( | const guint | id | ) |
Add nnstreamer edge server handle into hash table.
Add GstTensorQueryServer.
Definition at line 77 of file tensor_query_server.c.
|
static |
Get nnstreamer edge server handle.
Definition at line 62 of file tensor_query_server.c.
gboolean gst_tensor_query_server_prepare | ( | const guint | id, |
nns_edge_connect_type_e | connect_type, | ||
GstTensorQueryEdgeInfo * | edge_info | ||
) |
Prepare edge connection and its handle.
Definition at line 114 of file tensor_query_server.c.
void gst_tensor_query_server_release_edge_handle | ( | const guint | id | ) |
Release nnstreamer edge handle of query server.
Definition at line 258 of file tensor_query_server.c.
void gst_tensor_query_server_remove_data | ( | const guint | id | ) |
Remove GstTensorQueryServer.
Definition at line 280 of file tensor_query_server.c.
gboolean gst_tensor_query_server_send_buffer | ( | const guint | id, |
GstBuffer * | buffer | ||
) |
Send buffer to connected edge device.
Definition at line 183 of file tensor_query_server.c.
void gst_tensor_query_server_set_caps | ( | const guint | id, |
const gchar * | caps_str | ||
) |
set query server caps.
Definition at line 342 of file tensor_query_server.c.
void gst_tensor_query_server_set_configured | ( | const guint | id | ) |
set query server sink configured.
Definition at line 322 of file tensor_query_server.c.
gboolean gst_tensor_query_server_wait_sink | ( | const guint | id | ) |
Wait until the sink is configured and get server info handle.
Definition at line 292 of file tensor_query_server.c.
|
static |
Internal function to release query server data.
Initialize the query server.
Internal error (duplicated init call?)
Definition at line 31 of file tensor_query_server.c.
|
static |
Table for query server data.
Definition at line 29 of file tensor_query_server.c.