GStreamer element to decode sparse tensors into dense tensors. More...
Go to the source code of this file.
Macros | |
#define | DBG (!self->silent) |
Macro for debug mode. More... | |
#define | GST_CAT_DEFAULT gst_tensor_sparse_dec_debug |
#define | DEFAULT_SILENT TRUE |
Flag to print minimized log. More... | |
#define | gst_tensor_sparse_dec_parent_class parent_class |
Enumerations | |
enum | { PROP_0, PROP_SILENT } |
tensor_sparse_dec properties More... | |
Functions | |
GST_DEBUG_CATEGORY_STATIC (gst_tensor_sparse_dec_debug) | |
G_DEFINE_TYPE (GstTensorSparseDec, gst_tensor_sparse_dec, GST_TYPE_ELEMENT) | |
static void | gst_tensor_sparse_dec_finalize (GObject *object) |
Function to finalize instance. More... | |
static void | gst_tensor_sparse_dec_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) |
Setter for tensor_sparse_dec properties. More... | |
static void | gst_tensor_sparse_dec_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) |
Getter for tensor_sparse_dec properties. More... | |
static GstFlowReturn | gst_tensor_sparse_dec_chain (GstPad *pad, GstObject *parent, GstBuffer *buf) |
Internal function to transform the input buffer. More... | |
static gboolean | gst_tensor_sparse_dec_sink_event (GstPad *pad, GstObject *parent, GstEvent *event) |
This function handles sink pad event. More... | |
static gboolean | gst_tensor_sparse_dec_sink_query (GstPad *pad, GstObject *parent, GstQuery *query) |
This function handles sink pad query. More... | |
static void | gst_tensor_sparse_dec_class_init (GstTensorSparseDecClass *klass) |
Initialize the tensor_sparse's class. More... | |
static void | gst_tensor_sparse_dec_init (GstTensorSparseDec *self) |
Initialize tensor_sparse_dec element. More... | |
static GstCaps * | gst_tensor_sparse_dec_query_caps (GstTensorSparseDec *self, GstPad *pad, GstCaps *filter) |
Get pad caps for caps negotiation. More... | |
Variables | |
static GstStaticPadTemplate | sink_template |
Template for sink pad. More... | |
static GstStaticPadTemplate | src_template |
Template for src pad. More... | |
GStreamer element to decode sparse tensors into dense tensors.
Copyright (C) 2021 Samsung Electronics Co., Ltd.
Definition in file gsttensor_sparsedec.c.
#define DBG (!self->silent) |
Macro for debug mode.
SECTION:element-tensor_sparse_dec
tensor_sparse_dec is a GStreamer element to decode incoming sparse tensor into static (dense) format.
The input is always in the format of other/tensors,format=sparse. The output is always in the format of ohter/tensors,format=static.
Please see also tensor_sparse_enc.
<refsect2> <title>Example launch line</title> |[ gst-launch-1.0 ... ! other/tensors,format=static ! \ tensor_sparse_enc ! other/tensors,format=sparse ! \ tensor_sparse_dec ! tensor_sink ]| </refsect2>
Definition at line 45 of file gsttensor_sparsedec.c.
#define DEFAULT_SILENT TRUE |
Flag to print minimized log.
Definition at line 63 of file gsttensor_sparsedec.c.
#define GST_CAT_DEFAULT gst_tensor_sparse_dec_debug |
Definition at line 49 of file gsttensor_sparsedec.c.
#define gst_tensor_sparse_dec_parent_class parent_class |
Definition at line 81 of file gsttensor_sparsedec.c.
anonymous enum |
tensor_sparse_dec properties
Enumerator | |
---|---|
PROP_0 | |
PROP_SILENT |
Definition at line 54 of file gsttensor_sparsedec.c.
G_DEFINE_TYPE | ( | GstTensorSparseDec | , |
gst_tensor_sparse_dec | , | ||
GST_TYPE_ELEMENT | |||
) |
GST_DEBUG_CATEGORY_STATIC | ( | gst_tensor_sparse_dec_debug | ) |
|
static |
Internal function to transform the input buffer.
Definition at line 359 of file gsttensor_sparsedec.c.
|
static |
Initialize the tensor_sparse's class.
The flag to enable/disable debugging messages.
Definition at line 101 of file gsttensor_sparsedec.c.
|
static |
Function to finalize instance.
Definition at line 172 of file gsttensor_sparsedec.c.
|
static |
Getter for tensor_sparse_dec properties.
Definition at line 208 of file gsttensor_sparsedec.c.
|
static |
Initialize tensor_sparse_dec element.
Definition at line 141 of file gsttensor_sparsedec.c.
|
static |
Get pad caps for caps negotiation.
pad don't have current caps. use the template caps
Definition at line 229 of file gsttensor_sparsedec.c.
|
static |
Setter for tensor_sparse_dec properties.
Definition at line 187 of file gsttensor_sparsedec.c.
|
static |
This function handles sink pad event.
Definition at line 313 of file gsttensor_sparsedec.c.
|
static |
This function handles sink pad query.
Definition at line 260 of file gsttensor_sparsedec.c.
|
static |
Template for sink pad.
Definition at line 68 of file gsttensor_sparsedec.c.
|
static |
Template for src pad.
Definition at line 76 of file gsttensor_sparsedec.c.