#
Junjie
4 天以前 0ecd4a0ec8c4c5585cbd8975d7786c5618814381
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
 
from ctypes import *
 
PixelType_Gvsp_Undefined = -1
 
PixelType_Gvsp_Mono1p = 16842807
PixelType_Gvsp_Mono2p = 16908344
PixelType_Gvsp_Mono4p = 17039417
PixelType_Gvsp_Mono8 = 17301505
PixelType_Gvsp_Mono8_Signed = 17301506
PixelType_Gvsp_Mono10 = 17825795
PixelType_Gvsp_Mono10_Packed = 17563652
PixelType_Gvsp_Mono12 = 17825797
PixelType_Gvsp_Mono12_Packed = 17563654
PixelType_Gvsp_Mono14 = 17825829
PixelType_Gvsp_Mono16 = 17825799
 
PixelType_Gvsp_BayerGR8 = 17301512
PixelType_Gvsp_BayerRG8 = 17301513
PixelType_Gvsp_BayerGB8 = 17301514
PixelType_Gvsp_BayerBG8 = 17301515
PixelType_Gvsp_BayerRBGG8 = 17301574
 
 
PixelType_Gvsp_BayerGR10 = 17825804
PixelType_Gvsp_BayerRG10 = 17825805
PixelType_Gvsp_BayerGB10 = 17825806
PixelType_Gvsp_BayerBG10 = 17825807
 
PixelType_Gvsp_BayerGR12 = 17825808
PixelType_Gvsp_BayerRG12 = 17825809
PixelType_Gvsp_BayerGB12 = 17825810
PixelType_Gvsp_BayerBG12 = 17825811
 
PixelType_Gvsp_BayerGR10_Packed = 17563686
PixelType_Gvsp_BayerRG10_Packed = 17563687
PixelType_Gvsp_BayerGB10_Packed = 17563688
PixelType_Gvsp_BayerBG10_Packed = 17563689
 
 
PixelType_Gvsp_BayerGR12_Packed = 17563690
PixelType_Gvsp_BayerRG12_Packed = 17563691
PixelType_Gvsp_BayerGB12_Packed = 17563692
PixelType_Gvsp_BayerBG12_Packed = 17563693
 
 
PixelType_Gvsp_BayerGR16 = 17825838
PixelType_Gvsp_BayerRG16 = 17825839
PixelType_Gvsp_BayerGB16 = 17825840
PixelType_Gvsp_BayerBG16 = 17825841
 
 
PixelType_Gvsp_RGB8_Packed = 35127316
PixelType_Gvsp_BGR8_Packed = 35127317
PixelType_Gvsp_RGBA8_Packed = 35651606
PixelType_Gvsp_BGRA8_Packed = 35651607
 
PixelType_Gvsp_RGB10_Packed = 36700184
PixelType_Gvsp_BGR10_Packed = 36700185
PixelType_Gvsp_RGB12_Packed = 36700186
PixelType_Gvsp_BGR12_Packed = 36700187
PixelType_Gvsp_RGB16_Packed = 36700211
PixelType_Gvsp_BGR16_Packed = 36700235
PixelType_Gvsp_RGBA16_Packed = 37748836
PixelType_Gvsp_BGRA16_Packed = 37748817
PixelType_Gvsp_RGB10V1_Packed = 35651612
PixelType_Gvsp_RGB10V2_Packed = 35651613
PixelType_Gvsp_RGB12V1_Packed = 35913780
PixelType_Gvsp_RGB565_Packed = 34603061
PixelType_Gvsp_BGR565_Packed = 34603062
 
 
PixelType_Gvsp_YUV411_Packed = 34340894
PixelType_Gvsp_YUV422_Packed = 34603039
PixelType_Gvsp_YUV422_YUYV_Packed = 34603058
PixelType_Gvsp_YUV444_Packed = 35127328
PixelType_Gvsp_YCBCR8_CBYCR = 35127354
PixelType_Gvsp_YCBCR422_8 = 34603067
PixelType_Gvsp_YCBCR422_8_CBYCRY = 34603075
PixelType_Gvsp_YCBCR411_8_CBYYCRYY = 34340924
PixelType_Gvsp_YCBCR601_8_CBYCR = 35127357
PixelType_Gvsp_YCBCR601_422_8 = 34603070
PixelType_Gvsp_YCBCR601_422_8_CBYCRY = 34603076
PixelType_Gvsp_YCBCR601_411_8_CBYYCRYY = 34340927
PixelType_Gvsp_YCBCR709_8_CBYCR = 35127360
PixelType_Gvsp_YCBCR709_422_8 = 34603073
PixelType_Gvsp_YCBCR709_422_8_CBYCRY = 34603077
PixelType_Gvsp_YCBCR709_411_8_CBYYCRYY = 34340930
 
