Doxygen Book
tensor_query_server.c File Reference

GStreamer plugin to handle meta_query for server elements. More...

#include "tensor_query_server.h"
#include <tensor_typedef.h>
#include <tensor_common.h>
Include dependency graph for tensor_query_server.c:

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 GstTensorQueryServergst_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...
 

Detailed Description

GStreamer plugin to handle meta_query for server elements.

Copyright (C) 2021 Samsung Electronics Co., Ltd.

Date
03 Aug 2021
Author
Junhwan Kim jejud.nosp@m.o.ki.nosp@m.m@sam.nosp@m.sung.nosp@m..com
See also
http://github.com/nnstreamer/nnstreamer
Bug:
No known bugs

Definition in file tensor_query_server.c.

Function Documentation

◆ fini_queryserver()

static void fini_queryserver ( void  )
static

Destruct the query server.

Internal error (init not called?)

Definition at line 385 of file tensor_query_server.c.

Here is the call graph for this function:

◆ G_LOCK_DEFINE_STATIC()

G_LOCK_DEFINE_STATIC ( query_server_table  )

mutex for tensor-query server table.

◆ gst_tensor_query_server_add_data()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gst_tensor_query_server_get_handle()

static GstTensorQueryServer* gst_tensor_query_server_get_handle ( const guint  id)
static

Get nnstreamer edge server handle.

Definition at line 62 of file tensor_query_server.c.

Here is the caller graph for this function:

◆ gst_tensor_query_server_prepare()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gst_tensor_query_server_release_edge_handle()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gst_tensor_query_server_remove_data()

void gst_tensor_query_server_remove_data ( const guint  id)

Remove GstTensorQueryServer.

Definition at line 280 of file tensor_query_server.c.

Here is the caller graph for this function:

◆ gst_tensor_query_server_send_buffer()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gst_tensor_query_server_set_caps()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gst_tensor_query_server_set_configured()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gst_tensor_query_server_wait_sink()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_queryserver()

static void init_queryserver ( void  )
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.

Variable Documentation

◆ _qs_table

GHashTable* _qs_table = NULL
static

Table for query server data.

Definition at line 29 of file tensor_query_server.c.