35 #define TIVX_CONTEXT_MAX_CONVOLUTION_DIM (9) 40 #define TIVX_CONTEXT_MAX_OPTICALFLOWPYRLK_DIM (9) 45 #define TIVX_CONTEXT_MAX_NONLINEAR_DIM (9) 50 typedef struct _tivx_graph_sort_context {
66 typedef struct _vx_context {
248 uint32_t target_id, uint32_t replicated_node_idx, uint32_t node_cmd_id,
249 const uint16_t obj_desc_id[], uint32_t num_obj_desc, uint32_t timeout);
vx_bool log_enabled
The log enable toggle.
void ownContextSetKernelRemoveLock(vx_context context, vx_bool do_lock)
Set value of kernel remove lock flag.
The top level context data for the entire OpenVX instance.
vx_bool ownContextGetKernelRemoveLock(vx_context context)
Get value of kernel remove lock flag.
#define TIVX_MAX_CTRL_CMD_OBJECTS
Max size of control command objects.
vx_log_callback_f log_callback
Callback to call for logging messages from framework.
vx_uint32 num_dynamic_user_library_id
Number of dynamic_user_library_id's being used.
vx_status ownContextSendCmd(vx_context context, uint32_t target_id, uint32_t cmd, uint32_t num_obj_desc, const uint16_t *obj_desc_id, uint32_t timeout)
Send a command to specified target with object descriptor ID's as parameters.
vx_bool ownAddReferenceToContext(vx_context context, vx_reference ref)
Add reference to a context.
The most basic type in the OpenVX system. Any type that inherits from tivx_reference_t must have a vx...
vx_context ownGetContext(void)
Returns the vx_context object currently being used.
vx_enum imm_border_policy
The unsupported border mode policy for immediate mode functions.
vx_border_t imm_border
The immediate mode border.
vx_status ownContextUnlock(vx_context context)
Lock context.
vx_status ownRemoveKernelFromContext(vx_context context, vx_kernel kernel)
Remove unique kernel from context.
void(* vx_log_callback_f)(vx_context context, vx_reference ref, vx_status status, const vx_char string[])
tivx_event_queue_t event_queue
struct _vx_context * vx_context
struct _vx_reference * vx_reference
tivx_queue free_queue
handle to free queue holding tivx_event_queue_elem_t's NOTE: queue holds index's to event_list[] ...
tivx_graph_sort_context graph_sort_context
#define TIVX_CONTEXT_MAX_USER_STRUCTS
Max possible user structs in a context.
vx_uint32 num_dynamic_user_kernel_id
Number of dynamic_user_kernel_id's being used.
vx_bool ownIsValidContext(vx_context context)
Check if 'context' is valid.
vx_status ownIsKernelInContext(vx_context context, vx_enum enumeration, const vx_char string[VX_MAX_KERNEL_NAME], vx_bool *is_found)
Check if kernel exists inside the context.
vx_bool remove_kernel_lock
vx_status ownAddKernelToContext(vx_context context, vx_kernel kernel)
Add's unique kernel to context.
Context used while sorting a graph.
#define TIVX_TARGET_MAX_NAME
Max possible name of a target.
vx_uint32 num_unique_kernels
The combined number of unique kernels in the system.
Command object descriptor.
tivx_mutex lock
Lock to use for locking context.
struct _vx_kernel * vx_kernel
vx_bool ownRemoveReferenceFromContext(vx_context context, vx_reference ref)
Remove reference from a context.
tivx_mutex log_lock
Lock to use for locking log print's.
#define TIVX_GRAPH_MAX_NODES
Max possible nodes in graph.
vx_size size
Size in bytes.
#define TIVX_CONTEXT_MAX_KERNELS
Max possible unique kernels in a context.
#define TIVX_MAX_LIBRARY_ID
Max number of kernel library ID's.
#define TIVX_CONTEXT_MAX_REFERENCES
Max possible references in a context.
vx_enum imm_target_enum
The immediate mode enumeration.
#define TIVX_MAX_KERNEL_ID
Max number of kernel ID's.
vx_uint32 num_references
The number of references in the table.
#define VX_MAX_KERNEL_NAME
vx_bool perf_enabled
The performance counter enable toggle.
tivx_queue pend_queue
handle to ready queue holding tivx_event_queue_elem_t's which are ready to be delivered to users NOTE...
vx_status ownContextSendControlCmd(vx_context context, uint16_t node_obj_desc, uint32_t target_id, uint32_t replicated_node_idx, uint32_t node_cmd_id, const uint16_t obj_desc_id[], uint32_t num_obj_desc, uint32_t timeout)
Send a control command to specified target with object descriptor ID's as parameters.
vx_status ownContextLock(vx_context context)
Lock context.
vx_status ownContextFlushCmdPendQueue(vx_context context)
Flushes the command pend queue, if not empty.
vx_enum type
Type constant.
struct _vx_node * vx_node
tivx_reference_t base
The base reference object.
struct _tivx_mutex_t * tivx_mutex
Typedef for a mutex.
struct _tivx_event_t * tivx_event
Typedef for a event.