GStreamer plugin to control flow based on tensor values. More...
Go to the source code of this file.
Classes | |
struct | tensor_if_sv_s |
Internal data structure for supplied value. More... | |
struct | custom_cb_s |
struct | _GstTensorIf |
Tensor If data structure. More... | |
struct | _GstTensorIfClass |
GstTensorIfClass inherits GstElementClass. More... | |
Macros | |
#define | GST_TYPE_TENSOR_IF (gst_tensor_if_get_type ()) |
#define | GST_TENSOR_IF(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_TENSOR_IF, GstTensorIf)) |
#define | GST_TENSOR_IF_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_TENSOR_IF, GstTensorIfClass)) |
#define | GST_TENSOR_IF_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_TENSOR_IF, GstTensorIfClass)) |
#define | GST_IS_TENSOR_IF(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TENSOR_IF)) |
#define | GST_IS_TENSOR_IF_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TENSOR_IF)) |
#define | GST_TENSOR_IF_CAST(obj) ((GstTensorIf*)(obj)) |
Typedefs | |
typedef struct _GstTensorIf | GstTensorIf |
typedef struct _GstTensorIfClass | GstTensorIfClass |
Enumerations | |
enum | tensor_if_compared_value { TIFCV_A_VALUE = 0, TIFCV_TENSOR_TOTAL_VALUE = 1, TIFCV_ALL_TENSORS_TOTAL_VALUE = 2, TIFCV_TENSOR_AVERAGE_VALUE = 3, TIFCV_ALL_TENSORS_AVERAGE_VALUE = 4, TIFCV_CUSTOM = 5, TIFCV_END } |
Compared_Value. More... | |
enum | tensor_if_operator { TIFOP_EQ = 0, TIFOP_NE, TIFOP_GT, TIFOP_GE, TIFOP_LT, TIFOP_LE, TIFOP_RANGE_INCLUSIVE, TIFOP_RANGE_EXCLUSIVE, TIFOP_NOT_IN_RANGE_INCLUSIVE, TIFOP_NOT_IN_RANGE_EXCLUSIVE, TIFOP_END } |
OPERAND. More... | |
enum | tensor_if_behavior { TIFB_PASSTHROUGH = 0, TIFB_SKIP, TIFB_FILL_ZERO, TIFB_FILL_VALUES, TIFB_FILL_WITH_FILE, TIFB_FILL_WITH_FILE_RPT, TIFB_REPEAT_PREVIOUS_FRAME, TIFB_TENSORPICK, TIFB_END } |
Behaviors that may fit in THEN and ELSE. More... | |
enum | tensor_if_srcpads { TIFSP_THEN_PAD = 0, TIFSP_ELSE_PAD } |
Which src pad. More... | |
Functions | |
GType | gst_tensor_if_get_type (void) |
Get Type function required for gst elements. More... | |
GStreamer plugin to control flow based on tensor values.
GStreamer/NNStreamer Tensor-IF Copyright (C) 2020 MyungJoo Ham myung joo. ham@s amsu ng.co m
The output dimension is SAME with input dimension.
Definition in file gsttensor_if.h.
#define GST_IS_TENSOR_IF | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TENSOR_IF)) |
Definition at line 33 of file gsttensor_if.h.
#define GST_IS_TENSOR_IF_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TENSOR_IF)) |
Definition at line 34 of file gsttensor_if.h.
#define GST_TENSOR_IF | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_TENSOR_IF, GstTensorIf)) |
Definition at line 30 of file gsttensor_if.h.
#define GST_TENSOR_IF_CAST | ( | obj | ) | ((GstTensorIf*)(obj)) |
Definition at line 35 of file gsttensor_if.h.
#define GST_TENSOR_IF_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_TENSOR_IF, GstTensorIfClass)) |
Definition at line 31 of file gsttensor_if.h.
#define GST_TENSOR_IF_GET_CLASS | ( | obj | ) | (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_TENSOR_IF, GstTensorIfClass)) |
Definition at line 32 of file gsttensor_if.h.
#define GST_TYPE_TENSOR_IF (gst_tensor_if_get_type ()) |
Definition at line 29 of file gsttensor_if.h.
typedef struct _GstTensorIf GstTensorIf |
Definition at line 36 of file gsttensor_if.h.
typedef struct _GstTensorIfClass GstTensorIfClass |
Definition at line 37 of file gsttensor_if.h.
enum tensor_if_behavior |
Behaviors that may fit in THEN and ELSE.
FILL_WITH_FILE, FILL_WITH_FILE_RPT, and REPEAT_PREVIOUS_FRAME caches an output frame and thus, may consume additional memory and incur an additional memcpy.
Definition at line 79 of file gsttensor_if.h.
Compared_Value.
Definition at line 42 of file gsttensor_if.h.
enum tensor_if_operator |
OPERAND.
Definition at line 60 of file gsttensor_if.h.
enum tensor_if_srcpads |
Which src pad.
Enumerator | |
---|---|
TIFSP_THEN_PAD | |
TIFSP_ELSE_PAD |
Definition at line 96 of file gsttensor_if.h.
GType gst_tensor_if_get_type | ( | void | ) |
Get Type function required for gst elements.