56 #ifndef NV_VPI_EVENT_H
57 #define NV_VPI_EVENT_H
105 #define VPI_EVENT_DISABLE_TIMESTAMP (1ULL << 63)
Declaration of VPI status codes handling functions.
Defines all types needed for programming with VPI.
struct VPIEventImpl * VPIEvent
A handle to an event.
VPIStatus vpiEventElapsedTimeMillis(VPIEvent start, VPIEvent end, float *msec)
Computes the elapsed time in milliseconds between two completed events.
VPIStatus vpiEventGetFlags(VPIEvent event, uint64_t *flags)
Returns the event flags passed during event creation.
VPIStatus vpiEventQuery(VPIEvent event, VPIEventState *state)
Queries the status of all work currently captured by the event.
VPIStatus vpiEventRecord(VPIEvent event, VPIStream stream)
Captures in the event the contents of the stream command queue at the time of this call.
VPIStatus vpiEventCreate(uint64_t flags, VPIEvent *event)
Create an event instance.
VPIStatus vpiEventSync(VPIEvent event)
Blocks the calling thread until the event is signaled.
void vpiEventDestroy(VPIEvent event)
Destroy an event instance as well as all resources it owns.
struct VPIStreamImpl * VPIStream
A handle to a stream.
VPIEventState
Defines the states of the event.