Doxygen Book
edge_src.c File Reference

Subscribe and push incoming data to the GStreamer pipeline. More...

#include "edge_src.h"
Include dependency graph for edge_src.c:

Go to the source code of this file.

Macros

#define GST_CAT_DEFAULT   gst_edgesrc_debug
 
#define gst_edgesrc_parent_class   parent_class
 

Enumerations

enum  {
  PROP_0, PROP_HOST, PROP_PORT, PROP_DEST_HOST,
  PROP_DEST_PORT, PROP_CONNECT_TYPE, PROP_TOPIC, PROP_CUSTOM_LIB,
  PROP_LAST
}
 edgesrc properties More...
 

Functions

 GST_DEBUG_CATEGORY_STATIC (gst_edgesrc_debug)
 
 G_DEFINE_TYPE (GstEdgeSrc, gst_edgesrc, GST_TYPE_BASE_SRC)
 
static void gst_edgesrc_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec)
 set property More...
 
static void gst_edgesrc_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec)
 get property More...
 
static void gst_edgesrc_class_finalize (GObject *object)
 finalize the object More...
 
static gboolean gst_edgesrc_start (GstBaseSrc *basesrc)
 start edgesrc, called when state changed null to ready More...
 
static gboolean gst_edgesrc_stop (GstBaseSrc *basesrc)
 Stop edgesrc, called when state changed ready to null. More...
 
static GstFlowReturn gst_edgesrc_create (GstBaseSrc *basesrc, guint64 offset, guint size, GstBuffer **out_buf)
 Create a buffer containing the subscribed data. More...
 
static gchar * gst_edgesrc_get_dest_host (GstEdgeSrc *self)
 getter for the 'host' property. More...
 
static void gst_edgesrc_set_dest_host (GstEdgeSrc *self, const gchar *dest_host)
 setter for the 'host' property. More...
 
static guint16 gst_edgesrc_get_dest_port (GstEdgeSrc *self)
 getter for the 'port' property. More...
 
static void gst_edgesrc_set_dest_port (GstEdgeSrc *self, const guint16 dest_port)
 setter for the 'port' property. More...
 
static nns_edge_connect_type_e gst_edgesrc_get_connect_type (GstEdgeSrc *self)
 getter for the 'connect_type' property. More...
 
static void gst_edgesrc_set_connect_type (GstEdgeSrc *self, const nns_edge_connect_type_e connect_type)
 setter for the 'connect_type' property. More...
 
static GstStateChangeReturn gst_edgesrc_change_state (GstElement *element, GstStateChange transition)
 Change state of edgesrc. More...
 
static void gst_edgesrc_class_init (GstEdgeSrcClass *klass)
 initialize the class More...
 
static void gst_edgesrc_init (GstEdgeSrc *self)
 initialize edgesrc element More...
 
static int _nns_edge_event_cb (nns_edge_event_h event_h, void *user_data)
 nnstreamer-edge event callback. More...
 

Variables

static GstStaticPadTemplate srctemplate
 the capabilities of the outputs More...
 

Detailed Description

Subscribe and push incoming data to the GStreamer pipeline.

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

Date
02 Aug 2022
Author
Yechan Choi yecha.nosp@m.n9.c.nosp@m.hoi@s.nosp@m.amsu.nosp@m.ng.co.nosp@m.m
See also
http://github.com/nnstreamer/nnstreamer
Bug:
No known bugs

Definition in file edge_src.c.

Macro Definition Documentation

◆ GST_CAT_DEFAULT

#define GST_CAT_DEFAULT   gst_edgesrc_debug

Definition at line 20 of file edge_src.c.

◆ gst_edgesrc_parent_class

#define gst_edgesrc_parent_class   parent_class

Definition at line 45 of file edge_src.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

edgesrc properties

Enumerator
PROP_0 
PROP_HOST 
PROP_PORT 
PROP_DEST_HOST 
PROP_DEST_PORT 
PROP_CONNECT_TYPE 
PROP_TOPIC 
PROP_CUSTOM_LIB 
PROP_LAST 

Definition at line 31 of file edge_src.c.

Function Documentation

