This section contains module APIs for the TIOVX TIDL node tivxTIDLNode.
◆ APP_MODULE_TIDL_MAX_TENSORS
#define APP_MODULE_TIDL_MAX_TENSORS (8) |
Maximum number of TIDL tensors.
◆ app_init_tidl()
vx_status app_init_tidl |
( |
vx_context |
context, |
|
|
TIDLObj * |
obj, |
|
|
char * |
objName, |
|
|
vx_int32 |
num_cameras |
|
) |
| |
TIDL module init helper function.
This TIDL init helper function will create all the data objects required to create the TIDL node
- Parameters
-
[in] | context | OpenVX context which must be created using vxCreateContext |
[out] | obj | TIDL Module object which gets populated with TIDL node data objects |
[in] | objName | String of the name of this object |
[in] | num_cameras | Number of cameras used by TIDL |
◆ app_deinit_tidl()
void app_deinit_tidl |
( |
TIDLObj * |
obj | ) |
|
TIDL module deinit helper function.
This TIDL deinit helper function will release all the data objects created during the app_init_tidl call
- Parameters
-
[in,out] | obj | TIDL Module object which contains TIDL node data objects which are released in this function |
◆ app_delete_tidl()
void app_delete_tidl |
( |
TIDLObj * |
obj | ) |
|
TIDL module delete helper function.
This TIDL delete helper function will delete the TIDL node that is created during the app_create_graph_tidl call
- Parameters
-
[in,out] | obj | TIDL Module object which contains TIDL node objects which are released in this function |
◆ app_create_graph_tidl()
vx_status app_create_graph_tidl |
( |
vx_context |
context, |
|
|
vx_graph |
graph, |
|
|
TIDLObj * |
tidlObj, |
|
|
vx_object_array |
input_tensor_arr[] |
|
) |
| |
TIDL module create helper function.
This TIDL create helper function will create the node using all the data objects created during the app_init_tidl call.
- Parameters
-
[in] | context | OpenVX context which must be created using vxCreateContext |
[in] | graph | OpenVX graph that has been created using vxCreateGraph and where the TIDL node is created |
[in,out] | tidlObj | TIDL Module object which contains TIDL node which is created in this function |
[in,out] | input_tensor_arr | Input tensors to TIDL node; must be created separately outside the TIDL module |
◆ writeTIDLOutput()
vx_status writeTIDLOutput |
( |
char * |
file_name, |
|
|
TIDLObj * |
tidlObj |
|
) |
| |
TIDL module write TIDL output helper function.
This TIDL helper function will write each element of the output_tensor_arr to file.
- Parameters
-
[in] | file_name | Full path to file to write |
[in] | tidlObj | TIDL Module object which contains the output_tensor_arr which is written to file in this function |