blob: 9652bc79c23ea61deb3afeacdc60125640fb5e70 (
plain)
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
|
#ifndef __QHYCCDERR_H__
#define __QHYCCDERR_H__
#define QHYCCD_READ_DIRECTLY 0x2001
#define QHYCCD_DELAY_200MS 0x2000
/**
* It means the camera using PCIE transfer data */
#define QHYCCD_PCIE 9
/**
* It means the camera using WINPCAP transfer data */
#define QHYCCD_WINPCAP 8
/**
* It means the camera using GiGaE transfer data */
#define QHYCCD_QGIGAE 7
/**
* It means the camera using usb sync transfer data */
#define QHYCCD_USBSYNC 6
/**
* It means the camera using usb async transfer data */
#define QHYCCD_USBASYNC 5
/**
* It means the camera is color one */
#define QHYCCD_COLOR 4
/**
* It means the camera is mono one*/
#define QHYCCD_MONO 3
/**
* It means the camera has cool function */
#define QHYCCD_COOL 2
/**
* It means the camera do not have cool function */
#define QHYCCD_NOTCOOL 1
/**
* camera works well */
#define QHYCCD_SUCCESS 0
/**
* Other error */
#define QHYCCD_ERROR 0xFFFFFFFF
#if 0
/**
* There is no camera connected */
#define QHYCCD_ERROR_NO_DEVICE -2
/**
* Do not support the function */
#define QHYCCD_ERROR -3
/**
* Set camera params error */
#define QHYCCD_ERROR_SETPARAMS -4
/**
* Get camera params error */
#define QHYCCD_ERROR_GETPARAMS -5
/**
* The camera is exposing now */
#define QHYCCD_ERROR_EXPOSING -6
/**
* The camera expose failed */
#define QHYCCD_ERROR_EXPFAILED -7
/**
* There is another instance is getting data from camera */
#define QHYCCD_ERROR_GETTINGDATA -8
/**
* Get data from camera failed */
#define QHYCCD_ERROR_GETTINGFAILED -9
/**
* Init camera failed */
#define QHYCCD_ERROR_INITCAMERA -10
/**
* Release SDK resouce failed */
#define QHYCCD_ERROR_RELEASERESOURCE -11
/**
* Init SDK resouce failed */
#define QHYCCD_ERROR_INITRESOURCE -12
/**
* There is no match camera */
#define QHYCCD_ERROR -13
/**
* Open cam failed */
#define QHYCCD_ERROR_OPENCAM -14
/**
* Init cam class failed */
#define QHYCCD_ERROR_INITCLASS -15
/**
* Set Resolution failed */
#define QHYCCD_ERROR -16
/**
* Set usbtraffic failed */
#define QHYCCD_ERROR -17
/**
* Set usb speed failed */
#define QHYCCD_ERROR -18
/**
* Set expose time failed */
#define QHYCCD_ERROR_SETEXPOSE -19
/**
* Set cam gain failed */
#define QHYCCD_ERROR_SETGAIN -20
/**
* Set cam white balance red failed */
#define QHYCCD_ERROR_SETRED -21
/**
* Set cam white balance blue failed */
#define QHYCCD_ERROR_SETBLUE -22
/**
* Set cam white balance blue failed */
#define QHYCCD_ERROR_EVTCMOS -23
/**
* Set cam white balance blue failed */
#define QHYCCD_ERROR_EVTUSB -24
/**
* Set cam white balance blue failed */
#define QHYCCD_ERROR -25
#endif
#endif
|