Subscribe and push incoming data to the GStreamer pipeline. More...
#include "edge_src.h"
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... | |
Subscribe and push incoming data to the GStreamer pipeline.
Copyright (C) 2022 Samsung Electronics Co., Ltd.
Definition in file edge_src.c.
#define GST_CAT_DEFAULT gst_edgesrc_debug |
Definition at line 20 of file edge_src.c.
#define gst_edgesrc_parent_class parent_class |
Definition at line 45 of file edge_src.c.
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.
|
static |
nnstreamer-edge event callback.
Definition at line 305 of file edge_src.c.
G_DEFINE_TYPE | ( | GstEdgeSrc | , |
gst_edgesrc | , | ||
GST_TYPE_BASE_SRC | |||
) |
GST_DEBUG_CATEGORY_STATIC | ( | gst_edgesrc_debug | ) |
|
static |
Change state of edgesrc.
Definition at line 273 of file edge_src.c.
|
static |
finalize the object
Definition at line 239 of file edge_src.c.
|
static |
initialize the class
Definition at line 77 of file edge_src.c.
|
static |
Create a buffer containing the subscribed data.
Definition at line 423 of file edge_src.c.
|
static |
getter for the 'connect_type' property.
Definition at line 553 of file edge_src.c.
|
static |
getter for the 'host' property.
Definition at line 516 of file edge_src.c.
|
static |
getter for the 'port' property.
Definition at line 535 of file edge_src.c.
|
static |
get property
Definition at line 202 of file edge_src.c.
|
static |
initialize edgesrc element
Definition at line 139 of file edge_src.c.
|
static |
setter for the 'connect_type' property.
Definition at line 562 of file edge_src.c.
|
static |
setter for the 'host' property.
Definition at line 525 of file edge_src.c.
|
static |
setter for the 'port' property.
Definition at line 544 of file edge_src.c.
|
static |
set property
Definition at line 159 of file edge_src.c.
|
static |
start edgesrc, called when state changed null to ready
Definition at line 342 of file edge_src.c.
|
static |
Stop edgesrc, called when state changed ready to null.
Definition at line 403 of file edge_src.c.
|
static |
the capabilities of the outputs
Definition at line 25 of file edge_src.c.