38 #define TIVX_DEFAULT_GRAPH_TIMEOUT (TIVX_EVENT_TIMEOUT_WAIT_FOREVER) 49 #define TIVX_GRAPH_PARAMETER_ENQUEUE_FLAG_PIPEUP (0x00000001u) 104 typedef struct _vx_graph {
122 vx_node head_nodes[TIVX_GRAPH_MAX_HEAD_NODES];
125 uint32_t num_head_nodes;
128 vx_node leaf_nodes[TIVX_GRAPH_MAX_LEAF_NODES];
131 uint32_t num_leaf_nodes;
206 uintptr_t free_q_mem[TIVX_GRAPH_MAX_PIPELINE_DEPTH];
238 uint8_t data_ref_num_in_nodes[TIVX_GRAPH_MAX_DATA_REF];
241 uint8_t data_ref_num_out_nodes[TIVX_GRAPH_MAX_DATA_REF];
291 #if defined(BUILD_BAM) 353 #if defined(BUILD_BAM) vx_status ownGraphCreateQueues(vx_graph graph)
Create queues to maintain submitted graph desc and free graph desc.
struct _vx_delay * vx_delay
vx_bool is_enable_send_ref_consumed_event
flag to control event send enable/disable
#define TIVX_GRAPH_MAX_SUPER_NODES
Max possible super nodes in graph.
struct tivx_vx_event_t * tivx_event
Typedef for a event.
uint32_t schedule_pending_count
number of graph schedule's that are requested but not submitted i.e pending
uint32_t delay_slot_index
delay slot index associated with this data ref queue
vx_bool trigger_node_set
trigger node has been set for graph
vx_status ownGraphFreeStreaming(vx_graph graph)
Free graph streaming objects.
vx_node node
The reference to the node which has the data ref queue.
vx_bool is_streaming
is graph currently streaming
vx_status ownGraphScheduleGraph(vx_graph graph, uint32_t num_schedule)
Schedule a graph for execution 'num_schedule' times.
uint32_t num_data_ref_q
The number of graph parameters.
vx_perf_t perf
The performance logging variable.
uint32_t index
The index to the parameter on the node.
int32_t ownGraphGetFreeNodeIndex(vx_graph graph)
Get next free node entry in graph.
vx_status ownGraphAllocAndEnqueueObjDescForPipeline(vx_graph graph)
Alloc and enqueue graph obj desc based on graph pipeline depth.
vx_status tivxGraphParameterEnqueueReadyRef(vx_graph graph, vx_uint32 graph_parameter_index, vx_reference *refs, vx_uint32 num_refs, vx_uint32 flags)
Same as vxGraphParameterEnqueueReadyRef except that it take an additional TIOVX specific flag paramet...
The most basic type in the OpenVX system. Any type that inherits from tivx_reference_t must have a vx...
Graph object descriptor as placed in shared memory.
uint32_t ownGraphGetNumSchedule(vx_graph graph)
Counts number of enqueued 'refs' and returns number of times graph can be scheduled successfully...
The list of data refs other than graph parameters.
void ownSetGraphState(vx_graph graph, uint32_t pipeline_id, vx_enum state)
Set graph state for a given pipeline ID.
vx_status ownGraphParameterCheckValidEnqueueRef(vx_graph graph, uint32_t graph_parameter_index, vx_reference ref)
Checks if 'ref' is valid ref that can be enqueued.
tivx_event delete_done
event to indicate that streaming is deleted
tivx_queue free_q
free graph object descriptors that are ready for scheduling
#define TIVX_OBJ_DESC_QUEUE_MAX_DEPTH
Max elements in a object descriptor queue.
tivx_event all_graph_completed_event
event to indicate all schedule graphs have finished execution and none are pending ...
vx_status ownGraphAllocForStreaming(vx_graph graph)
Alloc objects for graph streaming.
vx_enum type
Set to an enum value in vx_type_e.
struct _vx_reference * vx_reference
vx_status ownGraphAddNode(vx_graph graph, vx_node node, int32_t idx)
Add's a node to a graph.
uint32_t graph_completed_app_value
tivx_reference_t base
The base reference object.
tivx_data_ref_queue data_ref_queue
data ref queue handle when queueing is enabled at this graph parameter
vx_bool reverify
Flag to maintain state of graph re-verification.
vx_bool is_pipelining_enabled
graph pipelining enabled flag
vx_enum schedule_mode
graph schedule mode as defined by vx_graph_schedule_mode_type_e
vx_status ownGraphRegisterCompletionEvent(vx_graph graph, vx_uint32 app_value)
Register event on graph completion.
vx_bool is_pipeline_depth_set
graph pipeline depth set flag via tivxSetGraphPipelineDepth
vx_status ownGraphRemoveNode(vx_graph graph, vx_node node)
Remove a node from a graph.
void ownGraphDetectAndSetNumBuf(vx_graph graph)
Sets buffers automatically if not already set (see: TIOVX-903)
void ownGraphTopologicalSort(tivx_graph_sort_context *context, vx_node *nodes, uint32_t num_nodes, vx_bool *has_cycle)
Perform topological sort of graph nodes.
vx_bool ownCheckGraphCompleted(vx_graph graph, uint32_t pipeline_id)
Check if a previously scheduled graph execution is complete.
vx_delay delay_ref
delay associated with this data ref queue
Context used while sorting a graph.
vx_status ownGraphFreeObjDesc(vx_graph graph)
Free graph obj desc based allocated during ownGraphAllocAndEnqueueObjDescForPipeline() ...
vx_status ownUpdateGraphPerf(vx_graph graph, uint32_t pipeline_id)
Update graph performance.
tivx_data_ref_queue data_ref_queue
data ref queue handle
The top level data for graph object.
void ownGraphSetReverify(vx_graph graph)
Mark graph to be reverified.
vx_status tivxWaitGraphEvent(vx_graph graph, vx_event_t *event, vx_bool do_not_block)
Waits for user event from graph event queue.
uint32_t num_delay_data_ref_q
The number of graph parameters.
tivx_data_ref_queue data_ref_queue
data ref queue handle
The list of graph parameters.
vx_status tivxSendUserGraphEvent(vx_graph graph, vx_uint32 app_value, const void *parameter)
Sends user event to graph event queue.
tivx_event stop_done
event to indicate that streaming has stopped
struct _tivx_super_node * tivx_super_node
The Super Node Framework Object. Super Node is a strongly-typed container for connected nodes...
vx_bool is_streaming_enabled
is streaming enabled for graph
The list of delay data refs other than graph parameters.
struct _tivx_data_ref_queue * tivx_data_ref_queue
Data Ref Queue Object.
vx_bool is_streaming_alloc
when true, all allocations have occurred properly in order for streaming to occur within a graph ...
Data structure which holds event information.
vx_uint32 trigger_node_index
index of trigger node
uint32_t num_params
The number of graph parameters.
vx_enum state
The state of the graph (vx_graph_state_e)
vx_status ownGraphRegisterParameterConsumedEvent(vx_graph graph, uint32_t graph_parameter_index, vx_uint32 app_value)
Register event on graph parameter consumed.
uint32_t num_buf
when queue_enable = vx_true_e, this hold the max buffers that can be enqueued
vx_node node
The reference to the node which has the data ref queue.
vx_status ownGraphScheduleGraphWrapper(vx_graph graph)
Wrapper for ownGraphScheduleGraph.
vx_uint32 ownGraphGetPipeDepth(vx_graph graph)
Query the leaf nodes of the graph for their depth to find the total depth of the graph.
vx_bool is_enable_send_complete_event
when true a event is sent when a graph execution is completed
uint32_t num_buf
this hold the max buffers that can be enqueued
vx_status ownGraphVerifyStreamingMode(vx_graph graph)
verify graph schedule mode with streaming
vx_bool ownGraphCheckIsRefMatch(vx_graph graph, vx_reference ref1, vx_reference ref2)
Abstracted check for checking if references match "vx_true_e" will be returned if references match or...
vx_bool verified
Flag to maintain state of graph verification.
uint32_t index
The index to the parameter on the node.
vx_uint32 timeout_val
Control API processing Timeout value in milli-sec.
vx_bool ownGraphDoScheduleGraphAfterEnqueue(vx_graph graph, uint32_t graph_parameter_index)
Check if a graph should be scheduled after a graph parameter has been enqueued.
void ownSendGraphCompletedEvent(vx_graph graph)
Send graph completion event if enabled.
vx_status ownGraphValidatePipelineParameters(vx_graph graph)
Checks for invalid pipelining conditions (see: TIOVX-726)
uint32_t num_data_ref
number of data references in the graph
void ownGraphClearState(vx_graph graph, uint32_t pipeline_id)
Graph execution state for given pipeline ID.
struct _vx_graph * vx_graph
uint32_t index
The index to the parameter on the node.
uint32_t pipeline_depth
graph pipeline depth
tivx_event_queue_t event_queue
vx_status ownGraphDeleteQueues(vx_graph graph)
Delete queues created during ownGraphCreateQueues.
vx_node node
The reference to the node which has the parameter.
struct _vx_node * vx_node
uint32_t submitted_count
counts the number of graphs schedule or submitted but not yet completed
uint32_t graph_consumed_app_value
tivx_task streaming_task_handle
tivx_data_ref_queue ownGraphGetParameterDataRefQueue(vx_graph graph, vx_uint32 graph_parameter_index)
If a data ref queue is associated with 'graph_parameter_index' return it.
vx_bool queue_enable
vx_true_e, enqueue operation is supported on this parameter
uint32_t streaming_executions
graph streaming executions