PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
Classes | Macros | Typedefs | Enumerations | Functions
DVPAPI.h File Reference
#include <stdint.h>
Include dependency graph for DVPAPI.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DVPSyncObjectDescRec
 
struct  DVPSysmemBufferDescRec
 

Macros

#define DVP_DEVICE_FLAGS_SHARE_APP_CONTEXT   0x000000001
 
#define DVP_MAJOR_VERSION   1
 
#define DVP_MINOR_VERSION   70
 
#define DVP_SYNC_OBJECT_FLAGS_USE_EVENTS   0x00000001
 
#define DVP_TIMEOUT_IGNORED   0xFFFFFFFFFFFFFFFFull
 
#define DVPAPI_INTERFACE   extern DVPStatus
 

Typedefs

typedef uint64_t DVPBufferHandle
 
typedef struct DVPSyncObjectDescRec DVPSyncObjectDesc
 
typedef uint64_t DVPSyncObjectHandle
 
typedef struct DVPSysmemBufferDescRec DVPSysmemBufferDesc
 

Enumerations

enum  DVPBufferFormats {
  DVP_BUFFER, DVP_DEPTH_COMPONENT, DVP_RGBA, DVP_BGRA,
  DVP_RED, DVP_GREEN, DVP_BLUE, DVP_ALPHA,
  DVP_RGB, DVP_BGR, DVP_LUMINANCE, DVP_LUMINANCE_ALPHA,
  DVP_CUDA_1_CHANNEL, DVP_CUDA_2_CHANNELS, DVP_CUDA_4_CHANNELS, DVP_RGBA_INTEGER,
  DVP_BGRA_INTEGER, DVP_RED_INTEGER, DVP_GREEN_INTEGER, DVP_BLUE_INTEGER,
  DVP_ALPHA_INTEGER, DVP_RGB_INTEGER, DVP_BGR_INTEGER, DVP_LUMINANCE_INTEGER,
  DVP_LUMINANCE_ALPHA_INTEGER
}
 
enum  DVPBufferTypes {
  DVP_UNSIGNED_BYTE, DVP_BYTE, DVP_UNSIGNED_SHORT, DVP_SHORT,
  DVP_UNSIGNED_INT, DVP_INT, DVP_FLOAT, DVP_HALF_FLOAT,
  DVP_UNSIGNED_BYTE_3_3_2, DVP_UNSIGNED_BYTE_2_3_3_REV, DVP_UNSIGNED_SHORT_5_6_5, DVP_UNSIGNED_SHORT_5_6_5_REV,
  DVP_UNSIGNED_SHORT_4_4_4_4, DVP_UNSIGNED_SHORT_4_4_4_4_REV, DVP_UNSIGNED_SHORT_5_5_5_1, DVP_UNSIGNED_SHORT_1_5_5_5_REV,
  DVP_UNSIGNED_INT_8_8_8_8, DVP_UNSIGNED_INT_8_8_8_8_REV, DVP_UNSIGNED_INT_10_10_10_2, DVP_UNSIGNED_INT_2_10_10_10_REV
}
 
enum  DVPStatus {
  DVP_STATUS_OK = 0, DVP_STATUS_INVALID_PARAMETER = 1, DVP_STATUS_UNSUPPORTED = 2, DVP_STATUS_END_ENUMERATION = 3,
  DVP_STATUS_INVALID_DEVICE = 4, DVP_STATUS_OUT_OF_MEMORY = 5, DVP_STATUS_INVALID_OPERATION = 6, DVP_STATUS_TIMEOUT = 7,
  DVP_STATUS_INVALID_CONTEXT = 8, DVP_STATUS_INVALID_RESOURCE_TYPE = 9, DVP_STATUS_INVALID_FORMAT_OR_TYPE = 10, DVP_STATUS_DEVICE_UNINITIALIZED = 11,
  DVP_STATUS_UNSIGNALED = 12, DVP_STATUS_SYNC_ERROR = 13, DVP_STATUS_SYNC_STILL_BOUND = 14, DVP_STATUS_ERROR = -1
}
 

