Doxygen Book
tensor_query_server.h File Reference

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

#include <gst/gst.h>
#include <tensor_common.h>
#include <nnstreamer-edge.h>
#include "tensor_meta.h"
Include dependency graph for tensor_query_server.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  GstTensorQueryEdgeInfo
 Internal data structure for nns-edge info to prepare edge connection. More...
 
struct  GstTensorQueryServer
 GstTensorQueryServer internal info data structure. More...
 

Macros

#define DEFAULT_SERVER_ID   0
 
#define DEFAULT_QUERY_INFO_TIMEOUT   5
 

Functions

gboolean gst_tensor_query_server_add_data (const guint id)
 Add GstTensorQueryServer. 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...
 
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...
 
gboolean gst_tensor_query_server_send_buffer (const guint id, GstBuffer *buffer)
 Send buffer to connected edge device. 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...
 
void gst_tensor_query_server_release_edge_handle (const guint id)
 Release nnstreamer edge handle of query server. 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.h.

Macro Definition Documentation

◆ DEFAULT_QUERY_INFO_TIMEOUT

#define DEFAULT_QUERY_INFO_TIMEOUT   5

Definition at line 23 of file tensor_query_server.h.

◆ DEFAULT_SERVER_ID

#define DEFAULT_SERVER_ID   0

Definition at line 22 of file tensor_query_server.h.

Function Documentation

◆ gst_tensor_query_server_add_data()

gboolean gst_tensor_query_server_add_data ( const guint  id)

Add GstTensorQueryServer.

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_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: