|
VPI - Vision Programming Interface
0.3.7 Release
|
Go to the documentation of this file.
56 #ifndef NV_VPI_TYPES_H
57 #define NV_VPI_TYPES_H
78 #define VPI_BACKEND_DISABLE_PVA (0x01)
79 #define VPI_BACKEND_DISABLE_CPU (0x02)
80 #define VPI_BACKEND_DISABLE_CUDA (0x04)
82 #define VPI_BACKEND_ONLY_PVA \
83 (VPI_BACKEND_DISABLE_CUDA | VPI_BACKEND_DISABLE_CPU)
84 #define VPI_BACKEND_ONLY_CPU \
85 (VPI_BACKEND_DISABLE_PVA | VPI_BACKEND_DISABLE_CUDA)
86 #define VPI_BACKEND_ONLY_CUDA \
87 (VPI_BACKEND_DISABLE_PVA | VPI_BACKEND_DISABLE_CPU)
94 typedef void (*VPIParallelTask)(int taskId, int threadId, void *vpiData);
614 #endif // NV_VPI_TYPES_H
Stores a bounding box that is being tracked by KLT Tracker.
Stores the ParallelFor configuration.
struct VPIContextImpl * VPIContext
A handle to a context.
@ VPI_ERROR_INVALID_ARGUMENT
Invalid argument, either wrong range or value not accepted.
void * userData
A user defined opaque pointer passed to callback function unaltered.
@ VPI_IMAGE_TYPE_S8
signed 8-bit grayscale.
@ VPI_IMAGE_TYPE_NV12
8-bit NV12.
@ VPI_IMAGE_TYPE_2F32
2 interleaved channels of 32-bit floats.
@ VPI_IMAGE_TYPE_BGR8
8-bit BGR, B having the lowest address.
@ VPI_IMAGE_TYPE_RGB8
8-bit RGB, R having the lowest address.
VPIImageType
Image formats.
@ VPI_CONVERSION_CAST
Casts input to the output type.
@ VPI_LOCK_READ_WRITE
Lock memory for reading and writing.
@ VPI_PIXEL_TYPE_4U8
4 interleaved channels of unsigned 8-bit values.
@ VPI_ERROR_NOT_IMPLEMENTED
Operation isn't implemented.
@ VPI_ARRAY_TYPE_U8
unsigned 8-bit.
@ VPI_DEVICE_TYPE_CPU
CPU backend.
float x
Keypoint's x coordinate.
@ VPI_ERROR_INVALID_CONTEXT
Context is invalid or is already destroyed.
@ VPI_ERROR_DEVICE
Device backend error.
@ VPI_INTERP_CATMULL_ROM_PRECISE
Catmull-Rom cubic interpolation.
@ VPI_PIXEL_TYPE_INVALID
Signal type conversion errors.
@ VPI_LOCK_READ
Lock memory only for reading.
@ VPI_IMAGE_TYPE_U16
unsigned 16-bit grayscale.
VPIConversionPolicy
Policy used when converting between image types.
@ VPI_ARRAY_TYPE_S16
signed 16-bit.
VPIBoundaryCond
Image boundary condition specify how pixel values outside of the image domain should be constructed.
@ VPI_LOCK_WRITE
Lock memory only for writing.
@ VPI_IMAGE_TYPE_RGBA8
8-bit RGBA, R having the lowest address.
VPIStatus(* VPIUserFunction)(void *)
Pointer to user function.
uint8_t reserved2
Reserved for future use.
@ VPI_ERROR_INVALID_ARRAY_TYPE
Array type not accepted.
@ VPI_ERROR_OUT_OF_MEMORY
Not enough free memory to allocate object.
@ VPI_ERROR_BUFFER_LOCKED
Invalid operation on a locked buffer.
@ VPI_ERROR_INVALID_PAYLOAD_TYPE
Payload not created for this algorithm.
int maxThreads
The maximum number of threads used by the parallel_for implementation code.
struct VPIStreamImpl * VPIStream
A handle to a stream.
void(* VPIParallelForCallback)(VPIParallelTask task, int taskCount, void *vpiData, void *userData)
Parallel for callback function pointer type.
uint8_t templateStatus
Status of the template related to this bounding box.
@ VPI_ARRAY_TYPE_HOMOGRAPHY_TRANSFORM_2D
VPIHomographyTransform2D element.
@ VPI_INTERP_LINEAR
Alias to fast linear interpolation.
@ VPI_PIXEL_TYPE_2U8
2 interleaved channels of unsigned 8-bit values.
@ VPI_DEVICE_TYPE_PVA
PVA backend.
@ VPI_INTERP_LINEAR_FAST
Fast linear interpolation.
@ VPI_ERROR_NOT_READY
Operation not completed yet, try again later.
@ VPI_ARRAY_TYPE_INVALID
Signal type conversion errors.
@ VPI_SUCCESS
Operation completed successfully.
float VPICameraExtrinsic[3][4]
Camera extrinsic matrix.
void(* VPIParallelTask)(int taskId, int threadId, void *vpiData)
Parallel task function pointer type.
@ VPI_DEVICE_TYPE_CUDA
CUDA backend.
@ VPI_ARRAY_TYPE_KEYPOINT
VPIKeypoint element.
@ VPI_PIXEL_TYPE_S8
1 channel of signed 8-bit values.
VPIArrayType
Array element formats.
uint8_t trackingStatus
Tracking status of this bounding box.
@ VPI_INTERP_CATMULL_ROM
Alias to fast Catmull-Rom cubic interpolator.
@ VPI_IMAGE_TYPE_INVALID
Signal type conversion errors.
@ VPI_INTERP_CATMULL_ROM_FAST
Fast Catmull-Rom cubic interpolation.
struct VPIEventImpl * VPIEvent
A handle to an event.
@ VPI_ARRAY_TYPE_KLT_TRACKED_BOUNDING_BOX
VPIKLTTrackedBoundingBox element.
Stores a generic 2D bounding box.
@ VPI_ERROR_INVALID_PYRAMID_TYPE
Pyramid type not accepted.
struct VPIImageImpl * VPIImage
A handle to an image.
@ VPI_CONVERSION_CLAMP
Clamps input to output's type range.
@ VPI_INTERP_LINEAR_PRECISE
Precise linear interpolation.
float width
Bounding box width.
@ VPI_PIXEL_TYPE_U16
1 channel of unsigned 16-bit values.
VPIInterpolationType
Interpolation types supported by several algorithms.
@ VPI_BOUNDARY_COND_ZERO
All pixels outside the image are considered to be zero.
struct VPIPayloadImpl * VPIPayload
A handle to an algorithm payload.
@ VPI_PIXEL_TYPE_2F32
2 interleaved channels of 32-bit float values.
@ VPI_ERROR_INVALID_OPERATION
Operation isn't valid in this context.
VPIBoundingBox bbox
Bounding box being tracked.
@ VPI_PIXEL_TYPE_U8
1 channel of unsigned 8-bit values.
@ VPI_ARRAY_TYPE_S8
signed 8-bit.
@ VPI_BOUNDARY_COND_CLAMP
Border pixels are repeated indefinitely.
@ VPI_ERROR_INTERNAL
Internal, non specific error.
@ VPI_ARRAY_TYPE_U16
unsigned 16-bit.
@ VPI_IMAGE_TYPE_U8
unsigned 8-bit grayscale.
@ VPI_IMAGE_TYPE_BGRA8
8-bit BGRA, B having the lowest address.
@ VPI_PIXEL_TYPE_S16
1 channel of signed 16-bit values.
@ VPI_IMAGE_TYPE_S16
signed 16-bit grayscale.
VPILockMode
Defines the lock modes used by memory lock functions.
struct VPIArrayImpl * VPIArray
A handle to an array.
@ VPI_IMAGE_TYPE_F32
1 channel of 32-bit float.
@ VPI_INTERP_NEAREST
Nearest neighbor interpolation.
VPIHomographyTransform2D xform
Defines the bounding box top left corner and its homography.
float height
Bounding box height.
@ VPI_PIXEL_TYPE_3U8
3 interleaved channels of unsigned 8-bit values.
@ VPI_PIXEL_TYPE_DEFAULT
Used to signal that the pixel type must be inferred from image type.
void * VPINativeThreadHandle
A handle to OS-specific thread handle.
VPIDeviceType
Device types.
float VPIPerspectiveTransform[3][3]
Represents a 2D perspective transform.
@ VPI_ERROR_INVALID_IMAGE_TYPE
Image type not accepted.
@ VPI_ARRAY_TYPE_U32
unsigned 32-bit.
@ VPI_DEVICE_TYPE_INVALID
Invalid backend.
struct VPIPyramidImpl * VPIPyramid
A handle to an image pyramid.
VPIPixelType
Pixel formats.
float VPICameraIntrinsic[2][3]
Camera intrinsic matrix.
Stores a keypoint coordinate.
@ VPI_CONVERSION_INVALID
Invalid conversion.
@ VPI_PIXEL_TYPE_F32
1 channel of 32-bit float values.
float y
Keypoint's y coordinate.
VPIParallelForCallback callback
A pointer to the parallel_for implementation.