66 #ifndef TIVX_TARGET_KERNEL_PRIV_H_ 67 #define TIVX_TARGET_KERNEL_PRIV_H_ 76 #if defined(BUILD_BAM) 89 #define TIVX_TARGET_KERNEL_ID_INVALID (0xFFFFu) 96 #define TIVX_TARGET_KERNEL_ID_NOT_USED (0xFFFEu) 103 typedef struct _tivx_target_kernel {
115 #if defined(BUILD_BAM) 121 int32_t kernel_params_size;
124 void *caller_priv_arg;
168 uint32_t node_cmd_id,
tivx_obj_desc_t *obj_desc[], uint16_t num_params);
struct _tivx_target_kernel * tivx_target_kernel
Handle to kernel on a target.
tivx_target_kernel ownTargetKernelGet(vx_enum kernel_id, volatile char *kernel_name, vx_enum target_id)
Returns target kernel registered against this kernel ID and target ID.
struct _tivx_target_kernel_instance * tivx_target_kernel_instance
Handle to instance of kernel on a target.
vx_status(VX_CALLBACK * tivx_target_kernel_control_f)(tivx_target_kernel_instance kernel, uint32_t node_cmd_id, tivx_obj_desc_t *obj_desc[], uint16_t num_params, void *priv_arg)
The target kernel callback for control command.
vx_status ownTargetKernelInit(void)
Init target kernel module.
vx_uint32 num_pipeup_bufs
Number of buffers needed for this kernel.
Holds information about a target kernel instance.
vx_status ownTargetKernelCreate(tivx_target_kernel_instance target_kernel_instance, tivx_obj_desc_t *obj_desc[], uint16_t num_params)
Create kernel on the target.
This file provides a BAM wrapper interface around each VXLIB kernel to be included in TIOVX...
vx_status(VX_CALLBACK * tivx_target_kernel_pre_post_process_f)(tivx_target_kernel_instance kernel, tivx_obj_desc_t *obj_desc[], uint16_t num_params, tivx_bam_graph_handle *graph_handle, void *priv_arg)
The "create in bam graph" target kernel callback.
vx_status ownTargetKernelExecute(tivx_target_kernel_instance target_kernel_instance, tivx_obj_desc_t *obj_desc[], uint16_t num_params)
Execute kernel on the target.
#define VX_MAX_KERNEL_NAME
vx_status(VX_CALLBACK * tivx_target_kernel_f)(tivx_target_kernel_instance kernel, tivx_obj_desc_t *obj_desc[], uint16_t num_params, void *priv_arg)
The target kernel callback.
The top level TI OpenVX implementation header.
vx_status(VX_CALLBACK * tivx_target_kernel_get_node_port_f)(tivx_target_kernel_instance kernel, uint8_t ovx_port, uint8_t plane, uint8_t *bam_node, uint8_t *bam_port)
The "get node port" target kernel callback.
vx_status(VX_CALLBACK * tivx_target_kernel_append_internal_edges_f)(tivx_target_kernel_instance kernel, BAM_EdgeParams edge_list[], int32_t *bam_edge_cnt)
The "append internal edges" target kernel callback This callback is optional and only needs to be imp...
vx_status ownTargetKernelControl(tivx_target_kernel_instance target_kernel_instance, uint32_t node_cmd_id, tivx_obj_desc_t *obj_desc[], uint16_t num_params)
Control kernel on the target.
vx_status(VX_CALLBACK * tivx_target_kernel_create_in_bam_graph_f)(tivx_target_kernel_instance kernel, tivx_obj_desc_t *obj_desc[], uint16_t num_params, void *priv_arg, BAM_NodeParams node_list[], tivx_bam_kernel_details_t kernel_details[], int32_t *bam_node_cnt, void *scratch, int32_t *size)
The "create in bam graph" target kernel callback.
vx_status ownTargetKernelDelete(tivx_target_kernel_instance target_kernel_instance, tivx_obj_desc_t *obj_desc[], uint16_t num_params)
Delete kernel on the target.
void ownTargetKernelDeInit(void)
DeInit target kernel module.