~emersion/go-drm

ref: a6c0a22a347ce4e5924c886dfb8d029a33f748c3 go-drm/fourcc_generated.go -rw-r--r-- 14.4 KiB
a6c0a22aSimon Ser go fmt a month ago
                                                                                
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
// Code generated by fourcc.py - DO NOT EDIT
// libdrm 2.4.104

package drm

const (
	FormatInvalid              Format = 0x0
	FormatC8                   Format = 0x20203843
	FormatR8                   Format = 0x20203852
	FormatR16                  Format = 0x20363152
	FormatRG88                 Format = 0x38384752
	FormatGR88                 Format = 0x38385247
	FormatRG1616               Format = 0x32334752
	FormatGR1616               Format = 0x32335247
	FormatRGB332               Format = 0x38424752
	FormatBGR233               Format = 0x38524742
	FormatXRGB4444             Format = 0x32315258
	FormatXBGR4444             Format = 0x32314258
	FormatRGBX4444             Format = 0x32315852
	FormatBGRX4444             Format = 0x32315842
	FormatARGB4444             Format = 0x32315241
	FormatABGR4444             Format = 0x32314241
	FormatRGBA4444             Format = 0x32314152
	FormatBGRA4444             Format = 0x32314142
	FormatXRGB1555             Format = 0x35315258
	FormatXBGR1555             Format = 0x35314258
	FormatRGBX5551             Format = 0x35315852
	FormatBGRX5551             Format = 0x35315842
	FormatARGB1555             Format = 0x35315241
	FormatABGR1555             Format = 0x35314241
	FormatRGBA5551             Format = 0x35314152
	FormatBGRA5551             Format = 0x35314142
	FormatRGB565               Format = 0x36314752
	FormatBGR565               Format = 0x36314742
	FormatRGB888               Format = 0x34324752
	FormatBGR888               Format = 0x34324742
	FormatXRGB8888             Format = 0x34325258
	FormatXBGR8888             Format = 0x34324258
	FormatRGBX8888             Format = 0x34325852
	FormatBGRX8888             Format = 0x34325842
	FormatARGB8888             Format = 0x34325241
	FormatABGR8888             Format = 0x34324241
	FormatRGBA8888             Format = 0x34324152
	FormatBGRA8888             Format = 0x34324142
	FormatXRGB2101010          Format = 0x30335258
	FormatXBGR2101010          Format = 0x30334258
	FormatRGBX1010102          Format = 0x30335852
	FormatBGRX1010102          Format = 0x30335842
	FormatARGB2101010          Format = 0x30335241
	FormatABGR2101010          Format = 0x30334241
	FormatRGBA1010102          Format = 0x30334152
	FormatBGRA1010102          Format = 0x30334142
	FormatXRGB16161616F        Format = 0x48345258
	FormatXBGR16161616F        Format = 0x48344258
	FormatARGB16161616F        Format = 0x48345241
	FormatABGR16161616F        Format = 0x48344241
	FormatAXBXGXRX106106106106 Format = 0x30314241
	FormatYUYV                 Format = 0x56595559
	FormatYVYU                 Format = 0x55595659
	FormatUYVY                 Format = 0x59565955
	FormatVYUY                 Format = 0x59555956
	FormatAYUV                 Format = 0x56555941
	FormatXYUV8888             Format = 0x56555958
	FormatVUY888               Format = 0x34325556
	FormatVUY101010            Format = 0x30335556
	FormatY210                 Format = 0x30313259
	FormatY212                 Format = 0x32313259
	FormatY216                 Format = 0x36313259
	FormatY410                 Format = 0x30313459
	FormatY412                 Format = 0x32313459
	FormatY416                 Format = 0x36313459
	FormatXVYU2101010          Format = 0x30335658
	FormatXVYU12_16161616      Format = 0x36335658
	FormatXVYU16161616         Format = 0x38345658
	FormatY0L0                 Format = 0x304C3059
	FormatX0L0                 Format = 0x304C3058
	FormatY0L2                 Format = 0x324C3059
	FormatX0L2                 Format = 0x324C3058
	FormatYUV420_8BIT          Format = 0x38305559
	FormatYUV420_10BIT         Format = 0x30315559
	FormatXRGB8888_A8          Format = 0x38415258
	FormatXBGR8888_A8          Format = 0x38414258
	FormatRGBX8888_A8          Format = 0x38415852
	FormatBGRX8888_A8          Format = 0x38415842
	FormatRGB888_A8            Format = 0x38413852
	FormatBGR888_A8            Format = 0x38413842
	FormatRGB565_A8            Format = 0x38413552
	FormatBGR565_A8            Format = 0x38413542
	FormatNV12                 Format = 0x3231564E
	FormatNV21                 Format = 0x3132564E
	FormatNV16                 Format = 0x3631564E
	FormatNV61                 Format = 0x3136564E
	FormatNV24                 Format = 0x3432564E
	FormatNV42                 Format = 0x3234564E
	FormatNV15                 Format = 0x3531564E
	FormatP210                 Format = 0x30313250
	FormatP010                 Format = 0x30313050
	FormatP012                 Format = 0x32313050
	FormatP016                 Format = 0x36313050
	FormatQ410                 Format = 0x30313451
	FormatQ401                 Format = 0x31303451
	FormatYUV410               Format = 0x39565559
	FormatYVU410               Format = 0x39555659
	FormatYUV411               Format = 0x31315559
	FormatYVU411               Format = 0x31315659
	FormatYUV420               Format = 0x32315559
	FormatYVU420               Format = 0x32315659
	FormatYUV422               Format = 0x36315559
	FormatYVU422               Format = 0x36315659
	FormatYUV444               Format = 0x34325559
	FormatYVU444               Format = 0x34325659
)

