|
VPI - Vision Programming Interface
0.4.4 Release
|
Go to the documentation of this file.
56 #ifndef NV_VPI_EVENT_H
57 #define NV_VPI_EVENT_H
104 typedef struct CUevent_st *CUevent;
108 #define VPI_EVENT_DISABLE_TIMESTAMP (1 << 18)
112 #define vpiEventCreate VPI_APINAME(vpiEventCreate, 004)
113 #define vpiEventGetFlags VPI_APINAME(vpiEventGetFlags, 004)
222 #endif // NV_VPI_EVENT_H
VPIStatus vpiEventElapsedTime(VPIEvent start, VPIEvent end, float *msec)
Computes the elapsed time in (msec) between two completed events.
VPIStatus vpiEventCreate(uint32_t flags, VPIEvent *event)
Create an event instance with the specified flags.
VPIStatus vpiEventSync(VPIEvent event)
Blocks the calling thread until the event is signaled.
Defines all types needed for programming with VPI.
VPIStatus vpiEventRecord(VPIEvent event, VPIStream stream)
Captures in the event the contents of the stream command queue at the time of this call.
struct VPIStreamImpl * VPIStream
A handle to a stream.
struct VPIEventImpl * VPIEvent
A handle to an event.
VPIStatus vpiEventGetFlags(VPIEvent event, uint32_t *flags)
Returns the event flags passed during event creation.
VPIStatus vpiEventCreateCudaEventWrapper(CUevent cudaEvent, VPIEvent *event)
Create an event object by wrapping around an existing CUDA CUevent object.
Declaration of VPI status codes handling functions.
void vpiEventDestroy(VPIEvent event)
Destroy an event instance as well as all resources it owns.
VPIStatus vpiEventQuery(VPIEvent event)
Queries the status of all work currently captured by the event.