VPI - Vision Programming Interface

0.1.0 Release

Functions

VPIStatus vpiStreamCreate (VPIDeviceType devType, VPIStream *stream)
 Create a stream instance. More...
 
void vpiStreamDestroy (VPIStream stream)
 Destroy a stream instance and deallocate all HW resources. More...
 
VPIStatus vpiStreamGetDeviceType (VPIStream stream, VPIDeviceType *deviceType)
 Returns the backend type associated with the given stream. More...
 
VPIStatus vpiStreamSync (VPIStream stream)
 Blocks the calling thread until all submitted commands in this stream queue are done (queue is empty). More...
 
VPIStatus vpiStreamWaitFor (VPIStream stream, VPIEvent event)
 Pushes a command that blocks the processing of all future commands by the backend until the event is completed. More...
 
VPIStatus vpiStreamGetThreadHandle (VPIStream stream, VPINativeThreadHandle *handle)
 Returns OS-specific handle of the background stream processing thread. More...
 
void vpiPayloadDestroy (VPIPayload payload)
 Deallocates the payload object and all associated resources. More...
 

Detailed Description

The main entry-point to the API is the VPIStream object. This object represents:

Function Documentation

◆ vpiPayloadDestroy()

void vpiPayloadDestroy ( VPIPayload  payload)

#include <vpi/Stream.h>

Deallocates the payload object and all associated resources.

Parameters
payload[in] payload handle

◆ vpiStreamCreate()

VPIStatus vpiStreamCreate ( VPIDeviceType  devType,
VPIStream stream 
)

#include <vpi/Stream.h>

Create a stream instance.

Parameters
devType[in] device type
stream[out] pointer to stream handle
Returns
an error code on failure else VPI_SUCCESS

◆ vpiStreamDestroy()

void vpiStreamDestroy ( VPIStream  stream)

#include <vpi/Stream.h>

Destroy a stream instance and deallocate all HW resources.

Parameters
stream[in] stream handle

◆ vpiStreamGetDeviceType()

VPIStatus vpiStreamGetDeviceType ( VPIStream  stream,
VPIDeviceType deviceType 
)

#include <vpi/Stream.h>

Returns the backend type associated with the given stream.

Parameters
stream[in] stream handle
deviceType[out] pointer to where the device type will be stored. It can't be NULL.
Returns
an error code on failure else VPI_SUCCESS

◆ vpiStreamGetThreadHandle()

VPIStatus vpiStreamGetThreadHandle ( VPIStream  stream,
VPINativeThreadHandle handle 
)

#include <vpi/Stream.h>

Returns OS-specific handle of the background stream processing thread.

Parameters
stream[in] stream handle
handle[out] stream processing thread handle
Returns
an error code on failure else VPI_SUCCESS

◆ vpiStreamSync()

VPIStatus vpiStreamSync ( VPIStream  stream)

#include <vpi/Stream.h>

Blocks the calling thread until all submitted commands in this stream queue are done (queue is empty).

This function call is equivalent to atomically calling vpiEventRecord followed by vpiStreamWaitFor.

Parameters
stream[in] stream handle
Returns
an error code on failure else VPI_SUCCESS

◆ vpiStreamWaitFor()

VPIStatus vpiStreamWaitFor ( VPIStream  stream,
VPIEvent  event 
)

#include <vpi/Stream.h>

Pushes a command that blocks the processing of all future commands by the backend until the event is completed.

Parameters
stream[in] Stream handle
event[in] event handle
Returns
an error code on failure else VPI_SUCCESS