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