func (v Format) String() string {
	switch v {
	case FormatInvalid:
		return "invalid"
	case FormatC8:
		return "C8"
	case FormatR8:
		return "R8"
	case FormatR16:
		return "R16"
	case FormatRG88:
		return "RG88"
	case FormatGR88:
		return "GR88"
	case FormatRG1616:
		return "RG1616"
	case FormatGR1616:
		return "GR1616"
	case FormatRGB332:
		return "RGB332"
	case FormatBGR233:
		return "BGR233"
	case FormatXRGB4444:
		return "XRGB4444"
	case FormatXBGR4444:
		return "XBGR4444"
	case FormatRGBX4444:
		return "RGBX4444"
	case FormatBGRX4444:
		return "BGRX4444"
	case FormatARGB4444:
		return "ARGB4444"
	case FormatABGR4444:
		return "ABGR4444"
	case FormatRGBA4444:
		return "RGBA4444"
	case FormatBGRA4444:
		return "BGRA4444"
	case FormatXRGB1555:
		return "XRGB1555"
	case FormatXBGR1555:
		return "XBGR1555"
	case FormatRGBX5551:
		return "RGBX5551"
	case FormatBGRX5551:
		return "BGRX5551"
	case FormatARGB1555:
		return "ARGB1555"
	case FormatABGR1555:
		return "ABGR1555"
	case FormatRGBA5551:
		return "RGBA5551"
	case FormatBGRA5551:
		return "BGRA5551"
	case FormatRGB565:
		return "RGB565"
	case FormatBGR565:
		return "BGR565"
	case FormatRGB888:
		return "RGB888"
	case FormatBGR888:
		return "BGR888"
	case FormatXRGB8888:
		return "XRGB8888"
	case FormatXBGR8888:
		return "XBGR8888"
	case FormatRGBX8888:
		return "RGBX8888"
	case FormatBGRX8888:
		return "BGRX8888"
	case FormatARGB8888:
		return "ARGB8888"
	case FormatABGR8888:
		return "ABGR8888"
	case FormatRGBA8888:
		return "RGBA8888"
	case FormatBGRA8888:
		return "BGRA8888"
	case FormatXRGB2101010:
		return "XRGB2101010"
	case FormatXBGR2101010:
		return "XBGR2101010"
	case FormatRGBX1010102:
		return "RGBX1010102"
	case FormatBGRX1010102:
		return "BGRX1010102"
	case FormatARGB2101010:
		return "ARGB2101010"
	case FormatABGR2101010:
		return "ABGR2101010"
	case FormatRGBA1010102:
		return "RGBA1010102"
	case FormatBGRA1010102:
		return "BGRA1010102"
	case FormatXRGB16161616F:
		return "XRGB16161616F"
	case FormatXBGR16161616F:
		return "XBGR16161616F"
	case FormatARGB16161616F:
		return "ARGB16161616F"
	case FormatABGR16161616F:
		return "ABGR16161616F"
	case FormatAXBXGXRX106106106106:
		return "AXBXGXRX106106106106"
	case FormatYUYV:
		return "YUYV"
	case FormatYVYU:
		return "YVYU"
	case FormatUYVY:
		return "UYVY"
	case FormatVYUY:
		return "VYUY"
	case FormatAYUV:
		return "AYUV"
	case FormatXYUV8888:
		return "XYUV8888"
	case FormatVUY888:
		return "VUY888"
	case FormatVUY101010:
		return "VUY101010"
	case FormatY210:
		return "Y210"
	case FormatY212:
		return "Y212"
	case FormatY216:
		return "Y216"
	case FormatY410:
		return "Y410"
	case FormatY412:
		return "Y412"
	case FormatY416:
		return "Y416"
	case FormatXVYU2101010:
		return "XVYU2101010"
	case FormatXVYU12_16161616:
		return "XVYU12_16161616"
	case FormatXVYU16161616:
		return "XVYU16161616"
	case FormatY0L0:
		return "Y0L0"
	case FormatX0L0:
		return "X0L0"
	case FormatY0L2:
		return "Y0L2"
	case FormatX0L2:
		return "X0L2"
	case FormatYUV420_8BIT:
		return "YUV420_8BIT"
	case FormatYUV420_10BIT:
		return "YUV420_10BIT"
	case FormatXRGB8888_A8:
		return "XRGB8888_A8"
	case FormatXBGR8888_A8:
		return "XBGR8888_A8"
	case FormatRGBX8888_A8:
		return "RGBX8888_A8"
	case FormatBGRX8888_A8:
		return "BGRX8888_A8"
	case FormatRGB888_A8:
		return "RGB888_A8"
	case FormatBGR888_A8:
		return "BGR888_A8"
	case FormatRGB565_A8:
		return "RGB565_A8"
	case FormatBGR565_A8:
		return "BGR565_A8"
	case FormatNV12:
		return "NV12"
	case FormatNV21:
		return "NV21"
	case FormatNV16:
		return "NV16"
	case FormatNV61:
		return "NV61"
	case FormatNV24:
		return "NV24"
	case FormatNV42:
		return "NV42"
	case FormatNV15:
		return "NV15"
	case FormatP210:
		return "P210"
	case FormatP010:
		return "P010"
	case FormatP012:
		return "P012"
	case FormatP016:
		return "P016"
	case FormatQ410:
		return "Q410"
	case FormatQ401:
		return "Q401"
	case FormatYUV410:
		return "YUV410"
	case FormatYVU410:
		return "YVU410"
	case FormatYUV411:
		return "YUV411"
	case FormatYVU411:
		return "YVU411"
	case FormatYUV420:
		return "YUV420"
	case FormatYVU420:
		return "YVU420"
	case FormatYUV422:
		return "YUV422"
	case FormatYVU422:
		return "YVU422"
	case FormatYUV444:
		return "YUV444"
	case FormatYVU444:
		return "YVU444"
	default:
		return "unknown"
	}
}

