Defines the Graph Parameter API.
Graph parameters allow Clients to create graphs with Client settable parameters. Clients can then create Graph creation methods (a.k.a. Graph Factories). When creating these factories, the client will typically not be able to use the standard Node creator functions such as vxSobel3x3Node
but instead will use the manual method via vxCreateGenericNode
.
{
{
};
};
};
};
};
for (i = 0; i < dimof(scalars); i++)
{
}
for (i = 0; i < dimof(virts); i++)
{
}
for (i = 0; i < dimof(kernels); i++)
{
}
for (i = 0; i < dimof(nodes);i++)
{
}
for (i = 0; i < dimof(parameters); i++)
{
}
}
return graph;
}
Some data are contained in these Graphs and do not become exposed to Clients of the factory. This allows ISVs or Vendors to create custom IP or IP-sensitive factories that Clients can use but may not be able to determine what is inside the factory. As the graph contains internal references to the data, the objects will not be freed until the graph itself is released.
Adds the given parameter extracted from a vx_node
to the graph.
- Parameters
-
[in] | graph | The graph reference that contains the node. |
[in] | parameter | The parameter reference to add to the graph from the node. |
- Returns
- A
vx_status_e
enumeration.
- Return values
-
VX_SUCCESS | Parameter added to Graph; any other value indicates failure. |
VX_ERROR_INVALID_REFERENCE | graph is not a valid vx_graph reference or parameter is not a valid vx_parameter reference. |
VX_ERROR_INVALID_PARAMETERS | The parameter is of a node not in this graph. |
Sets a reference to the parameter on the graph. The implementation must set this parameter on the originating node as well.
- Parameters
-
[in] | graph | The graph reference. |
[in] | index | The parameter index. |
[in] | value | The reference to set to the parameter. |
- Returns
- A
vx_status_e
enumeration.
- Return values
-
VX_SUCCESS | Parameter set to Graph; any other value indicates failure. |
VX_ERROR_INVALID_REFERENCE | graph is not a valid vx_graph reference or value is not a valid vx_reference . |
VX_ERROR_INVALID_PARAMETERS | The parameter index is out of bounds or the dir parameter is incorrect. |
Retrieves a vx_parameter
from a vx_graph
.
- Parameters
-
[in] | graph | The graph. |
[in] | index | The index of the parameter. |
- Returns
vx_parameter
reference. Any possible errors preventing a successful function completion should be checked using vxGetStatus
.