VPI - Vision Programming Interface

0.2.0 Release

Array.h File Reference
#include "Export.h"
#include "Status.h"
#include "Types.h"
#include <stdint.h>
+ Include dependency graph for Array.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  VPIArrayData
 Stores information about array characteristics and content. More...
 

Macros

Array creation flags
#define VPI_ARRAY_DISABLE_PVA   VPI_BACKEND_DISABLE_PVA
 Array won't be used in a PVA stream.
 
#define VPI_ARRAY_DISABLE_CPU   VPI_BACKEND_DISABLE_CPU
 Array won't be used in a CPU stream.
 
#define VPI_ARRAY_DISABLE_CUDA   VPI_BACKEND_DISABLE_CUDA
 Array won't be used in a CUDA stream.
 
#define VPI_ARRAY_ONLY_PVA   VPI_BACKEND_ONLY_PVA
 Array will only be used in a PVA stream.
 
#define VPI_ARRAY_ONLY_CPU   VPI_BACKEND_ONLY_CPU
 Array will only be used in a CPU stream.
 
#define VPI_ARRAY_ONLY_CUDA   VPI_BACKEND_ONLY_CUDA
 Array will only be used in a CUDA stream.
 
Deprecated array creation flags
#define VPI_ARRAY_NO_PVA   VPI_ARRAY_DISABLE_PVA
 Deprecated.
 
#define VPI_ARRAY_NO_CPU   VPI_ARRAY_DISABLE_CPU
 Deprecated.
 
#define VPI_ARRAY_NO_CUDA   VPI_ARRAY_DISABLE_CUDA
 Deprecated.
 

Functions

VPIStatus vpiArrayCreate (uint32_t capacity, VPIArrayType fmt, uint32_t flags, VPIArray *array)
 Create an empty array instance with the specified flags. More...
 
void vpiArrayDestroy (VPIArray array)
 Destroy an array instance as well as all resources it owns. More...
 
VPIStatus vpiArrayWrapHostMem (const VPIArrayData *arrayData, uint32_t flags, VPIArray *array)
 Create an array object by wrapping around an existing host-memory block. More...
 
VPIStatus vpiArrayWrapCudaDeviceMem (const VPIArrayData *arrayData, uint32_t flags, VPIArray *array)
 Create an array object by wrapping around an existing device-memory (CUDA) block. More...
 
VPIStatus vpiArrayInvalidate (VPIArray array)
 This method is useful for unmanaged arrays only (created with 'vpiArrayWrap*`). More...
 
VPIStatus vpiArrayGetSize (VPIArray array, uint32_t *size)
 Get the array size in elements. More...
 
VPIStatus vpiArraySetSize (VPIArray array, uint32_t size)
 Set the array size in elements. More...
 
VPIStatus vpiArrayGetCapacity (VPIArray array, uint32_t *capacity)
 Get the array capacity in elements. More...
 
VPIStatus vpiArrayGetStride (VPIArray array, uint32_t *stride)
 Get the array stride (distance between two consecutive elements) in bytes. More...
 
VPIStatus vpiArrayGetFlags (VPIArray array, uint32_t *flags)
 Get the array flags. More...
 
VPIStatus vpiArrayGetType (VPIArray array, VPIArrayType *type)
 Get the array type. More...
 
VPIStatus vpiArrayLock (VPIArray array, VPILockMode mode, VPIArrayData *arrayData)
 Acquires the lock on array object and returns a pointer to array data. More...
 
VPIStatus vpiArrayUnlock (VPIArray array)
 Releases the lock on array object. More...
 

Detailed Description

Functions and structures for dealing with VPI arrays.

Definition in file Array.h.