CoreFlow 1.0.0
A modern orchestration and execution runtime
|
Functions | |
VX_API_ENTRY vx_node VX_API_CALL | vxScalarOperationNode (vx_graph graph, vx_enum scalar_operation, vx_scalar a, vx_scalar b, vx_scalar output) |
[Graph] Creates a scalar operation node. | |
VX_API_ENTRY vx_node VX_API_CALL | vxSelectNode (vx_graph graph, vx_scalar condition, vx_reference true_value, vx_reference false_value, vx_reference output) |
[Graph] Selects one of two data objects depending on the the value of a condition (boolean scalar), and copies its data into another data object. | |
VX_API_ENTRY vx_node VX_API_CALL vxScalarOperationNode | ( | vx_graph | graph, |
vx_enum | scalar_operation, | ||
vx_scalar | a, | ||
vx_scalar | b, | ||
vx_scalar | output ) |
#include <vx_nodes.h>
[Graph] Creates a scalar operation node.
[in] | graph | The reference to the graph. |
[in] | scalar_operation | A VX_TYPE_ENUM of the vx_scalar_operation_e enumeration. |
[in] | a | First scalar operand. |
[in] | b | Second scalar operand. |
[out] | output | Result of the scalar operation. |
vx_node
. vx_node | A node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus |
VX_API_ENTRY vx_node VX_API_CALL vxSelectNode | ( | vx_graph | graph, |
vx_scalar | condition, | ||
vx_reference | true_value, | ||
vx_reference | false_value, | ||
vx_reference | output ) |
#include <vx_nodes.h>
[Graph] Selects one of two data objects depending on the the value of a condition (boolean scalar), and copies its data into another data object.
This node supports predicated execution flow within a graph. All the data objects passed to this kernel shall have the same object type and meta data. It is important to note that an implementation may optimize away the select and copy when virtual data objects are used.
If there is a kernel node that contribute only into virtual data objects during the graph execution due to certain data path being eliminated by not taken argument of select node, then the OpenVX implementation guarantees that there will not be any side effects to graph execution and node state.
If the path to a select node contains non-virtual objects, user nodes, or nodes with completion callbacks, then that path may not be "optimized out" because the callback must be executed and the non-virtual objects must be modified.
[in] | graph | The reference to the graph. |
[in] | condition | VX_TYPE_BOOL predicate variable. |
[in] | true_value | Data object for true. |
[in] | false_value | Data object for false. |
[out] | output | Output data object. |
vx_node
. vx_node | A node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus |