|
VPI - Vision Programming Interface
0.2.0 Release
|
Go to the documentation of this file.
56 #ifndef NV_VPI_EVENT_H
57 #define NV_VPI_EVENT_H
101 typedef struct CUevent_st *CUevent;
105 #define VPI_EVENT_DISABLE_PVA VPI_BACKEND_DISABLE_PVA
106 #define VPI_EVENT_DISABLE_CPU VPI_BACKEND_DISABLE_CPU
107 #define VPI_EVENT_DISABLE_CUDA VPI_BACKEND_DISABLE_CUDA
108 #define VPI_EVENT_DISABLE_TIMESTAMP \
112 #define VPI_EVENT_ONLY_PVA VPI_BACKEND_ONLY_PVA
113 #define VPI_EVENT_ONLY_CPU VPI_BACKEND_ONLY_CPU
114 #define VPI_EVENT_ONLY_CUDA VPI_BACKEND_ONLY_CUDA
119 #define VPI_EVENT_NO_PVA VPI_EVENT_DISABLE_PVA
120 #define VPI_EVENT_NO_CPU VPI_EVENT_DISABLE_CPU
121 #define VPI_EVENT_NO_CUDA VPI_EVENT_DISABLE_CUDA
132 VPI_PUBLIC VPIStatus vpiEventCreate(uint32_t flags, VPIEvent *event);
211 #endif // NV_VPI_EVENT_H
VPIStatus vpiEventElapsedTime(VPIEvent start, VPIEvent end, float *msec)
Computes the elapsed time in (msec) between two completed events.
VPIStatus vpiEventSync(VPIEvent event)
Blocks the calling thread until the event is completed.
VPIStatus vpiEventRecord(VPIEvent event, VPIStream stream)
Captures in the event the contents of the stream command queue at the time of this call.
struct VPIEventImpl * VPIEvent
VPIStatus vpiEventWrapCudaEvent(CUevent cudaEvent, VPIEvent *event)
Create an event object by wrapping around an existing CUDA CUevent object.
struct VPIStreamImpl * VPIStream
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.