1use super::*;
4
5pub const METADATA_SDL_PixelType: Group = Group {
6 module: "pixels",
7 kind: GroupKind::Enum,
8 name: "SDL_PixelType",
9 short_name: "PixelType",
10 doc: Some("Pixel type.\n\n## Availability\nThis enum is available since SDL 3.2.0.\n"),
11 available_since: Some(SDL_VERSIONNUM(3, 2, 0)),
12 values: &[
13 GroupValue {
14 name: "SDL_PIXELTYPE_UNKNOWN",
15 short_name: "UNKNOWN",
16 doc: None,
17 available_since: None,
18 },
19 GroupValue {
20 name: "SDL_PIXELTYPE_INDEX1",
21 short_name: "INDEX1",
22 doc: None,
23 available_since: None,
24 },
25 GroupValue {
26 name: "SDL_PIXELTYPE_INDEX4",
27 short_name: "INDEX4",
28 doc: None,
29 available_since: None,
30 },
31 GroupValue {
32 name: "SDL_PIXELTYPE_INDEX8",
33 short_name: "INDEX8",
34 doc: None,
35 available_since: None,
36 },
37 GroupValue {
38 name: "SDL_PIXELTYPE_PACKED8",
39 short_name: "PACKED8",
40 doc: None,
41 available_since: None,
42 },
43 GroupValue {
44 name: "SDL_PIXELTYPE_PACKED16",
45 short_name: "PACKED16",
46 doc: None,
47 available_since: None,
48 },
49 GroupValue {
50 name: "SDL_PIXELTYPE_PACKED32",
51 short_name: "PACKED32",
52 doc: None,
53 available_since: None,
54 },
55 GroupValue {
56 name: "SDL_PIXELTYPE_ARRAYU8",
57 short_name: "ARRAYU8",
58 doc: None,
59 available_since: None,
60 },
61 GroupValue {
62 name: "SDL_PIXELTYPE_ARRAYU16",
63 short_name: "ARRAYU16",
64 doc: None,
65 available_since: None,
66 },
67 GroupValue {
68 name: "SDL_PIXELTYPE_ARRAYU32",
69 short_name: "ARRAYU32",
70 doc: None,
71 available_since: None,
72 },
73 GroupValue {
74 name: "SDL_PIXELTYPE_ARRAYF16",
75 short_name: "ARRAYF16",
76 doc: None,
77 available_since: None,
78 },
79 GroupValue {
80 name: "SDL_PIXELTYPE_ARRAYF32",
81 short_name: "ARRAYF32",
82 doc: None,
83 available_since: None,
84 },
85 GroupValue {
86 name: "SDL_PIXELTYPE_INDEX2",
87 short_name: "INDEX2",
88 doc: None,
89 available_since: None,
90 },
91 ],
92};
93pub const METADATA_SDL_BitmapOrder: Group = Group {
94 module: "pixels",
95 kind: GroupKind::Enum,
96 name: "SDL_BitmapOrder",
97 short_name: "BitmapOrder",
98 doc: Some(
99 "Bitmap pixel order, high bit -> low bit.\n\n## Availability\nThis enum is available since SDL 3.2.0.\n",
100 ),
101 available_since: Some(SDL_VERSIONNUM(3, 2, 0)),
102 values: &[
103 GroupValue {
104 name: "SDL_BITMAPORDER_NONE",
105 short_name: "NONE",
106 doc: None,
107 available_since: None,
108 },
109 GroupValue {
110 name: "SDL_BITMAPORDER_4321",
111 short_name: "_4321",
112 doc: None,
113 available_since: None,
114 },
115 GroupValue {
116 name: "SDL_BITMAPORDER_1234",
117 short_name: "_1234",
118 doc: None,
119 available_since: None,
120 },
121 ],
122};
123pub const METADATA_SDL_PackedOrder: Group = Group {
124 module: "pixels",
125 kind: GroupKind::Enum,
126 name: "SDL_PackedOrder",
127 short_name: "PackedOrder",
128 doc: Some(
129 "Packed component order, high bit -> low bit.\n\n## Availability\nThis enum is available since SDL 3.2.0.\n",
130 ),
131 available_since: Some(SDL_VERSIONNUM(3, 2, 0)),
132 values: &[
133 GroupValue {
134 name: "SDL_PACKEDORDER_NONE",
135 short_name: "NONE",
136 doc: None,
137 available_since: None,
138 },
139 GroupValue {
140 name: "SDL_PACKEDORDER_XRGB",
141 short_name: "XRGB",
142 doc: None,
143 available_since: None,
144 },
145 GroupValue {
146 name: "SDL_PACKEDORDER_RGBX",
147 short_name: "RGBX",
148 doc: None,
149 available_since: None,
150 },
151 GroupValue {
152 name: "SDL_PACKEDORDER_ARGB",
153 short_name: "ARGB",
154 doc: None,
155 available_since: None,
156 },
157 GroupValue {
158 name: "SDL_PACKEDORDER_RGBA",
159 short_name: "RGBA",
160 doc: None,
161 available_since: None,
162 },
163 GroupValue {
164 name: "SDL_PACKEDORDER_XBGR",
165 short_name: "XBGR",
166 doc: None,
167 available_since: None,
168 },
169 GroupValue {
170 name: "SDL_PACKEDORDER_BGRX",
171 short_name: "BGRX",
172 doc: None,
173 available_since: None,
174 },
175 GroupValue {
176 name: "SDL_PACKEDORDER_ABGR",
177 short_name: "ABGR",
178 doc: None,
179 available_since: None,
180 },
181 GroupValue {
182 name: "SDL_PACKEDORDER_BGRA",
183 short_name: "BGRA",
184 doc: None,
185 available_since: None,
186 },
187 ],
188};
189pub const METADATA_SDL_ArrayOrder: Group = Group {
190 module: "pixels",
191 kind: GroupKind::Enum,
192 name: "SDL_ArrayOrder",
193 short_name: "ArrayOrder",
194 doc: Some(
195 "Array component order, low byte -> high byte.\n\n## Availability\nThis enum is available since SDL 3.2.0.\n",
196 ),
197 available_since: Some(SDL_VERSIONNUM(3, 2, 0)),
198 values: &[
199 GroupValue {
200 name: "SDL_ARRAYORDER_NONE",
201 short_name: "NONE",
202 doc: None,
203 available_since: None,
204 },
205 GroupValue {
206 name: "SDL_ARRAYORDER_RGB",
207 short_name: "RGB",
208 doc: None,
209 available_since: None,
210 },
211 GroupValue {
212 name: "SDL_ARRAYORDER_RGBA",
213 short_name: "RGBA",
214 doc: None,
215 available_since: None,
216 },
217 GroupValue {
218 name: "SDL_ARRAYORDER_ARGB",
219 short_name: "ARGB",
220 doc: None,
221 available_since: None,
222 },
223 GroupValue {
224 name: "SDL_ARRAYORDER_BGR",
225 short_name: "BGR",
226 doc: None,
227 available_since: None,
228 },
229 GroupValue {
230 name: "SDL_ARRAYORDER_BGRA",
231 short_name: "BGRA",
232 doc: None,
233 available_since: None,
234 },
235 GroupValue {
236 name: "SDL_ARRAYORDER_ABGR",
237 short_name: "ABGR",
238 doc: None,
239 available_since: None,
240 },
241 ],
242};
243pub const METADATA_SDL_PackedLayout: Group = Group {
244 module: "pixels",
245 kind: GroupKind::Enum,
246 name: "SDL_PackedLayout",
247 short_name: "PackedLayout",
248 doc: Some(
249 "Packed component layout.\n\n## Availability\nThis enum is available since SDL 3.2.0.\n",
250 ),
251 available_since: Some(SDL_VERSIONNUM(3, 2, 0)),
252 values: &[
253 GroupValue {
254 name: "SDL_PACKEDLAYOUT_NONE",
255 short_name: "NONE",
256 doc: None,
257 available_since: None,
258 },
259 GroupValue {
260 name: "SDL_PACKEDLAYOUT_332",
261 short_name: "_332",
262 doc: None,
263 available_since: None,
264 },
265 GroupValue {
266 name: "SDL_PACKEDLAYOUT_4444",
267 short_name: "_4444",
268 doc: None,
269 available_since: None,
270 },
271 GroupValue {
272 name: "SDL_PACKEDLAYOUT_1555",
273 short_name: "_1555",
274 doc: None,
275 available_since: None,
276 },
277 GroupValue {
278 name: "SDL_PACKEDLAYOUT_5551",
279 short_name: "_5551",
280 doc: None,
281 available_since: None,
282 },
283 GroupValue {
284 name: "SDL_PACKEDLAYOUT_565",
285 short_name: "_565",
286 doc: None,
287 available_since: None,
288 },
289 GroupValue {
290 name: "SDL_PACKEDLAYOUT_8888",
291 short_name: "_8888",
292 doc: None,
293 available_since: None,
294 },
295 GroupValue {
296 name: "SDL_PACKEDLAYOUT_2101010",
297 short_name: "_2101010",
298 doc: None,
299 available_since: None,
300 },
301 GroupValue {
302 name: "SDL_PACKEDLAYOUT_1010102",
303 short_name: "_1010102",
304 doc: None,
305 available_since: None,
306 },
307 ],
308};
309pub const METADATA_SDL_PixelFormat: Group = Group {
310 module: "pixels",
311 kind: GroupKind::Enum,
312 name: "SDL_PixelFormat",
313 short_name: "PixelFormat",
314 doc: Some(
315 "Pixel format.\n\nSDL's pixel formats have the following naming convention:\n\n- Names with a list of components and a single bit count, such as RGB24 and\nABGR32, define a platform-independent encoding into bytes in the order\nspecified. For example, in RGB24 data, each pixel is encoded in 3 bytes\n(red, green, blue) in that order, and in ABGR32 data, each pixel is\nencoded in 4 bytes (alpha, blue, green, red) in that order. Use these\nnames if the property of a format that is important to you is the order\nof the bytes in memory or on disk.\n- Names with a bit count per component, such as ARGB8888 and XRGB1555, are\n\"packed\" into an appropriately-sized integer in the platform's native\nendianness. For example, ARGB8888 is a sequence of 32-bit integers; in\neach integer, the most significant bits are alpha, and the least\nsignificant bits are blue. On a little-endian CPU such as x86, the least\nsignificant bits of each integer are arranged first in memory, but on a\nbig-endian CPU such as s390x, the most significant bits are arranged\nfirst. Use these names if the property of a format that is important to\nyou is the meaning of each bit position within a native-endianness\ninteger.\n- In indexed formats such as INDEX4LSB, each pixel is represented by\nencoding an index into the palette into the indicated number of bits,\nwith multiple pixels packed into each byte if appropriate. In LSB\nformats, the first (leftmost) pixel is stored in the least-significant\nbits of the byte; in MSB formats, it's stored in the most-significant\nbits. INDEX8 does not need LSB/MSB variants, because each pixel exactly\nfills one byte.\n\nThe 32-bit byte-array encodings such as RGBA32 are aliases for the\nappropriate 8888 encoding for the current platform. For example, RGBA32 is\nan alias for ABGR8888 on little-endian CPUs like x86, or an alias for\nRGBA8888 on big-endian CPUs.\n\n## Availability\nThis enum is available since SDL 3.2.0.\n",
316 ),
317 available_since: Some(SDL_VERSIONNUM(3, 2, 0)),
318 values: &[
319 GroupValue {
320 name: "SDL_PIXELFORMAT_UNKNOWN",
321 short_name: "UNKNOWN",
322 doc: None,
323 available_since: None,
324 },
325 GroupValue {
326 name: "SDL_PIXELFORMAT_INDEX1LSB",
327 short_name: "INDEX1LSB",
328 doc: None,
329 available_since: None,
330 },
331 GroupValue {
332 name: "SDL_PIXELFORMAT_INDEX1MSB",
333 short_name: "INDEX1MSB",
334 doc: None,
335 available_since: None,
336 },
337 GroupValue {
338 name: "SDL_PIXELFORMAT_INDEX2LSB",
339 short_name: "INDEX2LSB",
340 doc: None,
341 available_since: None,
342 },
343 GroupValue {
344 name: "SDL_PIXELFORMAT_INDEX2MSB",
345 short_name: "INDEX2MSB",
346 doc: None,
347 available_since: None,
348 },
349 GroupValue {
350 name: "SDL_PIXELFORMAT_INDEX4LSB",
351 short_name: "INDEX4LSB",
352 doc: None,
353 available_since: None,
354 },
355 GroupValue {
356 name: "SDL_PIXELFORMAT_INDEX4MSB",
357 short_name: "INDEX4MSB",
358 doc: None,
359 available_since: None,
360 },
361 GroupValue {
362 name: "SDL_PIXELFORMAT_INDEX8",
363 short_name: "INDEX8",
364 doc: None,
365 available_since: None,
366 },
367 GroupValue {
368 name: "SDL_PIXELFORMAT_RGB332",
369 short_name: "RGB332",
370 doc: None,
371 available_since: None,
372 },
373 GroupValue {
374 name: "SDL_PIXELFORMAT_XRGB4444",
375 short_name: "XRGB4444",
376 doc: None,
377 available_since: None,
378 },
379 GroupValue {
380 name: "SDL_PIXELFORMAT_XBGR4444",
381 short_name: "XBGR4444",
382 doc: None,
383 available_since: None,
384 },
385 GroupValue {
386 name: "SDL_PIXELFORMAT_XRGB1555",
387 short_name: "XRGB1555",
388 doc: None,
389 available_since: None,
390 },
391 GroupValue {
392 name: "SDL_PIXELFORMAT_XBGR1555",
393 short_name: "XBGR1555",
394 doc: None,
395 available_since: None,
396 },
397 GroupValue {
398 name: "SDL_PIXELFORMAT_ARGB4444",
399 short_name: "ARGB4444",
400 doc: None,
401 available_since: None,
402 },
403 GroupValue {
404 name: "SDL_PIXELFORMAT_RGBA4444",
405 short_name: "RGBA4444",
406 doc: None,
407 available_since: None,
408 },
409 GroupValue {
410 name: "SDL_PIXELFORMAT_ABGR4444",
411 short_name: "ABGR4444",
412 doc: None,
413 available_since: None,
414 },
415 GroupValue {
416 name: "SDL_PIXELFORMAT_BGRA4444",
417 short_name: "BGRA4444",
418 doc: None,
419 available_since: None,
420 },
421 GroupValue {
422 name: "SDL_PIXELFORMAT_ARGB1555",
423 short_name: "ARGB1555",
424 doc: None,
425 available_since: None,
426 },
427 GroupValue {
428 name: "SDL_PIXELFORMAT_RGBA5551",
429 short_name: "RGBA5551",
430 doc: None,
431 available_since: None,
432 },
433 GroupValue {
434 name: "SDL_PIXELFORMAT_ABGR1555",
435 short_name: "ABGR1555",
436 doc: None,
437 available_since: None,
438 },
439 GroupValue {
440 name: "SDL_PIXELFORMAT_BGRA5551",
441 short_name: "BGRA5551",
442 doc: None,
443 available_since: None,
444 },
445 GroupValue {
446 name: "SDL_PIXELFORMAT_RGB565",
447 short_name: "RGB565",
448 doc: None,
449 available_since: None,
450 },
451 GroupValue {
452 name: "SDL_PIXELFORMAT_BGR565",
453 short_name: "BGR565",
454 doc: None,
455 available_since: None,
456 },
457 GroupValue {
458 name: "SDL_PIXELFORMAT_RGB24",
459 short_name: "RGB24",
460 doc: None,
461 available_since: None,
462 },
463 GroupValue {
464 name: "SDL_PIXELFORMAT_BGR24",
465 short_name: "BGR24",
466 doc: None,
467 available_since: None,
468 },
469 GroupValue {
470 name: "SDL_PIXELFORMAT_XRGB8888",
471 short_name: "XRGB8888",
472 doc: None,
473 available_since: None,
474 },
475 GroupValue {
476 name: "SDL_PIXELFORMAT_RGBX8888",
477 short_name: "RGBX8888",
478 doc: None,
479 available_since: None,
480 },
481 GroupValue {
482 name: "SDL_PIXELFORMAT_XBGR8888",
483 short_name: "XBGR8888",
484 doc: None,
485 available_since: None,
486 },
487 GroupValue {
488 name: "SDL_PIXELFORMAT_BGRX8888",
489 short_name: "BGRX8888",
490 doc: None,
491 available_since: None,
492 },
493 GroupValue {
494 name: "SDL_PIXELFORMAT_ARGB8888",
495 short_name: "ARGB8888",
496 doc: None,
497 available_since: None,
498 },
499 GroupValue {
500 name: "SDL_PIXELFORMAT_RGBA8888",
501 short_name: "RGBA8888",
502 doc: None,
503 available_since: None,
504 },
505 GroupValue {
506 name: "SDL_PIXELFORMAT_ABGR8888",
507 short_name: "ABGR8888",
508 doc: None,
509 available_since: None,
510 },
511 GroupValue {
512 name: "SDL_PIXELFORMAT_BGRA8888",
513 short_name: "BGRA8888",
514 doc: None,
515 available_since: None,
516 },
517 GroupValue {
518 name: "SDL_PIXELFORMAT_XRGB2101010",
519 short_name: "XRGB2101010",
520 doc: None,
521 available_since: None,
522 },
523 GroupValue {
524 name: "SDL_PIXELFORMAT_XBGR2101010",
525 short_name: "XBGR2101010",
526 doc: None,
527 available_since: None,
528 },
529 GroupValue {
530 name: "SDL_PIXELFORMAT_ARGB2101010",
531 short_name: "ARGB2101010",
532 doc: None,
533 available_since: None,
534 },
535 GroupValue {
536 name: "SDL_PIXELFORMAT_ABGR2101010",
537 short_name: "ABGR2101010",
538 doc: None,
539 available_since: None,
540 },
541 GroupValue {
542 name: "SDL_PIXELFORMAT_RGB48",
543 short_name: "RGB48",
544 doc: None,
545 available_since: None,
546 },
547 GroupValue {
548 name: "SDL_PIXELFORMAT_BGR48",
549 short_name: "BGR48",
550 doc: None,
551 available_since: None,
552 },
553 GroupValue {
554 name: "SDL_PIXELFORMAT_RGBA64",
555 short_name: "RGBA64",
556 doc: None,
557 available_since: None,
558 },
559 GroupValue {
560 name: "SDL_PIXELFORMAT_ARGB64",
561 short_name: "ARGB64",
562 doc: None,
563 available_since: None,
564 },
565 GroupValue {
566 name: "SDL_PIXELFORMAT_BGRA64",
567 short_name: "BGRA64",
568 doc: None,
569 available_since: None,
570 },
571 GroupValue {
572 name: "SDL_PIXELFORMAT_ABGR64",
573 short_name: "ABGR64",
574 doc: None,
575 available_since: None,
576 },
577 GroupValue {
578 name: "SDL_PIXELFORMAT_RGB48_FLOAT",
579 short_name: "RGB48_FLOAT",
580 doc: None,
581 available_since: None,
582 },
583 GroupValue {
584 name: "SDL_PIXELFORMAT_BGR48_FLOAT",
585 short_name: "BGR48_FLOAT",
586 doc: None,
587 available_since: None,
588 },
589 GroupValue {
590 name: "SDL_PIXELFORMAT_RGBA64_FLOAT",
591 short_name: "RGBA64_FLOAT",
592 doc: None,
593 available_since: None,
594 },
595 GroupValue {
596 name: "SDL_PIXELFORMAT_ARGB64_FLOAT",
597 short_name: "ARGB64_FLOAT",
598 doc: None,
599 available_since: None,
600 },
601 GroupValue {
602 name: "SDL_PIXELFORMAT_BGRA64_FLOAT",
603 short_name: "BGRA64_FLOAT",
604 doc: None,
605 available_since: None,
606 },
607 GroupValue {
608 name: "SDL_PIXELFORMAT_ABGR64_FLOAT",
609 short_name: "ABGR64_FLOAT",
610 doc: None,
611 available_since: None,
612 },
613 GroupValue {
614 name: "SDL_PIXELFORMAT_RGB96_FLOAT",
615 short_name: "RGB96_FLOAT",
616 doc: None,
617 available_since: None,
618 },
619 GroupValue {
620 name: "SDL_PIXELFORMAT_BGR96_FLOAT",
621 short_name: "BGR96_FLOAT",
622 doc: None,
623 available_since: None,
624 },
625 GroupValue {
626 name: "SDL_PIXELFORMAT_RGBA128_FLOAT",
627 short_name: "RGBA128_FLOAT",
628 doc: None,
629 available_since: None,
630 },
631 GroupValue {
632 name: "SDL_PIXELFORMAT_ARGB128_FLOAT",
633 short_name: "ARGB128_FLOAT",
634 doc: None,
635 available_since: None,
636 },
637 GroupValue {
638 name: "SDL_PIXELFORMAT_BGRA128_FLOAT",
639 short_name: "BGRA128_FLOAT",
640 doc: None,
641 available_since: None,
642 },
643 GroupValue {
644 name: "SDL_PIXELFORMAT_ABGR128_FLOAT",
645 short_name: "ABGR128_FLOAT",
646 doc: None,
647 available_since: None,
648 },
649 GroupValue {
650 name: "SDL_PIXELFORMAT_YV12",
651 short_name: "YV12",
652 doc: Some("Planar mode: Y + V + U (3 planes)\n"),
653 available_since: None,
654 },
655 GroupValue {
656 name: "SDL_PIXELFORMAT_IYUV",
657 short_name: "IYUV",
658 doc: Some("Planar mode: Y + U + V (3 planes)\n"),
659 available_since: None,
660 },
661 GroupValue {
662 name: "SDL_PIXELFORMAT_YUY2",
663 short_name: "YUY2",
664 doc: Some("Packed mode: Y0+U0+Y1+V0 (1 plane)\n"),
665 available_since: None,
666 },
667 GroupValue {
668 name: "SDL_PIXELFORMAT_UYVY",
669 short_name: "UYVY",
670 doc: Some("Packed mode: U0+Y0+V0+Y1 (1 plane)\n"),
671 available_since: None,
672 },
673 GroupValue {
674 name: "SDL_PIXELFORMAT_YVYU",
675 short_name: "YVYU",
676 doc: Some("Packed mode: Y0+V0+Y1+U0 (1 plane)\n"),
677 available_since: None,
678 },
679 GroupValue {
680 name: "SDL_PIXELFORMAT_NV12",
681 short_name: "NV12",
682 doc: Some("Planar mode: Y + U/V interleaved (2 planes)\n"),
683 available_since: None,
684 },
685 GroupValue {
686 name: "SDL_PIXELFORMAT_NV21",
687 short_name: "NV21",
688 doc: Some("Planar mode: Y + V/U interleaved (2 planes)\n"),
689 available_since: None,
690 },
691 GroupValue {
692 name: "SDL_PIXELFORMAT_P010",
693 short_name: "P010",
694 doc: Some("Planar mode: Y + U/V interleaved (2 planes)\n"),
695 available_since: None,
696 },
697 GroupValue {
698 name: "SDL_PIXELFORMAT_EXTERNAL_OES",
699 short_name: "EXTERNAL_OES",
700 doc: Some("Android video texture format\n"),
701 available_since: None,
702 },
703 GroupValue {
704 name: "SDL_PIXELFORMAT_MJPG",
705 short_name: "MJPG",
706 doc: Some("Motion JPEG\n"),
707 available_since: None,
708 },
709 GroupValue {
710 name: "SDL_PIXELFORMAT_RGBA32",
711 short_name: "RGBA32",
712 doc: None,
713 available_since: None,
714 },
715 GroupValue {
716 name: "SDL_PIXELFORMAT_ARGB32",
717 short_name: "ARGB32",
718 doc: None,
719 available_since: None,
720 },
721 GroupValue {
722 name: "SDL_PIXELFORMAT_BGRA32",
723 short_name: "BGRA32",
724 doc: None,
725 available_since: None,
726 },
727 GroupValue {
728 name: "SDL_PIXELFORMAT_ABGR32",
729 short_name: "ABGR32",
730 doc: None,
731 available_since: None,
732 },
733 GroupValue {
734 name: "SDL_PIXELFORMAT_RGBX32",
735 short_name: "RGBX32",
736 doc: None,
737 available_since: None,
738 },
739 GroupValue {
740 name: "SDL_PIXELFORMAT_XRGB32",
741 short_name: "XRGB32",
742 doc: None,
743 available_since: None,
744 },
745 GroupValue {
746 name: "SDL_PIXELFORMAT_BGRX32",
747 short_name: "BGRX32",
748 doc: None,
749 available_since: None,
750 },
751 GroupValue {
752 name: "SDL_PIXELFORMAT_XBGR32",
753 short_name: "XBGR32",
754 doc: None,
755 available_since: None,
756 },
757 GroupValue {
758 name: "SDL_PIXELFORMAT_RGBA32",
759 short_name: "RGBA32",
760 doc: None,
761 available_since: None,
762 },
763 GroupValue {
764 name: "SDL_PIXELFORMAT_ARGB32",
765 short_name: "ARGB32",
766 doc: None,
767 available_since: None,
768 },
769 GroupValue {
770 name: "SDL_PIXELFORMAT_BGRA32",
771 short_name: "BGRA32",
772 doc: None,
773 available_since: None,
774 },
775 GroupValue {
776 name: "SDL_PIXELFORMAT_ABGR32",
777 short_name: "ABGR32",
778 doc: None,
779 available_since: None,
780 },
781 GroupValue {
782 name: "SDL_PIXELFORMAT_RGBX32",
783 short_name: "RGBX32",
784 doc: None,
785 available_since: None,
786 },
787 GroupValue {
788 name: "SDL_PIXELFORMAT_XRGB32",
789 short_name: "XRGB32",
790 doc: None,
791 available_since: None,
792 },
793 GroupValue {
794 name: "SDL_PIXELFORMAT_BGRX32",
795 short_name: "BGRX32",
796 doc: None,
797 available_since: None,
798 },
799 GroupValue {
800 name: "SDL_PIXELFORMAT_XBGR32",
801 short_name: "XBGR32",
802 doc: None,
803 available_since: None,
804 },
805 ],
806};
807pub const METADATA_SDL_ColorType: Group = Group {
808 module: "pixels",
809 kind: GroupKind::Enum,
810 name: "SDL_ColorType",
811 short_name: "ColorType",
812 doc: Some(
813 "Colorspace color type.\n\n## Availability\nThis enum is available since SDL 3.2.0.\n",
814 ),
815 available_since: Some(SDL_VERSIONNUM(3, 2, 0)),
816 values: &[
817 GroupValue {
818 name: "SDL_COLOR_TYPE_UNKNOWN",
819 short_name: "UNKNOWN",
820 doc: None,
821 available_since: None,
822 },
823 GroupValue {
824 name: "SDL_COLOR_TYPE_RGB",
825 short_name: "RGB",
826 doc: None,
827 available_since: None,
828 },
829 GroupValue {
830 name: "SDL_COLOR_TYPE_YCBCR",
831 short_name: "YCBCR",
832 doc: None,
833 available_since: None,
834 },
835 ],
836};
837pub const METADATA_SDL_ColorRange: Group = Group {
838 module: "pixels",
839 kind: GroupKind::Enum,
840 name: "SDL_ColorRange",
841 short_name: "ColorRange",
842 doc: Some(
843 "Colorspace color range, as described by\n<https://www.itu.int/rec/R-REC-BT.2100-2-201807-I/en>\n\n## Availability\nThis enum is available since SDL 3.2.0.\n",
844 ),
845 available_since: Some(SDL_VERSIONNUM(3, 2, 0)),
846 values: &[
847 GroupValue {
848 name: "SDL_COLOR_RANGE_UNKNOWN",
849 short_name: "UNKNOWN",
850 doc: None,
851 available_since: None,
852 },
853 GroupValue {
854 name: "SDL_COLOR_RANGE_LIMITED",
855 short_name: "LIMITED",
856 doc: Some(
857 "Narrow range, e.g. 16-235 for 8-bit RGB and luma, and 16-240 for 8-bit chroma\n",
858 ),
859 available_since: None,
860 },
861 GroupValue {
862 name: "SDL_COLOR_RANGE_FULL",
863 short_name: "FULL",
864 doc: Some(
865 "Full range, e.g. 0-255 for 8-bit RGB and luma, and 1-255 for 8-bit chroma\n",
866 ),
867 available_since: None,
868 },
869 ],
870};
871pub const METADATA_SDL_ColorPrimaries: Group = Group {
872 module: "pixels",
873 kind: GroupKind::Enum,
874 name: "SDL_ColorPrimaries",
875 short_name: "ColorPrimaries",
876 doc: Some(
877 "Colorspace color primaries, as described by\n<https://www.itu.int/rec/T-REC-H.273-201612-S/en>\n\n## Availability\nThis enum is available since SDL 3.2.0.\n",
878 ),
879 available_since: Some(SDL_VERSIONNUM(3, 2, 0)),
880 values: &[
881 GroupValue {
882 name: "SDL_COLOR_PRIMARIES_UNKNOWN",
883 short_name: "UNKNOWN",
884 doc: None,
885 available_since: None,
886 },
887 GroupValue {
888 name: "SDL_COLOR_PRIMARIES_BT709",
889 short_name: "BT709",
890 doc: Some("ITU-R BT.709-6\n"),
891 available_since: None,
892 },
893 GroupValue {
894 name: "SDL_COLOR_PRIMARIES_UNSPECIFIED",
895 short_name: "UNSPECIFIED",
896 doc: None,
897 available_since: None,
898 },
899 GroupValue {
900 name: "SDL_COLOR_PRIMARIES_BT470M",
901 short_name: "BT470M",
902 doc: Some("ITU-R BT.470-6 System M\n"),
903 available_since: None,
904 },
905 GroupValue {
906 name: "SDL_COLOR_PRIMARIES_BT470BG",
907 short_name: "BT470BG",
908 doc: Some("ITU-R BT.470-6 System B, G / ITU-R BT.601-7 625\n"),
909 available_since: None,
910 },
911 GroupValue {
912 name: "SDL_COLOR_PRIMARIES_BT601",
913 short_name: "BT601",
914 doc: Some("ITU-R BT.601-7 525, SMPTE 170M\n"),
915 available_since: None,
916 },
917 GroupValue {
918 name: "SDL_COLOR_PRIMARIES_SMPTE240",
919 short_name: "SMPTE240",
920 doc: Some("SMPTE 240M, functionally the same as [`SDL_COLOR_PRIMARIES_BT601`]\n"),
921 available_since: None,
922 },
923 GroupValue {
924 name: "SDL_COLOR_PRIMARIES_GENERIC_FILM",
925 short_name: "GENERIC_FILM",
926 doc: Some("Generic film (color filters using Illuminant C)\n"),
927 available_since: None,
928 },
929 GroupValue {
930 name: "SDL_COLOR_PRIMARIES_BT2020",
931 short_name: "BT2020",
932 doc: Some("ITU-R BT.2020-2 / ITU-R BT.2100-0\n"),
933 available_since: None,
934 },
935 GroupValue {
936 name: "SDL_COLOR_PRIMARIES_XYZ",
937 short_name: "XYZ",
938 doc: Some("SMPTE ST 428-1\n"),
939 available_since: None,
940 },
941 GroupValue {
942 name: "SDL_COLOR_PRIMARIES_SMPTE431",
943 short_name: "SMPTE431",
944 doc: Some("SMPTE RP 431-2\n"),
945 available_since: None,
946 },
947 GroupValue {
948 name: "SDL_COLOR_PRIMARIES_SMPTE432",
949 short_name: "SMPTE432",
950 doc: Some("SMPTE EG 432-1 / DCI P3\n"),
951 available_since: None,
952 },
953 GroupValue {
954 name: "SDL_COLOR_PRIMARIES_EBU3213",
955 short_name: "EBU3213",
956 doc: Some("EBU Tech. 3213-E\n"),
957 available_since: None,
958 },
959 GroupValue {
960 name: "SDL_COLOR_PRIMARIES_CUSTOM",
961 short_name: "CUSTOM",
962 doc: None,
963 available_since: None,
964 },
965 ],
966};
967pub const METADATA_SDL_TransferCharacteristics: Group = Group {
968 module: "pixels",
969 kind: GroupKind::Enum,
970 name: "SDL_TransferCharacteristics",
971 short_name: "TransferCharacteristics",
972 doc: Some(
973 "Colorspace transfer characteristics.\n\nThese are as described by <https://www.itu.int/rec/T-REC-H.273-201612-S/en>\n\n## Availability\nThis enum is available since SDL 3.2.0.\n",
974 ),
975 available_since: Some(SDL_VERSIONNUM(3, 2, 0)),
976 values: &[
977 GroupValue {
978 name: "SDL_TRANSFER_CHARACTERISTICS_UNKNOWN",
979 short_name: "UNKNOWN",
980 doc: None,
981 available_since: None,
982 },
983 GroupValue {
984 name: "SDL_TRANSFER_CHARACTERISTICS_BT709",
985 short_name: "BT709",
986 doc: Some("Rec. ITU-R BT.709-6 / ITU-R BT1361\n"),
987 available_since: None,
988 },
989 GroupValue {
990 name: "SDL_TRANSFER_CHARACTERISTICS_UNSPECIFIED",
991 short_name: "UNSPECIFIED",
992 doc: None,
993 available_since: None,
994 },
995 GroupValue {
996 name: "SDL_TRANSFER_CHARACTERISTICS_GAMMA22",
997 short_name: "GAMMA22",
998 doc: Some("ITU-R BT.470-6 System M / ITU-R BT1700 625 PAL & SECAM\n"),
999 available_since: None,
1000 },
1001 GroupValue {
1002 name: "SDL_TRANSFER_CHARACTERISTICS_GAMMA28",
1003 short_name: "GAMMA28",
1004 doc: Some("ITU-R BT.470-6 System B, G\n"),
1005 available_since: None,
1006 },
1007 GroupValue {
1008 name: "SDL_TRANSFER_CHARACTERISTICS_BT601",
1009 short_name: "BT601",
1010 doc: Some("SMPTE ST 170M / ITU-R BT.601-7 525 or 625\n"),
1011 available_since: None,
1012 },
1013 GroupValue {
1014 name: "SDL_TRANSFER_CHARACTERISTICS_SMPTE240",
1015 short_name: "SMPTE240",
1016 doc: Some("SMPTE ST 240M\n"),
1017 available_since: None,
1018 },
1019 GroupValue {
1020 name: "SDL_TRANSFER_CHARACTERISTICS_LINEAR",
1021 short_name: "LINEAR",
1022 doc: None,
1023 available_since: None,
1024 },
1025 GroupValue {
1026 name: "SDL_TRANSFER_CHARACTERISTICS_LOG100",
1027 short_name: "LOG100",
1028 doc: None,
1029 available_since: None,
1030 },
1031 GroupValue {
1032 name: "SDL_TRANSFER_CHARACTERISTICS_LOG100_SQRT10",
1033 short_name: "LOG100_SQRT10",
1034 doc: None,
1035 available_since: None,
1036 },
1037 GroupValue {
1038 name: "SDL_TRANSFER_CHARACTERISTICS_IEC61966",
1039 short_name: "IEC61966",
1040 doc: Some("IEC 61966-2-4\n"),
1041 available_since: None,
1042 },
1043 GroupValue {
1044 name: "SDL_TRANSFER_CHARACTERISTICS_BT1361",
1045 short_name: "BT1361",
1046 doc: Some("ITU-R BT1361 Extended Colour Gamut\n"),
1047 available_since: None,
1048 },
1049 GroupValue {
1050 name: "SDL_TRANSFER_CHARACTERISTICS_SRGB",
1051 short_name: "SRGB",
1052 doc: Some("IEC 61966-2-1 (sRGB or sYCC)\n"),
1053 available_since: None,
1054 },
1055 GroupValue {
1056 name: "SDL_TRANSFER_CHARACTERISTICS_BT2020_10BIT",
1057 short_name: "BT2020_10BIT",
1058 doc: Some("ITU-R BT2020 for 10-bit system\n"),
1059 available_since: None,
1060 },
1061 GroupValue {
1062 name: "SDL_TRANSFER_CHARACTERISTICS_BT2020_12BIT",
1063 short_name: "BT2020_12BIT",
1064 doc: Some("ITU-R BT2020 for 12-bit system\n"),
1065 available_since: None,
1066 },
1067 GroupValue {
1068 name: "SDL_TRANSFER_CHARACTERISTICS_PQ",
1069 short_name: "PQ",
1070 doc: Some("SMPTE ST 2084 for 10-, 12-, 14- and 16-bit systems\n"),
1071 available_since: None,
1072 },
1073 GroupValue {
1074 name: "SDL_TRANSFER_CHARACTERISTICS_SMPTE428",
1075 short_name: "SMPTE428",
1076 doc: Some("SMPTE ST 428-1\n"),
1077 available_since: None,
1078 },
1079 GroupValue {
1080 name: "SDL_TRANSFER_CHARACTERISTICS_HLG",
1081 short_name: "HLG",
1082 doc: Some("ARIB STD-B67, known as \"hybrid log-gamma\" (HLG)\n"),
1083 available_since: None,
1084 },
1085 GroupValue {
1086 name: "SDL_TRANSFER_CHARACTERISTICS_CUSTOM",
1087 short_name: "CUSTOM",
1088 doc: None,
1089 available_since: None,
1090 },
1091 ],
1092};
1093pub const METADATA_SDL_MatrixCoefficients: Group = Group {
1094 module: "pixels",
1095 kind: GroupKind::Enum,
1096 name: "SDL_MatrixCoefficients",
1097 short_name: "MatrixCoefficients",
1098 doc: Some(
1099 "Colorspace matrix coefficients.\n\nThese are as described by <https://www.itu.int/rec/T-REC-H.273-201612-S/en>\n\n## Availability\nThis enum is available since SDL 3.2.0.\n",
1100 ),
1101 available_since: Some(SDL_VERSIONNUM(3, 2, 0)),
1102 values: &[
1103 GroupValue {
1104 name: "SDL_MATRIX_COEFFICIENTS_IDENTITY",
1105 short_name: "IDENTITY",
1106 doc: None,
1107 available_since: None,
1108 },
1109 GroupValue {
1110 name: "SDL_MATRIX_COEFFICIENTS_BT709",
1111 short_name: "BT709",
1112 doc: Some("ITU-R BT.709-6\n"),
1113 available_since: None,
1114 },
1115 GroupValue {
1116 name: "SDL_MATRIX_COEFFICIENTS_UNSPECIFIED",
1117 short_name: "UNSPECIFIED",
1118 doc: None,
1119 available_since: None,
1120 },
1121 GroupValue {
1122 name: "SDL_MATRIX_COEFFICIENTS_FCC",
1123 short_name: "FCC",
1124 doc: Some("US FCC Title 47\n"),
1125 available_since: None,
1126 },
1127 GroupValue {
1128 name: "SDL_MATRIX_COEFFICIENTS_BT470BG",
1129 short_name: "BT470BG",
1130 doc: Some(
1131 "ITU-R BT.470-6 System B, G / ITU-R BT.601-7 625, functionally the same as [`SDL_MATRIX_COEFFICIENTS_BT601`]\n",
1132 ),
1133 available_since: None,
1134 },
1135 GroupValue {
1136 name: "SDL_MATRIX_COEFFICIENTS_BT601",
1137 short_name: "BT601",
1138 doc: Some("ITU-R BT.601-7 525\n"),
1139 available_since: None,
1140 },
1141 GroupValue {
1142 name: "SDL_MATRIX_COEFFICIENTS_SMPTE240",
1143 short_name: "SMPTE240",
1144 doc: Some("SMPTE 240M\n"),
1145 available_since: None,
1146 },
1147 GroupValue {
1148 name: "SDL_MATRIX_COEFFICIENTS_YCGCO",
1149 short_name: "YCGCO",
1150 doc: None,
1151 available_since: None,
1152 },
1153 GroupValue {
1154 name: "SDL_MATRIX_COEFFICIENTS_BT2020_NCL",
1155 short_name: "BT2020_NCL",
1156 doc: Some("ITU-R BT.2020-2 non-constant luminance\n"),
1157 available_since: None,
1158 },
1159 GroupValue {
1160 name: "SDL_MATRIX_COEFFICIENTS_BT2020_CL",
1161 short_name: "BT2020_CL",
1162 doc: Some("ITU-R BT.2020-2 constant luminance\n"),
1163 available_since: None,
1164 },
1165 GroupValue {
1166 name: "SDL_MATRIX_COEFFICIENTS_SMPTE2085",
1167 short_name: "SMPTE2085",
1168 doc: Some("SMPTE ST 2085\n"),
1169 available_since: None,
1170 },
1171 GroupValue {
1172 name: "SDL_MATRIX_COEFFICIENTS_CHROMA_DERIVED_NCL",
1173 short_name: "CHROMA_DERIVED_NCL",
1174 doc: None,
1175 available_since: None,
1176 },
1177 GroupValue {
1178 name: "SDL_MATRIX_COEFFICIENTS_CHROMA_DERIVED_CL",
1179 short_name: "CHROMA_DERIVED_CL",
1180 doc: None,
1181 available_since: None,
1182 },
1183 GroupValue {
1184 name: "SDL_MATRIX_COEFFICIENTS_ICTCP",
1185 short_name: "ICTCP",
1186 doc: Some("ITU-R BT.2100-0 ICTCP\n"),
1187 available_since: None,
1188 },
1189 GroupValue {
1190 name: "SDL_MATRIX_COEFFICIENTS_CUSTOM",
1191 short_name: "CUSTOM",
1192 doc: None,
1193 available_since: None,
1194 },
1195 ],
1196};
1197pub const METADATA_SDL_ChromaLocation: Group = Group {
1198 module: "pixels",
1199 kind: GroupKind::Enum,
1200 name: "SDL_ChromaLocation",
1201 short_name: "ChromaLocation",
1202 doc: Some(
1203 "Colorspace chroma sample location.\n\n## Availability\nThis enum is available since SDL 3.2.0.\n",
1204 ),
1205 available_since: Some(SDL_VERSIONNUM(3, 2, 0)),
1206 values: &[
1207 GroupValue {
1208 name: "SDL_CHROMA_LOCATION_NONE",
1209 short_name: "NONE",
1210 doc: Some("RGB, no chroma sampling\n"),
1211 available_since: None,
1212 },
1213 GroupValue {
1214 name: "SDL_CHROMA_LOCATION_LEFT",
1215 short_name: "LEFT",
1216 doc: Some(
1217 "In MPEG-2, MPEG-4, and AVC, Cb and Cr are taken on midpoint of the left-edge of the 2x2 square. In other words, they have the same horizontal location as the top-left pixel, but is shifted one-half pixel down vertically.\n",
1218 ),
1219 available_since: None,
1220 },
1221 GroupValue {
1222 name: "SDL_CHROMA_LOCATION_CENTER",
1223 short_name: "CENTER",
1224 doc: Some(
1225 "In JPEG/JFIF, H.261, and MPEG-1, Cb and Cr are taken at the center of the 2x2 square. In other words, they are offset one-half pixel to the right and one-half pixel down compared to the top-left pixel.\n",
1226 ),
1227 available_since: None,
1228 },
1229 GroupValue {
1230 name: "SDL_CHROMA_LOCATION_TOPLEFT",
1231 short_name: "TOPLEFT",
1232 doc: Some(
1233 "In HEVC for BT.2020 and BT.2100 content (in particular on Blu-rays), Cb and Cr are sampled at the same location as the group's top-left Y pixel (\"co-sited\", \"co-located\").\n",
1234 ),
1235 available_since: None,
1236 },
1237 ],
1238};
1239pub const METADATA_SDL_Colorspace: Group = Group {
1240 module: "pixels",
1241 kind: GroupKind::Enum,
1242 name: "SDL_Colorspace",
1243 short_name: "Colorspace",
1244 doc: Some(
1245 "Colorspace definitions.\n\nSince similar colorspaces may vary in their details (matrix, transfer\nfunction, etc.), this is not an exhaustive list, but rather a\nrepresentative sample of the kinds of colorspaces supported in SDL.\n\n## Availability\nThis enum is available since SDL 3.2.0.\n\n## See also\n- [`SDL_ColorPrimaries`]\n- [`SDL_ColorRange`]\n- [`SDL_ColorType`]\n- [`SDL_MatrixCoefficients`]\n- [`SDL_TransferCharacteristics`]\n",
1246 ),
1247 available_since: Some(SDL_VERSIONNUM(3, 2, 0)),
1248 values: &[
1249 GroupValue {
1250 name: "SDL_COLORSPACE_UNKNOWN",
1251 short_name: "UNKNOWN",
1252 doc: None,
1253 available_since: None,
1254 },
1255 GroupValue {
1256 name: "SDL_COLORSPACE_SRGB",
1257 short_name: "SRGB",
1258 doc: Some("Equivalent to DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709\n"),
1259 available_since: None,
1260 },
1261 GroupValue {
1262 name: "SDL_COLORSPACE_SRGB_LINEAR",
1263 short_name: "SRGB_LINEAR",
1264 doc: Some("Equivalent to DXGI_COLOR_SPACE_RGB_FULL_G10_NONE_P709\n"),
1265 available_since: None,
1266 },
1267 GroupValue {
1268 name: "SDL_COLORSPACE_HDR10",
1269 short_name: "HDR10",
1270 doc: Some("Equivalent to DXGI_COLOR_SPACE_RGB_FULL_G2084_NONE_P2020\n"),
1271 available_since: None,
1272 },
1273 GroupValue {
1274 name: "SDL_COLORSPACE_JPEG",
1275 short_name: "JPEG",
1276 doc: Some("Equivalent to DXGI_COLOR_SPACE_YCBCR_FULL_G22_NONE_P709_X601\n"),
1277 available_since: None,
1278 },
1279 GroupValue {
1280 name: "SDL_COLORSPACE_BT601_LIMITED",
1281 short_name: "BT601_LIMITED",
1282 doc: Some("Equivalent to DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P601\n"),
1283 available_since: None,
1284 },
1285 GroupValue {
1286 name: "SDL_COLORSPACE_BT601_FULL",
1287 short_name: "BT601_FULL",
1288 doc: Some("Equivalent to DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P601\n"),
1289 available_since: None,
1290 },
1291 GroupValue {
1292 name: "SDL_COLORSPACE_BT709_LIMITED",
1293 short_name: "BT709_LIMITED",
1294 doc: Some("Equivalent to DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P709\n"),
1295 available_since: None,
1296 },
1297 GroupValue {
1298 name: "SDL_COLORSPACE_BT709_FULL",
1299 short_name: "BT709_FULL",
1300 doc: Some("Equivalent to DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P709\n"),
1301 available_since: None,
1302 },
1303 GroupValue {
1304 name: "SDL_COLORSPACE_BT2020_LIMITED",
1305 short_name: "BT2020_LIMITED",
1306 doc: Some("Equivalent to DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P2020\n"),
1307 available_since: None,
1308 },
1309 GroupValue {
1310 name: "SDL_COLORSPACE_BT2020_FULL",
1311 short_name: "BT2020_FULL",
1312 doc: Some("Equivalent to DXGI_COLOR_SPACE_YCBCR_FULL_G22_LEFT_P2020\n"),
1313 available_since: None,
1314 },
1315 GroupValue {
1316 name: "SDL_COLORSPACE_RGB_DEFAULT",
1317 short_name: "RGB_DEFAULT",
1318 doc: Some("The default colorspace for RGB surfaces if no colorspace is specified\n"),
1319 available_since: None,
1320 },
1321 GroupValue {
1322 name: "SDL_COLORSPACE_YUV_DEFAULT",
1323 short_name: "YUV_DEFAULT",
1324 doc: Some("The default colorspace for YUV surfaces if no colorspace is specified\n"),
1325 available_since: None,
1326 },
1327 ],
1328};
1329pub const METADATA_SDL_Color: Struct = Struct {
1330 module: "pixels",
1331 kind: StructKind::Struct,
1332 name: "SDL_Color",
1333 doc: Some(
1334 "A structure that represents a color as RGBA components.\n\nThe bits of this structure can be directly reinterpreted as an\ninteger-packed color which uses the [`SDL_PIXELFORMAT_RGBA32`] format\n([`SDL_PIXELFORMAT_ABGR8888`] on little-endian systems and\n[`SDL_PIXELFORMAT_RGBA8888`] on big-endian systems).\n\n## Availability\nThis struct is available since SDL 3.2.0.\n",
1335 ),
1336 available_since: Some(SDL_VERSIONNUM(3, 2, 0)),
1337 fields: &[
1338 Field {
1339 name: "r",
1340 doc: None,
1341 available_since: None,
1342 ty: "Uint8",
1343 },
1344 Field {
1345 name: "g",
1346 doc: None,
1347 available_since: None,
1348 ty: "Uint8",
1349 },
1350 Field {
1351 name: "b",
1352 doc: None,
1353 available_since: None,
1354 ty: "Uint8",
1355 },
1356 Field {
1357 name: "a",
1358 doc: None,
1359 available_since: None,
1360 ty: "Uint8",
1361 },
1362 ],
1363};
1364pub const METADATA_SDL_FColor: Struct = Struct {
1365 module: "pixels",
1366 kind: StructKind::Struct,
1367 name: "SDL_FColor",
1368 doc: Some(
1369 "The bits of this structure can be directly reinterpreted as a float-packed\ncolor which uses the [`SDL_PIXELFORMAT_RGBA128_FLOAT`] format\n\n## Availability\nThis struct is available since SDL 3.2.0.\n",
1370 ),
1371 available_since: Some(SDL_VERSIONNUM(3, 2, 0)),
1372 fields: &[
1373 Field {
1374 name: "r",
1375 doc: None,
1376 available_since: None,
1377 ty: "::core::ffi::c_float",
1378 },
1379 Field {
1380 name: "g",
1381 doc: None,
1382 available_since: None,
1383 ty: "::core::ffi::c_float",
1384 },
1385 Field {
1386 name: "b",
1387 doc: None,
1388 available_since: None,
1389 ty: "::core::ffi::c_float",
1390 },
1391 Field {
1392 name: "a",
1393 doc: None,
1394 available_since: None,
1395 ty: "::core::ffi::c_float",
1396 },
1397 ],
1398};
1399pub const METADATA_SDL_Palette: Struct = Struct {
1400 module: "pixels",
1401 kind: StructKind::Struct,
1402 name: "SDL_Palette",
1403 doc: Some(
1404 "A set of indexed colors representing a palette.\n\n## Availability\nThis struct is available since SDL 3.2.0.\n\n## See also\n- [`SDL_SetPaletteColors`]\n\n## Notes for `sdl3-sys`\nThis struct can't be created manually. Use the corresponding SDL functions.\n",
1405 ),
1406 available_since: Some(SDL_VERSIONNUM(3, 2, 0)),
1407 fields: &[
1408 Field {
1409 name: "ncolors",
1410 doc: Some("number of elements in `colors`.\n"),
1411 available_since: None,
1412 ty: "::core::ffi::c_int",
1413 },
1414 Field {
1415 name: "colors",
1416 doc: Some("an array of colors, `ncolors` long.\n"),
1417 available_since: None,
1418 ty: "*mut SDL_Color",
1419 },
1420 Field {
1421 name: "version",
1422 doc: Some("internal use only, do not touch.\n"),
1423 available_since: None,
1424 ty: "Uint32",
1425 },
1426 Field {
1427 name: "refcount",
1428 doc: Some("internal use only, do not touch.\n"),
1429 available_since: None,
1430 ty: "::core::ffi::c_int",
1431 },
1432 ],
1433};
1434pub const METADATA_SDL_PixelFormatDetails: Struct = Struct {
1435 module: "pixels",
1436 kind: StructKind::Struct,
1437 name: "SDL_PixelFormatDetails",
1438 doc: Some(
1439 "Details about the format of a pixel.\n\n## Availability\nThis struct is available since SDL 3.2.0.\n\n## Notes for `sdl3-sys`\nThis struct has padding fields which shouldn't be accessed directly; use struct update syntax with e.g. `..Default::default()` for manual construction.\n",
1440 ),
1441 available_since: Some(SDL_VERSIONNUM(3, 2, 0)),
1442 fields: &[
1443 Field {
1444 name: "format",
1445 doc: None,
1446 available_since: None,
1447 ty: "SDL_PixelFormat",
1448 },
1449 Field {
1450 name: "bits_per_pixel",
1451 doc: None,
1452 available_since: None,
1453 ty: "Uint8",
1454 },
1455 Field {
1456 name: "bytes_per_pixel",
1457 doc: None,
1458 available_since: None,
1459 ty: "Uint8",
1460 },
1461 Field {
1462 name: "padding",
1463 doc: None,
1464 available_since: None,
1465 ty: "[Uint8; 2]",
1466 },
1467 Field {
1468 name: "Rmask",
1469 doc: None,
1470 available_since: None,
1471 ty: "Uint32",
1472 },
1473 Field {
1474 name: "Gmask",
1475 doc: None,
1476 available_since: None,
1477 ty: "Uint32",
1478 },
1479 Field {
1480 name: "Bmask",
1481 doc: None,
1482 available_since: None,
1483 ty: "Uint32",
1484 },
1485 Field {
1486 name: "Amask",
1487 doc: None,
1488 available_since: None,
1489 ty: "Uint32",
1490 },
1491 Field {
1492 name: "Rbits",
1493 doc: None,
1494 available_since: None,
1495 ty: "Uint8",
1496 },
1497 Field {
1498 name: "Gbits",
1499 doc: None,
1500 available_since: None,
1501 ty: "Uint8",
1502 },
1503 Field {
1504 name: "Bbits",
1505 doc: None,
1506 available_since: None,
1507 ty: "Uint8",
1508 },
1509 Field {
1510 name: "Abits",
1511 doc: None,
1512 available_since: None,
1513 ty: "Uint8",
1514 },
1515 Field {
1516 name: "Rshift",
1517 doc: None,
1518 available_since: None,
1519 ty: "Uint8",
1520 },
1521 Field {
1522 name: "Gshift",
1523 doc: None,
1524 available_since: None,
1525 ty: "Uint8",
1526 },
1527 Field {
1528 name: "Bshift",
1529 doc: None,
1530 available_since: None,
1531 ty: "Uint8",
1532 },
1533 Field {
1534 name: "Ashift",
1535 doc: None,
1536 available_since: None,
1537 ty: "Uint8",
1538 },
1539 ],
1540};