Functions

DVPAPI_INTERFACE dvpBegin ()
 
DVPAPI_INTERFACE dvpCreateBuffer (DVPSysmemBufferDesc *desc, DVPBufferHandle *hBuf)
 
DVPAPI_INTERFACE dvpDestroyBuffer (DVPBufferHandle hBuf)
 
DVPAPI_INTERFACE dvpEnd ()
 
DVPAPI_INTERFACE dvpFreeBuffer (DVPBufferHandle gpuBufferHandle)
 
DVPAPI_INTERFACE dvpFreeSyncObject (DVPSyncObjectHandle syncObject)
 
DVPAPI_INTERFACE dvpGetLibrayVersion (uint32_t *major, uint32_t *minor)
 
DVPAPI_INTERFACE dvpImportSyncObject (DVPSyncObjectDesc *desc, DVPSyncObjectHandle *syncObject)
 
DVPAPI_INTERFACE dvpMapBufferEndAPI (DVPBufferHandle gpuBufferHandle)
 
DVPAPI_INTERFACE dvpMapBufferEndDVP (DVPBufferHandle gpuBufferHandle)
 
DVPAPI_INTERFACE dvpMapBufferWaitAPI (DVPBufferHandle gpuBufferHandle)
 
DVPAPI_INTERFACE dvpMapBufferWaitDVP (DVPBufferHandle gpuBufferHandle)
 
DVPAPI_INTERFACE dvpMemcpy (DVPBufferHandle srcBuffer, DVPSyncObjectHandle srcSync, uint32_t srcAcquireValue, uint64_t timeout, DVPBufferHandle dstBuffer, DVPSyncObjectHandle dstSync, uint32_t dstReleaseValue, uint32_t srcOffset, uint32_t dstOffset, uint32_t count)
 
DVPAPI_INTERFACE dvpMemcpy2D (DVPBufferHandle srcBuffer, DVPSyncObjectHandle srcSync, uint32_t srcAcquireValue, uint64_t timeout, DVPBufferHandle dstBuffer, DVPSyncObjectHandle dstSync, uint32_t dstReleaseValue, uint32_t startY, uint32_t startX, uint32_t height, uint32_t width)
 
DVPAPI_INTERFACE dvpMemcpyLined (DVPBufferHandle srcBuffer, DVPSyncObjectHandle srcSync, uint32_t srcAcquireValue, uint64_t timeout, DVPBufferHandle dstBuffer, DVPSyncObjectHandle dstSync, uint32_t dstReleaseValue, uint32_t startingLine, uint32_t numberOfLines)
 
DVPAPI_INTERFACE dvpSyncObjClientWaitComplete (DVPSyncObjectHandle syncObject, uint64_t timeout)
 
DVPAPI_INTERFACE dvpSyncObjClientWaitPartial (DVPSyncObjectHandle syncObject, uint32_t value, uint64_t timeout)
 
DVPAPI_INTERFACE dvpSyncObjCompletion (DVPSyncObjectHandle syncObject, uint64_t *timeStamp)
 

Macro Definition Documentation

◆ DVP_DEVICE_FLAGS_SHARE_APP_CONTEXT

#define DVP_DEVICE_FLAGS_SHARE_APP_CONTEXT   0x000000001

Definition at line 224 of file DVPAPI.h.

◆ DVP_MAJOR_VERSION

#define DVP_MAJOR_VERSION   1

Definition at line 77 of file DVPAPI.h.

◆ DVP_MINOR_VERSION

#define DVP_MINOR_VERSION   70

Definition at line 78 of file DVPAPI.h.

◆ DVP_SYNC_OBJECT_FLAGS_USE_EVENTS

#define DVP_SYNC_OBJECT_FLAGS_USE_EVENTS   0x00000001

Definition at line 190 of file DVPAPI.h.

