Publish incoming streams. More...
#include "edge_sink.h"
Go to the source code of this file.
Macros | |
#define | GST_CAT_DEFAULT gst_edgesink_debug |
#define | DEFAULT_MQTT_HOST "127.0.0.1" |
#define | DEFAULT_MQTT_PORT 1883 |
#define | gst_edgesink_parent_class parent_class |
Enumerations | |
enum | { PROP_0, PROP_HOST, PROP_PORT, PROP_DEST_HOST, PROP_DEST_PORT, PROP_CONNECT_TYPE, PROP_TOPIC, PROP_WAIT_CONNECTION, PROP_CONNECTION_TIMEOUT, PROP_CUSTOM_LIB, PROP_LAST } |
edgesink properties More... | |
Functions | |
GST_DEBUG_CATEGORY_STATIC (gst_edgesink_debug) | |
G_DEFINE_TYPE (GstEdgeSink, gst_edgesink, GST_TYPE_BASE_SINK) | |
static void | gst_edgesink_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) |
set property More... | |
static void | gst_edgesink_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) |
get property More... | |
static void | gst_edgesink_finalize (GObject *object) |
finalize the object More... | |
static gboolean | gst_edgesink_start (GstBaseSink *basesink) |
start processing of edgesink More... | |
static gboolean | gst_edgesink_stop (GstBaseSink *basesink) |
Stop processing of edgesink. More... | |
static GstFlowReturn | gst_edgesink_render (GstBaseSink *basesink, GstBuffer *buffer) |
render buffer, send buffer More... | |
static gboolean | gst_edgesink_set_caps (GstBaseSink *basesink, GstCaps *caps) |
An implementation of the set_caps vmethod in GstBaseSinkClass. More... | |
static gchar * | gst_edgesink_get_host (GstEdgeSink *self) |
getter for the 'host' property. More... | |
static void | gst_edgesink_set_host (GstEdgeSink *self, const gchar *host) |
setter for the 'host' property. More... | |
static guint16 | gst_edgesink_get_port (GstEdgeSink *self) |
getter for the 'port' property. More... | |
static void | gst_edgesink_set_port (GstEdgeSink *self, const guint16 port) |
setter for the 'port' property. More... | |
static nns_edge_connect_type_e | gst_edgesink_get_connect_type (GstEdgeSink *self) |
getter for the 'connect_type' property. More... | |
static void | gst_edgesink_set_connect_type (GstEdgeSink *self, const nns_edge_connect_type_e connect_type) |
setter for the 'connect_type' property. More... | |
static void | gst_edgesink_class_init (GstEdgeSinkClass *klass) |
initialize the class More... | |
static void | gst_edgesink_init (GstEdgeSink *self) |
initialize the new element More... | |
static int | _nns_edge_event_cb (nns_edge_event_h event_h, void *user_data) |
nnstreamer-edge event callback. More... | |
static gboolean | _wait_connection (GstEdgeSink *sink) |
If wait-connection is enabled, wait for connection until the connection is established or timeout occurs. Otherwise, return immediately. More... | |
Variables | |
static GstStaticPadTemplate | sinktemplate |
the capabilities of the inputs. More... | |
Publish incoming streams.
Copyright (C) 2022 Samsung Electronics Co., Ltd.
Definition in file edge_sink.c.
#define DEFAULT_MQTT_HOST "127.0.0.1" |
Definition at line 49 of file edge_sink.c.
#define DEFAULT_MQTT_PORT 1883 |
Definition at line 50 of file edge_sink.c.
#define GST_CAT_DEFAULT gst_edgesink_debug |
Definition at line 20 of file edge_sink.c.
#define gst_edgesink_parent_class parent_class |
Definition at line 52 of file edge_sink.c.
anonymous enum |
edgesink properties
Enumerator | |
---|---|
PROP_0 | |
PROP_HOST | |
PROP_PORT | |
PROP_DEST_HOST | |
PROP_DEST_PORT | |
PROP_CONNECT_TYPE | |
PROP_TOPIC | |
PROP_WAIT_CONNECTION | |
PROP_CONNECTION_TIMEOUT | |
PROP_CUSTOM_LIB | |
PROP_LAST |
Definition at line 33 of file edge_sink.c.
|
static |
nnstreamer-edge event callback.
Definition at line 306 of file edge_sink.c.
|
static |
If wait-connection is enabled, wait for connection until the connection is established or timeout occurs. Otherwise, return immediately.
Definition at line 400 of file edge_sink.c.
G_DEFINE_TYPE | ( | GstEdgeSink | , |
gst_edgesink | , | ||
GST_TYPE_BASE_SINK | |||
) |
GST_DEBUG_CATEGORY_STATIC | ( | gst_edgesink_debug | ) |
|
static |
initialize the class
Definition at line 84 of file edge_sink.c.
|
static |
finalize the object
Definition at line 275 of file edge_sink.c.
|
static |
getter for the 'connect_type' property.
Definition at line 589 of file edge_sink.c.
|
static |
getter for the 'host' property.
Definition at line 551 of file edge_sink.c.
|
static |
getter for the 'port' property.
Definition at line 571 of file edge_sink.c.
|
static |
get property
Definition at line 232 of file edge_sink.c.
|
static |
initialize the new element
Definition at line 158 of file edge_sink.c.
|
static |
render buffer, send buffer
Definition at line 450 of file edge_sink.c.
|
static |
An implementation of the set_caps vmethod in GstBaseSinkClass.
Definition at line 524 of file edge_sink.c.
|
static |
setter for the 'connect_type' property.
Definition at line 598 of file edge_sink.c.
|
static |
setter for the 'host' property.
Definition at line 560 of file edge_sink.c.
|
static |
setter for the 'port' property.
Definition at line 580 of file edge_sink.c.
|
static |
set property
Definition at line 178 of file edge_sink.c.
|
static |
start processing of edgesink
Definition at line 338 of file edge_sink.c.
|
static |
Stop processing of edgesink.
Definition at line 432 of file edge_sink.c.
|
static |
the capabilities of the inputs.
Definition at line 25 of file edge_sink.c.