73 #include <TI/tivx_nodes.h> 78 #include <TI/tivx_soc.h> 94 #define TIVX_TARGET_MAX_NAME (64u) 104 #define TIVX_TARGET_HOST "HOST" 111 #define TIVX_RESOURCE_NAME_MAX (39u) 118 #define TIVX_CONFIG_PATH_LENGTH (512u) 128 #define TIVX_CONTROL_CMD_SEND_TO_ALL_REPLICATED_NODES ((uint32_t)-1) 136 #define TIVX_GRAPH_MAX_SUPER_NODES (8u) 141 #define TIVX_MAX_DSP_BAM_USER_PLUGINS (8u) 146 #define TIVX_SUPER_NODE_MAX_NODES (16u) 151 #define TIVX_SUPER_NODE_MAX_EDGES (16u) 156 #define TIVX_SUPER_NODE_MAX_OBJECTS (16u) 167 #define TIVX_PYRAMID_MAX_LEVELS_ORB (17u) 172 #define TIVX_MAX_KERNEL_ID (VX_KERNEL_MASK) 177 #define TIVX_MAX_LIBRARY_ID (VX_LIBRARY(VX_LIBRARY_MASK)) 184 #define TIVX_MAX_CONFIG_PARAM_OBJECTS (12u) 190 #define TIVX_CONFIG_PARAM_OBJECT_TYPE_DIM (2u) 199 typedef struct _tivx_resource_stats_t {
226 typedef enum _tivx_attribute_extensions_e {
330 typedef enum _tivx_df_image_e {
357 typedef enum _tivx_status_e {
568 typedef enum _tivx_memory_logging_e {
589 #define dimof(x) (sizeof(x)/sizeof(x[0])) 642 const char *kernel_name,
797 uint32_t replicate_nodex_idx, uint32_t node_cmd_id,
841 uint32_t replicate_nodex_idx, uint32_t node_cmd_id,
842 vx_reference ref[], uint32_t num_refs, uint32_t timeout);
Query the node to see if it has timed out. Read-Only. Can be read at initialization as well as at run...
void tivxHostInit(void)
Function to initialize OpenVX HOST side functionality.
uint32_t min_required_value
VX_API_ENTRY vx_bool VX_API_CALL tivxIsReferenceMetaFormatEqual(vx_reference ref1, vx_reference ref2)
Check for equivalence between the meta formats of two reference objects.
Interface to Memory allocation and deallocation APIs.
tivx_attribute_extensions_e
TI attribute extensions.
uint64_t tivxPlatformGetTimeInUsecs(void)
Get the time in micro seconds.
VX_API_ENTRY vx_status VX_API_CALL tivxSetReferenceAttribute(vx_reference ref, vx_enum attribute, const void *ptr, vx_size size)
Sets reference attributes for the below enums: TIVX_REFERENCE_TIMESTAMP.
void tivxInit(void)
Function to initialize OpenVX framework.
VX_API_ENTRY vx_status VX_API_CALL tivxSetKernelSinkDepth(vx_kernel kernel, uint32_t num_sink_bufs)
Set the number of sink buffers.
Interface to Tensor APIs (modeled after OpenVX 1.2 tensor support)
All display mode; Outputs all possible information.
Set/Query the node level timeout parameter. Read-Write. Can be written at initialization as well as a...
The OpenVX Bidirectional Parameters extension API.
vx_bool tivxIsTargetEnabled(const char target_name[])
Utility function to know if target is enabled or not.
The TI Raw Image extension.
vx_status VX_API_CALL tivxGetNodeParameterNumBufByIndex(vx_node node, vx_uint32 idx, vx_uint32 *num_buf)
Get number of buffers to allocate at output of a node parameter.
Global display mode; Outputs only the TIOVX global memory info.
vx_status tivxExportMemoryConsumption(char *outputFile, const char *unit, vx_enum displayMode)
Exports memory consumption information to console or a specified file. Note that the object descripto...
#define TIVX_RESOURCE_NAME_MAX
Max size of macro.
tivx_df_image_e
Based on the VX_DF_IMAGE definition.
struct _vx_context * vx_context
vx_node tivxGraphGetNode(vx_graph graph, uint32_t idx)
This API is used to get a reference to a node within a graph at a given index within the graph...
Query the strides from a vx_tensor object. Read-Only. Can be read at initialization as well as at run...
Indicates the base for the TIVX error codes. Used for bounds checks only.
vx_status VX_API_CALL tivxExportGraphToDot(vx_graph graph, const char *output_file_path, const char *output_file_prefix)
Export graph representation as DOT graph file.
vx_status VX_API_CALL tivxSetNodeParameterNumBufByIndex(vx_node node, vx_uint32 idx, vx_uint32 num_buf)
Set number of buffers to allocate at output of a node parameter.
Query the imagepatch addressing structure from a vx_image. Read-Only. Can be read at initialization a...
struct _vx_reference * vx_reference
The OpenVX Pipelining, Streaming and Batch Processing extension API.
Query the graph pipeline depth. Read-Only. Can be read at initialization as well as at runtime...
Indicates that the wait operation on an event timed-out.
The Internal Debugging API.
A single plane of packed 12-bit data.
vx_status(* vx_publish_kernels_f)(vx_context context)
Query the context number of user library ID's. Read-Only. Can be read at initialization as well as at...
void tivxDeInit(void)
Function to de-initialize OpenVX framework.
Struct containing config parameters of given static resource. Allows for a log to be kept of the reso...
vx_status VX_API_CALL tivxSetGraphPipelineDepth(vx_graph graph, vx_uint32 pipeline_depth)
Indicates to the implementation the depth of the graph pipeline.
vx_reference tivxGetReferenceParent(vx_reference child_ref)
Utility function to extract the parent reference from an element.
vx_node tivxCreateNodeByKernelRef(vx_graph graph, vx_kernel kernel, vx_reference params[], vx_uint32 num)
Utility function to create a node given parameter references and kernel reference.
vx_node tivxCreateNodeByKernelEnum(vx_graph graph, vx_enum kernelenum, vx_reference params[], vx_uint32 num)
Utility function to create a node given parameter references and kernel enum.
The TI Super Node extension.
Set/Query the kernel level timeout parameter. Read-Write. Can be written at initialization as well as...
#define VX_ATTRIBUTE_BASE(vendor, object)
Returns a boolean indicating whether or not a reference is invalid.
vx_status VX_API_CALL tivxNodeSendCommand(vx_node node, uint32_t replicate_nodex_idx, uint32_t node_cmd_id, vx_reference ref[], uint32_t num_refs)
Send node specific Control command.
struct _vx_user_data_object * vx_user_data_object
The User Data Object. User Data Object is a strongly-typed container for other data structures...
VX_API_ENTRY vx_status VX_API_CALL tivxSetUserDataObjectAttribute(vx_user_data_object user_data_object, vx_enum attribute, const void *ptr, vx_size size)
Sets attributes on the user data object.
Default display mode; Outputs only total global and obj desc memory.
The list of supported kernels in the TIOVX.
struct _vx_kernel * vx_kernel
#define TIVX_CONFIG_PARAM_OBJECT_TYPE_DIM
Number of dimensions of a configuration parameter's object type array.
VX_API_ENTRY vx_status VX_API_CALL tivxSetNodeTileSize(vx_node node, vx_uint32 block_width, vx_uint32 block_height)
Sets the tile size for a given node in a graph. This is only valid for BAM-enabled kernels on C66 DSP...
tivx_status_e
The enumeration of all TIVX operational error codes.
Sets the valid data size within the user data object.
Query the reference to see if the associated buffer has been allocated. Note that this is only applic...
vx_bool is_size_cumulative
a NV12 frame of packed 12-bit data.
#define VX_DF_IMAGE(a, b, c, d)
vx_status tivxExportAllResourceMaxUsedValueToFile(void)
Exports the max used values to a file.
Set/Query the graph level timeout parameter. Read-Write. Can be written at initialization as well as ...
A single plane of 32-bit pixel as 4 interleaved 8-bit units of B then G then R data, then a don't care byte. This uses the BT709 full range by default.
Returns the target string corresponding to the node.
vx_status VX_API_CALL tivxNodeSendCommandTimed(vx_node node, uint32_t replicate_nodex_idx, uint32_t node_cmd_id, vx_reference ref[], uint32_t num_refs, uint32_t timeout)
Send node specific Control command.
VX_API_ENTRY vx_status VX_API_CALL tivxReferenceExportHandle(const vx_reference ref, void *addr[], uint32_t size[], uint32_t max_num_entries, uint32_t *num_entries)
Exports the handles from a reference object.
Obj Desc display mode; Outputs only the object descriptor memory info.
VX_API_ENTRY vx_status VX_API_CALL tivxAddKernelTarget(vx_kernel kernel, const char *target_name)
Associate a target with a kernel.
Returns the timestamp in micro-seconds corresponding to the given reference.
void tivxHostDeInit(void)
Function to de-initialize OpenVX HOST side functionality.
vx_enum tivxGetSelfCpuId(void)
Return CPU ID of the CPU on which this API is called.
VX_API_ENTRY vx_reference VX_API_CALL tivxCreateReferenceFromExemplar(vx_context context, vx_reference exemplar)
Create reference from a exemplar object.
vx_status tivxQueryResourceStats(const char *resource_name, tivx_resource_stats_t *stats)
Query resource for resource stats.
Interface to TI run-time logging APIs.
Returns the graph stream executions. Read-only. Use a vx_uint32 parameter.
struct _vx_graph * vx_graph
VX_API_ENTRY vx_status VX_API_CALL tivxRegisterModule(const char *name, vx_publish_kernels_f publish, vx_unpublish_kernels_f unpublish)
Register publish and unpublish functions against a module name.
A single plane of packed 16-bit RGB565 data.
tivx_memory_logging_e
Enumerations of memory consumption tool's display modes.
VX_API_ENTRY vx_status VX_API_CALL tivxReferenceImportHandle(vx_reference ref, const void *addr[], const uint32_t size[], uint32_t num_entries)
Updates a reference object with the supplied handles (pointers to memory).
Query the context number of user kernel ID's. Read-Only. Can be read at initialization as well as at ...
vx_bool tivxIsReferenceVirtual(vx_reference ref)
Utility function to check if the given reference is virtual or not.
VX_API_ENTRY vx_status VX_API_CALL tivxUnRegisterModule(const char *name)
UnRegister publish and unpublish functions if previously registered.
struct _vx_node * vx_node
vx_node tivxCreateNodeByKernelName(vx_graph graph, const char *kernel_name, vx_reference params[], vx_uint32 num)
Utility function to create a node given parameter references and kernel name.
vx_status(* VX_API_CALL)(vx_reference *ref)
Callback type used to register release callbacks from object derived from references.
The OpenVX User Data Object extension API.
#define TIVX_MAX_CONFIG_PARAM_OBJECTS
Max number of data objects that contribute to a configuration parameter's memory footprint.
void tivxPrintAllResourceStats(void)
Prints out resource stats.