Doxygen Book
tensor_query_serversink.c File Reference

GStreamer plugin to handle tensor query server sink. More...

#include <string.h>
#include "tensor_query_serversink.h"
Include dependency graph for tensor_query_serversink.c:

Go to the source code of this file.

Macros

#define GST_CAT_DEFAULT   gst_tensor_query_serversink_debug
 
#define DEFAULT_METALESS_FRAME_LIMIT   1
 
#define gst_tensor_query_serversink_parent_class   parent_class
 

Enumerations

enum  {
  PROP_0, PROP_CONNECT_TYPE, PROP_ID, PROP_TIMEOUT,
  PROP_METALESS_FRAME_LIMIT
}
 

Functions

 GST_DEBUG_CATEGORY_STATIC (gst_tensor_query_serversink_debug)
 
 G_DEFINE_TYPE (GstTensorQueryServerSink, gst_tensor_query_serversink, GST_TYPE_BASE_SINK)
 
static GstStateChangeReturn gst_tensor_query_serversink_change_state (GstElement *element, GstStateChange transition)
 Change state of query server sink. More...
 
static void gst_tensor_query_serversink_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec)
 set property More...
 
static void gst_tensor_query_serversink_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec)
 get property More...
 
static void gst_tensor_query_serversink_finalize (GObject *object)
 finalize the object More...
 
static GstFlowReturn gst_tensor_query_serversink_render (GstBaseSink *bsink, GstBuffer *buf)
 render buffer, send buffer to client More...
 
static gboolean gst_tensor_query_serversink_set_caps (GstBaseSink *bsink, GstCaps *caps)
 An implementation of the set_caps vmethod in GstBaseSinkClass. More...
 
static void gst_tensor_query_serversink_class_init (GstTensorQueryServerSinkClass *klass)
 initialize the class More...
 
static void gst_tensor_query_serversink_init (GstTensorQueryServerSink *sink)
 initialize the new element More...
 
static gboolean _gst_tensor_query_serversink_start (GstTensorQueryServerSink *sink)
 start processing of query_serversink More...
 
static gboolean _gst_tensor_query_serversink_playing (GstTensorQueryServerSink *sink)
 start processing of query_serversink More...
 

Variables

static GstStaticPadTemplate sinktemplate
 the capabilities of the inputs. More...
 

Detailed Description

GStreamer plugin to handle tensor query server sink.

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

Date
09 Jul 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_serversink.c.

Macro Definition Documentation

◆ DEFAULT_METALESS_FRAME_LIMIT

#define DEFAULT_METALESS_FRAME_LIMIT   1

Definition at line 23 of file tensor_query_serversink.c.

◆ GST_CAT_DEFAULT

#define GST_CAT_DEFAULT   gst_tensor_query_serversink_debug

Definition at line 21 of file tensor_query_serversink.c.

◆ gst_tensor_query_serversink_parent_class

#define gst_tensor_query_serversink_parent_class   parent_class

Definition at line 42 of file tensor_query_serversink.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
PROP_0 
PROP_CONNECT_TYPE 
PROP_ID 
PROP_TIMEOUT 
PROP_METALESS_FRAME_LIMIT 

Definition at line 33 of file tensor_query_serversink.c.

Function Documentation

◆ _gst_tensor_query_serversink_playing()

static gboolean _gst_tensor_query_serversink_playing ( GstTensorQueryServerSink sink)
static

start processing of query_serversink

Definition at line 156 of file tensor_query_serversink.c.

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

◆ _gst_tensor_query_serversink_start()

static gboolean _gst_tensor_query_serversink_start ( GstTensorQueryServerSink sink)
static

start processing of query_serversink

Definition at line 141 of file tensor_query_serversink.c.

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

◆ G_DEFINE_TYPE()

G_DEFINE_TYPE ( GstTensorQueryServerSink  ,
gst_tensor_query_serversink  ,
GST_TYPE_BASE_SINK   
)

◆ GST_DEBUG_CATEGORY_STATIC()

GST_DEBUG_CATEGORY_STATIC ( gst_tensor_query_serversink_debug  )

◆ gst_tensor_query_serversink_change_state()

static GstStateChangeReturn gst_tensor_query_serversink_change_state ( GstElement *  element,
GstStateChange  transition 
)
static

Change state of query server sink.

Definition at line 170 of file tensor_query_serversink.c.

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

◆ gst_tensor_query_serversink_class_init()

static void gst_tensor_query_serversink_class_init ( GstTensorQueryServerSinkClass klass)
static

initialize the class

Definition at line 62 of file tensor_query_serversink.c.

Here is the call graph for this function:

◆ gst_tensor_query_serversink_finalize()

static void gst_tensor_query_serversink_finalize ( GObject *  object)
static

finalize the object

Definition at line 130 of file tensor_query_serversink.c.

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

◆ gst_tensor_query_serversink_get_property()

static void gst_tensor_query_serversink_get_property ( GObject *  object,
guint  prop_id,
GValue *  value,
GParamSpec *  pspec 
)
static

get property

Definition at line 248 of file tensor_query_serversink.c.

Here is the caller graph for this function:

◆ gst_tensor_query_serversink_init()

static void gst_tensor_query_serversink_init ( GstTensorQueryServerSink sink)
static

initialize the new element

Definition at line 118 of file tensor_query_serversink.c.

◆ gst_tensor_query_serversink_render()

static GstFlowReturn gst_tensor_query_serversink_render ( GstBaseSink *  bsink,
GstBuffer *  buf 
)
static

render buffer, send buffer to client

Definition at line 296 of file tensor_query_serversink.c.

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

◆ gst_tensor_query_serversink_set_caps()

static gboolean gst_tensor_query_serversink_set_caps ( GstBaseSink *  basesink,
GstCaps *  caps 
)
static

An implementation of the set_caps vmethod in GstBaseSinkClass.

Definition at line 276 of file tensor_query_serversink.c.

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

◆ gst_tensor_query_serversink_set_property()

static void gst_tensor_query_serversink_set_property ( GObject *  object,
guint  prop_id,
const GValue *  value,
GParamSpec *  pspec 
)
static

set property

Definition at line 220 of file tensor_query_serversink.c.

Here is the caller graph for this function:

Variable Documentation

◆ sinktemplate

GstStaticPadTemplate sinktemplate
static
Initial value:
= GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
GST_STATIC_CAPS_ANY)

the capabilities of the inputs.

Definition at line 28 of file tensor_query_serversink.c.