gstreamer-vulkan-sys 0.25.0

FFI bindings to libgstvulkan-1.0
Documentation
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
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT

#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
#![allow(
    clippy::approx_constant,
    clippy::type_complexity,
    clippy::unreadable_literal,
    clippy::upper_case_acronyms
)]
#![cfg_attr(docsrs, feature(doc_cfg))]

use glib_sys as glib;
use gstreamer_base_sys as gst_base;
use gstreamer_sys as gst;
use gstreamer_video_sys as gst_video;

mod manual;

pub use manual::*;

#[allow(unused_imports)]
use libc::{FILE, intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t};
#[cfg(unix)]
#[allow(unused_imports)]
use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t};
#[allow(unused_imports)]
use std::ffi::{
    c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void,
};

#[allow(unused_imports)]
use glib::{GType, gboolean, gconstpointer, gpointer};

// Aliases
pub type GstVulkanHandleTypedef = u64;

// Enums
pub type GstVulkanBarrierFlags = c_int;
pub const GST_VULKAN_BARRIER_FLAG_NONE: GstVulkanBarrierFlags = 0;

pub type GstVulkanBarrierType = c_int;
pub const GST_VULKAN_BARRIER_NONE: GstVulkanBarrierType = 0;
pub const GST_VULKAN_BARRIER_TYPE_MEMORY: GstVulkanBarrierType = 1;
pub const GST_VULKAN_BARRIER_TYPE_BUFFER: GstVulkanBarrierType = 2;
pub const GST_VULKAN_BARRIER_TYPE_IMAGE: GstVulkanBarrierType = 3;

pub type GstVulkanError = c_int;
pub const GST_VULKAN_FAILED: GstVulkanError = 0;

pub type GstVulkanFormatScaling = c_int;
pub const GST_VULKAN_FORMAT_SCALING_UNORM: GstVulkanFormatScaling = 1;
pub const GST_VULKAN_FORMAT_SCALING_SNORM: GstVulkanFormatScaling = 2;
pub const GST_VULKAN_FORMAT_SCALING_USCALED: GstVulkanFormatScaling = 3;
pub const GST_VULKAN_FORMAT_SCALING_SSCALED: GstVulkanFormatScaling = 4;
pub const GST_VULKAN_FORMAT_SCALING_UINT: GstVulkanFormatScaling = 5;
pub const GST_VULKAN_FORMAT_SCALING_SINT: GstVulkanFormatScaling = 6;
pub const GST_VULKAN_FORMAT_SCALING_SRGB: GstVulkanFormatScaling = 7;

pub type GstVulkanHandleType = c_int;
pub const GST_VULKAN_HANDLE_TYPE_DESCRIPTOR_SET_LAYOUT: GstVulkanHandleType = 1;
pub const GST_VULKAN_HANDLE_TYPE_PIPELINE_LAYOUT: GstVulkanHandleType = 2;
pub const GST_VULKAN_HANDLE_TYPE_PIPELINE: GstVulkanHandleType = 3;
pub const GST_VULKAN_HANDLE_TYPE_RENDER_PASS: GstVulkanHandleType = 4;
pub const GST_VULKAN_HANDLE_TYPE_SAMPLER: GstVulkanHandleType = 5;
pub const GST_VULKAN_HANDLE_TYPE_FRAMEBUFFER: GstVulkanHandleType = 6;
pub const GST_VULKAN_HANDLE_TYPE_SHADER: GstVulkanHandleType = 7;
#[cfg(feature = "v1_24")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
pub const GST_VULKAN_HANDLE_TYPE_VIDEO_SESSION: GstVulkanHandleType = 8;
#[cfg(feature = "v1_24")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
pub const GST_VULKAN_HANDLE_TYPE_VIDEO_SESSION_PARAMETERS: GstVulkanHandleType = 9;
#[cfg(feature = "v1_24")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
pub const GST_VULKAN_HANDLE_TYPE_SAMPLER_YCBCR_CONVERSION: GstVulkanHandleType = 10;

pub type GstVulkanWindowError = c_int;
pub const GST_VULKAN_WINDOW_ERROR_FAILED: GstVulkanWindowError = 0;
pub const GST_VULKAN_WINDOW_ERROR_OLD_LIBS: GstVulkanWindowError = 1;
pub const GST_VULKAN_WINDOW_ERROR_RESOURCE_UNAVAILABLE: GstVulkanWindowError = 2;

// Constants
pub const GST_CAPS_FEATURE_MEMORY_VULKAN_BUFFER: &[u8] = b"memory:VulkanBuffer\0";
pub const GST_CAPS_FEATURE_MEMORY_VULKAN_IMAGE: &[u8] = b"memory:VulkanImage\0";
pub const GST_VULKAN_BUFFER_MEMORY_ALLOCATOR_NAME: &[u8] = b"VulkanBuffer\0";
pub const GST_VULKAN_DEVICE_CONTEXT_TYPE_STR: &[u8] = b"gst.vulkan.device\0";
pub const GST_VULKAN_DISPLAY_CONTEXT_TYPE_STR: &[u8] = b"gst.vulkan.display\0";
pub const GST_VULKAN_IMAGE_MEMORY_ALLOCATOR_NAME: &[u8] = b"VulkanImage\0";
pub const GST_VULKAN_INSTANCE_CONTEXT_TYPE_STR: &[u8] = b"gst.vulkan.instance\0";
pub const GST_VULKAN_MAX_COMPONENTS: c_int = 4;
pub const GST_VULKAN_MEMORY_ALLOCATOR_NAME: &[u8] = b"Vulkan\0";
pub const GST_VULKAN_QUEUE_CONTEXT_TYPE_STR: &[u8] = b"gst.vulkan.queue\0";
pub const GST_VULKAN_SWAPPER_VIDEO_FORMATS: &[u8] = b" { RGBA, BGRA, RGB, BGR } \0";

// Flags
pub type GstVulkanDisplayType = c_uint;
pub const GST_VULKAN_DISPLAY_TYPE_NONE: GstVulkanDisplayType = 0;
pub const GST_VULKAN_DISPLAY_TYPE_XCB: GstVulkanDisplayType = 1;
pub const GST_VULKAN_DISPLAY_TYPE_WAYLAND: GstVulkanDisplayType = 2;
pub const GST_VULKAN_DISPLAY_TYPE_COCOA: GstVulkanDisplayType = 4;
pub const GST_VULKAN_DISPLAY_TYPE_IOS: GstVulkanDisplayType = 8;
pub const GST_VULKAN_DISPLAY_TYPE_WIN32: GstVulkanDisplayType = 16;
pub const GST_VULKAN_DISPLAY_TYPE_ANDROID: GstVulkanDisplayType = 32;
pub const GST_VULKAN_DISPLAY_TYPE_ANY: GstVulkanDisplayType = 4294967295;

pub type GstVulkanFormatFlags = c_uint;
pub const GST_VULKAN_FORMAT_FLAG_YUV: GstVulkanFormatFlags = 1;
pub const GST_VULKAN_FORMAT_FLAG_RGB: GstVulkanFormatFlags = 2;
pub const GST_VULKAN_FORMAT_FLAG_ALPHA: GstVulkanFormatFlags = 4;
pub const GST_VULKAN_FORMAT_FLAG_LE: GstVulkanFormatFlags = 8;
pub const GST_VULKAN_FORMAT_FLAG_COMPLEX: GstVulkanFormatFlags = 16;

// Callbacks
pub type GstVulkanDeviceForEachQueueFunc =
    Option<unsafe extern "C" fn(*mut GstVulkanDevice, *mut GstVulkanQueue, gpointer) -> gboolean>;
pub type GstVulkanHandleDestroyNotify =
    Option<unsafe extern "C" fn(*mut GstVulkanHandle, gpointer)>;
pub type GstVulkanImageMemoryFindViewFunc =
    Option<unsafe extern "C" fn(*mut GstVulkanImageView, gpointer) -> gboolean>;
pub type GstVulkanTrashListAdd =
    Option<unsafe extern "C" fn(*mut GstVulkanTrashList, *mut GstVulkanTrash) -> gboolean>;
pub type GstVulkanTrashListGC = Option<unsafe extern "C" fn(*mut GstVulkanTrashList)>;
pub type GstVulkanTrashListWait =
    Option<unsafe extern "C" fn(*mut GstVulkanTrashList, u64) -> gboolean>;
pub type GstVulkanTrashNotify = Option<unsafe extern "C" fn(*mut GstVulkanDevice, gpointer)>;

// Records
#[repr(C)]
#[allow(dead_code)]
pub struct GstVulkanBarrierBufferInfo {
    _truncated_record_marker: c_void,
    // /*Ignored*/field parent has incomplete type
}