◆ _nns_edge_event_cb()

static int _nns_edge_event_cb ( nns_edge_event_h  event_h,
void *  user_data 
)
static

nnstreamer-edge event callback.

Definition at line 305 of file edge_src.c.

Here is the caller graph for this function:

◆ G_DEFINE_TYPE()

G_DEFINE_TYPE ( GstEdgeSrc  ,
gst_edgesrc  ,
GST_TYPE_BASE_SRC   
)

◆ GST_DEBUG_CATEGORY_STATIC()

GST_DEBUG_CATEGORY_STATIC ( gst_edgesrc_debug  )

◆ gst_edgesrc_change_state()

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

Change state of edgesrc.

Definition at line 273 of file edge_src.c.

Here is the caller graph for this function:

◆ gst_edgesrc_class_finalize()

static void gst_edgesrc_class_finalize ( GObject *  object)
static

finalize the object

Definition at line 239 of file edge_src.c.

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

◆ gst_edgesrc_class_init()

static void gst_edgesrc_class_init ( GstEdgeSrcClass klass)
static

initialize the class

Definition at line 77 of file edge_src.c.

Here is the call graph for this function:

◆ gst_edgesrc_create()

static GstFlowReturn gst_edgesrc_create ( GstBaseSrc *  basesrc,
guint64  offset,
guint  size,
GstBuffer **  out_buf 
)
static

Create a buffer containing the subscribed data.

Definition at line 423 of file edge_src.c.

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

◆ gst_edgesrc_get_connect_type()

static nns_edge_connect_type_e gst_edgesrc_get_connect_type ( GstEdgeSrc self)
static

getter for the 'connect_type' property.

Definition at line 553 of file edge_src.c.

Here is the caller graph for this function:

◆ gst_edgesrc_get_dest_host()

static gchar * gst_edgesrc_get_dest_host ( GstEdgeSrc self)
static

getter for the 'host' property.

Definition at line 516 of file edge_src.c.

Here is the caller graph for this function:

◆ gst_edgesrc_get_dest_port()

static guint16 gst_edgesrc_get_dest_port ( GstEdgeSrc self)
static

getter for the 'port' property.

Definition at line 535 of file edge_src.c.

Here is the caller graph for this function:

◆ gst_edgesrc_get_property()

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

get property

Definition at line 202 of file edge_src.c.

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

◆ gst_edgesrc_init()

static void gst_edgesrc_init ( GstEdgeSrc self)
static

initialize edgesrc element

Definition at line 139 of file edge_src.c.

◆ gst_edgesrc_set_connect_type()

static void gst_edgesrc_set_connect_type ( GstEdgeSrc self,
const nns_edge_connect_type_e  connect_type 
)
static

setter for the 'connect_type' property.

Definition at line 562 of file edge_src.c.

Here is the caller graph for this function:

◆ gst_edgesrc_set_dest_host()

static void gst_edgesrc_set_dest_host ( GstEdgeSrc self,
const gchar *  dest_host 
)
static

setter for the 'host' property.

Definition at line 525 of file edge_src.c.

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

◆ gst_edgesrc_set_dest_port()

static void gst_edgesrc_set_dest_port ( GstEdgeSrc self,
const guint16  dest_port 
)
static

setter for the 'port' property.

Definition at line 544 of file edge_src.c.

Here is the caller graph for this function:

◆ gst_edgesrc_set_property()

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

set property

Definition at line 159 of file edge_src.c.

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

◆ gst_edgesrc_start()

static gboolean gst_edgesrc_start ( GstBaseSrc *  basesrc)
static

start edgesrc, called when state changed null to ready

Definition at line 342 of file edge_src.c.

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

◆ gst_edgesrc_stop()

static gboolean gst_edgesrc_stop ( GstBaseSrc *  basesrc)
static

Stop edgesrc, called when state changed ready to null.

Definition at line 403 of file edge_src.c.

Here is the caller graph for this function:

Variable Documentation

◆ srctemplate

GstStaticPadTemplate srctemplate
static
Initial value:
= GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS_ANY)

the capabilities of the outputs

Definition at line 25 of file edge_src.c.