const (
	ModifierVendorIntel     ModifierVendor = 0x1
	ModifierVendorAMD       ModifierVendor = 0x2
	ModifierVendorNVIDIA    ModifierVendor = 0x3
	ModifierVendorSamsung   ModifierVendor = 0x4
	ModifierVendorQcom      ModifierVendor = 0x5
	ModifierVendorVivante   ModifierVendor = 0x6
	ModifierVendorBroadcom  ModifierVendor = 0x7
	ModifierVendorARM       ModifierVendor = 0x8
	ModifierVendorAllwinner ModifierVendor = 0x9
	ModifierVendorAmlogic   ModifierVendor = 0xA
)

func (v ModifierVendor) String() string {
	switch v {
	case ModifierVendorIntel:
		return "Intel"
	case ModifierVendorAMD:
		return "AMD"
	case ModifierVendorNVIDIA:
		return "NVIDIA"
	case ModifierVendorSamsung:
		return "Samsung"
	case ModifierVendorQcom:
		return "Qcom"
	case ModifierVendorVivante:
		return "Vivante"
	case ModifierVendorBroadcom:
		return "Broadcom"
	case ModifierVendorARM:
		return "ARM"
	case ModifierVendorAllwinner:
		return "Allwinner"
	case ModifierVendorAmlogic:
		return "Amlogic"
	default:
		return "unknown"
	}
}

