![]() |
VisionWorks Toolkit ReferenceDecember 18, 2015 | 1.2 Release |
Adds various extensions to the vx_graph
object.
This section describes different extensions and features to the standard Object: Graph.
vxWaitGraph
blocks the calling thread until the graph that was previously launched by vxScheduleGraph
finishes processing.
Enumerations | |
enum | nvx_directive_e { NVX_DIRECTIVE_KEYPOINT_ERROR_DISABLE = VX_ENUM_BASE(VX_ID_NVIDIA, VX_ENUM_DIRECTIVE) + 0x0, NVX_DIRECTIVE_KEYPOINT_ERROR_ENABLE, NVX_DIRECTIVE_KEYPOINT_ERROR_DEFAULT, NVX_DIRECTIVE_PERFORMANCE_DISABLE, NVX_DIRECTIVE_PERFORMANCE_ENABLE, NVX_DIRECTIVE_PERFORMANCE_DEFAULT } |
Defines directives that control different features for graph / immediate processing. More... | |
enum | nvx_graph_attribute_e { NVX_GRAPH_VERIFY_OPTIONS = VX_ENUM_BASE(VX_ID_NVIDIA, VX_TYPE_GRAPH) + 0x0, NVX_GRAPH_VERIFY_NEEDED = VX_ENUM_BASE(VX_ID_NVIDIA, VX_TYPE_GRAPH) + 0x1 } |
The extended graph attributes list. More... | |
Functions | |
vx_graph | nvxCreateStreamGraph (vx_context context) |
Creates an empty graph as a node stream. More... | |
vx_status | nvxRegisterAutoAging (vx_graph graph, vx_delay delay) |
Registers a delay for auto-aging. More... | |
The extended graph attributes list.
Enumerator | |
---|---|
NVX_GRAPH_VERIFY_OPTIONS |
Sets the graph verification options. Use a Supported options:
vx_char graph_options[] = "-O3 --dot /home/user/my_graph";
|
NVX_GRAPH_VERIFY_NEEDED |
Informs if graph verification is needed before graph execution. Use a Graph verification may be needed in multiple situations, for example
The OpenVX implementation automatically detects when a graph (re)verification is needed and will automatically verify the graph if needed when the application requests a graph execution. This attribute provides the current verification requirement status to the application. |
enum nvx_directive_e |
Defines directives that control different features for graph / immediate processing.
These enumerations are given to the vxDirective
API to enable/disable related features on the node, graph or context level.
The directives may be applied to vx_node
, vx_graph
or vx_context
objects. Immediate mode functions inherit this property from parent vx_context
object. Graph objects inherit this property from parent vx_context
object at the verification stage if the graph directive was not set by the application. Node objects inherit this property from parent vx_graph
object at the verification stage if the node directive was not set by the application.
vx_graph nvxCreateStreamGraph | ( | vx_context | context | ) |
Creates an empty graph as a node stream.
A stream-graph only differs from a standard OpenVX graph by the fact that its semantics is determined by the behavior that would have the sequential execution of nodes in the order they have been created (this order does not matter for a standard graph). The stream-graph then relaxes the single-assignment rule of the standard graph, and a data object is allowed to be written multiple times in a stream-graph.
VisionWorks applies to a stream-graph the same optimizations as to a standard graph, but ensures its semantics is preserved.
[in] | context | The reference to the implementation context. |
vxGetStatus
). Registers a delay for auto-aging.
This function registers a delay object to be auto-aged by the graph. This delay object gets automatically aged after each successful completion of this graph. A graph restart due to a node callback does not trigger auto-aging. A graph abandon due to a node callback does not trigger auto-aging.
If a delay object is registered for auto-aging multiple times in the same graph, the delay is aged only a single time after each successful completion of the graph. If a delay object is registered for auto-aging in multiple graphs, this delay is aged automatically after each successful completion of any of these graphs.
[in] | graph | The graph to which the delay gets registered for auto-aging. |
[in] | delay | The delay to automatically age. |
vx_status
enumerator. VX_SUCCESS | No errors. |
VX_ERROR_INVALID_REFERENCE | If the graph or delay is not a valid reference. |