PixelType_Gvsp_YUV420SP_NV12 = 34373633
PixelType_Gvsp_YUV420SP_NV21 = 34373634
 
PixelType_Gvsp_RGB8_Planar = 35127329
PixelType_Gvsp_RGB10_Planar = 36700194
PixelType_Gvsp_RGB12_Planar = 36700195
PixelType_Gvsp_RGB16_Planar = 36700196
 
 
PixelType_Gvsp_Jpeg = -2145910783
 
PixelType_Gvsp_Coord3D_ABC32f = 39846080
PixelType_Gvsp_Coord3D_ABC32f_Planar = 39846081
 
 
PixelType_Gvsp_Coord3D_AC32f = 36176066
PixelType_Gvsp_COORD3D_DEPTH_PLUS_MASK = -2112094207
 
PixelType_Gvsp_Coord3D_ABC32 = -2107625471
PixelType_Gvsp_Coord3D_AB32f = -2109722622
PixelType_Gvsp_Coord3D_AB32 = -2109722621
PixelType_Gvsp_Coord3D_AC32f_64 = 37748930
PixelType_Gvsp_Coord3D_AC32f_Planar = 37748931
PixelType_Gvsp_Coord3D_AC32 = -2109722620
PixelType_Gvsp_Coord3D_A32f = 18874557
PixelType_Gvsp_Coord3D_A32 = -2128596987
PixelType_Gvsp_Coord3D_C32f = 18874559
PixelType_Gvsp_Coord3D_C32 = -2128596986
PixelType_Gvsp_Coord3D_ABC16 = 36700345
PixelType_Gvsp_Coord3D_C16 = 17825976
 
 
PixelType_Gvsp_HB_Mono8 = 0x81080001 #-2130182143
PixelType_Gvsp_HB_Mono10 = 0x81100003 #-2129657853
PixelType_Gvsp_HB_Mono10_Packed = 0x810C0004 #-2129919996
PixelType_Gvsp_HB_Mono12 = 0x81100005#-2129657851
PixelType_Gvsp_HB_Mono12_Packed = 0x810C0006 #-2129919994
PixelType_Gvsp_HB_Mono16 = 0x81100007 #-2129657849
PixelType_Gvsp_HB_BayerGR8 = 0x81080008#-2130182136
PixelType_Gvsp_HB_BayerRG8 = 0x81080009 #-2130182135
PixelType_Gvsp_HB_BayerGB8 = 0x8108000A #-2130182134
PixelType_Gvsp_HB_BayerBG8 = 0x8108000B #-2130182133
PixelType_Gvsp_HB_BayerRBGG8 = 0x81080046#-2130182074
PixelType_Gvsp_HB_BayerGR10 = 0x8110000C #-2129657844
PixelType_Gvsp_HB_BayerRG10 = 0x8110000D #-2129657843
PixelType_Gvsp_HB_BayerGB10 = 0x8110000E#-2129657842
PixelType_Gvsp_HB_BayerBG10 = 0x8110000F#-2129657841
PixelType_Gvsp_HB_BayerGR12 = 0x81100010 #-2129657840
PixelType_Gvsp_HB_BayerRG12 = 0x81100011 #-2129657839
PixelType_Gvsp_HB_BayerGB12 = 0x81100012 #-2129657838
PixelType_Gvsp_HB_BayerBG12 = 0x81100013 #-2129657837
PixelType_Gvsp_HB_BayerGR10_Packed = 0x810C0026 #-2129919962
PixelType_Gvsp_HB_BayerRG10_Packed = 0x810C0027 #-2129919961
PixelType_Gvsp_HB_BayerGB10_Packed = 0x810C0028 #-2129919960
PixelType_Gvsp_HB_BayerBG10_Packed = 0x810C0029 #-2129919959
PixelType_Gvsp_HB_BayerGR12_Packed = 0x810C002A #-2129919958
PixelType_Gvsp_HB_BayerRG12_Packed = 0x810C002B #-2129919957
PixelType_Gvsp_HB_BayerGB12_Packed = 0x810C002C #-2129919956
PixelType_Gvsp_HB_BayerBG12_Packed = 0x810C002D #-2129919955
PixelType_Gvsp_HB_YUV422_Packed = 0x8210001F #-2112880609
PixelType_Gvsp_HB_YUV422_YUYV_Packed = 0x82100032 #-2112880590
PixelType_Gvsp_HB_RGB8_Packed = 0x82180014 #-2112356332
PixelType_Gvsp_HB_BGR8_Packed = 0x82180015 #-2112356331
PixelType_Gvsp_HB_RGBA8_Packed = 0x82200016 #-2111832042
PixelType_Gvsp_HB_BGRA8_Packed = 0x82200017 #-2111832041
PixelType_Gvsp_HB_RGB16_Packed = 0x82300033 #-2110783437
PixelType_Gvsp_HB_BGR16_Packed = 0x8230004B #-2110783413
PixelType_Gvsp_HB_RGBA16_Packed = 0x82400064 #-2109734812
PixelType_Gvsp_HB_BGRA16_Packed = 0x82400051 #-2109734831
 