const (
	ModifierGENERIC_16_16_TILE               Modifier = 0x400000000000002
	ModifierInvalid                          Modifier = 0xFFFFFFFFFFFFFF
	ModifierLinear                           Modifier = 0x0
	ModifierI915_X_TILED                     Modifier = 0x100000000000001
	ModifierI915_Y_TILED                     Modifier = 0x100000000000002
	ModifierI915_Yf_TILED                    Modifier = 0x100000000000003
	ModifierI915_Y_TILED_CCS                 Modifier = 0x100000000000004
	ModifierI915_Yf_TILED_CCS                Modifier = 0x100000000000005
	ModifierI915_Y_TILED_GEN12_RC_CCS        Modifier = 0x100000000000006
	ModifierI915_Y_TILED_GEN12_MC_CCS        Modifier = 0x100000000000007
	ModifierSAMSUNG_64_32_TILE               Modifier = 0x400000000000001
	ModifierQCOM_COMPRESSED                  Modifier = 0x500000000000001
	ModifierVIVANTE_TILED                    Modifier = 0x600000000000001
	ModifierVIVANTE_SUPER_TILED              Modifier = 0x600000000000002
	ModifierVIVANTE_SPLIT_TILED              Modifier = 0x600000000000003
	ModifierVIVANTE_SPLIT_SUPER_TILED        Modifier = 0x600000000000004
	ModifierNVIDIA_TEGRA_TILED               Modifier = 0x300000000000001
	ModifierNVIDIA_16BX2_BLOCK_ONE_GOB       Modifier = 0x300000000000010
	ModifierNVIDIA_16BX2_BLOCK_TWO_GOB       Modifier = 0x300000000000011
	ModifierNVIDIA_16BX2_BLOCK_FOUR_GOB      Modifier = 0x300000000000012
	ModifierNVIDIA_16BX2_BLOCK_EIGHT_GOB     Modifier = 0x300000000000013
	ModifierNVIDIA_16BX2_BLOCK_SIXTEEN_GOB   Modifier = 0x300000000000014
	ModifierNVIDIA_16BX2_BLOCK_THIRTYTWO_GOB Modifier = 0x300000000000015
	ModifierBROADCOM_VC4_T_TILED             Modifier = 0x700000000000001
	ModifierBROADCOM_SAND32                  Modifier = 0x700000000000002
	ModifierBROADCOM_SAND64                  Modifier = 0x700000000000003
	ModifierBROADCOM_SAND128                 Modifier = 0x700000000000004
	ModifierBROADCOM_SAND256                 Modifier = 0x700000000000005
	ModifierBROADCOM_UIF                     Modifier = 0x700000000000006
	ModifierARM_16X16_BLOCK_U_INTERLEAVED    Modifier = 0x810000000000001
	ModifierALLWINNER_TILED                  Modifier = 0x900000000000001
)

