|
VPI - Vision Programming Interface
0.4.4 Release
|
Go to the documentation of this file.
56 #ifndef NV_VPI_ARRAY_H
57 #define NV_VPI_ARRAY_H
116 typedef struct VPIArrayDataRec
126 #define vpiArrayCreate VPI_APINAME(vpiArrayCreate, 004)
127 #define vpiArrayCreateHostMemWrapper VPI_APINAME(vpiArrayCreateHostMemWrapper, 004)
128 #define vpiArraySetWrappedHostMem VPI_APINAME(vpiArraySetWrappedHostMem, 004)
129 #define vpiArrayCreateCudaMemWrapper VPI_APINAME(vpiArrayCreateCudaMemWrapper, 004)
130 #define vpiArraySetWrappedCudaMem VPI_APINAME(vpiArraySetWrappedCudaMem, 004)
131 #define vpiArrayGetFlags VPI_APINAME(vpiArrayGetFlags, 004)
369 #endif // NV_VPI_ARRAY_H
void vpiArrayDestroy(VPIArray array)
Destroy an array instance.
VPIStatus vpiArrayCreate(uint32_t capacity, VPIArrayType fmt, uint32_t flags, VPIArray *array)
Create an empty array instance.
VPIStatus vpiArrayGetStrideBytes(VPIArray array, uint32_t *strideBytes)
Returns the array stride (distance between two consecutive elements) in bytes.
Defines all types needed for programming with VPI.
VPIStatus vpiArrayGetType(VPIArray array, VPIArrayType *type)
Returns the array type.
VPIArrayType type
Type of each array element.
VPIStatus vpiArraySetSize(VPIArray array, uint32_t size)
Set the array size in elements.
VPIStatus vpiArraySetWrappedCudaMem(VPIArray array, const VPIArrayData *arrayData)
Redefines the wrapped device (CUDA) memory in an existing VPIArray wrapper.
VPIStatus vpiArrayUnlock(VPIArray array)
Releases the lock on array object.
VPIStatus vpiArraySetWrappedHostMem(VPIArray array, const VPIArrayData *arrayData)
Redefines the wrapped host memory in an existing VPIArray wrapper.
VPIStatus vpiArrayGetSize(VPIArray array, uint32_t *size)
Returns the array size in elements.
VPIStatus vpiArrayCreateHostMemWrapper(const VPIArrayData *arrayData, uint32_t flags, VPIArray *array)
Create an array object by wrapping an existing host memory block.
VPIStatus vpiArrayGetFlags(VPIArray array, uint32_t *flags)
Returns the array flags.
uint32_t size
Number of elements in the array.
uint32_t capacity
Maximum number of elements that the array can hold.
VPIStatus vpiArrayCreateCudaMemWrapper(const VPIArrayData *arrayData, uint32_t flags, VPIArray *array)
Create an array object by wrapping an existing device (CUDA) memory block.
void * data
Points to the first element of the array.
VPIArrayType
Array element formats.
Stores information about array characteristics and content.
Declaration of VPI status codes handling functions.
VPIStatus vpiArrayLock(VPIArray array, VPILockMode mode, VPIArrayData *arrayData)
Acquires the lock on array object and returns a pointer to array data.
VPILockMode
Defines the lock modes used by memory lock functions.
struct VPIArrayImpl * VPIArray
A handle to an array.
VPIStatus vpiArrayInvalidate(VPIArray array)
Informs that the array's wrapped memory was updated outside VPI.
uint32_t strideBytes
Size in bytes of each array element.
VPIStatus vpiArrayGetCapacity(VPIArray array, uint32_t *capacity)
Returns the array capacity in elements.