TIOVX User Guide
|
Go to the source code of this file.
Functions | |
void | vx_tutorial_graph_pipeline_two_nodes () |
Tutorial Entry Point. More... | |
Pipeline a graph with two nodes
In this tutorial we learn the below concepts,
To include OpenVX graph pipeline include below files
Follow the comments in the function vx_tutorial_graph_pipeline_two_nodes() to understand this tutorial
Definition in file vx_tutorial_graph_pipeline_two_nodes.c.
void vx_tutorial_graph_pipeline_two_nodes | ( | ) |
Tutorial Entry Point.
- Define objects that we wish to create in the OpenVX application.
- Create OpenVX context.
This MUST be done first before any OpenVX API call. The context that is returned is used as input for subsequent OpenVX APIs
- Allocate Input and Output images, multiple refs created to allow pipelining of graph.
- Construct the graph and set node targets such that each runs on a different CPU target
- The position where input and output images are made as graph parameters. This is because for pipelining, one can only enqueue/dequeue into a graph parameter
- Set graph scehdule policy to make it pipelined.
- Set graph pipeline depth. This has to be done explicitly. Default is 1.
- Verify the graph
- Enqueue input and output references,
- Wait for graph instances to complete,
- Release all perviously allocated resources
Definition at line 135 of file vx_tutorial_graph_pipeline_two_nodes.c.