◆ DVP_TIMEOUT_IGNORED

#define DVP_TIMEOUT_IGNORED   0xFFFFFFFFFFFFFFFFull

Definition at line 212 of file DVPAPI.h.

◆ DVPAPI_INTERFACE

#define DVPAPI_INTERFACE   extern DVPStatus

Definition at line 74 of file DVPAPI.h.

Typedef Documentation

◆ DVPBufferHandle

typedef uint64_t DVPBufferHandle

Definition at line 80 of file DVPAPI.h.

◆ DVPSyncObjectDesc

◆ DVPSyncObjectHandle

typedef uint64_t DVPSyncObjectHandle

Definition at line 81 of file DVPAPI.h.

◆ DVPSysmemBufferDesc

Enumeration Type Documentation

◆ DVPBufferFormats

Enumerator
DVP_BUFFER 
DVP_DEPTH_COMPONENT 
DVP_RGBA 
DVP_BGRA 
DVP_RED 
DVP_GREEN 
DVP_BLUE 
DVP_ALPHA 
DVP_RGB 
DVP_BGR 
DVP_LUMINANCE 
DVP_LUMINANCE_ALPHA 
DVP_CUDA_1_CHANNEL 
DVP_CUDA_2_CHANNELS 
DVP_CUDA_4_CHANNELS 
DVP_RGBA_INTEGER 
DVP_BGRA_INTEGER 
DVP_RED_INTEGER 
DVP_GREEN_INTEGER 
DVP_BLUE_INTEGER 
DVP_ALPHA_INTEGER 
DVP_RGB_INTEGER 
DVP_BGR_INTEGER 
DVP_LUMINANCE_INTEGER 
DVP_LUMINANCE_ALPHA_INTEGER 

Definition at line 112 of file DVPAPI.h.

◆ DVPBufferTypes

Enumerator
DVP_UNSIGNED_BYTE 
DVP_BYTE 
DVP_UNSIGNED_SHORT 
DVP_SHORT 
DVP_UNSIGNED_INT 
DVP_INT 
DVP_FLOAT 
DVP_HALF_FLOAT 
DVP_UNSIGNED_BYTE_3_3_2 
DVP_UNSIGNED_BYTE_2_3_3_REV 
DVP_UNSIGNED_SHORT_5_6_5 
DVP_UNSIGNED_SHORT_5_6_5_REV 
DVP_UNSIGNED_SHORT_4_4_4_4 
DVP_UNSIGNED_SHORT_4_4_4_4_REV 
DVP_UNSIGNED_SHORT_5_5_5_1 
DVP_UNSIGNED_SHORT_1_5_5_5_REV 
DVP_UNSIGNED_INT_8_8_8_8 
DVP_UNSIGNED_INT_8_8_8_8_REV 
DVP_UNSIGNED_INT_10_10_10_2 
DVP_UNSIGNED_INT_2_10_10_10_REV 

Definition at line 145 of file DVPAPI.h.

◆ DVPStatus

enum DVPStatus
Enumerator
DVP_STATUS_OK 
DVP_STATUS_INVALID_PARAMETER 
DVP_STATUS_UNSUPPORTED 
DVP_STATUS_END_ENUMERATION 
DVP_STATUS_INVALID_DEVICE 
DVP_STATUS_OUT_OF_MEMORY 
DVP_STATUS_INVALID_OPERATION 
DVP_STATUS_TIMEOUT 
DVP_STATUS_INVALID_CONTEXT 
DVP_STATUS_INVALID_RESOURCE_TYPE 
DVP_STATUS_INVALID_FORMAT_OR_TYPE 
DVP_STATUS_DEVICE_UNINITIALIZED 
DVP_STATUS_UNSIGNALED 
DVP_STATUS_SYNC_ERROR 
DVP_STATUS_SYNC_STILL_BOUND 
DVP_STATUS_ERROR 

Definition at line 83 of file DVPAPI.h.

Function Documentation

