94 #include <tivx_kernels_common_utils.h> 95 #include <tivx_kernels_target_utils.h> 98 #define PHASE_RGB_IN0_IMG_IDX (0u) 101 #define PHASE_RGB_OUT0_IMG_IDX (1u) 104 #define PHASE_RGB_MAX_PARAMS (2u) 121 uint16_t num_params,
void *priv_arg)
135 void *src_desc_target_ptr;
136 void *dst_desc_target_ptr;
158 vx_uint8 *in_data_ptr, *out_data_ptr;
161 in_data_ptr = src_desc_target_ptr;
162 out_data_ptr = dst_desc_target_ptr;
167 for(y=0; y<height; y++)
169 in_pixel = in_data_ptr;
170 out_pixel = out_data_ptr;
172 for(x=0; x<width; x++)
260 uint32_t replicated_node_idx,
tivx_obj_desc_t *param_obj_desc[], uint16_t num_params,
void *priv_arg)
Image object descriptor as placed in shared memory.
#define TIVX_TUTORIAL_KERNEL_PHASE_RGB_NAME
Converts Phase output to RGB image.
#define PHASE_RGB_OUT0_IMG_IDX
Index of output image in parameter list.
Interface to TI extension APIs.
vx_status VX_CALLBACK vxTutotrialPhaseRgbDelete(tivx_target_kernel_instance kernel, tivx_obj_desc_t *param_obj_desc[], uint16_t num_params, void *priv_arg)
Target kernel delete function.
#define PHASE_RGB_IN0_IMG_IDX
Index of input image in parameter list.
vx_imagepatch_addressing_t imagepatch_addr[TIVX_IMAGE_MAX_PLANES]
image plane addressing parameters
struct _tivx_target_kernel * tivx_target_kernel
Handle to kernel on a target.
vx_status tivxKernelsTargetUtilsAssignTargetNameDsp(char *target_name)
Function to assign platform-specific DSP target name.
tivx_shared_mem_ptr_t mem_ptr[TIVX_IMAGE_MAX_PLANES]
image plane buffer addresses
struct _tivx_target_kernel_instance * tivx_target_kernel_instance
Handle to instance of kernel on a target.
volatile uint32_t mem_size[TIVX_IMAGE_MAX_PLANES]
image plane buffer size
vx_status VX_CALLBACK vxTutotrialPhaseRgb(tivx_target_kernel_instance kernel, tivx_obj_desc_t *obj_desc[], uint16_t num_params, void *priv_arg)
Target kernel run function.
VX_API_ENTRY tivx_target_kernel VX_API_CALL tivxAddTargetKernelByName(const char *kernel_name, const char *target_name, tivx_target_kernel_f process_func, tivx_target_kernel_f create_func, tivx_target_kernel_f delete_func, tivx_target_kernel_control_f control_func, void *priv_arg)
Allows users to add native kernels implementation to specific targets.
#define TIVX_TARGET_MAX_NAME
Max possible name of a target.
void vxTutorialRemoveTargetKernelPhaseRgb(void)
Remove target kernel from TIOVX framework.
static tivx_target_kernel phase_rgb_target_kernel
Target kernel handle [static global].
Interface to kernel APIs on target.
vx_status VX_CALLBACK vxTutotrialPhaseRgbCreate(tivx_target_kernel_instance kernel, tivx_obj_desc_t *param_obj_desc[], uint16_t num_params, void *priv_arg)
Target kernel create function.
vx_status tivxMemBufferMap(void *host_ptr, uint32_t size, vx_enum mem_type, vx_enum maptype)
Map an allocated buffer address.
vx_status VX_CALLBACK vxTutotrialPhaseRgbControl(tivx_target_kernel_instance kernel, uint32_t replicated_node_idx, tivx_obj_desc_t *param_obj_desc[], uint16_t num_params, void *priv_arg)
Target kernel control function.
void * tivxMemShared2TargetPtr(const tivx_shared_mem_ptr_t *shared_ptr)
Convert shared pointer to target pointer.
VX_API_ENTRY vx_status VX_API_CALL tivxRemoveTargetKernel(tivx_target_kernel target_kernel)
Allows users to remove native kernels implementation to specific targets.
#define PHASE_RGB_MAX_PARAMS
Total number of parameters for this function.
vx_status tivxMemBufferUnmap(void *host_ptr, uint32_t size, vx_enum mem_type, vx_enum maptype)
UnMap a buffer address.
void vxTutorialAddTargetKernelPhaseRgb(void)
Add target kernel to TIOVX framework.
static void tivxCheckStatus(vx_status *status, vx_status status_temp)
Function to set the status variable equal to status_temp if the status_temp variable is not VX_SUCCES...