__all__ = ['PixelType_Gvsp_BayerRG8',
           'PixelType_Gvsp_YCBCR422_8',
           'PixelType_Gvsp_Coord3D_ABC32',
           'PixelType_Gvsp_Coord3D_AB32f',
           'PixelType_Gvsp_COORD3D_DEPTH_PLUS_MASK',
           'PixelType_Gvsp_RGB10_Packed',
           'PixelType_Gvsp_RGB10V1_Packed',
           'PixelType_Gvsp_RGB8_Planar',
           'PixelType_Gvsp_RGBA8_Packed',
           'PixelType_Gvsp_RGB8_Packed',
           'PixelType_Gvsp_BayerBG12',
           'PixelType_Gvsp_Coord3D_AC32f_Planar',
           'PixelType_Gvsp_BayerBG10_Packed',
           'PixelType_Gvsp_YCBCR709_422_8_CBYCRY',
           'PixelType_Gvsp_Coord3D_A32f',
           'PixelType_Gvsp_YUV411_Packed',
           'PixelType_Gvsp_BayerBG12_Packed',
           'PixelType_Gvsp_RGB16_Packed',
           'PixelType_Gvsp_BGR16_Packed',
           'PixelType_Gvsp_RGBA16_Packed',
           'PixelType_Gvsp_BGRA16_Packed',
           'PixelType_Gvsp_BayerRG12',
           'PixelType_Gvsp_BayerRG10',
           'PixelType_Gvsp_BayerRG16',
           'PixelType_Gvsp_YCBCR709_411_8_CBYYCRYY',
           'PixelType_Gvsp_BayerGB12_Packed',
           'PixelType_Gvsp_Coord3D_AC32f',
           'PixelType_Gvsp_BayerRG12_Packed',
           'PixelType_Gvsp_Coord3D_AB32',
           'PixelType_Gvsp_BGR12_Packed',
           'PixelType_Gvsp_BayerGR10_Packed',
           'PixelType_Gvsp_Coord3D_AC32',
           'PixelType_Gvsp_RGB12_Planar',
           'PixelType_Gvsp_YCBCR709_422_8',
           'PixelType_Gvsp_BGR8_Packed',
           'PixelType_Gvsp_Jpeg',
           'PixelType_Gvsp_Coord3D_AC32f_64',
           'PixelType_Gvsp_YUV422_Packed',
           'PixelType_Gvsp_Mono8_Signed',
           'PixelType_Gvsp_BayerBG10',
           'PixelType_Gvsp_BayerBG16',
           'PixelType_Gvsp_BayerGR8',
           'PixelType_Gvsp_RGB16_Planar',
           'PixelType_Gvsp_Mono4p',
           'PixelType_Gvsp_BayerRG10_Packed',
           'PixelType_Gvsp_Mono8',
           'PixelType_Gvsp_BayerGR16',
           'PixelType_Gvsp_BayerGR10',
           'PixelType_Gvsp_BGRA8_Packed',
           'PixelType_Gvsp_BayerGR12',
           'PixelType_Gvsp_Mono12_Packed',
           'PixelType_Gvsp_YCBCR709_8_CBYCR',
           'PixelType_Gvsp_Coord3D_A32',
           'PixelType_Gvsp_YCBCR601_422_8',
           'PixelType_Gvsp_Coord3D_C32',
           'PixelType_Gvsp_YCBCR411_8_CBYYCRYY',
           'PixelType_Gvsp_Undefined',
           'PixelType_Gvsp_BayerGR12_Packed',
           'PixelType_Gvsp_YCBCR601_411_8_CBYYCRYY',
           'PixelType_Gvsp_RGB10_Planar',
           'PixelType_Gvsp_BayerGB16',
           'PixelType_Gvsp_BayerGB10',
           'PixelType_Gvsp_BayerGB12',
           'PixelType_Gvsp_BGR565_Packed',
           'PixelType_Gvsp_Mono1p',
           'PixelType_Gvsp_Coord3D_ABC16',
           'PixelType_Gvsp_YUV444_Packed',
           'PixelType_Gvsp_YUV422_YUYV_Packed',
           'PixelType_Gvsp_BayerBG8',
           'PixelType_Gvsp_Coord3D_C32f',
           'PixelType_Gvsp_BGR10_Packed',
           'PixelType_Gvsp_BayerGB10_Packed',
           'PixelType_Gvsp_Coord3D_ABC32f_Planar',
           'PixelType_Gvsp_Coord3D_ABC32f',
           'PixelType_Gvsp_YCBCR422_8_CBYCRY',
           'PixelType_Gvsp_RGB12_Packed',
           'PixelType_Gvsp_Mono12',
           'PixelType_Gvsp_Mono10',
           'PixelType_Gvsp_Mono16',
           'PixelType_Gvsp_Mono2p',
           'PixelType_Gvsp_Mono14',
           'PixelType_Gvsp_RGB10V2_Packed',
           'PixelType_Gvsp_RGB12V1_Packed',
           'PixelType_Gvsp_Mono10_Packed',
           'PixelType_Gvsp_YCBCR601_8_CBYCR',
           'PixelType_Gvsp_BayerGB8',
           'PixelType_Gvsp_YCBCR8_CBYCR',
           'PixelType_Gvsp_RGB565_Packed',
           'PixelType_Gvsp_YCBCR601_422_8_CBYCRY',
           'PixelType_Gvsp_YUV420SP_NV12',
           'PixelType_Gvsp_YUV420SP_NV21',
           'PixelType_Gvsp_Coord3D_C16',
           'PixelType_Gvsp_BayerRBGG8',
           'PixelType_Gvsp_HB_Mono8',
           'PixelType_Gvsp_HB_Mono10',
           'PixelType_Gvsp_HB_Mono10_Packed',
           'PixelType_Gvsp_HB_Mono12',
           'PixelType_Gvsp_HB_Mono12_Packed',
           'PixelType_Gvsp_HB_Mono16',
           'PixelType_Gvsp_HB_BayerGR8',
           'PixelType_Gvsp_HB_BayerRG8',
           'PixelType_Gvsp_HB_BayerGB8',
           'PixelType_Gvsp_HB_BayerBG8',
           'PixelType_Gvsp_HB_BayerRBGG8',
           'PixelType_Gvsp_HB_BayerGR10',
           'PixelType_Gvsp_HB_BayerRG10',
           'PixelType_Gvsp_HB_BayerGB10',
           'PixelType_Gvsp_HB_BayerBG10',
           'PixelType_Gvsp_HB_BayerGR12',
           'PixelType_Gvsp_HB_BayerRG12',
           'PixelType_Gvsp_HB_BayerGB12',
           'PixelType_Gvsp_HB_BayerBG12',
           'PixelType_Gvsp_HB_BayerGR10_Packed',
           'PixelType_Gvsp_HB_BayerRG10_Packed',
           'PixelType_Gvsp_HB_BayerGB10_Packed',
           'PixelType_Gvsp_HB_BayerBG10_Packed',
           'PixelType_Gvsp_HB_BayerGR12_Packed',
           'PixelType_Gvsp_HB_BayerRG12_Packed',
           'PixelType_Gvsp_HB_BayerGB12_Packed',
           'PixelType_Gvsp_HB_BayerBG12_Packed',
           'PixelType_Gvsp_HB_YUV422_Packed',
           'PixelType_Gvsp_HB_YUV422_YUYV_Packed',
           'PixelType_Gvsp_HB_RGB8_Packed',
           'PixelType_Gvsp_HB_BGR8_Packed',
           'PixelType_Gvsp_HB_RGBA8_Packed',
           'PixelType_Gvsp_HB_BGRA8_Packed',
           'PixelType_Gvsp_HB_RGB16_Packed',
           'PixelType_Gvsp_HB_BGR16_Packed',
           'PixelType_Gvsp_HB_RGBA16_Packed',
           'PixelType_Gvsp_HB_BGRA16_Packed']