◆ dvpBegin()

DVPAPI_INTERFACE dvpBegin ( )

◆ dvpCreateBuffer()

DVPAPI_INTERFACE dvpCreateBuffer ( DVPSysmemBufferDesc desc,
DVPBufferHandle hBuf 
)

◆ dvpDestroyBuffer()

DVPAPI_INTERFACE dvpDestroyBuffer ( DVPBufferHandle  hBuf)

◆ dvpEnd()

DVPAPI_INTERFACE dvpEnd ( )

◆ dvpFreeBuffer()

DVPAPI_INTERFACE dvpFreeBuffer ( DVPBufferHandle  gpuBufferHandle)

◆ dvpFreeSyncObject()

DVPAPI_INTERFACE dvpFreeSyncObject ( DVPSyncObjectHandle  syncObject)

◆ dvpGetLibrayVersion()

DVPAPI_INTERFACE dvpGetLibrayVersion ( uint32_t *  major,
uint32_t *  minor 
)

◆ dvpImportSyncObject()

DVPAPI_INTERFACE dvpImportSyncObject ( DVPSyncObjectDesc desc,
DVPSyncObjectHandle syncObject 
)

◆ dvpMapBufferEndAPI()

DVPAPI_INTERFACE dvpMapBufferEndAPI ( DVPBufferHandle  gpuBufferHandle)

◆ dvpMapBufferEndDVP()

DVPAPI_INTERFACE dvpMapBufferEndDVP ( DVPBufferHandle  gpuBufferHandle)

◆ dvpMapBufferWaitAPI()

DVPAPI_INTERFACE dvpMapBufferWaitAPI ( DVPBufferHandle  gpuBufferHandle)

◆ dvpMapBufferWaitDVP()

DVPAPI_INTERFACE dvpMapBufferWaitDVP ( DVPBufferHandle  gpuBufferHandle)

◆ dvpMemcpy()

DVPAPI_INTERFACE dvpMemcpy ( DVPBufferHandle  srcBuffer,
DVPSyncObjectHandle  srcSync,
uint32_t  srcAcquireValue,
uint64_t  timeout,
DVPBufferHandle  dstBuffer,
DVPSyncObjectHandle  dstSync,
uint32_t  dstReleaseValue,
uint32_t  srcOffset,
uint32_t  dstOffset,
uint32_t  count 
)

◆ dvpMemcpy2D()

DVPAPI_INTERFACE dvpMemcpy2D ( DVPBufferHandle  srcBuffer,
DVPSyncObjectHandle  srcSync,
uint32_t  srcAcquireValue,
uint64_t  timeout,
DVPBufferHandle  dstBuffer,
DVPSyncObjectHandle  dstSync,
uint32_t  dstReleaseValue,
uint32_t  startY,
uint32_t  startX,
uint32_t  height,
uint32_t  width 
)

◆ dvpMemcpyLined()

DVPAPI_INTERFACE dvpMemcpyLined ( DVPBufferHandle  srcBuffer,
DVPSyncObjectHandle  srcSync,
uint32_t  srcAcquireValue,
uint64_t  timeout,
DVPBufferHandle  dstBuffer,
DVPSyncObjectHandle  dstSync,
uint32_t  dstReleaseValue,
uint32_t  startingLine,
uint32_t  numberOfLines 
)

◆ dvpSyncObjClientWaitComplete()

DVPAPI_INTERFACE dvpSyncObjClientWaitComplete ( DVPSyncObjectHandle  syncObject,
uint64_t  timeout 
)

◆ dvpSyncObjClientWaitPartial()

DVPAPI_INTERFACE dvpSyncObjClientWaitPartial ( DVPSyncObjectHandle  syncObject,
uint32_t  value,
uint64_t  timeout 
)

◆ dvpSyncObjCompletion()

DVPAPI_INTERFACE dvpSyncObjCompletion ( DVPSyncObjectHandle  syncObject,
uint64_t *  timeStamp 
)