forked from geggo/MVacquire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_mvDeviceManager.pxd
398 lines (236 loc) · 14.6 KB
/
_mvDeviceManager.pxd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
from _mvDriverBaseEnums cimport *
from _mvPropHandlingDatatypes cimport *
from libc.stdint cimport int64_t
ctypedef int64_t int64_type
# This code was automatically generated by CWrap version 0.0.0
cdef extern from "mvDeviceManager/Include/mvDeviceManager.h":
cdef struct ChannelData:
int iChannelOffset
int iLinePitch
int iPixelPitch
char szChannelDesc[8192]
ctypedef ChannelData ChannelData
cdef struct ImageBuffer:
int iBytesPerPixel
int iHeight
int iWidth
TImageBufferPixelFormat pixelFormat
int iSize
void *vpData
int iChannelCount
ChannelData *pChannels
cdef struct RequestInfo:
int frameID
int frameNr
int exposeStart_us
int exposeTime_us
int transferDelay_us
double gain_dB
int timeStamp_us
double imageAverage
int videoChannel
TCameraOutput cameraOutputUsed
int lineCounter
double missingData_pc
cdef struct RequestResult:
TRequestResult result
TRequestState state
cdef struct EventData:
unsigned int count
unsigned int timestamp_lowPart
unsigned int timestamp_highPart
cdef enum TImageRequestParam:
irpPixelFormat
irpResult
irpState
irpCameraOutputUsed
cdef enum TImpactBufferFlag:
ibfNone
ibfUseRequestMemory
ibfRecycleBufHandle
ctypedef int HDEV
ctypedef int HDRV
ctypedef int HLIST
ctypedef int HOBJ
ctypedef EventData EventData
ctypedef ImageBuffer ImageBuffer
ctypedef RequestInfo RequestInfo
ctypedef RequestResult RequestResult
ctypedef TImageRequestParam TImageRequestParam
ctypedef TImpactBufferFlag TImpactBufferFlag
ctypedef int HDMR
size_t INFO_STRING_SIZE
cdef enum TOBJ_HandleCheckMode:
hcmOwnerList
hcmFull
cdef enum TOBJ_StringQuery:
sqObjName
sqObjDocString
sqListContentDescriptor
sqPropVal
sqPropFormatString
sqMethParamString
sqObjDisplayName
cdef enum TDMR_DeviceInfoType:
dmditDeviceInfoStructure
dmditDeviceIsInUse
dmdithDeviceDriver
cdef struct TDMR_DeviceInfo:
char serial[38]
char family[38]
char product[38]
int firmwareVersion
int deviceId
cdef enum TDMR_DeviceSearchMode:
dmdsmSerial
dmdsmFamily
dmdsmProduct
dmdsmUseDevID
cdef enum TDMR_ListType:
dmltUndefined
dmltSetting
dmltRequest
dmltRequestCtrl
dmltInfo
dmltStatistics
dmltSystemSettings
dmltIOSubSystem
dmltRTCtr
dmltCameraDescriptions
dmltDeviceSpecificData
dmltEventSubSystemSettings
dmltEventSubSystemResults
dmltImageMemoryManager
ctypedef TOBJ_HandleCheckMode TOBJ_HandleCheckMode
ctypedef TOBJ_StringQuery TOBJ_StringQuery
ctypedef TDMR_DeviceInfo TDMR_DeviceInfo
ctypedef TDMR_ListType TDMR_ListType
ctypedef TDMR_DeviceSearchMode TDMR_DeviceSearchMode
TDMR_ERROR DMR_Init(HDMR *pHDmr)
TDMR_ERROR DMR_Close()
TDMR_ERROR DMR_GetDevice(HDEV *pHDev, TDMR_DeviceSearchMode searchMode, const char *pSearchString, unsigned int devNr, char wildcard)
TDMR_ERROR DMR_GetDeviceCount(unsigned int *pDevCnt)
TDMR_ERROR DMR_OpenDevice(HDEV hDev, HDRV *pHDrv)
TDMR_ERROR DMR_CloseDevice(HDRV hDrv, HDEV hDev)
TDMR_ERROR DMR_GetDeviceInfo(unsigned int devNr, TDMR_DeviceInfo *pInfo, size_t infoSize)
TDMR_ERROR DMR_GetDeviceInfoEx(HDEV hDev, TDMR_DeviceInfoType infoType, void* pInfo, size_t* pInfoSize)
TDMR_ERROR DMR_GetDriverHandle(HDEV hDev, HDRV *pHDrv)
TDMR_ERROR DMR_UpdateDeviceList(unsigned int reserved, int reserved2)
TDMR_ERROR DMR_CreateSetting(HDRV hDrv, const char *pName, const char *pParentName, HLIST *pNewID)
TDMR_ERROR DMR_CreateRequestControl(HDRV hDrv, const char *pName, const char *pParentName, HLIST *pNewID, int *pRequestCtrl)
TDMR_ERROR DMR_DeleteList(HDRV hDrv, const char *pName, TDMR_ListType type)
TDMR_ERROR DMR_FindList(HDRV hDrv, const char *pName, TDMR_ListType type, unsigned int flags, HLIST *phDevList)
TDMR_ERROR DMR_AcquisitionStart(HDRV hDrv)
TDMR_ERROR DMR_AcquisitionStop(HDRV hDrv)
TDMR_ERROR DMR_ImageRequestReset(HDRV hDrv, int requestCtrl, int mode)
TDMR_ERROR DMR_ImageRequestSingle(HDRV hDrv, int requestCtrl, int *pRequestUsed)
TDMR_ERROR DMR_ImageRequestUnlock(HDRV hDrv, int requestNr)
TDMR_ERROR DMR_ImageRequestConfigure(HDRV hDrv, int requestNr, int reserved, void *pReserved)
TDMR_ERROR DMR_ImageRequestWaitFor(HDRV hDrv, int timeout_ms, int queueNr, int *requestNr) nogil
TDMR_ERROR DMR_GetImageRequestBuffer(HDRV hDrv, int requestNr, ImageBuffer **ppBuffer)
TDMR_ERROR DMR_GetImageRequestBufferData(HDRV hDrv, int requestNr, int *pBytesPerPixel, int *pChannelCount, int *pHeight, int *pWidth, int *pSize, TImageBufferPixelFormat *pPixelFormat, void **ppData)
TDMR_ERROR DMR_GetImageRequestBufferChannelData(HDRV hDrv, int requestNr, int channelNr, int *pChannelOffset, int *pLinePitch, int *pPixelPitch, char *pChannelDesc, size_t channelDescSize)
TDMR_ERROR DMR_GetImageRequestBufferImageData(HDRV hDrv, int requestNr, int xOff, int yOff, int width, int height, char *pBuf, size_t bufSize)
TDMR_ERROR DMR_SetImageRequestBufferImageData(HDRV hDrv, int requestNr, int xOff, int yOff, int width, int height, char *pBuf, size_t bufSize)
TDMR_ERROR DMR_GetImageRequestInfoEx(HDRV hDrv, int requestNr, RequestInfo *pInfo, size_t infoSize, int reserved, int reserved2)
TDMR_ERROR DMR_GetImageRequestResultEx(HDRV hDrv, int requestNr, RequestResult *pResult, size_t resultSize, int reserved, int reserved2)
TDMR_ERROR DMR_GetImageRequestParamS(HDRV hDrv, int requestNr, TImageRequestParam param, char *pBuf, size_t bufSize)
TDMR_ERROR DMR_LoadRTCtrProgram(HDRV hDrv, HLIST hRTCtrList)
TDMR_ERROR DMR_SaveRTCtrProgram(HDRV hDrv, HLIST hRTCtrList)
TDMR_ERROR DMR_LoadSetting(HDRV hDrv, const char *pName, TStorageFlag storageflags, TScope scope)
TDMR_ERROR DMR_SaveSetting(HDRV hDrv, const char *pName, TStorageFlag storageflags, TScope scope)
TDMR_ERROR DMR_LoadSettingFromDefault(HDRV hDrv, TScope scope)
TDMR_ERROR DMR_SaveSettingToDefault(HDRV hDrv, TScope scope)
TDMR_ERROR DMR_SaveSystemToDefault(HDRV hDrv, TScope scope)
TDMR_ERROR DMR_ExportCameraDescription(HDRV hDrv, HLIST hCameraDescList)
TDMR_ERROR DMR_ImportCameraDescription(HDRV hDrv, HLIST hCameraDescList)
TDMR_ERROR DMR_CopyCameraDescription(HDRV hDrv, HLIST hCameraDescList, const char *pNewName)
TDMR_ERROR DMR_SetDeviceID(HDEV hDev, int newID)
TDMR_ERROR DMR_UpdateFirmware(HDEV hDev)
TDMR_ERROR DMR_UpdateDigitalInputs(HDRV hDrv)
TDMR_ERROR DMR_UpgradeDeviceFeatures(HDEV hDev, const char *pLicenceFilename, int reserved, int reserved2)
TDMR_ERROR DMR_CreateUserDataEntry(HDEV hDev, HLIST *pEntry)
TDMR_ERROR DMR_DeleteUserDataEntry(HDEV hDev, HLIST hEntry)
TDMR_ERROR DMR_WriteUserDataToHardware(HDEV hDev)
TDMR_ERROR DMR_EventWaitFor(HDRV hDrv, int timeout_ms, TDeviceEventType mask, int reserved, int reserved2, TDeviceEventType *pResultType)
TDMR_ERROR DMR_EventGetData(HDRV hDrv, TDeviceEventType type, int reserved, int reserved2, EventData *pResult, size_t resultSize)
TDMR_ERROR DMR_AllocImageRequestBufferDesc(ImageBuffer **ppBuffer, int channelCount)
TDMR_ERROR DMR_ReleaseImageRequestBufferDesc(ImageBuffer **ppBuffer)
TDMR_ERROR DMR_CopyImageRequestBufferDesc(const ImageBuffer *pSrc, ImageBuffer **ppDst, int flags)
TDMR_ERROR DMR_AllocImageBuffer(ImageBuffer **ppBuffer, TImageBufferPixelFormat pixelFormat, int width, int height)
TDMR_ERROR DMR_ReleaseImageBuffer(ImageBuffer **ppBuffer)
TDMR_ERROR DMR_CopyImageBuffer(const ImageBuffer *pSrc, ImageBuffer **ppDst, int flags)
const char *DMR_ErrorCodeToString(int errorCode)
TPROPHANDLING_ERROR OBJ_IsSettingAvailable(const char *pName, TStorageFlag storageflags, TScope scope)
TPROPHANDLING_ERROR OBJ_DeleteSetting(const char *pName, TStorageFlag storageflags, TScope scope)
TPROPHANDLING_ERROR OBJ_CheckHandle(HOBJ hObj, TOBJ_HandleCheckMode mode)
TPROPHANDLING_ERROR OBJ_GetChangedCounter(HOBJ hObj, unsigned int *pChangedCounter)
TPROPHANDLING_ERROR OBJ_GetChangedCounterAttr(HOBJ hObj, unsigned int *pChangedCounter)
TPROPHANDLING_ERROR OBJ_GetContentDesc(HOBJ hList, char *pBuf, size_t bufSize)
TPROPHANDLING_ERROR OBJ_GetDocString(HOBJ hObj, char *pBuf, size_t bufSize)
TPROPHANDLING_ERROR OBJ_GetFlags(HOBJ hObj, TComponentFlag *pFlags)
TPROPHANDLING_ERROR OBJ_GetFlagsS(HOBJ hObj, const char *pSeparator, char *pBuf, size_t bufSize)
TPROPHANDLING_ERROR OBJ_GetName(HOBJ hObj, char *pBuf, size_t bufSize)
TPROPHANDLING_ERROR OBJ_GetDisplayName(HOBJ hObj, char *pBuf, size_t bufSize)
TPROPHANDLING_ERROR OBJ_GetType(HOBJ hObj, TComponentType *pType)
TPROPHANDLING_ERROR OBJ_GetTypeS(HOBJ hObj, char *pBuf, size_t bufSize)
TPROPHANDLING_ERROR OBJ_GetVisibility(HOBJ hObj, TComponentVisibility *pVisibility)
TPROPHANDLING_ERROR OBJ_GetVisibilityS(HOBJ hObj, char *pBuf, size_t bufSize)
TPROPHANDLING_ERROR OBJ_VisibilityToString(TComponentVisibility visibility, char *pBuf, size_t bufSize)
TPROPHANDLING_ERROR OBJ_IsDefault(HOBJ hObj, unsigned int *pResult)
TPROPHANDLING_ERROR OBJ_RestoreDefault(HOBJ hObj)
TPROPHANDLING_ERROR OBJ_GetHandle(HLIST hList, const char *pPathAndObjName, HOBJ *phObj)
TPROPHANDLING_ERROR OBJ_GetSelectedFeatures(HOBJ hObj, int index, HOBJ *pFeatures, size_t *pFeatureCount)
TPROPHANDLING_ERROR OBJ_GetSelectingFeatures(HOBJ hObj, int index, HOBJ *pFeatures, size_t *pFeatureCount)
ctypedef void (*CBOBJChanged)(HOBJ, void *)
TPROPHANDLING_ERROR OBJ_CreateCallback(TCallbackType type, CBOBJChanged pMeth, void *pUserData, CallbackHandle *phCallback)
TPROPHANDLING_ERROR OBJ_DeleteCallback(CallbackHandle hCallback)
TPROPHANDLING_ERROR OBJ_AttachCallback(HOBJ hObj, CallbackHandle hCallback)
TPROPHANDLING_ERROR OBJ_DetachCallback(HOBJ hObj, CallbackHandle hCallback)
TPROPHANDLING_ERROR OBJ_GetFirstSibling(HOBJ hObj, HOBJ *pFirstSibling)
TPROPHANDLING_ERROR OBJ_GetNextSibling(HOBJ hObj, HOBJ *pNextSibling)
TPROPHANDLING_ERROR OBJ_GetLastSibling(HOBJ hObj, HOBJ *pLastSibling)
TPROPHANDLING_ERROR OBJ_GetFirstChild(HOBJ hObj, HOBJ *pFirstChild)
TPROPHANDLING_ERROR OBJ_GetParent(HOBJ hObj, HOBJ *pParent)
TPROPHANDLING_ERROR OBJ_GetMaxValCount(HOBJ hProp, unsigned int *pValCount)
TPROPHANDLING_ERROR OBJ_GetValCount(HOBJ hProp, unsigned int *pValCount)
TPROPHANDLING_ERROR OBJ_SetValCount(HOBJ hProp, unsigned int valCount)
TPROPHANDLING_ERROR OBJ_GetBinary(HOBJ hProp, char *pBuf, unsigned int bufSize, int index)
TPROPHANDLING_ERROR OBJ_SetBinary(HOBJ hProp, const char *pBuf, unsigned int bufSize, int index)
TPROPHANDLING_ERROR OBJ_GetBinaryBufferSize(HOBJ hProp, unsigned int *pBufSize, int index)
TPROPHANDLING_ERROR OBJ_GetBinaryBufferMaxSize(HOBJ hProp, unsigned int *pBufSize)
TPROPHANDLING_ERROR OBJ_GetF(HOBJ hProp, double *pVal, int index)
TPROPHANDLING_ERROR OBJ_GetFArray(HOBJ hProp, double *pVal, unsigned int valCount, int index)
TPROPHANDLING_ERROR OBJ_SetF(HOBJ hProp, double val, int index)
TPROPHANDLING_ERROR OBJ_SetFArray(HOBJ hProp, const double *pVal, unsigned int valCount, int index)
TPROPHANDLING_ERROR OBJ_GetFDictEntry(HOBJ hProp, char *pTranslationString, size_t translationStringBufSize, double *pValue, int index)
TPROPHANDLING_ERROR OBJ_GetFDictEntries(HOBJ hProp, char **pTranslationArray, size_t sizePerTranslationBuf, double *pValArray, size_t arraySizes)
TPROPHANDLING_ERROR OBJ_GetI(HOBJ hProp, int *pVal, int index)
TPROPHANDLING_ERROR OBJ_GetIArray(HOBJ hProp, int *pVal, unsigned int valCount, int index)
TPROPHANDLING_ERROR OBJ_SetI(HOBJ hProp, int val, int index)
TPROPHANDLING_ERROR OBJ_SetIArray(HOBJ hProp, const int *pVal, unsigned int valCount, int index)
TPROPHANDLING_ERROR OBJ_GetIDictEntry(HOBJ hProp, char *pTranslationString, size_t translationStringBufSize, int *pValue, int index)
TPROPHANDLING_ERROR OBJ_GetIDictEntries(HOBJ hObj, char **pTranslationArray, size_t sizePerTranslationBuf, int *pValArray, size_t arraySizes)
TPROPHANDLING_ERROR OBJ_GetI64(HOBJ hProp, int64_type *pVal, int index)
TPROPHANDLING_ERROR OBJ_GetI64Array(HOBJ hProp, int64_type *pVal, unsigned int valCount, int index)
TPROPHANDLING_ERROR OBJ_SetI64(HOBJ hProp, int64_type val, int index)
TPROPHANDLING_ERROR OBJ_SetI64Array(HOBJ hProp, const int64_type *pVal, unsigned int valCount, int index)
TPROPHANDLING_ERROR OBJ_GetI64DictEntry(HOBJ hProp, char *pTranslationString, size_t translationStringBufSize, int64_type *pValue, int index)
TPROPHANDLING_ERROR OBJ_GetI64DictEntries(HOBJ hObj, char **pTranslationArray, size_t sizePerTranslationBuf, int64_type *pValArray, size_t arraySizes)
TPROPHANDLING_ERROR OBJ_GetP(HOBJ hProp, void **pVal, int index)
TPROPHANDLING_ERROR OBJ_SetP(HOBJ hProp, void *val, int index)
TPROPHANDLING_ERROR OBJ_GetS(HOBJ hProp, char *pVal, size_t bufSize, int index)
TPROPHANDLING_ERROR OBJ_SetS(HOBJ hProp, const char *pVal, int index)
TPROPHANDLING_ERROR OBJ_GetSFormattedEx(HOBJ hProp, char *pBuf, size_t *pBufSize, const char *pFormat, int index)
TPROPHANDLING_ERROR OBJ_GetSArrayFormattedEx(HOBJ hProp, char *pBuf, size_t *pBufSize, const char *pFormat, const char *pDelimiters, int startIndex, int endIndex, int mode)
TPROPHANDLING_ERROR OBJ_RemoveVal(HOBJ hProp, int index)
TPROPHANDLING_ERROR OBJ_IsConstantDefined(HOBJ hProp, int constant, unsigned int *pResult)
TPROPHANDLING_ERROR OBJ_GetDictSize(HOBJ hProp, unsigned int *pDictSize)
TPROPHANDLING_ERROR OBJ_GetFormatString(HOBJ hProp, char *pBuf, size_t bufSize)
TPROPHANDLING_ERROR OBJ_GetElementCount(HLIST hList, unsigned int *pElementCount)
TPROPHANDLING_ERROR OBJ_Execute(HOBJ hMeth, const char *pCallParams, const char *pDelimiters, int *pResult)
TPROPHANDLING_ERROR OBJ_GetSParamList(HOBJ hMeth, char *pBuf, size_t bufSize)
TPROPHANDLING_ERROR OBJ_GetHandleEx(HLIST hList, const char *pObjName, HOBJ *phObj, unsigned int searchmode, int maxSearchDepth)
ctypedef char * (*SCF)(const char *, size_t) #FIXME: should be ...(const char*, size_t)
TPROPHANDLING_ERROR OBJ_GetSWithInplaceConstruction(HOBJ hObj, TOBJ_StringQuery sq, char **pResult, SCF constructionFunc, int mode, int reserved)
TPROPHANDLING_ERROR OBJ_FreeSMemory(char *pBuffer)