-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuc480_h.py
621 lines (621 loc) · 17.7 KB
/
uc480_h.py
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
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
# This file is auto-generated. Do not edit!
DRIVER_DLL_NAME = "uc480.dll"
IS_COLORMODE_INVALID = 0
IS_COLORMODE_MONOCHROME = 1
IS_COLORMODE_BAYER = 2
KODAK_KAI1020M_NAME = unicode("D1024G23M\0")
KODAK_KAI1020C_NAME = unicode("D1024G23C\0")
IS_SENSOR_INVALID = 0x0000
IS_SENSOR_C0640R13M = 0x0001
IS_SENSOR_C0640R13C = 0x0002
IS_SENSOR_C1280R23M = 0x0003
IS_SENSOR_C1280R23C = 0x0004
IS_SENSOR_C1600R12C = 0x0008
IS_SENSOR_C2048R12C = 0x000a
IS_SENSOR_C2592R12C = 0x000c
IS_SENSOR_C0640G12M = 0x0010
IS_SENSOR_C0640G12C = 0x0011
IS_SENSOR_C0752G13M = 0x0012
IS_SENSOR_C0752G13C = 0x0013
IS_SENSOR_C1282R13C = 0x0015
IS_SENSOR_C1601R13C = 0x0017
IS_SENSOR_C0753G13M = 0x0018
IS_SENSOR_C0753G13C = 0x0019
IS_SENSOR_C0754G13M = 0x0022
IS_SENSOR_C0754G13C = 0x0023
IS_SENSOR_C1284R13C = 0x0025
IS_SENSOR_C1604R13C = 0x0027
IS_SENSOR_C1285R12M = 0x0028
IS_SENSOR_C1285R12C = 0x0029
IS_SENSOR_C1605R12C = 0x002B
IS_SENSOR_C2055R12C = 0x002D
IS_SENSOR_C2595R12C = 0x002F
IS_SENSOR_C1280R12M = 0x0030
IS_SENSOR_C1280R12C = 0x0031
IS_SENSOR_C1283R12M = 0x0032
IS_SENSOR_C1283R12C = 0x0033
IS_SENSOR_C1603R12C = 0x0035
IS_SENSOR_C2053R12C = 0x0037
IS_SENSOR_C2593R12C = 0x0039
IS_SENSOR_C1286R12C = 0x003B
IS_SENSOR_D1024G13M = 0x0080
IS_SENSOR_D1024G13C = 0x0081
IS_SENSOR_D0640G13M = 0x0082
IS_SENSOR_D0640G13C = 0x0083
IS_SENSOR_D1281G12M = 0x0084
IS_SENSOR_D1281G12C = 0x0085
IS_SENSOR_D1024G23M = 0x0086
IS_SENSOR_D1024G23C = 0x0087
IS_SENSOR_D0640G12M = 0x0088
IS_SENSOR_D0640G12C = 0x0089
IS_SENSOR_D0640G14M = 0x0090
IS_SENSOR_D0640G14C = 0x0091
IS_SENSOR_D0768G12M = 0x0092
IS_SENSOR_D0768G12C = 0x0093
IS_SENSOR_D1280G12M = 0x0096
IS_SENSOR_D1280G12C = 0x0097
IS_SENSOR_D1600G12M = 0x0098
IS_SENSOR_D1600G12C = 0x0099
IS_NO_SUCCESS = -1
IS_SUCCESS = 0
IS_INVALID_CAMERA_HANDLE = 1
IS_INVALID_HANDLE = 1
IS_IO_REQUEST_FAILED = 2
IS_CANT_OPEN_DEVICE = 3
IS_CANT_CLOSE_DEVICE = 4
IS_CANT_SETUP_MEMORY = 5
IS_NO_HWND_FOR_ERROR_REPORT = 6
IS_ERROR_MESSAGE_NOT_CREATED = 7
IS_ERROR_STRING_NOT_FOUND = 8
IS_HOOK_NOT_CREATED = 9
IS_TIMER_NOT_CREATED = 10
IS_CANT_OPEN_REGISTRY = 11
IS_CANT_READ_REGISTRY = 12
IS_CANT_VALIDATE_BOARD = 13
IS_CANT_GIVE_BOARD_ACCESS = 14
IS_NO_IMAGE_MEM_ALLOCATED = 15
IS_CANT_CLEANUP_MEMORY = 16
IS_CANT_COMMUNICATE_WITH_DRIVER = 17
IS_FUNCTION_NOT_SUPPORTED_YET = 18
IS_OPERATING_SYSTEM_NOT_SUPPORTED = 19
IS_INVALID_VIDEO_IN = 20
IS_INVALID_IMG_SIZE = 21
IS_INVALID_ADDRESS = 22
IS_INVALID_VIDEO_MODE = 23
IS_INVALID_AGC_MODE = 24
IS_INVALID_GAMMA_MODE = 25
IS_INVALID_SYNC_LEVEL = 26
IS_INVALID_CBARS_MODE = 27
IS_INVALID_COLOR_MODE = 28
IS_INVALID_SCALE_FACTOR = 29
IS_INVALID_IMAGE_SIZE = 30
IS_INVALID_IMAGE_POS = 31
IS_INVALID_CAPTURE_MODE = 32
IS_INVALID_RISC_PROGRAM = 33
IS_INVALID_BRIGHTNESS = 34
IS_INVALID_CONTRAST = 35
IS_INVALID_SATURATION_U = 36
IS_INVALID_SATURATION_V = 37
IS_INVALID_HUE = 38
IS_INVALID_HOR_FILTER_STEP = 39
IS_INVALID_VERT_FILTER_STEP = 40
IS_INVALID_EEPROM_READ_ADDRESS = 41
IS_INVALID_EEPROM_WRITE_ADDRESS = 42
IS_INVALID_EEPROM_READ_LENGTH = 43
IS_INVALID_EEPROM_WRITE_LENGTH = 44
IS_INVALID_BOARD_INFO_POINTER = 45
IS_INVALID_DISPLAY_MODE = 46
IS_INVALID_ERR_REP_MODE = 47
IS_INVALID_BITS_PIXEL = 48
IS_INVALID_MEMORY_POINTER = 49
IS_FILE_WRITE_OPEN_ERROR = 50
IS_FILE_READ_OPEN_ERROR = 51
IS_FILE_READ_INVALID_BMP_ID = 52
IS_FILE_READ_INVALID_BMP_SIZE = 53
IS_FILE_READ_INVALID_BIT_COUNT = 54
IS_WRONG_KERNEL_VERSION = 55
IS_RISC_INVALID_XLENGTH = 60
IS_RISC_INVALID_YLENGTH = 61
IS_RISC_EXCEED_IMG_SIZE = 62
IS_DD_MAIN_FAILED = 70
IS_DD_PRIMSURFACE_FAILED = 71
IS_DD_SCRN_SIZE_NOT_SUPPORTED = 72
IS_DD_CLIPPER_FAILED = 73
IS_DD_CLIPPER_HWND_FAILED = 74
IS_DD_CLIPPER_CONNECT_FAILED = 75
IS_DD_BACKSURFACE_FAILED = 76
IS_DD_BACKSURFACE_IN_SYSMEM = 77
IS_DD_MDL_MALLOC_ERR = 78
IS_DD_MDL_SIZE_ERR = 79
IS_DD_CLIP_NO_CHANGE = 80
IS_DD_PRIMMEM_NULL = 81
IS_DD_BACKMEM_NULL = 82
IS_DD_BACKOVLMEM_NULL = 83
IS_DD_OVERLAYSURFACE_FAILED = 84
IS_DD_OVERLAYSURFACE_IN_SYSMEM = 85
IS_DD_OVERLAY_NOT_ALLOWED = 86
IS_DD_OVERLAY_COLKEY_ERR = 87
IS_DD_OVERLAY_NOT_ENABLED = 88
IS_DD_GET_DC_ERROR = 89
IS_DD_DDRAW_DLL_NOT_LOADED = 90
IS_DD_THREAD_NOT_CREATED = 91
IS_DD_CANT_GET_CAPS = 92
IS_DD_NO_OVERLAYSURFACE = 93
IS_DD_NO_OVERLAYSTRETCH = 94
IS_DD_CANT_CREATE_OVERLAYSURFACE = 95
IS_DD_CANT_UPDATE_OVERLAYSURFACE = 96
IS_DD_INVALID_STRETCH = 97
IS_EV_INVALID_EVENT_NUMBER = 100
IS_INVALID_MODE = 101
IS_CANT_FIND_HOOK = 102
IS_CANT_GET_HOOK_PROC_ADDR = 103
IS_CANT_CHAIN_HOOK_PROC = 104
IS_CANT_SETUP_WND_PROC = 105
IS_HWND_NULL = 106
IS_INVALID_UPDATE_MODE = 107
IS_NO_ACTIVE_IMG_MEM = 108
IS_CANT_INIT_EVENT = 109
IS_FUNC_NOT_AVAIL_IN_OS = 110
IS_CAMERA_NOT_CONNECTED = 111
IS_SEQUENCE_LIST_EMPTY = 112
IS_CANT_ADD_TO_SEQUENCE = 113
IS_LOW_OF_SEQUENCE_RISC_MEM = 114
IS_IMGMEM2FREE_USED_IN_SEQ = 115
IS_IMGMEM_NOT_IN_SEQUENCE_LIST = 116
IS_SEQUENCE_BUF_ALREADY_LOCKED = 117
IS_INVALID_DEVICE_ID = 118
IS_INVALID_BOARD_ID = 119
IS_ALL_DEVICES_BUSY = 120
IS_HOOK_BUSY = 121
IS_TIMED_OUT = 122
IS_NULL_POINTER = 123
IS_WRONG_HOOK_VERSION = 124
IS_INVALID_PARAMETER = 125
IS_NOT_ALLOWED = 126
IS_OUT_OF_MEMORY = 127
IS_INVALID_WHILE_LIVE = 128
IS_ACCESS_VIOLATION = 129
IS_UNKNOWN_ROP_EFFECT = 130
IS_INVALID_RENDER_MODE = 131
IS_INVALID_THREAD_CONTEXT = 132
IS_NO_HARDWARE_INSTALLED = 133
IS_INVALID_WATCHDOG_TIME = 134
IS_INVALID_WATCHDOG_MODE = 135
IS_INVALID_PASSTHROUGH_IN = 136
IS_ERROR_SETTING_PASSTHROUGH_IN = 137
IS_FAILURE_ON_SETTING_WATCHDOG = 138
IS_NO_USB20 = 139
IS_CAPTURE_RUNNING = 140
IS_MEMORY_BOARD_ACTIVATED = 141
IS_MEMORY_BOARD_DEACTIVATED = 142
IS_NO_MEMORY_BOARD_CONNECTED = 143
IS_TOO_LESS_MEMORY = 144
IS_IMAGE_NOT_PRESENT = 145
IS_MEMORY_MODE_RUNNING = 146
IS_MEMORYBOARD_DISABLED = 147
IS_TRIGGER_ACTIVATED = 148
IS_WRONG_KEY = 150
IS_CRC_ERROR = 151
IS_NOT_YET_RELEASED = 152
IS_NOT_CALIBRATED = 153
IS_WAITING_FOR_KERNEL = 154
IS_NOT_SUPPORTED = 155
IS_TRIGGER_NOT_ACTIVATED = 156
IS_OPERATION_ABORTED = 157
IS_BAD_STRUCTURE_SIZE = 158
IS_INVALID_BUFFER_SIZE = 159
IS_INVALID_PIXEL_CLOCK = 160
IS_INVALID_EXPOSURE_TIME = 161
IS_AUTO_EXPOSURE_RUNNING = 162
IS_CANNOT_CREATE_BB_SURF = 163
IS_CANNOT_CREATE_BB_MIX = 164
IS_BB_OVLMEM_NULL = 165
IS_CANNOT_CREATE_BB_OVL = 166
IS_NOT_SUPP_IN_OVL_SURF_MODE = 167
IS_INVALID_SURFACE = 168
IS_SURFACE_LOST = 169
IS_RELEASE_BB_OVL_DC = 170
IS_BB_TIMER_NOT_CREATED = 171
IS_BB_OVL_NOT_EN = 172
IS_ONLY_IN_BB_MODE = 173
IS_INVALID_COLOR_FORMAT = 174
IS_INVALID_WB_BINNING_MODE = 175
IS_INVALID_I2C_DEVICE_ADDRESS = 176
IS_COULD_NOT_CONVERT = 177
IS_TRANSFER_ERROR = 178
IS_OFF = 0
IS_ON = 1
IS_IGNORE_PARAMETER = -1
IS_USE_DEVICE_ID = 0x8000L
IS_GET_AUTO_EXIT_ENABLED = 0x8000
IS_DISABLE_AUTO_EXIT = 0
IS_ENABLE_AUTO_EXIT = 1
IS_GET_LIVE = 0x8000
IS_WAIT = 0x0001
IS_DONT_WAIT = 0x0000
IS_FORCE_VIDEO_STOP = 0x4000
IS_FORCE_VIDEO_START = 0x4000
IS_USE_NEXT_MEM = 0x8000
IS_VIDEO_NOT_FINISH = 0
IS_VIDEO_FINISH = 1
IS_GET_RENDER_MODE = 0x8000
IS_RENDER_DISABLED = 0
IS_RENDER_NORMAL = 1
IS_RENDER_FIT_TO_WINDOW = 2
IS_RENDER_DOWNSCALE_1_2 = 4
IS_RENDER_MIRROR_UPDOWN = 16
IS_RENDER_DOUBLE_HEIGHT = 32
IS_RENDER_HALF_HEIGHT = 64
IS_GET_EXTERNALTRIGGER = 0x8000
IS_GET_TRIGGER_STATUS = 0x8001
IS_GET_TRIGGER_MASK = 0x8002
IS_GET_TRIGGER_INPUTS = 0x8003
IS_GET_SUPPORTED_TRIGGER_MODE = 0x8004
IS_GET_TRIGGER_COUNTER = 0x8000
IS_SET_TRIG_OFF = 0x000
IS_SET_TRIG_HI_LO = 0x001
IS_SET_TRIG_LO_HI = 0x002
IS_SET_TRIG_SOFTWARE = 0x008
IS_SET_TRIG_MASK = 0x100
IS_GET_TRIGGER_DELAY = 0x8000
IS_GET_MIN_TRIGGER_DELAY = 0x8001
IS_GET_MAX_TRIGGER_DELAY = 0x8002
IS_GET_TRIGGER_DELAY_GRANULARITY = 0x8003
IS_GET_PIXEL_CLOCK = 0x8000
IS_GET_DEFAULT_PIXEL_CLK = 0x8001
IS_GET_FRAMERATE = 0x8000
IS_GET_DEFAULT_FRAMERATE = 0x8001
IS_GET_EXPOSURE_TIME = 0x8000
IS_GET_DEFAULT_EXPOSURE = 0x8001
IS_GET_MASTER_GAIN = 0x8000
IS_GET_RED_GAIN = 0x8001
IS_GET_GREEN_GAIN = 0x8002
IS_GET_BLUE_GAIN = 0x8003
IS_GET_DEFAULT_MASTER = 0x8004
IS_GET_DEFAULT_RED = 0x8005
IS_GET_DEFAULT_GREEN = 0x8006
IS_GET_DEFAULT_BLUE = 0x8007
IS_GET_GAINBOOST = 0x8008
IS_SET_GAINBOOST_ON = 0x0001
IS_SET_GAINBOOST_OFF = 0x0000
IS_GET_SUPPORTED_GAINBOOST = 0x0002
IS_GET_MASTER_GAIN_FACTOR = 0x8000
IS_GET_RED_GAIN_FACTOR = 0x8001
IS_GET_GREEN_GAIN_FACTOR = 0x8002
IS_GET_BLUE_GAIN_FACTOR = 0x8003
IS_SET_MASTER_GAIN_FACTOR = 0x8004
IS_SET_RED_GAIN_FACTOR = 0x8005
IS_SET_GREEN_GAIN_FACTOR = 0x8006
IS_SET_BLUE_GAIN_FACTOR = 0x8007
IS_GET_DEFAULT_MASTER_GAIN_FACTOR = 0x8008
IS_GET_DEFAULT_RED_GAIN_FACTOR = 0x8009
IS_GET_DEFAULT_GREEN_GAIN_FACTOR = 0x800a
IS_GET_DEFAULT_BLUE_GAIN_FACTOR = 0x800b
IS_INQUIRE_MASTER_GAIN_FACTOR = 0x800c
IS_INQUIRE_RED_GAIN_FACTOR = 0x800d
IS_INQUIRE_GREEN_GAIN_FACTOR = 0x800e
IS_INQUIRE_BLUE_GAIN_FACTOR = 0x800f
IS_SET_GLOBAL_SHUTTER_ON = 0x0001
IS_SET_GLOBAL_SHUTTER_OFF = 0x0000
IS_GET_GLOBAL_SHUTTER = 0x0010
IS_GET_SUPPORTED_GLOBAL_SHUTTER = 0x0020
IS_GET_BL_COMPENSATION = 0x8000
IS_GET_BL_OFFSET = 0x8001
IS_GET_BL_DEFAULT_MODE = 0x8002
IS_GET_BL_DEFAULT_OFFSET = 0x8003
IS_GET_BL_SUPPORTED_MODE = 0x8004
IS_BL_COMPENSATION_DISABLE = 0
IS_BL_COMPENSATION_ENABLE = 1
IS_BL_COMPENSATION_OFFSET = 32
IS_GET_HW_GAMMA = 0x8000
IS_GET_HW_SUPPORTED_GAMMA = 0x8001
IS_SET_HW_GAMMA_OFF = 0x0000
IS_SET_HW_GAMMA_ON = 0x0001
IS_GET_BRIGHTNESS = 0x8000
IS_MIN_BRIGHTNESS = 0
IS_MAX_BRIGHTNESS = 255
IS_DEFAULT_BRIGHTNESS = -1
IS_GET_CONTRAST = 0x8000
IS_MIN_CONTRAST = 0
IS_MAX_CONTRAST = 511
IS_DEFAULT_CONTRAST = -1
IS_GET_GAMMA = 0x8000
IS_MIN_GAMMA = 1
IS_MAX_GAMMA = 1000
IS_DEFAULT_GAMMA = -1
IS_GET_SATURATION_U = 0x8000
IS_MIN_SATURATION_U = 0
IS_MAX_SATURATION_U = 511
IS_DEFAULT_SATURATION_U = 254
IS_GET_SATURATION_V = 0x8001
IS_MIN_SATURATION_V = 0
IS_MAX_SATURATION_V = 511
IS_DEFAULT_SATURATION_V = 180
IS_GET_HUE = 0x8000
IS_MIN_HUE = 0
IS_MAX_HUE = 255
IS_DEFAULT_HUE = 128
IS_GET_IMAGE_SIZE_X = 0x8000
IS_GET_IMAGE_SIZE_Y = 0x8001
IS_GET_IMAGE_SIZE_X_INC = 0x8002
IS_GET_IMAGE_SIZE_Y_INC = 0x8003
IS_GET_IMAGE_SIZE_X_MIN = 0x8004
IS_GET_IMAGE_SIZE_Y_MIN = 0x8005
IS_GET_IMAGE_SIZE_X_MAX = 0x8006
IS_GET_IMAGE_SIZE_Y_MAX = 0x8007
IS_GET_IMAGE_POS_X = 0x8001
IS_GET_IMAGE_POS_Y = 0x8002
IS_GET_IMAGE_POS_X_ABS = 0xC001
IS_GET_IMAGE_POS_Y_ABS = 0xC002
IS_GET_IMAGE_POS_X_INC = 0xC003
IS_GET_IMAGE_POS_Y_INC = 0xC004
IS_GET_IMAGE_POS_X_MIN = 0xC005
IS_GET_IMAGE_POS_Y_MIN = 0xC006
IS_GET_IMAGE_POS_X_MAX = 0xC007
IS_GET_IMAGE_POS_Y_MAX = 0xC008
IS_SET_IMAGE_POS_X_ABS = 0x00010000
IS_SET_IMAGE_POS_Y_ABS = 0x00010000
IS_SET_IMAGEPOS_X_ABS = 0x8000
IS_SET_IMAGEPOS_Y_ABS = 0x8000
IS_GET_ROP_EFFECT = 0x8000
IS_SET_ROP_NONE = 0
IS_SET_ROP_MIRROR_UPDOWN = 8
IS_SET_ROP_MIRROR_UPDOWN_ODD = 16
IS_SET_ROP_MIRROR_UPDOWN_EVEN = 32
IS_SET_ROP_MIRROR_LEFTRIGHT = 64
IS_GET_SUBSAMPLING = 0x8000
IS_GET_SUPPORTED_SUBSAMPLING = 0x8001
IS_GET_SUBSAMPLING_TYPE = 0x8002
IS_SUBSAMPLING_DISABLE = 0x00
IS_SUBSAMPLING_2X_VERTICAL = 0x01
IS_SUBSAMPLING_2X_HORIZONTAL = 0x02
IS_SUBSAMPLING_4X_VERTICAL = 0x04
IS_SUBSAMPLING_4X_HORIZONTAL = 0x08
IS_SUBSAMPLING_COLOR = 0x01
IS_SUBSAMPLING_MONO = 0x02
IS_SUBSAMPLING_VERT = 1
IS_SUBSAMPLING_HOR = 2
IS_GET_BINNING = 0x8000
IS_GET_SUPPORTED_BINNING = 0x8001
IS_GET_BINNING_TYPE = 0x8002
IS_BINNING_DISABLE = 0x00
IS_BINNING_2X_VERTICAL = 0x01
IS_BINNING_2X_HORIZONTAL = 0x02
IS_BINNING_4X_VERTICAL = 0x04
IS_BINNING_4X_HORIZONTAL = 0x08
IS_BINNING_COLOR = 0x01
IS_BINNING_MONO = 0x02
IS_BINNING_VERT = 1
IS_BINNING_HOR = 2
IS_SET_ENABLE_AUTO_GAIN = 0x8800
IS_GET_ENABLE_AUTO_GAIN = 0x8801
IS_SET_ENABLE_AUTO_SHUTTER = 0x8802
IS_GET_ENABLE_AUTO_SHUTTER = 0x8803
IS_SET_ENABLE_AUTO_WHITEBALANCE = 0x8804
IS_GET_ENABLE_AUTO_WHITEBALANCE = 0x8805
IS_SET_ENABLE_AUTO_FRAMERATE = 0x8806
IS_GET_ENABLE_AUTO_FRAMERATE = 0x8807
IS_SET_AUTO_REFERENCE = 0x8000
IS_GET_AUTO_REFERENCE = 0x8001
IS_SET_AUTO_GAIN_MAX = 0x8002
IS_GET_AUTO_GAIN_MAX = 0x8003
IS_SET_AUTO_SHUTTER_MAX = 0x8004
IS_GET_AUTO_SHUTTER_MAX = 0x8005
IS_SET_AUTO_SPEED = 0x8006
IS_GET_AUTO_SPEED = 0x8007
IS_SET_AUTO_WB_OFFSET = 0x8008
IS_GET_AUTO_WB_OFFSET = 0x8009
IS_SET_AUTO_WB_GAIN_RANGE = 0x800A
IS_GET_AUTO_WB_GAIN_RANGE = 0x800B
IS_SET_AUTO_WB_SPEED = 0x800C
IS_GET_AUTO_WB_SPEED = 0x800D
IS_SET_AUTO_WB_ONCE = 0x800E
IS_GET_AUTO_WB_ONCE = 0x800F
IS_SET_AUTO_BRIGHTNESS_ONCE = 0x8010
IS_GET_AUTO_BRIGHTNESS_ONCE = 0x8011
IS_MIN_AUTO_BRIGHT_REFERENCE = 0
IS_MAX_AUTO_BRIGHT_REFERENCE = 255
IS_DEFAULT_AUTO_BRIGHT_REFERENCE = 128
IS_MIN_AUTO_SPEED = 0
IS_MAX_AUTO_SPEED = 100
IS_DEFAULT_AUTO_SPEED = 50
IS_DEFAULT_AUTO_WB_OFFSET = 0
IS_MIN_AUTO_WB_OFFSET = -50
IS_MAX_AUTO_WB_OFFSET = 50
IS_DEFAULT_AUTO_WB_SPEED = 50
IS_MIN_AUTO_WB_SPEED = 0
IS_MAX_AUTO_WB_SPEED = 100
IS_MIN_AUTO_WB_REFERENCE = 0
IS_MAX_AUTO_WB_REFERENCE = 255
IS_SET_AUTO_BRIGHT_AOI = 0x8000
IS_GET_AUTO_BRIGHT_AOI = 0x8001
IS_SET_IMAGE_AOI = 0x8002
IS_GET_IMAGE_AOI = 0x8003
IS_SET_AUTO_WB_AOI = 0x8004
IS_GET_AUTO_WB_AOI = 0x8005
IS_GET_COLOR_MODE = 0x8000
IS_SET_CM_RGB32 = 0
IS_SET_CM_RGB24 = 1
IS_SET_CM_RGB16 = 2
IS_SET_CM_RGB15 = 3
IS_SET_CM_Y8 = 6
IS_SET_CM_BAYER = 11
IS_SET_CM_UYVY = 12
IS_SET_CM_UYVY_MONO = 13
IS_SET_CM_UYVY_BAYER = 14
IS_GET_BPC_MODE = 0x8000
IS_GET_BPC_THRESHOLD = 0x8001
IS_GET_BPC_SUPPORTED_MODE = 0x8002
IS_BPC_DISABLE = 0
IS_BPC_ENABLE_LEVEL_1 = 1
IS_BPC_ENABLE_LEVEL_2 = 2
IS_BPC_ENABLE_USER = 4
IS_BPC_ENABLE_SOFTWARE = 2
IS_BPC_ENABLE_HARDWARE = 1
IS_SET_BADPIXEL_LIST = 0x01
IS_GET_BADPIXEL_LIST = 0x02
IS_GET_LIST_SIZE = 0x03
IS_GET_CCOR_MODE = 0x8000
IS_CCOR_DISABLE = 0x0000
IS_CCOR_ENABLE = 0x0001
IS_GET_BAYER_CV_MODE = 0x8000
IS_SET_BAYER_CV_NORMAL = 0x0000
IS_SET_BAYER_CV_BETTER = 0x0001
IS_SET_BAYER_CV_BEST = 0x0002
IS_GET_EDGE_ENHANCEMENT = 0x8000
IS_EDGE_EN_DISABLE = 0
IS_EDGE_EN_STRONG = 1
IS_EDGE_EN_WEAK = 2
IS_GET_WB_MODE = 0x8000
IS_SET_WB_DISABLE = 0x0000
IS_SET_WB_USER = 0x0001
IS_SET_WB_AUTO_ENABLE = 0x0002
IS_SET_WB_AUTO_ENABLE_ONCE = 0x0004
IS_SET_WB_DAYLIGHT_65 = 0x0101
IS_SET_WB_COOL_WHITE = 0x0102
IS_SET_WB_U30 = 0x0103
IS_SET_WB_ILLUMINANT_A = 0x0104
IS_SET_WB_HORIZON = 0x0105
IS_GET_FLASHSTROBE_MODE = 0x8000
IS_GET_FLASHSTROBE_LINE = 0x8001
IS_GET_SUPPORTED_FLASH_IO_PORTS = 0x8002
IS_SET_FLASH_OFF = 0
IS_SET_FLASH_ON = 1
IS_SET_FLASH_LO_ACTIVE = 1
IS_SET_FLASH_HI_ACTIVE = 2
IS_SET_FLASH_HIGH = 3
IS_SET_FLASH_LOW = 4
IS_SET_FLASH_LO_ACTIVE_FREERUN = 5
IS_SET_FLASH_HI_ACTIVE_FREERUN = 6
IS_SET_FLASH_IO_1 = 0x0010
IS_SET_FLASH_IO_2 = 0x0020
IS_SET_FLASH_IO_3 = 0x0040
IS_SET_FLASH_IO_4 = 0x0080
IS_GET_FLASH_DELAY = -1
IS_GET_FLASH_DURATION = -2
IS_GET_MAX_FLASH_DELAY = -3
IS_GET_MAX_FLASH_DURATION = -4
IS_GET_MIN_FLASH_DELAY = -5
IS_GET_MIN_FLASH_DURATION = -6
IS_GET_FLASH_DELAY_GRANULARITY = -7
IS_GET_FLASH_DURATION_GRANULARITY = -8
IS_GET_IO = 0x8000
IS_GET_IO_MASK = 0x8000
IS_EEPROM_MIN_USER_ADDRESS = 0
IS_EEPROM_MAX_USER_ADDRESS = 63
IS_EEPROM_MAX_USER_SPACE = 64
IS_GET_ERR_REP_MODE = 0x8000
IS_ENABLE_ERR_REP = 1
IS_DISABLE_ERR_REP = 0
IS_GET_DISPLAY_MODE = 0x8000
IS_GET_DISPLAY_SIZE_X = 0x8000
IS_GET_DISPLAY_SIZE_Y = 0x8001
IS_GET_DISPLAY_POS_X = 0x8000
IS_GET_DISPLAY_POS_Y = 0x8001
IS_SET_DM_DIB = 1
IS_SET_DM_DIRECTDRAW = 2
IS_GET_DD_OVERLAY_SCALE = 0x8000
IS_SET_DM_ALLOW_OVERLAY = 0x100
IS_SET_DM_ALLOW_SCALING = 0x200
IS_SET_DM_MONO = 0x800
IS_SET_DM_BAYER = 0x1000
IS_SET_DM_BACKBUFFER = 0x2000
IS_GET_KC_RED = 0x8000
IS_GET_KC_GREEN = 0x8001
IS_GET_KC_BLUE = 0x8002
IS_GET_KC_RGB = 0x8003
IS_GET_KC_INDEX = 0x8004
IS_GET_KEYOFFSET_X = 0x8000
IS_GET_KEYOFFSET_Y = 0x8001
IS_SET_KC_DEFAULT = 0xFF00FF
IS_SET_KC_DEFAULT_8 = 253
IS_MEMORY_GET_COUNT = 0x8000
IS_MEMORY_GET_DELAY = 0x8001
IS_MEMORY_MODE_DISABLE = 0x0000
IS_MEMORY_USE_TRIGGER = 0xFFFF
IS_GET_TEST_IMAGE = 0x8000
IS_SET_TEST_IMAGE_DISABLED = 0x0000
IS_SET_TEST_IMAGE_MEMORY_1 = 0x0001
IS_SET_TEST_IMAGE_MEMORY_2 = 0x0002
IS_SET_TEST_IMAGE_MEMORY_3 = 0x0003
IS_SET_LED_OFF = 0
IS_SET_LED_ON = 1
IS_SET_LED_TOGGLE = 2
IS_GET_LED = 0x8000
IS_SAVE_USE_ACTUAL_IMAGE_SIZE = 0x00010000
IS_SET_EVENT_FRAME = 2
IS_SET_EVENT_EXTTRIG = 3
IS_SET_EVENT_SEQ = 5
IS_SET_EVENT_STEAL = 6
IS_SET_EVENT_TRANSFER_FAILED = 8
IS_SET_EVENT_DEVICE_RECONNECTED = 9
IS_SET_EVENT_MEMORY_MODE_FINISH = 10
IS_SET_EVENT_FRAME_RECEIVED = 11
IS_SET_EVENT_WB_FINISHED = 12
IS_SET_EVENT_AUTOBRIGHTNESS_FINISHED = 13
IS_SET_EVENT_REMOVE = 128
IS_SET_EVENT_REMOVAL = 129
IS_SET_EVENT_NEW_DEVICE = 130
IS_GET_CAMERA_ID = 0x8000
IS_GET_STATUS = 0x8000
IS_EXT_TRIGGER_EVENT_CNT = 0
IS_FIFO_OVR_CNT = 1
IS_SEQUENCE_CNT = 2
IS_LAST_FRAME_FIFO_OVR = 3
IS_SEQUENCE_SIZE = 4
IS_STEAL_FINISHED = 6
IS_BOARD_REVISION = 9
IS_MIRROR_BITMAP_UPDOWN = 10
IS_BUS_OVR_CNT = 11
IS_STEAL_ERROR_CNT = 12
IS_LOW_COLOR_REMOVAL = 13
IS_WAIT_TIMEOUT = 19
IS_TRIGGER_MISSED = 20
IS_LAST_CAPTURE_ERROR = 21
IS_BOARD_TYPE_UC480_USB = 0x40
IS_OS_UNDETERMINED = 0
IS_OS_WIN95 = 1
IS_OS_WINNT40 = 2
IS_OS_WIN98 = 3
IS_OS_WIN2000 = 4
IS_OS_WINXP = 5
IS_OS_WINME = 6
IS_OS_WINNET = 7
IS_OS_WINSERVER2003 = 8
IS_OS_WINVISTA = 9
IS_USB_10 = 1
IS_USB_11 = 2
IS_USB_20 = 4
IS_LOCK_LAST_BUFFER = 0x8002
IS_IMG_BMP = 0
IS_IMG_JPG = 1
IS_IMG_PNG = 2
IS_IMG_RAW = 4
IS_INIT_STEAL_VIDEO = 1
IS_EXIT_STEAL_VIDEO = 2
IS_INIT_STEAL_VIDEO_MANUAL = 3
IS_INIT_STEAL_VIDEO_AUTO = 4
IS_SET_STEAL_RATIO = 64
IS_USE_MEM_IMAGE_SIZE = 128
IS_STEAL_MODES_MASK = 7
IS_SET_STEAL_COPY = 0x1000
IS_SET_STEAL_NORMAL = 0x2000
IS_GET_AGC_MODE = 0x8000
IS_SET_AGC_OFF = 0
IS_SET_AGC_ON = 1
IS_GET_GAMMA_MODE = 0x8000
IS_SET_GAMMA_OFF = 0
IS_SET_GAMMA_ON = 1
#BOARDINFO = CAMINFO
#PBOARDINFO = PCAMINFO
AC_SHUTTER = 0x00000001
AC_GAIN = 0x00000002
AC_WHITEBAL = 0x00000004
AC_WB_RED_CHANNEL = 0x00000008
AC_WB_GREEN_CHANNEL = 0x00000010
AC_WB_BLUE_CHANNEL = 0x00000020
AC_FRAMERATE = 0x00000040
ACS_ADJUSTING = 0x00000001
ACS_FINISHED = 0x00000002
ACS_DISABLED = 0x00000004
error_map = {}