func (v Modifier) String() string {
	switch v {
	case ModifierGENERIC_16_16_TILE:
		return "GENERIC_16_16_TILE"
	case ModifierInvalid:
		return "invalid"
	case ModifierLinear:
		return "linear"
	case ModifierI915_X_TILED:
		return "I915_X_TILED"
	case ModifierI915_Y_TILED:
		return "I915_Y_TILED"
	case ModifierI915_Yf_TILED:
		return "I915_Yf_TILED"
	case ModifierI915_Y_TILED_CCS:
		return "I915_Y_TILED_CCS"
	case ModifierI915_Yf_TILED_CCS:
		return "I915_Yf_TILED_CCS"
	case ModifierI915_Y_TILED_GEN12_RC_CCS:
		return "I915_Y_TILED_GEN12_RC_CCS"
	case ModifierI915_Y_TILED_GEN12_MC_CCS:
		return "I915_Y_TILED_GEN12_MC_CCS"
	case ModifierSAMSUNG_64_32_TILE:
		return "SAMSUNG_64_32_TILE"
	case ModifierQCOM_COMPRESSED:
		return "QCOM_COMPRESSED"
	case ModifierVIVANTE_TILED:
		return "VIVANTE_TILED"
	case ModifierVIVANTE_SUPER_TILED:
		return "VIVANTE_SUPER_TILED"
	case ModifierVIVANTE_SPLIT_TILED:
		return "VIVANTE_SPLIT_TILED"
	case ModifierVIVANTE_SPLIT_SUPER_TILED:
		return "VIVANTE_SPLIT_SUPER_TILED"
	case ModifierNVIDIA_TEGRA_TILED:
		return "NVIDIA_TEGRA_TILED"
	case ModifierNVIDIA_16BX2_BLOCK_ONE_GOB:
		return "NVIDIA_16BX2_BLOCK_ONE_GOB"
	case ModifierNVIDIA_16BX2_BLOCK_TWO_GOB:
		return "NVIDIA_16BX2_BLOCK_TWO_GOB"
	case ModifierNVIDIA_16BX2_BLOCK_FOUR_GOB:
		return "NVIDIA_16BX2_BLOCK_FOUR_GOB"
	case ModifierNVIDIA_16BX2_BLOCK_EIGHT_GOB:
		return "NVIDIA_16BX2_BLOCK_EIGHT_GOB"
	case ModifierNVIDIA_16BX2_BLOCK_SIXTEEN_GOB:
		return "NVIDIA_16BX2_BLOCK_SIXTEEN_GOB"
	case ModifierNVIDIA_16BX2_BLOCK_THIRTYTWO_GOB:
		return "NVIDIA_16BX2_BLOCK_THIRTYTWO_GOB"
	case ModifierBROADCOM_VC4_T_TILED:
		return "BROADCOM_VC4_T_TILED"
	case ModifierBROADCOM_SAND32:
		return "BROADCOM_SAND32"
	case ModifierBROADCOM_SAND64:
		return "BROADCOM_SAND64"
	case ModifierBROADCOM_SAND128:
		return "BROADCOM_SAND128"
	case ModifierBROADCOM_SAND256:
		return "BROADCOM_SAND256"
	case ModifierBROADCOM_UIF:
		return "BROADCOM_UIF"
	case ModifierARM_16X16_BLOCK_U_INTERLEAVED:
		return "ARM_16X16_BLOCK_U_INTERLEAVED"
	case ModifierALLWINNER_TILED:
		return "ALLWINNER_TILED"
	default:
		return "unknown"
	}
}