137 #define IN_FILE_NAME "${VX_TEST_DATA_PATH}/vx_tutorial_graph_image_gradients_phase_out.bmp" 140 #define OUT_USER_KERNEL_FILE_NAME "${VX_TEST_DATA_PATH}/vx_tutorial_graph_user_kernel_out.bmp" 143 #define OUT_TARGET_KERNEL_FILE_NAME "${VX_TEST_DATA_PATH}/vx_tutorial_graph_target_kernel_out.bmp" 179 if(add_as_target_kernel)
185 printf(
" vx_tutorial_graph_user_kernel: Tutorial Started !!! \n");
213 printf(
" vx_tutorial_graph_user_kernel: ERROR: unable to add user kernel !!!\n");
290 printf(
" Executing graph ...\n");
295 printf(
" Executing graph ... Done !!!\n");
300 printf(
" Saving to file %s ...\n", out_file);
333 printf(
" vx_tutorial_graph_user_kernel: Tutorial Done !!! \n");
struct _vx_image * vx_image
vx_status VX_API_CALL vxQueryImage(vx_image image, vx_enum attribute, void *ptr, vx_size size)
Interface to TI extension APIs.
void show_node_attributes(vx_node node)
Show attributes of previously created node.
vx_status phase_rgb_user_kernel_remove(vx_context context)
Remove user/target kernel from context.
void show_graph_attributes(vx_graph graph)
Show attributes of previously created graph.
#define IN_FILE_NAME
Input file name.
vx_status VX_API_CALL vxReleaseContext(vx_context *context)
struct _vx_context * vx_context
struct _vx_reference * vx_reference
#define OUT_USER_KERNEL_FILE_NAME
Output file name when tutorial is run with user kernel.
#define OUT_TARGET_KERNEL_FILE_NAME
Output file name when tutorial is run with target kernel.
vx_image VX_API_CALL vxCreateImage(vx_context context, vx_uint32 width, vx_uint32 height, vx_df_image color)
vx_status VX_API_CALL vxWaitGraph(vx_graph graph)
vx_status VX_API_CALL vxReleaseGraph(vx_graph *graph)
void vx_tutorial_graph_user_kernel(vx_bool add_as_target_kernel)
Tutorial Entry Point.
vx_status VX_API_CALL vxSetReferenceName(vx_reference ref, const vx_char *name)
vx_status phase_rgb_user_kernel_add(vx_context context, vx_bool add_as_target_kernel)
Add user/target kernel to OpenVX context.
void show_image_attributes(vx_image image)
Show attributes of previously created image.
vx_image tivx_utils_create_vximage_from_bmpfile(vx_context context, const char *filename, vx_bool convert_to_gray_scale)
Create a image data object given BMP filename as input.
vx_node phase_rgb_user_kernel_node(vx_graph graph, vx_image in, vx_image out)
User/target kernel node create function.
vx_graph VX_API_CALL vxCreateGraph(vx_context context)
vx_status VX_API_CALL vxVerifyGraph(vx_graph graph)
vx_status VX_API_CALL vxScheduleGraph(vx_graph graph)
vx_context VX_API_CALL vxCreateContext()
struct _vx_graph * vx_graph
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 vxReleaseNode(vx_node *node)
vx_status tivx_utils_save_vximage_to_bmpfile(const char *filename, vx_image image)
Save data from image object to PNG file.
struct _vx_node * vx_node
vx_status VX_API_CALL vxReleaseImage(vx_image *image)