|
VPI - Vision Programming Interface
0.4.4 Release
|
Go to the documentation of this file.
56 #ifndef NV_VPI_STREAM_H
57 #define NV_VPI_STREAM_H
67 typedef struct CUstream_st *CUstream;
91 #define vpiStreamCreate VPI_APINAME(vpiStreamCreate, 004)
92 #define vpiStreamCreateCudaStreamWrapper VPI_APINAME(vpiStreamCreateCudaStreamWrapper, 004)
93 #define vpiStreamGetThreadHandle VPI_APINAME(vpiStreamGetThreadHandle, 004)
94 #define vpiStreamGetFlags VPI_APINAME(vpiStreamGetFlags, 004)
197 #endif // NV_VPI_STREAM_H
VPIStatus vpiStreamGetThreadHandle(VPIStream stream, VPINativeThreadHandle *handle)
Returns OS-specific handle of the background stream processing thread.
Defines all types needed for programming with VPI.
VPIStatus vpiStreamCreate(uint32_t flags, VPIStream *stream)
Create a stream instance.
VPIStatus vpiStreamGetFlags(VPIStream stream, uint32_t *flags)
Gets the VPIStream flags passed during its creation.
void vpiPayloadDestroy(VPIPayload payload)
Deallocates the payload object and all associated resources.
VPIStatus vpiStreamCreateCudaStreamWrapper(CUstream cudaStream, uint32_t flags, VPIStream *stream)
Wraps an existing cudaStream_t into a VPI stream.
VPIStatus vpiStreamSync(VPIStream stream)
Blocks the calling thread until all submitted commands in this stream queue are done (queue is empty)...
struct VPIStreamImpl * VPIStream
A handle to a stream.
void vpiStreamDestroy(VPIStream stream)
Destroy a stream instance and deallocate all HW resources.
struct VPIEventImpl * VPIEvent
A handle to an event.
struct VPIPayloadImpl * VPIPayload
A handle to an algorithm payload.
VPIStatus vpiStreamWaitFor(VPIStream stream, VPIEvent event)
Pushes a command that blocks the processing of all future commands submitted to the stream until the ...
Declaration of VPI status codes handling functions.
void * VPINativeThreadHandle
A handle to OS-specific thread handle.