Go to the documentation of this file.
19 #ifndef __GST_TENSOR_IF_H__
20 #define __GST_TENSOR_IF_H__
29 #define GST_TYPE_TENSOR_IF (gst_tensor_if_get_type ())
30 #define GST_TENSOR_IF(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_TENSOR_IF, GstTensorIf))
31 #define GST_TENSOR_IF_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_TENSOR_IF, GstTensorIfClass))
32 #define GST_TENSOR_IF_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_TENSOR_IF, GstTensorIfClass))
33 #define GST_IS_TENSOR_IF(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TENSOR_IF))
34 #define GST_IS_TENSOR_IF_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TENSOR_IF))
35 #define GST_TENSOR_IF_CAST(obj)((GstTensorIf*)(obj))
Internal functions to handle various tensor type and value.
@ TIFB_REPEAT_PREVIOUS_FRAME
gboolean custom_configured
tensor_if_behavior
Behaviors that may fit in THEN and ELSE.
@ TIFCV_ALL_TENSORS_TOTAL_VALUE
GType gst_tensor_if_get_type(void)
Get Type function required for gst elements.
@ TIFCV_TENSOR_AVERAGE_VALUE
GstTensorIfClass inherits GstElementClass.
GstTensorsConfig out_config[2]
G_BEGIN_DECLS typedef gboolean(* tensor_if_custom)(const GstTensorsInfo *info, const GstTensorMemory *input, void *user_data, gboolean *result)
Calls the user defined conditions function.
enum _nns_tensor_type tensor_type
Possible data element types of other/tensor.
Tensor If data structure.
GstTensorsConfig in_config
@ TIFCV_ALL_TENSORS_AVERAGE_VALUE
tensor_if_operator
OPERAND.
Internal data structure for supplied value.
Internal data structure for configured tensors info (for other/tensors).
tensor_if_behavior act_then
tensor_if_compared_value cv
@ TIFB_FILL_WITH_FILE_RPT
@ TIFCV_TENSOR_TOTAL_VALUE
Common header file for NNStreamer, the GStreamer plugin for neural networks.
To make the code simple with all the types. "C++ Template"-like.
GstElementClass parent_class
@ TIFOP_NOT_IN_RANGE_EXCLUSIVE
tensor_if_compared_value
Compared_Value.
tensor_if_srcpads
Which src pad.
tensor_if_behavior act_else
@ TIFOP_NOT_IN_RANGE_INCLUSIVE
NNStreamer APIs for tensor_if custom condition.