NNStreamer APIs for tensor_if custom condition. More...
Go to the source code of this file.
Functions | |
int | nnstreamer_if_custom_register (const gchar *name, tensor_if_custom func, void *data) |
Register the custom callback function. More... | |
int | nnstreamer_if_custom_unregister (const gchar *name) |
Unregister the custom callback function. More... | |
Variables | |
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. More... | |
NNStreamer APIs for tensor_if custom condition.
GStreamer/NNStreamer Tensor-IF Copyright (C) 2020 Gichan Jang gicha n2.j ang@s amsu ng.co m
Definition in file tensor_if.h.
int nnstreamer_if_custom_register | ( | const gchar * | name, |
tensor_if_custom | func, | ||
void * | data | ||
) |
Register the custom callback function.
[in] | name | The name of tensor_if custom callback function. |
[in] | func | The custom condition function body |
[in/out] | data The internal data for the function |
tensor_if_h
can be get with gst_bin_get_by_name
from the pipeline. e.g.,) pipeline description: ... ! tensor_if name=tif (... properties ...) ! ... GstElement *tensor_if_h = gst_bin_get_by_name (GST_BIN (pipeline), "tif");Register the custom callback function.
Definition at line 1023 of file gsttensor_if.c.
int nnstreamer_if_custom_unregister | ( | const gchar * | name | ) |
Unregister the custom callback function.
[in] | name | The registered name of tensor_if custom callback function. |
Unregister the custom callback function.
Definition at line 1049 of file gsttensor_if.c.
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.
SECTION:element-tensor_if
How To for NNdevelopers:
Define the function in the app.
Usage example of the tensor_if custom condition
[in] | info | input tensors info |
[in] | input | memory containing input tensor data |
[in] | user_data | private data for the callback |
[out] | result | result of the user defined condition |
Definition at line 63 of file tensor_if.h.