impl ::std::fmt::Debug for GstVulkanBarrierBufferInfo {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanBarrierBufferInfo @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
#[allow(dead_code)]
pub struct GstVulkanBarrierImageInfo {
    _truncated_record_marker: c_void,
    // /*Ignored*/field parent has incomplete type
}

impl ::std::fmt::Debug for GstVulkanBarrierImageInfo {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanBarrierImageInfo @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
#[allow(dead_code)]
pub struct GstVulkanBarrierMemoryInfo {
    pub type_: GstVulkanBarrierType,
    pub flags: GstVulkanBarrierFlags,
    pub queue: *mut GstVulkanQueue,
    pub pipeline_stages: u64,
    pub access_flags: u64,
    _truncated_record_marker: c_void,
    // /*Ignored*/field semaphore has incomplete type
}

impl ::std::fmt::Debug for GstVulkanBarrierMemoryInfo {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanBarrierMemoryInfo @ {self:p}"))
            .field("type_", &self.type_)
            .field("flags", &self.flags)
            .field("queue", &self.queue)
            .field("pipeline_stages", &self.pipeline_stages)
            .field("access_flags", &self.access_flags)
            .finish()
    }
}

#[repr(C)]
#[allow(dead_code)]
pub struct GstVulkanBufferMemory {
    pub parent: gst::GstMemory,
    pub device: *mut GstVulkanDevice,
    _truncated_record_marker: c_void,
    // /*Ignored*/field buffer has incomplete type
}

impl ::std::fmt::Debug for GstVulkanBufferMemory {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanBufferMemory @ {self:p}"))
            .field("parent", &self.parent)
            .field("device", &self.device)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanBufferMemoryAllocatorClass {
    pub parent_class: gst::GstAllocatorClass,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanBufferMemoryAllocatorClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanBufferMemoryAllocatorClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanBufferPoolClass {
    pub parent_class: gst::GstBufferPoolClass,
    pub _padding: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanBufferPoolClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanBufferPoolClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[repr(C)]
#[allow(dead_code)]
pub struct _GstVulkanBufferPoolPrivate {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

pub type GstVulkanBufferPoolPrivate = _GstVulkanBufferPoolPrivate;

#[repr(C)]
#[allow(dead_code)]
pub struct GstVulkanCommandBuffer {
    pub parent: gst::GstMiniObject,
    _truncated_record_marker: c_void,
    // /*Ignored*/field cmd has incomplete type
}

impl ::std::fmt::Debug for GstVulkanCommandBuffer {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanCommandBuffer @ {self:p}"))
            .field("parent", &self.parent)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanCommandPoolClass {
    pub parent_class: gst::GstObjectClass,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanCommandPoolClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanCommandPoolClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[repr(C)]
#[allow(dead_code)]
pub struct _GstVulkanCommandPoolPrivate {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

pub type GstVulkanCommandPoolPrivate = _GstVulkanCommandPoolPrivate;

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanDescriptorCacheClass {
    pub parent_class: GstVulkanHandlePoolClass,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanDescriptorCacheClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanDescriptorCacheClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[repr(C)]
#[allow(dead_code)]
pub struct _GstVulkanDescriptorCachePrivate {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

pub type GstVulkanDescriptorCachePrivate = _GstVulkanDescriptorCachePrivate;

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanDescriptorPoolClass {
    pub parent_class: gst::GstObjectClass,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanDescriptorPoolClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanDescriptorPoolClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[repr(C)]
#[allow(dead_code)]
pub struct _GstVulkanDescriptorPoolPrivate {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

pub type GstVulkanDescriptorPoolPrivate = _GstVulkanDescriptorPoolPrivate;

#[repr(C)]
#[allow(dead_code)]
pub struct GstVulkanDescriptorSet {
    pub parent: gst::GstMiniObject,
    _truncated_record_marker: c_void,
    // /*Ignored*/field set has incomplete type
}

impl ::std::fmt::Debug for GstVulkanDescriptorSet {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanDescriptorSet @ {self:p}"))
            .field("parent", &self.parent)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanDeviceClass {
    pub parent_class: gst::GstObjectClass,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanDeviceClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanDeviceClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[repr(C)]
#[allow(dead_code)]
pub struct _GstVulkanDevicePrivate {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

pub type GstVulkanDevicePrivate = _GstVulkanDevicePrivate;

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanDisplayClass {
    pub object_class: gst::GstObjectClass,
    pub get_handle: Option<unsafe extern "C" fn(*mut GstVulkanDisplay) -> gpointer>,
    pub create_window: Option<unsafe extern "C" fn(*mut GstVulkanDisplay) -> *mut GstVulkanWindow>,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanDisplayClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanDisplayClass @ {self:p}"))
            .field("object_class", &self.object_class)
            .field("get_handle", &self.get_handle)
            .field("create_window", &self.create_window)
            .finish()
    }
}

#[repr(C)]
#[allow(dead_code)]
pub struct _GstVulkanDisplayPrivate {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

pub type GstVulkanDisplayPrivate = _GstVulkanDisplayPrivate;

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanEncodeQueryResult {
    pub offset: u32,
    pub data_size: u32,
    pub status: u32,
}

impl ::std::fmt::Debug for GstVulkanEncodeQueryResult {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanEncodeQueryResult @ {self:p}"))
            .field("offset", &self.offset)
            .field("data_size", &self.data_size)
            .field("status", &self.status)
            .finish()
    }
}

#[repr(C)]
#[allow(dead_code)]
pub struct GstVulkanFence {
    pub parent: gst::GstMiniObject,
    pub device: *mut GstVulkanDevice,
    pub cache: *mut GstVulkanFenceCache,
    _truncated_record_marker: c_void,
    // /*Ignored*/field fence has incomplete type
}

impl ::std::fmt::Debug for GstVulkanFence {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanFence @ {self:p}"))
            .field("parent", &self.parent)
            .field("device", &self.device)
            .field("cache", &self.cache)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanFenceCacheClass {
    pub parent_class: GstVulkanHandlePoolClass,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanFenceCacheClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanFenceCacheClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[repr(C)]
#[allow(dead_code)]
pub struct GstVulkanFormatInfo {
    _truncated_record_marker: c_void,
    // /*Ignored*/field format has incomplete type
}

impl ::std::fmt::Debug for GstVulkanFormatInfo {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanFormatInfo @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
#[allow(dead_code)]
pub struct GstVulkanFormatMap {
    pub format: gst_video::GstVideoFormat,
    _truncated_record_marker: c_void,
    // /*Ignored*/field vkfrmt has incomplete type
}

impl ::std::fmt::Debug for GstVulkanFormatMap {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanFormatMap @ {self:p}"))
            .field("format", &self.format)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanFullScreenQuadClass {
    pub parent_class: gst::GstObjectClass,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanFullScreenQuadClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanFullScreenQuadClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[repr(C)]
#[allow(dead_code)]
pub struct _GstVulkanFullScreenQuadPrivate {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

pub type GstVulkanFullScreenQuadPrivate = _GstVulkanFullScreenQuadPrivate;

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanHandle {
    pub parent: gst::GstMiniObject,
    pub device: *mut GstVulkanDevice,
    pub type_: GstVulkanHandleType,
    pub handle: GstVulkanHandleTypedef,
    pub notify: GstVulkanHandleDestroyNotify,
    pub user_data: gpointer,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanHandle {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanHandle @ {self:p}"))
            .field("parent", &self.parent)
            .field("device", &self.device)
            .field("type_", &self.type_)
            .field("handle", &self.handle)
            .field("notify", &self.notify)
            .field("user_data", &self.user_data)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanHandlePoolClass {
    pub parent: gst::GstObjectClass,
    pub alloc:
        Option<unsafe extern "C" fn(*mut GstVulkanHandlePool, *mut *mut glib::GError) -> gpointer>,
    pub acquire:
        Option<unsafe extern "C" fn(*mut GstVulkanHandlePool, *mut *mut glib::GError) -> gpointer>,
    pub release: Option<unsafe extern "C" fn(*mut GstVulkanHandlePool, gpointer)>,
    pub free: Option<unsafe extern "C" fn(*mut GstVulkanHandlePool, gpointer)>,
    pub _padding: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanHandlePoolClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanHandlePoolClass @ {self:p}"))
            .field("parent", &self.parent)
            .field("alloc", &self.alloc)
            .field("acquire", &self.acquire)
            .field("release", &self.release)
            .field("free", &self.free)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanImageBufferPoolClass {
    pub parent_class: gst::GstBufferPoolClass,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanImageBufferPoolClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanImageBufferPoolClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[repr(C)]
#[allow(dead_code)]
pub struct _GstVulkanImageBufferPoolPrivate {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

pub type GstVulkanImageBufferPoolPrivate = _GstVulkanImageBufferPoolPrivate;

#[repr(C)]
#[allow(dead_code)]
pub struct GstVulkanImageMemory {
    pub parent: gst::GstMemory,
    pub device: *mut GstVulkanDevice,
    _truncated_record_marker: c_void,
    // /*Ignored*/field image has incomplete type
}

impl ::std::fmt::Debug for GstVulkanImageMemory {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanImageMemory @ {self:p}"))
            .field("parent", &self.parent)
            .field("device", &self.device)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanImageMemoryAllocatorClass {
    pub parent_class: gst::GstAllocatorClass,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanImageMemoryAllocatorClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanImageMemoryAllocatorClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[repr(C)]
#[allow(dead_code)]
pub struct GstVulkanImageView {
    pub parent: gst::GstMiniObject,
    pub device: *mut GstVulkanDevice,
    pub image: *mut GstVulkanImageMemory,
    _truncated_record_marker: c_void,
    // /*Ignored*/field view has incomplete type
}

impl ::std::fmt::Debug for GstVulkanImageView {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanImageView @ {self:p}"))
            .field("parent", &self.parent)
            .field("device", &self.device)
            .field("image", &self.image)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanInstanceClass {
    pub parent_class: gst::GstObjectClass,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanInstanceClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanInstanceClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[repr(C)]
#[allow(dead_code)]
pub struct _GstVulkanInstancePrivate {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

pub type GstVulkanInstancePrivate = _GstVulkanInstancePrivate;

#[repr(C)]
#[allow(dead_code)]
pub struct GstVulkanMemory {
    pub mem: gst::GstMemory,
    pub device: *mut GstVulkanDevice,
    _truncated_record_marker: c_void,
    // /*Ignored*/field mem_ptr has incomplete type
}

impl ::std::fmt::Debug for GstVulkanMemory {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanMemory @ {self:p}"))
            .field("mem", &self.mem)
            .field("device", &self.device)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanMemoryAllocatorClass {
    pub parent_class: gst::GstAllocatorClass,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanMemoryAllocatorClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanMemoryAllocatorClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanOperationClass {
    pub parent_class: gst::GstObjectClass,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanOperationClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanOperationClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[repr(C)]
#[allow(dead_code)]
pub struct _GstVulkanOperationPrivate {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

pub type GstVulkanOperationPrivate = _GstVulkanOperationPrivate;

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanPhysicalDeviceClass {
    pub parent_class: gst::GstObjectClass,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanPhysicalDeviceClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanPhysicalDeviceClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[repr(C)]
#[allow(dead_code)]
pub struct _GstVulkanPhysicalDevicePrivate {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

pub type GstVulkanPhysicalDevicePrivate = _GstVulkanPhysicalDevicePrivate;

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanQueueClass {
    pub parent_class: gst::GstObjectClass,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanQueueClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanQueueClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanQueueFamilyOps {
    pub video: u32,
    pub query_result_status: gboolean,
}

impl ::std::fmt::Debug for GstVulkanQueueFamilyOps {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanQueueFamilyOps @ {self:p}"))
            .field("video", &self.video)
            .field("query_result_status", &self.query_result_status)
            .finish()
    }
}

#[repr(C)]
#[allow(dead_code)]
pub struct _GstVulkanQueuePrivate {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

pub type GstVulkanQueuePrivate = _GstVulkanQueuePrivate;

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanSwapperClass {
    pub parent_class: gst::GstObjectClass,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanSwapperClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanSwapperClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[repr(C)]
#[allow(dead_code)]
pub struct _GstVulkanSwapperPrivate {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

pub type GstVulkanSwapperPrivate = _GstVulkanSwapperPrivate;

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanTrash {
    pub parent: gst::GstMiniObject,
    pub cache: *mut GstVulkanTrashList,
    pub fence: *mut GstVulkanFence,
    pub notify: GstVulkanTrashNotify,
    pub user_data: gpointer,
    pub _padding: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanTrash {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanTrash @ {self:p}"))
            .field("parent", &self.parent)
            .field("cache", &self.cache)
            .field("fence", &self.fence)
            .field("notify", &self.notify)
            .field("user_data", &self.user_data)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanTrashFenceListClass {
    pub parent_class: GstVulkanTrashListClass,
}

impl ::std::fmt::Debug for GstVulkanTrashFenceListClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanTrashFenceListClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanTrashListClass {
    pub parent_class: GstVulkanHandlePoolClass,
    pub add_func: GstVulkanTrashListAdd,
    pub gc_func: GstVulkanTrashListGC,
    pub wait_func: GstVulkanTrashListWait,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanTrashListClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanTrashListClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .field("add_func", &self.add_func)
            .field("gc_func", &self.gc_func)
            .field("wait_func", &self.wait_func)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanVideoFilterClass {
    pub parent_class: gst_base::GstBaseTransformClass,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanVideoFilterClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanVideoFilterClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanWindowClass {
    pub parent_class: gst::GstObjectClass,
    pub open:
        Option<unsafe extern "C" fn(*mut GstVulkanWindow, *mut *mut glib::GError) -> gboolean>,
    pub close: Option<unsafe extern "C" fn(*mut GstVulkanWindow)>,
    pub get_surface: Option<
        unsafe extern "C" fn(*mut GstVulkanWindow, *mut *mut glib::GError) -> vulkan::VkSurfaceKHR,
    >,
    pub get_presentation_support:
        Option<unsafe extern "C" fn(*mut GstVulkanWindow, *mut GstVulkanDevice, u32) -> gboolean>,
    pub set_window_handle: Option<unsafe extern "C" fn(*mut GstVulkanWindow, uintptr_t)>,
    pub get_surface_dimensions:
        Option<unsafe extern "C" fn(*mut GstVulkanWindow, *mut c_uint, *mut c_uint)>,
    pub handle_events: Option<unsafe extern "C" fn(*mut GstVulkanWindow, gboolean)>,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanWindowClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanWindowClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .field("open", &self.open)
            .field("close", &self.close)
            .field("get_surface", &self.get_surface)
            .field("get_presentation_support", &self.get_presentation_support)
            .field("set_window_handle", &self.set_window_handle)
            .field("get_surface_dimensions", &self.get_surface_dimensions)
            .field("handle_events", &self.handle_events)
            .finish()
    }
}

#[repr(C)]
#[allow(dead_code)]
pub struct _GstVulkanWindowPrivate {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

pub type GstVulkanWindowPrivate = _GstVulkanWindowPrivate;

// Classes
#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanBufferMemoryAllocator {
    pub parent: gst::GstAllocator,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanBufferMemoryAllocator {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanBufferMemoryAllocator @ {self:p}"))
            .field("parent", &self.parent)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanBufferPool {
    pub bufferpool: gst::GstBufferPool,
    pub device: *mut GstVulkanDevice,
    pub _padding: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanBufferPool {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanBufferPool @ {self:p}"))
            .field("bufferpool", &self.bufferpool)
            .field("device", &self.device)
            .finish()
    }
}

#[repr(C)]
#[allow(dead_code)]
pub struct GstVulkanCommandPool {
    pub parent: gst::GstObject,
    pub queue: *mut GstVulkanQueue,
    _truncated_record_marker: c_void,
    // /*Ignored*/field pool has incomplete type
}

impl ::std::fmt::Debug for GstVulkanCommandPool {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanCommandPool @ {self:p}"))
            .field("parent", &self.parent)
            .field("queue", &self.queue)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanDescriptorCache {
    pub parent: GstVulkanHandlePool,
    pub pool: *mut GstVulkanDescriptorPool,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanDescriptorCache {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanDescriptorCache @ {self:p}"))
            .field("parent", &self.parent)
            .field("pool", &self.pool)
            .finish()
    }
}

#[repr(C)]
#[allow(dead_code)]
pub struct GstVulkanDescriptorPool {
    pub parent: gst::GstObject,
    pub device: *mut GstVulkanDevice,
    _truncated_record_marker: c_void,
    // /*Ignored*/field pool has incomplete type
}

impl ::std::fmt::Debug for GstVulkanDescriptorPool {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanDescriptorPool @ {self:p}"))
            .field("parent", &self.parent)
            .field("device", &self.device)
            .finish()
    }
}

#[repr(C)]
#[allow(dead_code)]
pub struct GstVulkanDevice {
    pub parent: gst::GstObject,
    pub instance: *mut GstVulkanInstance,
    pub physical_device: *mut GstVulkanPhysicalDevice,
    _truncated_record_marker: c_void,
    // /*Ignored*/field device has incomplete type
}

impl ::std::fmt::Debug for GstVulkanDevice {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanDevice @ {self:p}"))
            .field("parent", &self.parent)
            .field("instance", &self.instance)
            .field("physical_device", &self.physical_device)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanDisplay {
    pub object: gst::GstObject,
    pub type_: GstVulkanDisplayType,
    pub instance: *mut GstVulkanInstance,
    pub windows: *mut glib::GList,
    pub main_context: *mut glib::GMainContext,
    pub main_loop: *mut glib::GMainLoop,
    pub event_source: *mut glib::GSource,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanDisplay {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanDisplay @ {self:p}"))
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanFenceCache {
    pub parent: GstVulkanHandlePool,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanFenceCache {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanFenceCache @ {self:p}"))
            .field("parent", &self.parent)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanFullScreenQuad {
    pub parent: gst::GstObject,
    pub out_info: gst_video::GstVideoInfo,
    pub in_info: gst_video::GstVideoInfo,
    pub queue: *mut GstVulkanQueue,
    pub render_pass: *mut GstVulkanHandle,
    pub pipeline_layout: *mut GstVulkanHandle,
    pub graphics_pipeline: *mut GstVulkanHandle,
    pub descriptor_set_layout: *mut GstVulkanHandle,
    pub descriptor_cache: *mut GstVulkanDescriptorCache,
    pub descriptor_set: *mut GstVulkanDescriptorSet,
    pub framebuffer: *mut GstVulkanHandle,
    pub sampler: *mut GstVulkanHandle,
    pub cmd_pool: *mut GstVulkanCommandPool,
    pub trash_list: *mut GstVulkanTrashList,
    pub last_fence: *mut GstVulkanFence,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanFullScreenQuad {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanFullScreenQuad @ {self:p}"))
            .field("parent", &self.parent)
            .field("out_info", &self.out_info)
            .field("in_info", &self.in_info)
            .field("queue", &self.queue)
            .field("render_pass", &self.render_pass)
            .field("pipeline_layout", &self.pipeline_layout)
            .field("graphics_pipeline", &self.graphics_pipeline)
            .field("descriptor_set_layout", &self.descriptor_set_layout)
            .field("descriptor_cache", &self.descriptor_cache)
            .field("descriptor_set", &self.descriptor_set)
            .field("framebuffer", &self.framebuffer)
            .field("sampler", &self.sampler)
            .field("cmd_pool", &self.cmd_pool)
            .field("trash_list", &self.trash_list)
            .field("last_fence", &self.last_fence)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanHandlePool {
    pub parent: gst::GstObject,
    pub device: *mut GstVulkanDevice,
    pub outstanding: *mut glib::GPtrArray,
    pub available: *mut glib::GPtrArray,
    pub _padding: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanHandlePool {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanHandlePool @ {self:p}"))
            .field("parent", &self.parent)
            .field("device", &self.device)
            .field("outstanding", &self.outstanding)
            .field("available", &self.available)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanImageBufferPool {
    pub bufferpool: gst::GstBufferPool,
    pub device: *mut GstVulkanDevice,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanImageBufferPool {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanImageBufferPool @ {self:p}"))
            .field("bufferpool", &self.bufferpool)
            .field("device", &self.device)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanImageMemoryAllocator {
    pub parent: gst::GstAllocator,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanImageMemoryAllocator {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanImageMemoryAllocator @ {self:p}"))
            .field("parent", &self.parent)
            .finish()
    }
}

#[repr(C)]
#[allow(dead_code)]
pub struct GstVulkanInstance {
    pub parent: gst::GstObject,
    _truncated_record_marker: c_void,
    // /*Ignored*/field instance has incomplete type
}

impl ::std::fmt::Debug for GstVulkanInstance {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanInstance @ {self:p}"))
            .field("parent", &self.parent)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanMemoryAllocator {
    pub parent: gst::GstAllocator,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanMemoryAllocator {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanMemoryAllocator @ {self:p}"))
            .field("parent", &self.parent)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanOperation {
    pub parent: gst::GstObject,
    pub cmd_buf: *mut GstVulkanCommandBuffer,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanOperation {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanOperation @ {self:p}"))
            .field("parent", &self.parent)
            .field("cmd_buf", &self.cmd_buf)
            .finish()
    }
}

#[repr(C)]
#[allow(dead_code)]
pub struct GstVulkanPhysicalDevice {
    pub parent: gst::GstObject,
    pub instance: *mut GstVulkanInstance,
    pub device_index: c_uint,
    _truncated_record_marker: c_void,
    // /*Ignored*/field device has incomplete type
}

impl ::std::fmt::Debug for GstVulkanPhysicalDevice {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanPhysicalDevice @ {self:p}"))
            .field("parent", &self.parent)
            .field("instance", &self.instance)
            .field("device_index", &self.device_index)
            .finish()
    }
}

#[repr(C)]
#[allow(dead_code)]
pub struct GstVulkanQueue {
    pub parent: gst::GstObject,
    pub device: *mut GstVulkanDevice,
    _truncated_record_marker: c_void,
    // /*Ignored*/field queue has incomplete type
}

impl ::std::fmt::Debug for GstVulkanQueue {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanQueue @ {self:p}"))
            .field("parent", &self.parent)
            .field("device", &self.device)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanSwapper {
    pub parent: gst::GstObject,
    pub device: *mut GstVulkanDevice,
    pub window: *mut GstVulkanWindow,
    pub queue: *mut GstVulkanQueue,
    pub cmd_pool: *mut GstVulkanCommandPool,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanSwapper {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanSwapper @ {self:p}"))
            .field("parent", &self.parent)
            .field("device", &self.device)
            .field("window", &self.window)
            .field("queue", &self.queue)
            .field("cmd_pool", &self.cmd_pool)
            .finish()
    }
}

#[repr(C)]
#[allow(dead_code)]
pub struct GstVulkanTrashFenceList {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for GstVulkanTrashFenceList {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanTrashFenceList @ {self:p}"))
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanTrashList {
    pub parent: GstVulkanHandlePool,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanTrashList {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanTrashList @ {self:p}"))
            .field("parent", &self.parent)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanVideoFilter {
    pub parent: gst_base::GstBaseTransform,
    pub instance: *mut GstVulkanInstance,
    pub device: *mut GstVulkanDevice,
    pub queue: *mut GstVulkanQueue,
    pub in_caps: *mut gst::GstCaps,
    pub in_info: gst_video::GstVideoInfo,
    pub out_caps: *mut gst::GstCaps,
    pub out_info: gst_video::GstVideoInfo,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanVideoFilter {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanVideoFilter @ {self:p}"))
            .field("parent", &self.parent)
            .field("instance", &self.instance)
            .field("device", &self.device)
            .field("queue", &self.queue)
            .field("in_caps", &self.in_caps)
            .field("in_info", &self.in_info)
            .field("out_caps", &self.out_caps)
            .field("out_info", &self.out_info)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVulkanWindow {
    pub parent: gst::GstObject,
    pub display: *mut GstVulkanDisplay,
    pub _reserved: [gpointer; 4],
}

impl ::std::fmt::Debug for GstVulkanWindow {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GstVulkanWindow @ {self:p}"))
            .finish()
    }
}

unsafe extern "C" {

    //=========================================================================
    // GstVulkanBarrierFlags
    //=========================================================================
    pub fn gst_vulkan_barrier_flags_get_type() -> GType;

    //=========================================================================
    // GstVulkanBarrierType
    //=========================================================================
    pub fn gst_vulkan_barrier_type_get_type() -> GType;

    //=========================================================================
    // GstVulkanError
    //=========================================================================
    pub fn gst_vulkan_error_get_type() -> GType;
    pub fn gst_vulkan_error_quark() -> glib::GQuark;
    pub fn gst_vulkan_error_to_g_error(
        result: vulkan::VkResult,
        error: *mut *mut glib::GError,
        format: *const c_char,
        ...
    ) -> vulkan::VkResult;

    //=========================================================================
    // GstVulkanFormatScaling
    //=========================================================================
    pub fn gst_vulkan_format_scaling_get_type() -> GType;

    //=========================================================================
    // GstVulkanHandleType
    //=========================================================================
    pub fn gst_vulkan_handle_type_get_type() -> GType;

    //=========================================================================
    // GstVulkanWindowError
    //=========================================================================
    pub fn gst_vulkan_window_error_get_type() -> GType;
    pub fn gst_vulkan_window_error_quark() -> glib::GQuark;

    //=========================================================================
    // GstVulkanDisplayType
    //=========================================================================
    pub fn gst_vulkan_display_type_get_type() -> GType;
    pub fn gst_vulkan_display_type_to_extension_string(
        type_: GstVulkanDisplayType,
    ) -> *const c_char;

    //=========================================================================
    // GstVulkanFormatFlags
    //=========================================================================
    pub fn gst_vulkan_format_flags_get_type() -> GType;

    //=========================================================================
    // GstVulkanBufferMemory
    //=========================================================================
    pub fn gst_vulkan_buffer_memory_alloc(
        device: *mut GstVulkanDevice,
        size: size_t,
        usage: vulkan::VkBufferUsageFlags,
        mem_prop_flags: vulkan::VkMemoryPropertyFlags,
    ) -> *mut gst::GstMemory;
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_buffer_memory_alloc_with_buffer_info(
        device: *mut GstVulkanDevice,
        buffer_info: *const vulkan::VkBufferCreateInfo,
        mem_prop_flags: vulkan::VkMemoryPropertyFlags,
    ) -> *mut gst::GstMemory;
    pub fn gst_vulkan_buffer_memory_init_once();
    pub fn gst_vulkan_buffer_memory_wrapped(
        device: *mut GstVulkanDevice,
        buffer: vulkan::VkBuffer,
        usage: vulkan::VkBufferUsageFlags,
        user_data: gpointer,
        notify: glib::GDestroyNotify,
    ) -> *mut gst::GstMemory;

    //=========================================================================
    // GstVulkanCommandBuffer
    //=========================================================================
    pub fn gst_vulkan_command_buffer_get_type() -> GType;
    pub fn gst_vulkan_command_buffer_new_wrapped(
        cmd: vulkan::VkCommandBuffer,
        level: vulkan::VkCommandBufferLevel,
    ) -> *mut GstVulkanCommandBuffer;
    pub fn gst_vulkan_command_buffer_ref(
        cmd: *mut GstVulkanCommandBuffer,
    ) -> *mut GstVulkanCommandBuffer;

    //=========================================================================
    // GstVulkanDescriptorSet
    //=========================================================================
    pub fn gst_vulkan_descriptor_set_get_type() -> GType;
    pub fn gst_vulkan_descriptor_set_new_wrapped(
        pool: *mut GstVulkanDescriptorPool,
        set: vulkan::VkDescriptorSet,
        n_layouts: c_uint,
        layouts: *mut *mut GstVulkanHandle,
    ) -> *mut GstVulkanDescriptorSet;
    pub fn gst_vulkan_descriptor_set_ref(
        set: *mut GstVulkanDescriptorSet,
    ) -> *mut GstVulkanDescriptorSet;

    //=========================================================================
    // GstVulkanFence
    //=========================================================================
    pub fn gst_vulkan_fence_get_type() -> GType;
    pub fn gst_vulkan_fence_new(
        device: *mut GstVulkanDevice,
        error: *mut *mut glib::GError,
    ) -> *mut GstVulkanFence;
    pub fn gst_vulkan_fence_new_always_signalled(
        device: *mut GstVulkanDevice,
    ) -> *mut GstVulkanFence;
    pub fn gst_vulkan_fence_is_signaled(fence: *mut GstVulkanFence) -> gboolean;
    pub fn gst_vulkan_fence_reset(fence: *mut GstVulkanFence);

    //=========================================================================
    // GstVulkanHandle
    //=========================================================================
    pub fn gst_vulkan_handle_get_type() -> GType;
    pub fn gst_vulkan_handle_new_wrapped(
        device: *mut GstVulkanDevice,
        type_: GstVulkanHandleType,
        handle: GstVulkanHandleTypedef,
        notify: GstVulkanHandleDestroyNotify,
        user_data: gpointer,
    ) -> *mut GstVulkanHandle;
    pub fn gst_vulkan_handle_free_descriptor_set_layout(
        handle: *mut GstVulkanHandle,
        user_data: gpointer,
    );
    pub fn gst_vulkan_handle_free_framebuffer(handle: *mut GstVulkanHandle, user_data: gpointer);
    pub fn gst_vulkan_handle_free_pipeline(handle: *mut GstVulkanHandle, user_data: gpointer);
    pub fn gst_vulkan_handle_free_pipeline_layout(
        handle: *mut GstVulkanHandle,
        user_data: gpointer,
    );
    pub fn gst_vulkan_handle_free_render_pass(handle: *mut GstVulkanHandle, user_data: gpointer);
    pub fn gst_vulkan_handle_free_sampler(handle: *mut GstVulkanHandle, user_data: gpointer);
    pub fn gst_vulkan_handle_free_shader(handle: *mut GstVulkanHandle, user_data: gpointer);
    pub fn gst_vulkan_handle_ref(handle: *mut GstVulkanHandle) -> *mut GstVulkanHandle;
    pub fn gst_vulkan_handle_context_query(
        element: *mut gst::GstElement,
        query: *mut gst::GstQuery,
        display: *mut GstVulkanDisplay,
        instance: *mut GstVulkanInstance,
        device: *mut GstVulkanDevice,
    ) -> gboolean;
    pub fn gst_vulkan_handle_set_context(
        element: *mut gst::GstElement,
        context: *mut gst::GstContext,
        display: *mut *mut GstVulkanDisplay,
        instance: *mut *mut GstVulkanInstance,
    ) -> gboolean;

    //=========================================================================
    // GstVulkanImageMemory
    //=========================================================================
    pub fn gst_vulkan_image_memory_add_view(
        image: *mut GstVulkanImageMemory,
        view: *mut GstVulkanImageView,
    );
    pub fn gst_vulkan_image_memory_find_view(
        image: *mut GstVulkanImageMemory,
        find_func: GstVulkanImageMemoryFindViewFunc,
        user_data: gpointer,
    ) -> *mut GstVulkanImageView;
    pub fn gst_vulkan_image_memory_get_height(image: *mut GstVulkanImageMemory) -> u32;
    pub fn gst_vulkan_image_memory_get_width(image: *mut GstVulkanImageMemory) -> u32;
    pub fn gst_vulkan_image_memory_init(
        mem: *mut GstVulkanImageMemory,
        allocator: *mut gst::GstAllocator,
        parent: *mut gst::GstMemory,
        device: *mut GstVulkanDevice,
        format: vulkan::VkFormat,
        usage: vulkan::VkImageUsageFlags,
        initial_layout: vulkan::VkImageLayout,
        params: *mut gst::GstAllocationParams,
        size: size_t,
        user_data: gpointer,
        notify: glib::GDestroyNotify,
    ) -> gboolean;
    pub fn gst_vulkan_image_memory_alloc(
        device: *mut GstVulkanDevice,
        format: vulkan::VkFormat,
        width: size_t,
        height: size_t,
        tiling: vulkan::VkImageTiling,
        usage: vulkan::VkImageUsageFlags,
        mem_prop_flags: vulkan::VkMemoryPropertyFlags,
    ) -> *mut gst::GstMemory;
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_image_memory_alloc_with_image_info(
        device: *mut GstVulkanDevice,
        image_info: *mut vulkan::VkImageCreateInfo,
        mem_prop_flags: vulkan::VkMemoryPropertyFlags,
    ) -> *mut gst::GstMemory;
    pub fn gst_vulkan_image_memory_init_once();
    pub fn gst_vulkan_image_memory_wrapped(
        device: *mut GstVulkanDevice,
        image: vulkan::VkImage,
        format: vulkan::VkFormat,
        width: size_t,
        height: size_t,
        tiling: vulkan::VkImageTiling,
        usage: vulkan::VkImageUsageFlags,
        user_data: gpointer,
        notify: glib::GDestroyNotify,
    ) -> *mut gst::GstMemory;

    //=========================================================================
    // GstVulkanImageView
    //=========================================================================
    pub fn gst_vulkan_image_view_get_type() -> GType;
    pub fn gst_vulkan_image_view_new(
        image: *mut GstVulkanImageMemory,
        create_info: *const vulkan::VkImageViewCreateInfo,
    ) -> *mut GstVulkanImageView;
    pub fn gst_vulkan_image_view_ref(trash: *mut GstVulkanImageView) -> *mut GstVulkanImageView;

    //=========================================================================
    // GstVulkanMemory
    //=========================================================================
    pub fn gst_vulkan_memory_alloc(
        device: *mut GstVulkanDevice,
        memory_type_index: u32,
        params: *mut gst::GstAllocationParams,
        size: size_t,
        mem_prop_flags: vulkan::VkMemoryPropertyFlags,
    ) -> *mut gst::GstMemory;
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_memory_find_memory_type_index_with_requirements(
        device: *mut GstVulkanDevice,
        req: *const vulkan::VkMemoryRequirements,
        properties: vulkan::VkMemoryPropertyFlags,
        type_index: *mut u32,
    ) -> gboolean;
    pub fn gst_vulkan_memory_heap_flags_to_string(
        prop_bits: vulkan::VkMemoryHeapFlags,
    ) -> *mut c_char;
    pub fn gst_vulkan_memory_init_once();
    pub fn gst_vulkan_memory_property_flags_to_string(
        prop_bits: vulkan::VkMemoryPropertyFlags,
    ) -> *mut c_char;

    //=========================================================================
    // GstVulkanTrash
    //=========================================================================
    pub fn gst_vulkan_trash_get_type() -> GType;
    pub fn gst_vulkan_trash_new(
        fence: *mut GstVulkanFence,
        notify: GstVulkanTrashNotify,
        user_data: gpointer,
    ) -> *mut GstVulkanTrash;
    pub fn gst_vulkan_trash_new_free_semaphore(
        fence: *mut GstVulkanFence,
        semaphore: vulkan::VkSemaphore,
    ) -> *mut GstVulkanTrash;
    pub fn gst_vulkan_trash_ref(trash: *mut GstVulkanTrash) -> *mut GstVulkanTrash;
    pub fn gst_vulkan_trash_mini_object_unref(device: *mut GstVulkanDevice, user_data: gpointer);
    pub fn gst_vulkan_trash_object_unref(device: *mut GstVulkanDevice, user_data: gpointer);

    //=========================================================================
    // GstVulkanBufferMemoryAllocator
    //=========================================================================
    pub fn gst_vulkan_buffer_memory_allocator_get_type() -> GType;

    //=========================================================================
    // GstVulkanBufferPool
    //=========================================================================
    pub fn gst_vulkan_buffer_pool_get_type() -> GType;
    pub fn gst_vulkan_buffer_pool_new(device: *mut GstVulkanDevice) -> *mut gst::GstBufferPool;
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_buffer_pool_config_set_allocation_params(
        config: *mut gst::GstStructure,
        usage: vulkan::VkBufferUsageFlags,
        mem_properties: vulkan::VkMemoryPropertyFlags,
    );

    //=========================================================================
    // GstVulkanCommandPool
    //=========================================================================
    pub fn gst_vulkan_command_pool_get_type() -> GType;
    pub fn gst_vulkan_command_pool_create(
        pool: *mut GstVulkanCommandPool,
        error: *mut *mut glib::GError,
    ) -> *mut GstVulkanCommandBuffer;
    pub fn gst_vulkan_command_pool_get_queue(
        pool: *mut GstVulkanCommandPool,
    ) -> *mut GstVulkanQueue;
    pub fn gst_vulkan_command_pool_lock(pool: *mut GstVulkanCommandPool);
    pub fn gst_vulkan_command_pool_unlock(pool: *mut GstVulkanCommandPool);

    //=========================================================================
    // GstVulkanDescriptorCache
    //=========================================================================
    pub fn gst_vulkan_descriptor_cache_get_type() -> GType;
    pub fn gst_vulkan_descriptor_cache_new(
        pool: *mut GstVulkanDescriptorPool,
        n_layouts: c_uint,
        layouts: *mut *mut GstVulkanHandle,
    ) -> *mut GstVulkanDescriptorCache;
    pub fn gst_vulkan_descriptor_cache_acquire(
        cache: *mut GstVulkanDescriptorCache,
        error: *mut *mut glib::GError,
    ) -> *mut GstVulkanDescriptorSet;

    //=========================================================================
    // GstVulkanDescriptorPool
    //=========================================================================
    pub fn gst_vulkan_descriptor_pool_get_type() -> GType;
    pub fn gst_vulkan_descriptor_pool_new_wrapped(
        device: *mut GstVulkanDevice,
        pool: vulkan::VkDescriptorPool,
        max_sets: size_t,
    ) -> *mut GstVulkanDescriptorPool;
    pub fn gst_vulkan_descriptor_pool_create(
        pool: *mut GstVulkanDescriptorPool,
        n_layouts: c_uint,
        layouts: *mut *mut GstVulkanHandle,
        error: *mut *mut glib::GError,
    ) -> *mut GstVulkanDescriptorSet;
    pub fn gst_vulkan_descriptor_pool_get_device(
        pool: *mut GstVulkanDescriptorPool,
    ) -> *mut GstVulkanDevice;
    pub fn gst_vulkan_descriptor_pool_get_max_sets(pool: *mut GstVulkanDescriptorPool) -> size_t;

    //=========================================================================
    // GstVulkanDevice
    //=========================================================================
    pub fn gst_vulkan_device_get_type() -> GType;
    pub fn gst_vulkan_device_new(
        physical_device: *mut GstVulkanPhysicalDevice,
    ) -> *mut GstVulkanDevice;
    pub fn gst_vulkan_device_new_with_index(
        instance: *mut GstVulkanInstance,
        device_index: c_uint,
    ) -> *mut GstVulkanDevice;
    pub fn gst_vulkan_device_handle_context_query(
        element: *mut gst::GstElement,
        query: *mut gst::GstQuery,
        device: *mut GstVulkanDevice,
    ) -> gboolean;
    pub fn gst_vulkan_device_run_context_query(
        element: *mut gst::GstElement,
        device: *mut *mut GstVulkanDevice,
    ) -> gboolean;
    pub fn gst_vulkan_device_create_fence(
        device: *mut GstVulkanDevice,
        error: *mut *mut glib::GError,
    ) -> *mut GstVulkanFence;
    pub fn gst_vulkan_device_disable_extension(
        device: *mut GstVulkanDevice,
        name: *const c_char,
    ) -> gboolean;
    pub fn gst_vulkan_device_enable_extension(
        device: *mut GstVulkanDevice,
        name: *const c_char,
    ) -> gboolean;
    pub fn gst_vulkan_device_enable_layer(
        device: *mut GstVulkanDevice,
        name: *const c_char,
    ) -> gboolean;
    pub fn gst_vulkan_device_foreach_queue(
        device: *mut GstVulkanDevice,
        func: GstVulkanDeviceForEachQueueFunc,
        user_data: gpointer,
    );
    pub fn gst_vulkan_device_get_instance(device: *mut GstVulkanDevice) -> *mut GstVulkanInstance;
    pub fn gst_vulkan_device_get_physical_device(
        device: *mut GstVulkanDevice,
    ) -> vulkan::VkPhysicalDevice;
    pub fn gst_vulkan_device_get_proc_address(
        device: *mut GstVulkanDevice,
        name: *const c_char,
    ) -> gpointer;
    pub fn gst_vulkan_device_get_queue(
        device: *mut GstVulkanDevice,
        queue_family: u32,
        queue_i: u32,
    ) -> *mut GstVulkanQueue;
    pub fn gst_vulkan_device_is_extension_enabled(
        device: *mut GstVulkanDevice,
        name: *const c_char,
    ) -> gboolean;
    pub fn gst_vulkan_device_is_layer_enabled(
        device: *mut GstVulkanDevice,
        name: *const c_char,
    ) -> gboolean;
    pub fn gst_vulkan_device_open(
        device: *mut GstVulkanDevice,
        error: *mut *mut glib::GError,
    ) -> gboolean;
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_device_queue_family_indices(
        device: *mut GstVulkanDevice,
    ) -> *mut glib::GArray;
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_device_select_queue(
        device: *mut GstVulkanDevice,
        expected_flags: vulkan::VkQueueFlagBits,
    ) -> *mut GstVulkanQueue;

    //=========================================================================
    // GstVulkanDisplay
    //=========================================================================
    pub fn gst_vulkan_display_get_type() -> GType;
    pub fn gst_vulkan_display_new(instance: *mut GstVulkanInstance) -> *mut GstVulkanDisplay;
    pub fn gst_vulkan_display_new_with_type(
        instance: *mut GstVulkanInstance,
        type_: GstVulkanDisplayType,
    ) -> *mut GstVulkanDisplay;
    pub fn gst_vulkan_display_choose_type(instance: *mut GstVulkanInstance)
    -> GstVulkanDisplayType;
    pub fn gst_vulkan_display_handle_context_query(
        element: *mut gst::GstElement,
        query: *mut gst::GstQuery,
        display: *mut GstVulkanDisplay,
    ) -> gboolean;
    pub fn gst_vulkan_display_run_context_query(
        element: *mut gst::GstElement,
        display: *mut *mut GstVulkanDisplay,
    ) -> gboolean;
    pub fn gst_vulkan_display_create_window(display: *mut GstVulkanDisplay)
    -> *mut GstVulkanWindow;
    pub fn gst_vulkan_display_find_window(
        display: *mut GstVulkanDisplay,
        data: gpointer,
        compare_func: glib::GCompareFunc,
    ) -> *mut GstVulkanWindow;
    pub fn gst_vulkan_display_get_handle(display: *mut GstVulkanDisplay) -> gpointer;
    pub fn gst_vulkan_display_get_handle_type(
        display: *mut GstVulkanDisplay,
    ) -> GstVulkanDisplayType;
    pub fn gst_vulkan_display_remove_window(
        display: *mut GstVulkanDisplay,
        window: *mut GstVulkanWindow,
    ) -> gboolean;

    //=========================================================================
    // GstVulkanFenceCache
    //=========================================================================
    pub fn gst_vulkan_fence_cache_get_type() -> GType;
    pub fn gst_vulkan_fence_cache_new(device: *mut GstVulkanDevice) -> *mut GstVulkanFenceCache;

    //=========================================================================
    // GstVulkanFullScreenQuad
    //=========================================================================
    pub fn gst_vulkan_full_screen_quad_get_type() -> GType;
    pub fn gst_vulkan_full_screen_quad_new(
        queue: *mut GstVulkanQueue,
    ) -> *mut GstVulkanFullScreenQuad;
    pub fn gst_vulkan_full_screen_quad_draw(
        self_: *mut GstVulkanFullScreenQuad,
        error: *mut *mut glib::GError,
    ) -> gboolean;
    #[cfg(feature = "v1_22")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
    pub fn gst_vulkan_full_screen_quad_enable_blend(
        self_: *mut GstVulkanFullScreenQuad,
        enable_blend: gboolean,
    );
    #[cfg(feature = "v1_22")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
    pub fn gst_vulkan_full_screen_quad_enable_clear(
        self_: *mut GstVulkanFullScreenQuad,
        enable_clear: gboolean,
    );
    pub fn gst_vulkan_full_screen_quad_fill_command_buffer(
        self_: *mut GstVulkanFullScreenQuad,
        cmd: *mut GstVulkanCommandBuffer,
        fence: *mut GstVulkanFence,
        error: *mut *mut glib::GError,
    ) -> gboolean;
    pub fn gst_vulkan_full_screen_quad_get_last_fence(
        self_: *mut GstVulkanFullScreenQuad,
    ) -> *mut GstVulkanFence;
    #[cfg(feature = "v1_26")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
    pub fn gst_vulkan_full_screen_quad_get_queue(
        self_: *mut GstVulkanFullScreenQuad,
    ) -> *mut GstVulkanQueue;
    pub fn gst_vulkan_full_screen_quad_prepare_draw(
        self_: *mut GstVulkanFullScreenQuad,
        fence: *mut GstVulkanFence,
        error: *mut *mut glib::GError,
    ) -> gboolean;
    #[cfg(feature = "v1_22")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
    pub fn gst_vulkan_full_screen_quad_set_blend_factors(
        self_: *mut GstVulkanFullScreenQuad,
        src_blend_factor: vulkan::VkBlendFactor,
        dst_blend_factor: vulkan::VkBlendFactor,
        src_alpha_blend_factor: vulkan::VkBlendFactor,
        dst_alpha_blend_factor: vulkan::VkBlendFactor,
    );
    #[cfg(feature = "v1_22")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
    pub fn gst_vulkan_full_screen_quad_set_blend_operation(
        self_: *mut GstVulkanFullScreenQuad,
        colour_blend_op: vulkan::VkBlendOp,
        alpha_blend_op: vulkan::VkBlendOp,
    );
    pub fn gst_vulkan_full_screen_quad_set_index_buffer(
        self_: *mut GstVulkanFullScreenQuad,
        indices: *mut gst::GstMemory,
        n_indices: size_t,
        error: *mut *mut glib::GError,
    ) -> gboolean;
    pub fn gst_vulkan_full_screen_quad_set_info(
        self_: *mut GstVulkanFullScreenQuad,
        in_info: *const gst_video::GstVideoInfo,
        out_info: *const gst_video::GstVideoInfo,
    ) -> gboolean;
    pub fn gst_vulkan_full_screen_quad_set_input_buffer(
        self_: *mut GstVulkanFullScreenQuad,
        buffer: *mut gst::GstBuffer,
        error: *mut *mut glib::GError,
    ) -> gboolean;
    pub fn gst_vulkan_full_screen_quad_set_output_buffer(
        self_: *mut GstVulkanFullScreenQuad,
        buffer: *mut gst::GstBuffer,
        error: *mut *mut glib::GError,
    ) -> gboolean;
    pub fn gst_vulkan_full_screen_quad_set_shaders(
        self_: *mut GstVulkanFullScreenQuad,
        vert: *mut GstVulkanHandle,
        frag: *mut GstVulkanHandle,
    ) -> gboolean;
    pub fn gst_vulkan_full_screen_quad_set_uniform_buffer(
        self_: *mut GstVulkanFullScreenQuad,
        uniforms: *mut gst::GstMemory,
        error: *mut *mut glib::GError,
    ) -> gboolean;
    pub fn gst_vulkan_full_screen_quad_set_vertex_buffer(
        self_: *mut GstVulkanFullScreenQuad,
        vertices: *mut gst::GstMemory,
        error: *mut *mut glib::GError,
    ) -> gboolean;
    pub fn gst_vulkan_full_screen_quad_submit(
        self_: *mut GstVulkanFullScreenQuad,
        cmd: *mut GstVulkanCommandBuffer,
        fence: *mut GstVulkanFence,
        error: *mut *mut glib::GError,
    ) -> gboolean;

    //=========================================================================
    // GstVulkanHandlePool
    //=========================================================================
    pub fn gst_vulkan_handle_pool_get_type() -> GType;
    pub fn gst_vulkan_handle_pool_acquire(
        pool: *mut GstVulkanHandlePool,
        error: *mut *mut glib::GError,
    ) -> gpointer;
    pub fn gst_vulkan_handle_pool_alloc(
        pool: *mut GstVulkanHandlePool,
        error: *mut *mut glib::GError,
    ) -> gpointer;
    pub fn gst_vulkan_handle_pool_release(pool: *mut GstVulkanHandlePool, handle: gpointer);

    //=========================================================================
    // GstVulkanImageBufferPool
    //=========================================================================
    pub fn gst_vulkan_image_buffer_pool_get_type() -> GType;
    pub fn gst_vulkan_image_buffer_pool_new(
        device: *mut GstVulkanDevice,
    ) -> *mut gst::GstBufferPool;
    #[cfg(feature = "v1_26")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
    pub fn gst_vulkan_image_buffer_pool_config_get_allocation_params(
        config: *mut gst::GstStructure,
        usage: *mut vulkan::VkImageUsageFlags,
        mem_props: *mut vulkan::VkMemoryPropertyFlags,
        initial_layout: *mut vulkan::VkImageLayout,
        initial_access: *mut u64,
    );
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_image_buffer_pool_config_set_allocation_params(
        config: *mut gst::GstStructure,
        usage: vulkan::VkImageUsageFlags,
        mem_properties: vulkan::VkMemoryPropertyFlags,
        initial_layout: vulkan::VkImageLayout,
        initial_access: u64,
    );
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_image_buffer_pool_config_set_decode_caps(
        config: *mut gst::GstStructure,
        caps: *mut gst::GstCaps,
    );
    #[cfg(feature = "v1_26")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
    pub fn gst_vulkan_image_buffer_pool_config_set_encode_caps(
        config: *mut gst::GstStructure,
        caps: *mut gst::GstCaps,
    );

    //=========================================================================
    // GstVulkanImageMemoryAllocator
    //=========================================================================
    pub fn gst_vulkan_image_memory_allocator_get_type() -> GType;

    //=========================================================================
    // GstVulkanInstance
    //=========================================================================
    pub fn gst_vulkan_instance_get_type() -> GType;
    pub fn gst_vulkan_instance_new() -> *mut GstVulkanInstance;
    pub fn gst_vulkan_instance_handle_context_query(
        element: *mut gst::GstElement,
        query: *mut gst::GstQuery,
        instance: *mut GstVulkanInstance,
    ) -> gboolean;
    pub fn gst_vulkan_instance_run_context_query(
        element: *mut gst::GstElement,
        instance: *mut *mut GstVulkanInstance,
    ) -> gboolean;
    #[cfg(feature = "v1_26")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
    pub fn gst_vulkan_instance_check_api_version(
        instance: *mut GstVulkanInstance,
        major: c_uint,
        minor: c_uint,
        patch: c_uint,
    ) -> gboolean;
    pub fn gst_vulkan_instance_check_version(
        instance: *mut GstVulkanInstance,
        major: c_uint,
        minor: c_uint,
        patch: c_uint,
    ) -> gboolean;
    pub fn gst_vulkan_instance_create_device(
        instance: *mut GstVulkanInstance,
        error: *mut *mut glib::GError,
    ) -> *mut GstVulkanDevice;
    #[cfg(feature = "v1_26")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
    pub fn gst_vulkan_instance_create_device_with_index(
        instance: *mut GstVulkanInstance,
        device_index: c_uint,
        error: *mut *mut glib::GError,
    ) -> *mut GstVulkanDevice;
    pub fn gst_vulkan_instance_disable_extension(
        instance: *mut GstVulkanInstance,
        name: *const c_char,
    ) -> gboolean;
    pub fn gst_vulkan_instance_enable_extension(
        instance: *mut GstVulkanInstance,
        name: *const c_char,
    ) -> gboolean;
    pub fn gst_vulkan_instance_enable_layer(
        instance: *mut GstVulkanInstance,
        name: *const c_char,
    ) -> gboolean;
    pub fn gst_vulkan_instance_fill_info(
        instance: *mut GstVulkanInstance,
        error: *mut *mut glib::GError,
    ) -> gboolean;
    #[cfg(feature = "v1_26")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
    pub fn gst_vulkan_instance_get_api_version(
        instance: *mut GstVulkanInstance,
        major: *mut c_uint,
        minor: *mut c_uint,
        patch: *mut c_uint,
    );
    pub fn gst_vulkan_instance_get_extension_info(
        instance: *mut GstVulkanInstance,
        name: *const c_char,
        spec_version: *mut u32,
    ) -> gboolean;
    pub fn gst_vulkan_instance_get_layer_info(
        instance: *mut GstVulkanInstance,
        name: *const c_char,
        description: *mut *mut c_char,
        spec_version: *mut u32,
        implementation_version: *mut u32,
    ) -> gboolean;
    pub fn gst_vulkan_instance_get_proc_address(
        instance: *mut GstVulkanInstance,
        name: *const c_char,
    ) -> gpointer;
    pub fn gst_vulkan_instance_get_version(
        instance: *mut GstVulkanInstance,
        major: *mut c_uint,
        minor: *mut c_uint,
        patch: *mut c_uint,
    );
    pub fn gst_vulkan_instance_is_extension_enabled(
        instance: *mut GstVulkanInstance,
        name: *const c_char,
    ) -> gboolean;
    pub fn gst_vulkan_instance_is_layer_enabled(
        instance: *mut GstVulkanInstance,
        name: *const c_char,
    ) -> gboolean;
    pub fn gst_vulkan_instance_open(
        instance: *mut GstVulkanInstance,
        error: *mut *mut glib::GError,
    ) -> gboolean;

    //=========================================================================
    // GstVulkanMemoryAllocator
    //=========================================================================
    pub fn gst_vulkan_memory_allocator_get_type() -> GType;

    //=========================================================================
    // GstVulkanOperation
    //=========================================================================
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_operation_get_type() -> GType;
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_operation_new(cmd_pool: *mut GstVulkanCommandPool)
    -> *mut GstVulkanOperation;
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_operation_add_dependency_frame(
        self_: *mut GstVulkanOperation,
        frame: *mut gst::GstBuffer,
        wait_stage: u64,
        signal_stage: u64,
    ) -> gboolean;
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_operation_add_extra_image_barriers(
        self_: *mut GstVulkanOperation,
        extra_barriers: *mut glib::GArray,
    );
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_operation_add_frame_barrier(
        self_: *mut GstVulkanOperation,
        frame: *mut gst::GstBuffer,
        src_stage: u64,
        dst_stage: u64,
        new_access: u64,
        new_layout: vulkan::VkImageLayout,
        new_queue: *mut GstVulkanQueue,
    ) -> gboolean;
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_operation_begin(
        self_: *mut GstVulkanOperation,
        error: *mut *mut glib::GError,
    ) -> gboolean;
    #[cfg(feature = "v1_26")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
    pub fn gst_vulkan_operation_begin_query(
        self_: *mut GstVulkanOperation,
        base: *mut vulkan::VkBaseInStructure,
        id: u32,
    ) -> gboolean;
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_operation_discard_dependencies(self_: *mut GstVulkanOperation);
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_operation_enable_query(
        self_: *mut GstVulkanOperation,
        query_type: u32,
        n_queries: c_uint,
        pnext: gpointer,
        error: *mut *mut glib::GError,
    ) -> gboolean;
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_operation_end(
        self_: *mut GstVulkanOperation,
        error: *mut *mut glib::GError,
    ) -> gboolean;
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_operation_end_query(self_: *mut GstVulkanOperation, id: u32) -> gboolean;
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_operation_get_query(
        self_: *mut GstVulkanOperation,
        data: *mut gpointer,
        error: *mut *mut glib::GError,
    ) -> gboolean;
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_operation_new_extra_image_barriers(
        self_: *mut GstVulkanOperation,
    ) -> *mut glib::GArray;
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_operation_pipeline_barrier2(
        self_: *mut GstVulkanOperation,
        dependency_info: gpointer,
    ) -> gboolean;
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_operation_reset(self_: *mut GstVulkanOperation);
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_operation_retrieve_image_barriers(
        self_: *mut GstVulkanOperation,
    ) -> *mut glib::GArray;
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_operation_update_frame(
        self_: *mut GstVulkanOperation,
        frame: *mut gst::GstBuffer,
        dst_stage: u64,
        new_access: u64,
        new_layout: vulkan::VkImageLayout,
        new_queue: *mut GstVulkanQueue,
    );
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_operation_use_sync2(self_: *mut GstVulkanOperation) -> gboolean;
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_operation_wait(self_: *mut GstVulkanOperation) -> gboolean;

    //=========================================================================
    // GstVulkanPhysicalDevice
    //=========================================================================
    pub fn gst_vulkan_physical_device_get_type() -> GType;
    pub fn gst_vulkan_physical_device_new(
        instance: *mut GstVulkanInstance,
        device_index: c_uint,
    ) -> *mut GstVulkanPhysicalDevice;
    pub fn gst_vulkan_physical_device_type_to_string(
        type_: vulkan::VkPhysicalDeviceType,
    ) -> *const c_char;
    #[cfg(feature = "v1_26")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
    pub fn gst_vulkan_physical_device_check_api_version(
        device: *mut GstVulkanPhysicalDevice,
        major: c_uint,
        minor: c_uint,
        patch: c_uint,
    ) -> gboolean;
    #[cfg(feature = "v1_26")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
    pub fn gst_vulkan_physical_device_get_api_version(
        device: *mut GstVulkanPhysicalDevice,
        major: *mut c_uint,
        minor: *mut c_uint,
        patch: *mut c_uint,
    );
    pub fn gst_vulkan_physical_device_get_extension_info(
        device: *mut GstVulkanPhysicalDevice,
        name: *const c_char,
        spec_version: *mut u32,
    ) -> gboolean;
    #[cfg(feature = "v1_30")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_30")))]
    pub fn gst_vulkan_physical_device_get_features(
        device: *mut GstVulkanPhysicalDevice,
    ) -> *const vulkan::VkPhysicalDeviceFeatures2;
    pub fn gst_vulkan_physical_device_get_handle(
        device: *mut GstVulkanPhysicalDevice,
    ) -> vulkan::VkPhysicalDevice;
    pub fn gst_vulkan_physical_device_get_instance(
        device: *mut GstVulkanPhysicalDevice,
    ) -> *mut GstVulkanInstance;
    pub fn gst_vulkan_physical_device_get_layer_info(
        device: *mut GstVulkanPhysicalDevice,
        name: *const c_char,
        description: *mut *mut c_char,
        spec_version: *mut u32,
        implementation_version: *mut u32,
    ) -> gboolean;
    #[cfg(feature = "v1_30")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_30")))]
    pub fn gst_vulkan_physical_device_get_properties(
        device: *mut GstVulkanPhysicalDevice,
    ) -> *const vulkan::VkPhysicalDeviceProperties2;

    //=========================================================================
    // GstVulkanQueue
    //=========================================================================
    pub fn gst_vulkan_queue_get_type() -> GType;
    pub fn gst_vulkan_queue_flags_to_string(queue_bits: vulkan::VkQueueFlags) -> *mut c_char;
    pub fn gst_vulkan_queue_handle_context_query(
        element: *mut gst::GstElement,
        query: *mut gst::GstQuery,
        queue: *mut GstVulkanQueue,
    ) -> gboolean;
    pub fn gst_vulkan_queue_run_context_query(
        element: *mut gst::GstElement,
        queue: *mut *mut GstVulkanQueue,
    ) -> gboolean;
    pub fn gst_vulkan_queue_create_command_pool(
        queue: *mut GstVulkanQueue,
        error: *mut *mut glib::GError,
    ) -> *mut GstVulkanCommandPool;
    pub fn gst_vulkan_queue_get_device(queue: *mut GstVulkanQueue) -> *mut GstVulkanDevice;
    pub fn gst_vulkan_queue_submit_lock(queue: *mut GstVulkanQueue);
    pub fn gst_vulkan_queue_submit_unlock(queue: *mut GstVulkanQueue);

    //=========================================================================
    // GstVulkanSwapper
    //=========================================================================
    pub fn gst_vulkan_swapper_get_type() -> GType;
    pub fn gst_vulkan_swapper_new(
        device: *mut GstVulkanDevice,
        window: *mut GstVulkanWindow,
    ) -> *mut GstVulkanSwapper;
    pub fn gst_vulkan_swapper_choose_queue(
        swapper: *mut GstVulkanSwapper,
        available_queue: *mut GstVulkanQueue,
        error: *mut *mut glib::GError,
    ) -> gboolean;
    pub fn gst_vulkan_swapper_get_supported_caps(
        swapper: *mut GstVulkanSwapper,
        error: *mut *mut glib::GError,
    ) -> *mut gst::GstCaps;
    pub fn gst_vulkan_swapper_get_surface_rectangles(
        swapper: *mut GstVulkanSwapper,
        input_image: *mut gst_video::GstVideoRectangle,
        surface_location: *mut gst_video::GstVideoRectangle,
        display_rect: *mut gst_video::GstVideoRectangle,
    );
    pub fn gst_vulkan_swapper_render_buffer(
        swapper: *mut GstVulkanSwapper,
        buffer: *mut gst::GstBuffer,
        error: *mut *mut glib::GError,
    ) -> gboolean;
    pub fn gst_vulkan_swapper_set_caps(
        swapper: *mut GstVulkanSwapper,
        caps: *mut gst::GstCaps,
        error: *mut *mut glib::GError,
    ) -> gboolean;

    //=========================================================================
    // GstVulkanTrashFenceList
    //=========================================================================
    pub fn gst_vulkan_trash_fence_list_get_type() -> GType;
    pub fn gst_vulkan_trash_fence_list_new() -> *mut GstVulkanTrashList;

    //=========================================================================
    // GstVulkanTrashList
    //=========================================================================
    pub fn gst_vulkan_trash_list_get_type() -> GType;
    pub fn gst_vulkan_trash_list_acquire(
        trash_list: *mut GstVulkanTrashList,
        fence: *mut GstVulkanFence,
        notify: GstVulkanTrashNotify,
        user_data: gpointer,
    ) -> *mut GstVulkanTrash;
    pub fn gst_vulkan_trash_list_add(
        trash_list: *mut GstVulkanTrashList,
        trash: *mut GstVulkanTrash,
    ) -> gboolean;
    pub fn gst_vulkan_trash_list_gc(trash_list: *mut GstVulkanTrashList);
    pub fn gst_vulkan_trash_list_wait(
        trash_list: *mut GstVulkanTrashList,
        timeout: u64,
    ) -> gboolean;

    //=========================================================================
    // GstVulkanVideoFilter
    //=========================================================================
    pub fn gst_vulkan_video_filter_get_type() -> GType;
    #[cfg(feature = "v1_26")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
    pub fn gst_vulkan_video_filter_get_device(
        filter: *mut GstVulkanVideoFilter,
    ) -> *mut GstVulkanDevice;
    #[cfg(feature = "v1_26")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
    pub fn gst_vulkan_video_filter_get_instance(
        filter: *mut GstVulkanVideoFilter,
    ) -> *mut GstVulkanInstance;
    #[cfg(feature = "v1_26")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
    pub fn gst_vulkan_video_filter_get_queue(
        filter: *mut GstVulkanVideoFilter,
    ) -> *mut GstVulkanQueue;

    //=========================================================================
    // GstVulkanWindow
    //=========================================================================
    pub fn gst_vulkan_window_get_type() -> GType;
    pub fn gst_vulkan_window_new(display: *mut GstVulkanDisplay) -> *mut GstVulkanWindow;
    pub fn gst_vulkan_window_close(window: *mut GstVulkanWindow);
    pub fn gst_vulkan_window_get_display(window: *mut GstVulkanWindow) -> *mut GstVulkanDisplay;
    pub fn gst_vulkan_window_get_presentation_support(
        window: *mut GstVulkanWindow,
        device: *mut GstVulkanDevice,
        queue_family_idx: u32,
    ) -> gboolean;
    pub fn gst_vulkan_window_get_surface(
        window: *mut GstVulkanWindow,
        error: *mut *mut glib::GError,
    ) -> vulkan::VkSurfaceKHR;
    pub fn gst_vulkan_window_get_surface_dimensions(
        window: *mut GstVulkanWindow,
        width: *mut c_uint,
        height: *mut c_uint,
    );
    pub fn gst_vulkan_window_handle_events(window: *mut GstVulkanWindow, handle_events: gboolean);
    pub fn gst_vulkan_window_open(
        window: *mut GstVulkanWindow,
        error: *mut *mut glib::GError,
    ) -> gboolean;
    pub fn gst_vulkan_window_redraw(window: *mut GstVulkanWindow);
    pub fn gst_vulkan_window_resize(window: *mut GstVulkanWindow, width: c_int, height: c_int);
    pub fn gst_vulkan_window_send_key_event(
        window: *mut GstVulkanWindow,
        event_type: *const c_char,
        key_str: *const c_char,
    );
    pub fn gst_vulkan_window_send_mouse_event(
        window: *mut GstVulkanWindow,
        event_type: *const c_char,
        button: c_int,
        posx: c_double,
        posy: c_double,
    );
    pub fn gst_vulkan_window_set_window_handle(window: *mut GstVulkanWindow, handle: uintptr_t);

    //=========================================================================
    // Other functions
    //=========================================================================
    pub fn gst_context_get_vulkan_device(
        context: *mut gst::GstContext,
        device: *mut *mut GstVulkanDevice,
    ) -> gboolean;
    pub fn gst_context_get_vulkan_display(
        context: *mut gst::GstContext,
        display: *mut *mut GstVulkanDisplay,
    ) -> gboolean;
    pub fn gst_context_get_vulkan_instance(
        context: *mut gst::GstContext,
        instance: *mut *mut GstVulkanInstance,
    ) -> gboolean;
    pub fn gst_context_get_vulkan_queue(
        context: *mut gst::GstContext,
        queue: *mut *mut GstVulkanQueue,
    ) -> gboolean;
    pub fn gst_context_set_vulkan_device(
        context: *mut gst::GstContext,
        device: *mut GstVulkanDevice,
    );
    pub fn gst_context_set_vulkan_display(
        context: *mut gst::GstContext,
        display: *mut GstVulkanDisplay,
    );
    pub fn gst_context_set_vulkan_instance(
        context: *mut gst::GstContext,
        instance: *mut GstVulkanInstance,
    );
    pub fn gst_context_set_vulkan_queue(context: *mut gst::GstContext, queue: *mut GstVulkanQueue);
    pub fn gst_is_vulkan_buffer_memory(mem: *mut gst::GstMemory) -> gboolean;
    pub fn gst_is_vulkan_image_memory(mem: *mut gst::GstMemory) -> gboolean;
    pub fn gst_is_vulkan_memory(mem: *mut gst::GstMemory) -> gboolean;
    pub fn gst_vulkan_create_shader(
        device: *mut GstVulkanDevice,
        code: *const c_char,
        size: size_t,
        error: *mut *mut glib::GError,
    ) -> *mut GstVulkanHandle;
    pub fn gst_vulkan_ensure_element_data(
        element: *mut gst::GstElement,
        display_ptr: *mut *mut GstVulkanDisplay,
        instance_ptr: *mut *mut GstVulkanInstance,
    ) -> gboolean;
    #[cfg(feature = "v1_26")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
    pub fn gst_vulkan_ensure_element_device(
        element: *mut gst::GstElement,
        instance: *mut GstVulkanInstance,
        device_ptr: *mut *mut GstVulkanDevice,
        device_id: c_uint,
    ) -> gboolean;
    pub fn gst_vulkan_format_from_video_info(
        v_info: *mut gst_video::GstVideoInfo,
        plane: c_uint,
    ) -> vulkan::VkFormat;
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_format_from_video_info_2(
        device: *mut GstVulkanDevice,
        info: *mut gst_video::GstVideoInfo,
        tiling: vulkan::VkImageTiling,
        no_multiplane: gboolean,
        requested_usage: vulkan::VkImageUsageFlags,
        fmts: *mut [vulkan::VkFormat; 4],
        n_imgs: *mut c_int,
        usage: *mut vulkan::VkImageUsageFlags,
    ) -> gboolean;
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_format_get_aspect(format: vulkan::VkFormat) -> c_uint;
    pub fn gst_vulkan_format_get_info(format: vulkan::VkFormat) -> *const GstVulkanFormatInfo;
    #[cfg(feature = "v1_26")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
    pub fn gst_vulkan_format_get_map(
        format: gst_video::GstVideoFormat,
    ) -> *const GstVulkanFormatMap;
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_format_to_video_format(
        vk_format: vulkan::VkFormat,
    ) -> gst_video::GstVideoFormat;
    pub fn gst_vulkan_get_or_create_image_view(
        image: *mut GstVulkanImageMemory,
    ) -> *mut GstVulkanImageView;
    #[cfg(feature = "v1_24")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
    pub fn gst_vulkan_get_or_create_image_view_with_info(
        image: *mut GstVulkanImageMemory,
        create_info: *const vulkan::VkImageViewCreateInfo,
    ) -> *mut GstVulkanImageView;
    pub fn gst_vulkan_global_context_query(
        element: *mut gst::GstElement,
        context_type: *const c_char,
    );
    pub fn gst_vulkan_local_context_query(
        element: *mut gst::GstElement,
        context_type: *const c_char,
    ) -> *mut gst::GstQuery;
    #[cfg(feature = "v1_20")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
    pub fn gst_vulkan_present_mode_to_string(
        present_mode: vulkan::VkPresentModeKHR,
    ) -> *const c_char;
    #[cfg(feature = "v1_22")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
    pub fn gst_vulkan_result_to_string(result: vulkan::VkResult) -> *const c_char;
    pub fn gst_vulkan_run_query(
        element: *mut gst::GstElement,
        query: *mut gst::GstQuery,
        direction: gst::GstPadDirection,
    ) -> gboolean;
    pub fn gst_vulkan_sample_count_flags_to_string(
        sample_count_bits: vulkan::VkSampleCountFlags,
    ) -> *mut c_char;

}