TIOVX User Guide
utility.h File Reference
#include <VX/vx.h>
#include <tivx_utils_file_rd_wr.h>

Go to the source code of this file.

Functions

void show_image_attributes (vx_image image)
 Show attributes of previously created image. More...
 
void show_graph_attributes (vx_graph graph)
 Show attributes of previously created graph. More...
 
void show_node_attributes (vx_node node)
 Show attributes of previously created node. More...
 

Detailed Description

Utility APIs created as part of various tutorials

Definition in file utility.h.

Function Documentation

◆ show_image_attributes()

void show_image_attributes ( vx_image  image)

Show attributes of previously created image.

This function queries the vx_image image for its number of nodes, number of parameters, state, performance, reference name and reference count then prints this information.

Parameters
image[in] Previouly created image object
  • Query image attributes.

Queries image for width, height, format, planes, size, space, range, range and memory type.

/
vxQueryImage(image, (vx_enum)VX_IMAGE_WIDTH, &width, sizeof(vx_uint32));
vxQueryImage(image, (vx_enum)VX_IMAGE_HEIGHT, &height, sizeof(vx_uint32));
vxQueryImage(image, (vx_enum)VX_IMAGE_PLANES, &num_planes, sizeof(vx_size));
vxQueryImage(image, (vx_enum)VX_IMAGE_SIZE, &size, sizeof(vx_size));
vxQueryImage(image, (vx_enum)VX_IMAGE_SPACE, &color_space, sizeof(vx_enum));
vxQueryImage(image, (vx_enum)VX_IMAGE_RANGE, &channel_range, sizeof(vx_enum));
vxQueryImage(image, (vx_enum)VX_IMAGE_MEMORY_TYPE, &memory_type, sizeof(vx_enum));

Definition at line 194 of file vx_tutorial_image_query.c.

◆ show_graph_attributes()

void show_graph_attributes ( vx_graph  graph)

Show attributes of previously created graph.

This function queries the vx_graph graph for its number of nodes, number of parameters, state, performance, reference name and reference count then prints this information.

Parameters
graph[in] Previouly created graph object
  • Query graph attributes.

Queries graph for number of nodes, number of parameters, state and performance

/
vxQueryGraph(graph, (vx_enum)VX_GRAPH_NUMNODES, &num_nodes, sizeof(vx_uint32));
vxQueryGraph(graph, (vx_enum)VX_GRAPH_NUMPARAMETERS, &num_params, sizeof(vx_uint32));
vxQueryGraph(graph, (vx_enum)VX_GRAPH_STATE, &state, sizeof(vx_enum));

Definition at line 406 of file vx_tutorial_image_color_convert.c.

◆ show_node_attributes()

void show_node_attributes ( vx_node  node)

Show attributes of previously created node.

This function queries the vx_node node for its status, number of parameters, performance, reference name and reference count then prints this information.

Parameters
node[in] Previouly created graph object
  • Query node attributes.

Queries node for number of status, number of parameters and performance

/
vxQueryNode(node, (vx_enum)VX_NODE_STATUS, &status, sizeof(vx_status));
vxQueryNode(node, (vx_enum)VX_NODE_PARAMETERS, &num_params, sizeof(vx_uint32));

Definition at line 477 of file vx_tutorial_image_color_convert.c.