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
#![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(feature = "dox", feature(doc_cfg))]
use glib_sys as glib;
use gobject_sys as gobject;
use gstreamer_sys as gst;
#[allow(unused_imports)]
use libc::{
c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void,
intptr_t, size_t, ssize_t, time_t, uintptr_t, FILE,
};
#[allow(unused_imports)]
use glib::{gboolean, gconstpointer, gpointer, GType};
pub type GstAggregatorStartTimeSelection = c_int;
pub const GST_AGGREGATOR_START_TIME_SELECTION_ZERO: GstAggregatorStartTimeSelection = 0;
pub const GST_AGGREGATOR_START_TIME_SELECTION_FIRST: GstAggregatorStartTimeSelection = 1;
pub const GST_AGGREGATOR_START_TIME_SELECTION_SET: GstAggregatorStartTimeSelection = 2;
pub const GST_BASE_PARSE_FLAG_DRAINING: c_int = 2;
pub const GST_BASE_PARSE_FLAG_LOST_SYNC: c_int = 1;
pub const GST_BASE_TRANSFORM_SINK_NAME: *const c_char = b"sink\0" as *const u8 as *const c_char;
pub const GST_BASE_TRANSFORM_SRC_NAME: *const c_char = b"src\0" as *const u8 as *const c_char;
pub type GstBaseParseFrameFlags = c_uint;
pub const GST_BASE_PARSE_FRAME_FLAG_NONE: GstBaseParseFrameFlags = 0;
pub const GST_BASE_PARSE_FRAME_FLAG_NEW_FRAME: GstBaseParseFrameFlags = 1;
pub const GST_BASE_PARSE_FRAME_FLAG_NO_FRAME: GstBaseParseFrameFlags = 2;
pub const GST_BASE_PARSE_FRAME_FLAG_CLIP: GstBaseParseFrameFlags = 4;
pub const GST_BASE_PARSE_FRAME_FLAG_DROP: GstBaseParseFrameFlags = 8;
pub const GST_BASE_PARSE_FRAME_FLAG_QUEUE: GstBaseParseFrameFlags = 16;
pub type GstBaseSrcFlags = c_uint;
pub const GST_BASE_SRC_FLAG_STARTING: GstBaseSrcFlags = 16384;
pub const GST_BASE_SRC_FLAG_STARTED: GstBaseSrcFlags = 32768;
pub const GST_BASE_SRC_FLAG_LAST: GstBaseSrcFlags = 1048576;
pub type GstCollectPadsStateFlags = c_uint;
pub const GST_COLLECT_PADS_STATE_EOS: GstCollectPadsStateFlags = 1;
pub const GST_COLLECT_PADS_STATE_FLUSHING: GstCollectPadsStateFlags = 2;
pub const GST_COLLECT_PADS_STATE_NEW_SEGMENT: GstCollectPadsStateFlags = 4;
pub const GST_COLLECT_PADS_STATE_WAITING: GstCollectPadsStateFlags = 8;
pub const GST_COLLECT_PADS_STATE_LOCKED: GstCollectPadsStateFlags = 16;
#[repr(C)]
#[derive(Copy, Clone)]
pub union GstCollectData_ABI {
pub abi: GstCollectData_ABI_abi,
pub _gst_reserved: [gpointer; 4],
}
impl ::std::fmt::Debug for GstCollectData_ABI {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstCollectData_ABI @ {:p}", self))
.field("abi", unsafe { &self.abi })
.finish()
}
}
pub type GstCollectDataDestroyNotify = Option<unsafe extern "C" fn(*mut GstCollectData)>;
pub type GstCollectPadsBufferFunction = Option<
unsafe extern "C" fn(
*mut GstCollectPads,
*mut GstCollectData,
*mut gst::GstBuffer,
gpointer,
) -> gst::GstFlowReturn,
>;
pub type GstCollectPadsClipFunction = Option<
unsafe extern "C" fn(
*mut GstCollectPads,
*mut GstCollectData,
*mut gst::GstBuffer,
*mut *mut gst::GstBuffer,
gpointer,
) -> gst::GstFlowReturn,
>;
pub type GstCollectPadsCompareFunction = Option<
unsafe extern "C" fn(
*mut GstCollectPads,
*mut GstCollectData,
gst::GstClockTime,
*mut GstCollectData,
gst::GstClockTime,
gpointer,
) -> c_int,
>;
pub type GstCollectPadsEventFunction = Option<
unsafe extern "C" fn(
*mut GstCollectPads,
*mut GstCollectData,
*mut gst::GstEvent,
gpointer,
) -> gboolean,
>;
pub type GstCollectPadsFlushFunction = Option<unsafe extern "C" fn(*mut GstCollectPads, gpointer)>;
pub type GstCollectPadsFunction =
Option<unsafe extern "C" fn(*mut GstCollectPads, gpointer) -> gst::GstFlowReturn>;
pub type GstCollectPadsQueryFunction = Option<
unsafe extern "C" fn(
*mut GstCollectPads,
*mut GstCollectData,
*mut gst::GstQuery,
gpointer,
) -> gboolean,
>;
pub type GstDataQueueCheckFullFunction =
Option<unsafe extern "C" fn(*mut GstDataQueue, c_uint, c_uint, u64, gpointer) -> gboolean>;
pub type GstDataQueueEmptyCallback = Option<unsafe extern "C" fn(*mut GstDataQueue, gpointer)>;
pub type GstDataQueueFullCallback = Option<unsafe extern "C" fn(*mut GstDataQueue, gpointer)>;
pub type GstTypeFindHelperGetRangeFunction = Option<
unsafe extern "C" fn(
*mut gst::GstObject,
*mut gst::GstObject,
u64,
c_uint,
*mut *mut gst::GstBuffer,
) -> gst::GstFlowReturn,
>;
#[repr(C)]
pub struct _GstAdapterClass(c_void);
pub type GstAdapterClass = *mut _GstAdapterClass;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstAggregatorClass {
pub parent_class: gst::GstElementClass,
pub flush: Option<unsafe extern "C" fn(*mut GstAggregator) -> gst::GstFlowReturn>,
pub clip: Option<
unsafe extern "C" fn(
*mut GstAggregator,
*mut GstAggregatorPad,
*mut gst::GstBuffer,
) -> *mut gst::GstBuffer,
>,
pub finish_buffer:
Option<unsafe extern "C" fn(*mut GstAggregator, *mut gst::GstBuffer) -> gst::GstFlowReturn>,
pub sink_event: Option<
unsafe extern "C" fn(
*mut GstAggregator,
*mut GstAggregatorPad,
*mut gst::GstEvent,
) -> gboolean,
>,
pub sink_query: Option<
unsafe extern "C" fn(
*mut GstAggregator,
*mut GstAggregatorPad,
*mut gst::GstQuery,
) -> gboolean,
>,
pub src_event: Option<unsafe extern "C" fn(*mut GstAggregator, *mut gst::GstEvent) -> gboolean>,
pub src_query: Option<unsafe extern "C" fn(*mut GstAggregator, *mut gst::GstQuery) -> gboolean>,
pub src_activate:
Option<unsafe extern "C" fn(*mut GstAggregator, gst::GstPadMode, gboolean) -> gboolean>,
pub aggregate: Option<unsafe extern "C" fn(*mut GstAggregator, gboolean) -> gst::GstFlowReturn>,
pub stop: Option<unsafe extern "C" fn(*mut GstAggregator) -> gboolean>,
pub start: Option<unsafe extern "C" fn(*mut GstAggregator) -> gboolean>,
pub get_next_time: Option<unsafe extern "C" fn(*mut GstAggregator) -> gst::GstClockTime>,
pub create_new_pad: Option<
unsafe extern "C" fn(
*mut GstAggregator,
*mut gst::GstPadTemplate,
*const c_char,
*const gst::GstCaps,
) -> *mut GstAggregatorPad,
>,
pub update_src_caps: Option<
unsafe extern "C" fn(
*mut GstAggregator,
*mut gst::GstCaps,
*mut *mut gst::GstCaps,
) -> gst::GstFlowReturn,
>,
pub fixate_src_caps:
Option<unsafe extern "C" fn(*mut GstAggregator, *mut gst::GstCaps) -> *mut gst::GstCaps>,
pub negotiated_src_caps:
Option<unsafe extern "C" fn(*mut GstAggregator, *mut gst::GstCaps) -> gboolean>,
pub decide_allocation:
Option<unsafe extern "C" fn(*mut GstAggregator, *mut gst::GstQuery) -> gboolean>,
pub propose_allocation: Option<
unsafe extern "C" fn(
*mut GstAggregator,
*mut GstAggregatorPad,
*mut gst::GstQuery,
*mut gst::GstQuery,
) -> gboolean,
>,
pub negotiate: Option<unsafe extern "C" fn(*mut GstAggregator) -> gboolean>,
pub sink_event_pre_queue: Option<
unsafe extern "C" fn(
*mut GstAggregator,
*mut GstAggregatorPad,
*mut gst::GstEvent,
) -> gst::GstFlowReturn,
>,
pub sink_query_pre_queue: Option<
unsafe extern "C" fn(
*mut GstAggregator,
*mut GstAggregatorPad,
*mut gst::GstQuery,
) -> gboolean,
>,
pub finish_buffer_list: Option<
unsafe extern "C" fn(*mut GstAggregator, *mut gst::GstBufferList) -> gst::GstFlowReturn,
>,
pub peek_next_sample: Option<
unsafe extern "C" fn(*mut GstAggregator, *mut GstAggregatorPad) -> *mut gst::GstSample,
>,
pub _gst_reserved: [gpointer; 15],
}
impl ::std::fmt::Debug for GstAggregatorClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAggregatorClass @ {:p}", self))
.field("parent_class", &self.parent_class)
.field("flush", &self.flush)
.field("clip", &self.clip)
.field("finish_buffer", &self.finish_buffer)
.field("sink_event", &self.sink_event)
.field("sink_query", &self.sink_query)
.field("src_event", &self.src_event)
.field("src_query", &self.src_query)
.field("src_activate", &self.src_activate)
.field("aggregate", &self.aggregate)
.field("stop", &self.stop)
.field("start", &self.start)
.field("get_next_time", &self.get_next_time)
.field("create_new_pad", &self.create_new_pad)
.field("update_src_caps", &self.update_src_caps)
.field("fixate_src_caps", &self.fixate_src_caps)
.field("negotiated_src_caps", &self.negotiated_src_caps)
.field("decide_allocation", &self.decide_allocation)
.field("propose_allocation", &self.propose_allocation)
.field("negotiate", &self.negotiate)
.field("sink_event_pre_queue", &self.sink_event_pre_queue)
.field("sink_query_pre_queue", &self.sink_query_pre_queue)
.field("finish_buffer_list", &self.finish_buffer_list)
.field("peek_next_sample", &self.peek_next_sample)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstAggregatorPadClass {
pub parent_class: gst::GstPadClass,
pub flush: Option<
unsafe extern "C" fn(*mut GstAggregatorPad, *mut GstAggregator) -> gst::GstFlowReturn,
>,
pub skip_buffer: Option<
unsafe extern "C" fn(
*mut GstAggregatorPad,
*mut GstAggregator,
*mut gst::GstBuffer,
) -> gboolean,
>,
pub _gst_reserved: [gpointer; 20],
}
impl ::std::fmt::Debug for GstAggregatorPadClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAggregatorPadClass @ {:p}", self))
.field("parent_class", &self.parent_class)
.field("flush", &self.flush)
.field("skip_buffer", &self.skip_buffer)
.finish()
}
}
#[repr(C)]
pub struct _GstAggregatorPadPrivate(c_void);
pub type GstAggregatorPadPrivate = *mut _GstAggregatorPadPrivate;
#[repr(C)]
pub struct _GstAggregatorPrivate(c_void);
pub type GstAggregatorPrivate = *mut _GstAggregatorPrivate;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstBaseParseClass {
pub parent_class: gst::GstElementClass,
pub start: Option<unsafe extern "C" fn(*mut GstBaseParse) -> gboolean>,
pub stop: Option<unsafe extern "C" fn(*mut GstBaseParse) -> gboolean>,
pub set_sink_caps:
Option<unsafe extern "C" fn(*mut GstBaseParse, *mut gst::GstCaps) -> gboolean>,
pub handle_frame: Option<
unsafe extern "C" fn(
*mut GstBaseParse,
*mut GstBaseParseFrame,
*mut c_int,
) -> gst::GstFlowReturn,
>,
pub pre_push_frame: Option<
unsafe extern "C" fn(*mut GstBaseParse, *mut GstBaseParseFrame) -> gst::GstFlowReturn,
>,
pub convert: Option<
unsafe extern "C" fn(
*mut GstBaseParse,
gst::GstFormat,
i64,
gst::GstFormat,
*mut i64,
) -> gboolean,
>,
pub sink_event: Option<unsafe extern "C" fn(*mut GstBaseParse, *mut gst::GstEvent) -> gboolean>,
pub src_event: Option<unsafe extern "C" fn(*mut GstBaseParse, *mut gst::GstEvent) -> gboolean>,
pub get_sink_caps:
Option<unsafe extern "C" fn(*mut GstBaseParse, *mut gst::GstCaps) -> *mut gst::GstCaps>,
pub detect:
Option<unsafe extern "C" fn(*mut GstBaseParse, *mut gst::GstBuffer) -> gst::GstFlowReturn>,
pub sink_query: Option<unsafe extern "C" fn(*mut GstBaseParse, *mut gst::GstQuery) -> gboolean>,
pub src_query: Option<unsafe extern "C" fn(*mut GstBaseParse, *mut gst::GstQuery) -> gboolean>,
pub _gst_reserved: [gpointer; 18],
}
impl ::std::fmt::Debug for GstBaseParseClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstBaseParseClass @ {:p}", self))
.field("parent_class", &self.parent_class)
.field("start", &self.start)
.field("stop", &self.stop)
.field("set_sink_caps", &self.set_sink_caps)
.field("handle_frame", &self.handle_frame)
.field("pre_push_frame", &self.pre_push_frame)
.field("convert", &self.convert)
.field("sink_event", &self.sink_event)
.field("src_event", &self.src_event)
.field("get_sink_caps", &self.get_sink_caps)
.field("detect", &self.detect)
.field("sink_query", &self.sink_query)
.field("src_query", &self.src_query)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstBaseParseFrame {
pub buffer: *mut gst::GstBuffer,
pub out_buffer: *mut gst::GstBuffer,
pub flags: c_uint,
pub offset: u64,
pub overhead: c_int,
pub size: c_int,
pub _gst_reserved_i: [c_uint; 2],
pub _gst_reserved_p: [gpointer; 2],
pub _private_flags: c_uint,
}
impl ::std::fmt::Debug for GstBaseParseFrame {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstBaseParseFrame @ {:p}", self))
.field("buffer", &self.buffer)
.field("out_buffer", &self.out_buffer)
.field("flags", &self.flags)
.field("offset", &self.offset)
.field("overhead", &self.overhead)
.finish()
}
}
#[repr(C)]
pub struct _GstBaseParsePrivate(c_void);
pub type GstBaseParsePrivate = *mut _GstBaseParsePrivate;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstBaseSinkClass {
pub parent_class: gst::GstElementClass,
pub get_caps:
Option<unsafe extern "C" fn(*mut GstBaseSink, *mut gst::GstCaps) -> *mut gst::GstCaps>,
pub set_caps: Option<unsafe extern "C" fn(*mut GstBaseSink, *mut gst::GstCaps) -> gboolean>,
pub fixate:
Option<unsafe extern "C" fn(*mut GstBaseSink, *mut gst::GstCaps) -> *mut gst::GstCaps>,
pub activate_pull: Option<unsafe extern "C" fn(*mut GstBaseSink, gboolean) -> gboolean>,
pub get_times: Option<
unsafe extern "C" fn(
*mut GstBaseSink,
*mut gst::GstBuffer,
*mut gst::GstClockTime,
*mut gst::GstClockTime,
),
>,
pub propose_allocation:
Option<unsafe extern "C" fn(*mut GstBaseSink, *mut gst::GstQuery) -> gboolean>,
pub start: Option<unsafe extern "C" fn(*mut GstBaseSink) -> gboolean>,
pub stop: Option<unsafe extern "C" fn(*mut GstBaseSink) -> gboolean>,
pub unlock: Option<unsafe extern "C" fn(*mut GstBaseSink) -> gboolean>,
pub unlock_stop: Option<unsafe extern "C" fn(*mut GstBaseSink) -> gboolean>,
pub query: Option<unsafe extern "C" fn(*mut GstBaseSink, *mut gst::GstQuery) -> gboolean>,
pub event: Option<unsafe extern "C" fn(*mut GstBaseSink, *mut gst::GstEvent) -> gboolean>,
pub wait_event:
Option<unsafe extern "C" fn(*mut GstBaseSink, *mut gst::GstEvent) -> gst::GstFlowReturn>,
pub prepare:
Option<unsafe extern "C" fn(*mut GstBaseSink, *mut gst::GstBuffer) -> gst::GstFlowReturn>,
pub prepare_list: Option<
unsafe extern "C" fn(*mut GstBaseSink, *mut gst::GstBufferList) -> gst::GstFlowReturn,
>,
pub preroll:
Option<unsafe extern "C" fn(*mut GstBaseSink, *mut gst::GstBuffer) -> gst::GstFlowReturn>,
pub render:
Option<unsafe extern "C" fn(*mut GstBaseSink, *mut gst::GstBuffer) -> gst::GstFlowReturn>,
pub render_list: Option<
unsafe extern "C" fn(*mut GstBaseSink, *mut gst::GstBufferList) -> gst::GstFlowReturn,
>,
pub _gst_reserved: [gpointer; 20],
}
impl ::std::fmt::Debug for GstBaseSinkClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstBaseSinkClass @ {:p}", self))
.field("parent_class", &self.parent_class)
.field("get_caps", &self.get_caps)
.field("set_caps", &self.set_caps)
.field("fixate", &self.fixate)
.field("activate_pull", &self.activate_pull)
.field("get_times", &self.get_times)
.field("propose_allocation", &self.propose_allocation)
.field("start", &self.start)
.field("stop", &self.stop)
.field("unlock", &self.unlock)
.field("unlock_stop", &self.unlock_stop)
.field("query", &self.query)
.field("event", &self.event)
.field("wait_event", &self.wait_event)
.field("prepare", &self.prepare)
.field("prepare_list", &self.prepare_list)
.field("preroll", &self.preroll)
.field("render", &self.render)
.field("render_list", &self.render_list)
.finish()
}
}
#[repr(C)]
pub struct _GstBaseSinkPrivate(c_void);
pub type GstBaseSinkPrivate = *mut _GstBaseSinkPrivate;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstBaseSrcClass {
pub parent_class: gst::GstElementClass,
pub get_caps:
Option<unsafe extern "C" fn(*mut GstBaseSrc, *mut gst::GstCaps) -> *mut gst::GstCaps>,
pub negotiate: Option<unsafe extern "C" fn(*mut GstBaseSrc) -> gboolean>,
pub fixate:
Option<unsafe extern "C" fn(*mut GstBaseSrc, *mut gst::GstCaps) -> *mut gst::GstCaps>,
pub set_caps: Option<unsafe extern "C" fn(*mut GstBaseSrc, *mut gst::GstCaps) -> gboolean>,
pub decide_allocation:
Option<unsafe extern "C" fn(*mut GstBaseSrc, *mut gst::GstQuery) -> gboolean>,
pub start: Option<unsafe extern "C" fn(*mut GstBaseSrc) -> gboolean>,
pub stop: Option<unsafe extern "C" fn(*mut GstBaseSrc) -> gboolean>,
pub get_times: Option<
unsafe extern "C" fn(
*mut GstBaseSrc,
*mut gst::GstBuffer,
*mut gst::GstClockTime,
*mut gst::GstClockTime,
),
>,
pub get_size: Option<unsafe extern "C" fn(*mut GstBaseSrc, *mut u64) -> gboolean>,
pub is_seekable: Option<unsafe extern "C" fn(*mut GstBaseSrc) -> gboolean>,
pub prepare_seek_segment: Option<
unsafe extern "C" fn(*mut GstBaseSrc, *mut gst::GstEvent, *mut gst::GstSegment) -> gboolean,
>,
pub do_seek: Option<unsafe extern "C" fn(*mut GstBaseSrc, *mut gst::GstSegment) -> gboolean>,
pub unlock: Option<unsafe extern "C" fn(*mut GstBaseSrc) -> gboolean>,
pub unlock_stop: Option<unsafe extern "C" fn(*mut GstBaseSrc) -> gboolean>,
pub query: Option<unsafe extern "C" fn(*mut GstBaseSrc, *mut gst::GstQuery) -> gboolean>,
pub event: Option<unsafe extern "C" fn(*mut GstBaseSrc, *mut gst::GstEvent) -> gboolean>,
pub create: Option<
unsafe extern "C" fn(
*mut GstBaseSrc,
u64,
c_uint,
*mut gst::GstBuffer,
) -> gst::GstFlowReturn,
>,
pub alloc: Option<
unsafe extern "C" fn(
*mut GstBaseSrc,
u64,
c_uint,
*mut gst::GstBuffer,
) -> gst::GstFlowReturn,
>,
pub fill: Option<
unsafe extern "C" fn(
*mut GstBaseSrc,
u64,
c_uint,
*mut gst::GstBuffer,
) -> gst::GstFlowReturn,
>,
pub _gst_reserved: [gpointer; 20],
}
impl ::std::fmt::Debug for GstBaseSrcClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstBaseSrcClass @ {:p}", self))
.field("parent_class", &self.parent_class)
.field("get_caps", &self.get_caps)
.field("negotiate", &self.negotiate)
.field("fixate", &self.fixate)
.field("set_caps", &self.set_caps)
.field("decide_allocation", &self.decide_allocation)
.field("start", &self.start)
.field("stop", &self.stop)
.field("get_times", &self.get_times)
.field("get_size", &self.get_size)
.field("is_seekable", &self.is_seekable)
.field("prepare_seek_segment", &self.prepare_seek_segment)
.field("do_seek", &self.do_seek)
.field("unlock", &self.unlock)
.field("unlock_stop", &self.unlock_stop)
.field("query", &self.query)
.field("event", &self.event)
.field("create", &self.create)
.field("alloc", &self.alloc)
.field("fill", &self.fill)
.finish()
}
}
#[repr(C)]
pub struct _GstBaseSrcPrivate(c_void);
pub type GstBaseSrcPrivate = *mut _GstBaseSrcPrivate;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstBaseTransformClass {
pub parent_class: gst::GstElementClass,
pub passthrough_on_same_caps: gboolean,
pub transform_ip_on_passthrough: gboolean,
pub transform_caps: Option<
unsafe extern "C" fn(
*mut GstBaseTransform,
gst::GstPadDirection,
*mut gst::GstCaps,
*mut gst::GstCaps,
) -> *mut gst::GstCaps,
>,
pub fixate_caps: Option<
unsafe extern "C" fn(
*mut GstBaseTransform,
gst::GstPadDirection,
*mut gst::GstCaps,
*mut gst::GstCaps,
) -> *mut gst::GstCaps,
>,
pub accept_caps: Option<
unsafe extern "C" fn(
*mut GstBaseTransform,
gst::GstPadDirection,
*mut gst::GstCaps,
) -> gboolean,
>,
pub set_caps: Option<
unsafe extern "C" fn(
*mut GstBaseTransform,
*mut gst::GstCaps,
*mut gst::GstCaps,
) -> gboolean,
>,
pub query: Option<
unsafe extern "C" fn(
*mut GstBaseTransform,
gst::GstPadDirection,
*mut gst::GstQuery,
) -> gboolean,
>,
pub decide_allocation:
Option<unsafe extern "C" fn(*mut GstBaseTransform, *mut gst::GstQuery) -> gboolean>,
pub filter_meta: Option<
unsafe extern "C" fn(
*mut GstBaseTransform,
*mut gst::GstQuery,
GType,
*const gst::GstStructure,
) -> gboolean,
>,
pub propose_allocation: Option<
unsafe extern "C" fn(
*mut GstBaseTransform,
*mut gst::GstQuery,
*mut gst::GstQuery,
) -> gboolean,
>,
pub transform_size: Option<
unsafe extern "C" fn(
*mut GstBaseTransform,
gst::GstPadDirection,
*mut gst::GstCaps,
size_t,
*mut gst::GstCaps,
*mut size_t,
) -> gboolean,
>,
pub get_unit_size: Option<
unsafe extern "C" fn(*mut GstBaseTransform, *mut gst::GstCaps, *mut size_t) -> gboolean,
>,
pub start: Option<unsafe extern "C" fn(*mut GstBaseTransform) -> gboolean>,
pub stop: Option<unsafe extern "C" fn(*mut GstBaseTransform) -> gboolean>,
pub sink_event:
Option<unsafe extern "C" fn(*mut GstBaseTransform, *mut gst::GstEvent) -> gboolean>,
pub src_event:
Option<unsafe extern "C" fn(*mut GstBaseTransform, *mut gst::GstEvent) -> gboolean>,
pub prepare_output_buffer: Option<
unsafe extern "C" fn(
*mut GstBaseTransform,
*mut gst::GstBuffer,
*mut gst::GstBuffer,
) -> gst::GstFlowReturn,
>,
pub copy_metadata: Option<
unsafe extern "C" fn(
*mut GstBaseTransform,
*mut gst::GstBuffer,
*mut gst::GstBuffer,
) -> gboolean,
>,
pub transform_meta: Option<
unsafe extern "C" fn(
*mut GstBaseTransform,
*mut gst::GstBuffer,
*mut gst::GstMeta,
*mut gst::GstBuffer,
) -> gboolean,
>,
pub before_transform: Option<unsafe extern "C" fn(*mut GstBaseTransform, *mut gst::GstBuffer)>,
pub transform: Option<
unsafe extern "C" fn(
*mut GstBaseTransform,
*mut gst::GstBuffer,
*mut gst::GstBuffer,
) -> gst::GstFlowReturn,
>,
pub transform_ip: Option<
unsafe extern "C" fn(*mut GstBaseTransform, *mut *mut gst::GstBuffer) -> gst::GstFlowReturn,
>,
pub submit_input_buffer: Option<
unsafe extern "C" fn(
*mut GstBaseTransform,
gboolean,
*mut gst::GstBuffer,
) -> gst::GstFlowReturn,
>,
pub generate_output: Option<
unsafe extern "C" fn(*mut GstBaseTransform, *mut *mut gst::GstBuffer) -> gst::GstFlowReturn,
>,
pub _gst_reserved: [gpointer; 18],
}
impl ::std::fmt::Debug for GstBaseTransformClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstBaseTransformClass @ {:p}", self))
.field("parent_class", &self.parent_class)
.field("passthrough_on_same_caps", &self.passthrough_on_same_caps)
.field(
"transform_ip_on_passthrough",
&self.transform_ip_on_passthrough,
)
.field("transform_caps", &self.transform_caps)
.field("fixate_caps", &self.fixate_caps)
.field("accept_caps", &self.accept_caps)
.field("set_caps", &self.set_caps)
.field("query", &self.query)
.field("decide_allocation", &self.decide_allocation)
.field("filter_meta", &self.filter_meta)
.field("propose_allocation", &self.propose_allocation)
.field("transform_size", &self.transform_size)
.field("get_unit_size", &self.get_unit_size)
.field("start", &self.start)
.field("stop", &self.stop)
.field("sink_event", &self.sink_event)
.field("src_event", &self.src_event)
.field("prepare_output_buffer", &self.prepare_output_buffer)
.field("copy_metadata", &self.copy_metadata)
.field("transform_meta", &self.transform_meta)
.field("before_transform", &self.before_transform)
.field("transform", &self.transform)
.field("transform_ip", &self.transform_ip)
.field("submit_input_buffer", &self.submit_input_buffer)
.field("generate_output", &self.generate_output)
.finish()
}
}
#[repr(C)]
pub struct _GstBaseTransformPrivate(c_void);
pub type GstBaseTransformPrivate = *mut _GstBaseTransformPrivate;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstBitReader {
pub data: *const u8,
pub size: c_uint,
pub byte: c_uint,
pub bit: c_uint,
pub _gst_reserved: [gpointer; 4],
}
impl ::std::fmt::Debug for GstBitReader {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstBitReader @ {:p}", self))
.field("data", &self.data)
.field("size", &self.size)
.field("byte", &self.byte)
.field("bit", &self.bit)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstBitWriter {
pub data: *mut u8,
pub bit_size: c_uint,
pub bit_capacity: c_uint,
pub auto_grow: gboolean,
pub owned: gboolean,
pub _gst_reserved: [gpointer; 4],
}
impl ::std::fmt::Debug for GstBitWriter {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstBitWriter @ {:p}", self))
.field("data", &self.data)
.field("bit_size", &self.bit_size)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstByteReader {
pub data: *const u8,
pub size: c_uint,
pub byte: c_uint,
pub _gst_reserved: [gpointer; 4],
}
impl ::std::fmt::Debug for GstByteReader {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstByteReader @ {:p}", self))
.field("data", &self.data)
.field("size", &self.size)
.field("byte", &self.byte)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstByteWriter {
pub parent: GstByteReader,
pub alloc_size: c_uint,
pub fixed: gboolean,
pub owned: gboolean,
pub _gst_reserved: [gpointer; 4],
}
impl ::std::fmt::Debug for GstByteWriter {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstByteWriter @ {:p}", self))
.field("parent", &self.parent)
.field("alloc_size", &self.alloc_size)
.field("fixed", &self.fixed)
.field("owned", &self.owned)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstCollectData {
pub collect: *mut GstCollectPads,
pub pad: *mut gst::GstPad,
pub buffer: *mut gst::GstBuffer,
pub pos: c_uint,
pub segment: gst::GstSegment,
pub state: GstCollectPadsStateFlags,
pub priv_: *mut GstCollectDataPrivate,
pub ABI: GstCollectData_ABI,
}
impl ::std::fmt::Debug for GstCollectData {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstCollectData @ {:p}", self))
.field("collect", &self.collect)
.field("pad", &self.pad)
.field("buffer", &self.buffer)
.field("pos", &self.pos)
.field("segment", &self.segment)
.field("ABI", &self.ABI)
.finish()
}
}
#[repr(C)]
pub struct _GstCollectDataPrivate(c_void);
pub type GstCollectDataPrivate = *mut _GstCollectDataPrivate;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstCollectData_ABI_abi {
pub dts: i64,
}
impl ::std::fmt::Debug for GstCollectData_ABI_abi {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstCollectData_ABI_abi @ {:p}", self))
.field("dts", &self.dts)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstCollectPadsClass {
pub parent_class: gst::GstObjectClass,
pub _gst_reserved: [gpointer; 4],
}
impl ::std::fmt::Debug for GstCollectPadsClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstCollectPadsClass @ {:p}", self))
.field("parent_class", &self.parent_class)
.finish()
}
}
#[repr(C)]
pub struct _GstCollectPadsPrivate(c_void);
pub type GstCollectPadsPrivate = *mut _GstCollectPadsPrivate;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstDataQueueClass {
pub parent_class: gobject::GObjectClass,
pub empty: Option<unsafe extern "C" fn(*mut GstDataQueue)>,
pub full: Option<unsafe extern "C" fn(*mut GstDataQueue)>,
pub _gst_reserved: [gpointer; 4],
}
impl ::std::fmt::Debug for GstDataQueueClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstDataQueueClass @ {:p}", self))
.field("parent_class", &self.parent_class)
.field("empty", &self.empty)
.field("full", &self.full)
.field("_gst_reserved", &self._gst_reserved)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstDataQueueItem {
pub object: *mut gst::GstMiniObject,
pub size: c_uint,
pub duration: u64,
pub visible: gboolean,
pub destroy: glib::GDestroyNotify,
pub _gst_reserved: [gpointer; 4],
}
impl ::std::fmt::Debug for GstDataQueueItem {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstDataQueueItem @ {:p}", self))
.field("object", &self.object)
.field("size", &self.size)
.field("duration", &self.duration)
.field("visible", &self.visible)
.field("destroy", &self.destroy)
.finish()
}
}
#[repr(C)]
pub struct _GstDataQueuePrivate(c_void);
pub type GstDataQueuePrivate = *mut _GstDataQueuePrivate;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstDataQueueSize {
pub visible: c_uint,
pub bytes: c_uint,
pub time: u64,
}
impl ::std::fmt::Debug for GstDataQueueSize {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstDataQueueSize @ {:p}", self))
.field("visible", &self.visible)
.field("bytes", &self.bytes)
.field("time", &self.time)
.finish()
}
}
#[repr(C)]
pub struct GstFlowCombiner(c_void);
impl ::std::fmt::Debug for GstFlowCombiner {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstFlowCombiner @ {:p}", self))
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstPushSrcClass {
pub parent_class: GstBaseSrcClass,
pub create:
Option<unsafe extern "C" fn(*mut GstPushSrc, *mut gst::GstBuffer) -> gst::GstFlowReturn>,
pub alloc:
Option<unsafe extern "C" fn(*mut GstPushSrc, *mut gst::GstBuffer) -> gst::GstFlowReturn>,
pub fill:
Option<unsafe extern "C" fn(*mut GstPushSrc, *mut gst::GstBuffer) -> gst::GstFlowReturn>,
pub _gst_reserved: [gpointer; 4],
}
impl ::std::fmt::Debug for GstPushSrcClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstPushSrcClass @ {:p}", self))
.field("parent_class", &self.parent_class)
.field("create", &self.create)
.field("alloc", &self.alloc)
.field("fill", &self.fill)
.finish()
}
}
#[repr(C)]
pub struct _GstQueueArray(c_void);
pub type GstQueueArray = *mut _GstQueueArray;
#[repr(C)]
pub struct GstAdapter(c_void);
impl ::std::fmt::Debug for GstAdapter {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAdapter @ {:p}", self)).finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstAggregator {
pub parent: gst::GstElement,
pub srcpad: *mut gst::GstPad,
pub priv_: *mut GstAggregatorPrivate,
pub _gst_reserved: [gpointer; 20],
}
impl ::std::fmt::Debug for GstAggregator {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAggregator @ {:p}", self))
.field("parent", &self.parent)
.field("srcpad", &self.srcpad)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstAggregatorPad {
pub parent: gst::GstPad,
pub segment: gst::GstSegment,
pub priv_: *mut GstAggregatorPadPrivate,
pub _gst_reserved: [gpointer; 4],
}
impl ::std::fmt::Debug for GstAggregatorPad {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAggregatorPad @ {:p}", self))
.field("parent", &self.parent)
.field("segment", &self.segment)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstBaseParse {
pub element: gst::GstElement,
pub sinkpad: *mut gst::GstPad,
pub srcpad: *mut gst::GstPad,
pub flags: c_uint,
pub segment: gst::GstSegment,
pub _gst_reserved: [gpointer; 20],
pub priv_: *mut GstBaseParsePrivate,
}
impl ::std::fmt::Debug for GstBaseParse {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstBaseParse @ {:p}", self))
.field("element", &self.element)
.field("sinkpad", &self.sinkpad)
.field("srcpad", &self.srcpad)
.field("flags", &self.flags)
.field("segment", &self.segment)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstBaseSink {
pub element: gst::GstElement,
pub sinkpad: *mut gst::GstPad,
pub pad_mode: gst::GstPadMode,
pub offset: u64,
pub can_activate_pull: gboolean,
pub can_activate_push: gboolean,
pub preroll_lock: glib::GMutex,
pub preroll_cond: glib::GCond,
pub eos: gboolean,
pub need_preroll: gboolean,
pub have_preroll: gboolean,
pub playing_async: gboolean,
pub have_newsegment: gboolean,
pub segment: gst::GstSegment,
pub clock_id: gst::GstClockID,
pub sync: gboolean,
pub flushing: gboolean,
pub running: gboolean,
pub max_lateness: i64,
pub priv_: *mut GstBaseSinkPrivate,
pub _gst_reserved: [gpointer; 20],
}
impl ::std::fmt::Debug for GstBaseSink {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstBaseSink @ {:p}", self))
.field("element", &self.element)
.field("sinkpad", &self.sinkpad)
.field("pad_mode", &self.pad_mode)
.field("offset", &self.offset)
.field("can_activate_pull", &self.can_activate_pull)
.field("can_activate_push", &self.can_activate_push)
.field("preroll_lock", &self.preroll_lock)
.field("preroll_cond", &self.preroll_cond)
.field("eos", &self.eos)
.field("need_preroll", &self.need_preroll)
.field("have_preroll", &self.have_preroll)
.field("playing_async", &self.playing_async)
.field("have_newsegment", &self.have_newsegment)
.field("segment", &self.segment)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstBaseSrc {
pub element: gst::GstElement,
pub srcpad: *mut gst::GstPad,
pub live_lock: glib::GMutex,
pub live_cond: glib::GCond,
pub is_live: gboolean,
pub live_running: gboolean,
pub blocksize: c_uint,
pub can_activate_push: gboolean,
pub random_access: gboolean,
pub clock_id: gst::GstClockID,
pub segment: gst::GstSegment,
pub need_newsegment: gboolean,
pub num_buffers: c_int,
pub num_buffers_left: c_int,
pub typefind: gboolean,
pub running: gboolean,
pub pending_seek: *mut gst::GstEvent,
pub priv_: *mut GstBaseSrcPrivate,
pub _gst_reserved: [gpointer; 20],
}
impl ::std::fmt::Debug for GstBaseSrc {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstBaseSrc @ {:p}", self))
.field("element", &self.element)
.field("srcpad", &self.srcpad)
.field("live_lock", &self.live_lock)
.field("live_cond", &self.live_cond)
.field("is_live", &self.is_live)
.field("live_running", &self.live_running)
.field("blocksize", &self.blocksize)
.field("can_activate_push", &self.can_activate_push)
.field("random_access", &self.random_access)
.field("clock_id", &self.clock_id)
.field("segment", &self.segment)
.field("need_newsegment", &self.need_newsegment)
.field("num_buffers", &self.num_buffers)
.field("num_buffers_left", &self.num_buffers_left)
.field("typefind", &self.typefind)
.field("running", &self.running)
.field("pending_seek", &self.pending_seek)
.field("priv_", &self.priv_)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstBaseTransform {
pub element: gst::GstElement,
pub sinkpad: *mut gst::GstPad,
pub srcpad: *mut gst::GstPad,
pub have_segment: gboolean,
pub segment: gst::GstSegment,
pub queued_buf: *mut gst::GstBuffer,
pub priv_: *mut GstBaseTransformPrivate,
pub _gst_reserved: [gpointer; 19],
}
impl ::std::fmt::Debug for GstBaseTransform {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstBaseTransform @ {:p}", self))
.field("element", &self.element)
.field("sinkpad", &self.sinkpad)
.field("srcpad", &self.srcpad)
.field("have_segment", &self.have_segment)
.field("segment", &self.segment)
.field("queued_buf", &self.queued_buf)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstCollectPads {
pub object: gst::GstObject,
pub data: *mut glib::GSList,
pub stream_lock: glib::GRecMutex,
pub priv_: *mut GstCollectPadsPrivate,
pub _gst_reserved: [gpointer; 4],
}
impl ::std::fmt::Debug for GstCollectPads {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstCollectPads @ {:p}", self))
.field("object", &self.object)
.field("data", &self.data)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstDataQueue {
pub object: gobject::GObject,
pub priv_: *mut GstDataQueuePrivate,
pub _gst_reserved: [gpointer; 4],
}
impl ::std::fmt::Debug for GstDataQueue {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstDataQueue @ {:p}", self))
.field("object", &self.object)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstPushSrc {
pub parent: GstBaseSrc,
pub _gst_reserved: [gpointer; 4],
}
impl ::std::fmt::Debug for GstPushSrc {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstPushSrc @ {:p}", self))
.field("parent", &self.parent)
.finish()
}
}
#[link(name = "gstbase-1.0")]
extern "C" {
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_aggregator_start_time_selection_get_type() -> GType;
pub fn gst_base_parse_frame_get_type() -> GType;
pub fn gst_base_parse_frame_new(
buffer: *mut gst::GstBuffer,
flags: GstBaseParseFrameFlags,
overhead: c_int,
) -> *mut GstBaseParseFrame;
#[cfg(any(feature = "v1_12_1", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12_1")))]
pub fn gst_base_parse_frame_copy(frame: *mut GstBaseParseFrame) -> *mut GstBaseParseFrame;
pub fn gst_base_parse_frame_free(frame: *mut GstBaseParseFrame);
pub fn gst_base_parse_frame_init(frame: *mut GstBaseParseFrame);
pub fn gst_bit_reader_free(reader: *mut GstBitReader);
pub fn gst_bit_reader_get_bits_uint16(
reader: *mut GstBitReader,
val: *mut u16,
nbits: c_uint,
) -> gboolean;
pub fn gst_bit_reader_get_bits_uint32(
reader: *mut GstBitReader,
val: *mut u32,
nbits: c_uint,
) -> gboolean;
pub fn gst_bit_reader_get_bits_uint64(
reader: *mut GstBitReader,
val: *mut u64,
nbits: c_uint,
) -> gboolean;
pub fn gst_bit_reader_get_bits_uint8(
reader: *mut GstBitReader,
val: *mut u8,
nbits: c_uint,
) -> gboolean;
pub fn gst_bit_reader_get_pos(reader: *const GstBitReader) -> c_uint;
pub fn gst_bit_reader_get_remaining(reader: *const GstBitReader) -> c_uint;
pub fn gst_bit_reader_get_size(reader: *const GstBitReader) -> c_uint;
pub fn gst_bit_reader_init(reader: *mut GstBitReader, data: *const u8, size: c_uint);
pub fn gst_bit_reader_peek_bits_uint16(
reader: *const GstBitReader,
val: *mut u16,
nbits: c_uint,
) -> gboolean;
pub fn gst_bit_reader_peek_bits_uint32(
reader: *const GstBitReader,
val: *mut u32,
nbits: c_uint,
) -> gboolean;
pub fn gst_bit_reader_peek_bits_uint64(
reader: *const GstBitReader,
val: *mut u64,
nbits: c_uint,
) -> gboolean;
pub fn gst_bit_reader_peek_bits_uint8(
reader: *const GstBitReader,
val: *mut u8,
nbits: c_uint,
) -> gboolean;
pub fn gst_bit_reader_set_pos(reader: *mut GstBitReader, pos: c_uint) -> gboolean;
pub fn gst_bit_reader_skip(reader: *mut GstBitReader, nbits: c_uint) -> gboolean;
pub fn gst_bit_reader_skip_to_byte(reader: *mut GstBitReader) -> gboolean;
pub fn gst_bit_reader_new(data: *const u8, size: c_uint) -> *mut GstBitReader;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_align_bytes(bitwriter: *mut GstBitWriter, trailing_bit: u8) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_free(bitwriter: *mut GstBitWriter);
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_free_and_get_buffer(bitwriter: *mut GstBitWriter) -> *mut gst::GstBuffer;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_free_and_get_data(bitwriter: *mut GstBitWriter) -> *mut u8;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_get_data(bitwriter: *const GstBitWriter) -> *mut u8;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_get_remaining(bitwriter: *const GstBitWriter) -> c_uint;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_get_size(bitwriter: *const GstBitWriter) -> c_uint;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_init(bitwriter: *mut GstBitWriter);
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_init_with_data(
bitwriter: *mut GstBitWriter,
data: *mut u8,
size: c_uint,
initialized: gboolean,
);
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_init_with_size(bitwriter: *mut GstBitWriter, size: u32, fixed: gboolean);
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_put_bits_uint16(
bitwriter: *mut GstBitWriter,
value: u16,
nbits: c_uint,
) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_put_bits_uint32(
bitwriter: *mut GstBitWriter,
value: u32,
nbits: c_uint,
) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_put_bits_uint64(
bitwriter: *mut GstBitWriter,
value: u64,
nbits: c_uint,
) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_put_bits_uint8(
bitwriter: *mut GstBitWriter,
value: u8,
nbits: c_uint,
) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_put_bytes(
bitwriter: *mut GstBitWriter,
data: *const u8,
nbytes: c_uint,
) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_reset(bitwriter: *mut GstBitWriter);
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_reset_and_get_buffer(bitwriter: *mut GstBitWriter)
-> *mut gst::GstBuffer;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_reset_and_get_data(bitwriter: *mut GstBitWriter) -> *mut u8;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_set_pos(bitwriter: *mut GstBitWriter, pos: c_uint) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_new() -> *mut GstBitWriter;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_new_with_data(
data: *mut u8,
size: c_uint,
initialized: gboolean,
) -> *mut GstBitWriter;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_new_with_size(size: u32, fixed: gboolean) -> *mut GstBitWriter;
pub fn gst_byte_reader_dup_data(
reader: *mut GstByteReader,
size: c_uint,
val: *mut *mut u8,
) -> gboolean;
pub fn gst_byte_reader_dup_string_utf16(
reader: *mut GstByteReader,
str: *mut *mut u16,
) -> gboolean;
pub fn gst_byte_reader_dup_string_utf32(
reader: *mut GstByteReader,
str: *mut *mut u32,
) -> gboolean;
pub fn gst_byte_reader_dup_string_utf8(
reader: *mut GstByteReader,
str: *mut *mut c_char,
) -> gboolean;
pub fn gst_byte_reader_free(reader: *mut GstByteReader);
pub fn gst_byte_reader_get_data(
reader: *mut GstByteReader,
size: c_uint,
val: *mut *const u8,
) -> gboolean;
pub fn gst_byte_reader_get_float32_be(
reader: *mut GstByteReader,
val: *mut c_float,
) -> gboolean;
pub fn gst_byte_reader_get_float32_le(
reader: *mut GstByteReader,
val: *mut c_float,
) -> gboolean;
pub fn gst_byte_reader_get_float64_be(
reader: *mut GstByteReader,
val: *mut c_double,
) -> gboolean;
pub fn gst_byte_reader_get_float64_le(
reader: *mut GstByteReader,
val: *mut c_double,
) -> gboolean;
pub fn gst_byte_reader_get_int16_be(reader: *mut GstByteReader, val: *mut i16) -> gboolean;
pub fn gst_byte_reader_get_int16_le(reader: *mut GstByteReader, val: *mut i16) -> gboolean;
pub fn gst_byte_reader_get_int24_be(reader: *mut GstByteReader, val: *mut i32) -> gboolean;
pub fn gst_byte_reader_get_int24_le(reader: *mut GstByteReader, val: *mut i32) -> gboolean;
pub fn gst_byte_reader_get_int32_be(reader: *mut GstByteReader, val: *mut i32) -> gboolean;
pub fn gst_byte_reader_get_int32_le(reader: *mut GstByteReader, val: *mut i32) -> gboolean;
pub fn gst_byte_reader_get_int64_be(reader: *mut GstByteReader, val: *mut i64) -> gboolean;
pub fn gst_byte_reader_get_int64_le(reader: *mut GstByteReader, val: *mut i64) -> gboolean;
pub fn gst_byte_reader_get_int8(reader: *mut GstByteReader, val: *mut i8) -> gboolean;
pub fn gst_byte_reader_get_pos(reader: *const GstByteReader) -> c_uint;
pub fn gst_byte_reader_get_remaining(reader: *const GstByteReader) -> c_uint;
pub fn gst_byte_reader_get_size(reader: *const GstByteReader) -> c_uint;
pub fn gst_byte_reader_get_string_utf8(
reader: *mut GstByteReader,
str: *mut *const c_char,
) -> gboolean;
pub fn gst_byte_reader_get_sub_reader(
reader: *mut GstByteReader,
sub_reader: *mut GstByteReader,
size: c_uint,
) -> gboolean;
pub fn gst_byte_reader_get_uint16_be(reader: *mut GstByteReader, val: *mut u16) -> gboolean;
pub fn gst_byte_reader_get_uint16_le(reader: *mut GstByteReader, val: *mut u16) -> gboolean;
pub fn gst_byte_reader_get_uint24_be(reader: *mut GstByteReader, val: *mut u32) -> gboolean;
pub fn gst_byte_reader_get_uint24_le(reader: *mut GstByteReader, val: *mut u32) -> gboolean;
pub fn gst_byte_reader_get_uint32_be(reader: *mut GstByteReader, val: *mut u32) -> gboolean;
pub fn gst_byte_reader_get_uint32_le(reader: *mut GstByteReader, val: *mut u32) -> gboolean;
pub fn gst_byte_reader_get_uint64_be(reader: *mut GstByteReader, val: *mut u64) -> gboolean;
pub fn gst_byte_reader_get_uint64_le(reader: *mut GstByteReader, val: *mut u64) -> gboolean;
pub fn gst_byte_reader_get_uint8(reader: *mut GstByteReader, val: *mut u8) -> gboolean;
pub fn gst_byte_reader_init(reader: *mut GstByteReader, data: *const u8, size: c_uint);
pub fn gst_byte_reader_masked_scan_uint32(
reader: *const GstByteReader,
mask: u32,
pattern: u32,
offset: c_uint,
size: c_uint,
) -> c_uint;
pub fn gst_byte_reader_masked_scan_uint32_peek(
reader: *const GstByteReader,
mask: u32,
pattern: u32,
offset: c_uint,
size: c_uint,
value: *mut u32,
) -> c_uint;
pub fn gst_byte_reader_peek_data(
reader: *const GstByteReader,
size: c_uint,
val: *mut *const u8,
) -> gboolean;
pub fn gst_byte_reader_peek_float32_be(
reader: *const GstByteReader,
val: *mut c_float,
) -> gboolean;
pub fn gst_byte_reader_peek_float32_le(
reader: *const GstByteReader,
val: *mut c_float,
) -> gboolean;
pub fn gst_byte_reader_peek_float64_be(
reader: *const GstByteReader,
val: *mut c_double,
) -> gboolean;
pub fn gst_byte_reader_peek_float64_le(
reader: *const GstByteReader,
val: *mut c_double,
) -> gboolean;
pub fn gst_byte_reader_peek_int16_be(reader: *const GstByteReader, val: *mut i16) -> gboolean;
pub fn gst_byte_reader_peek_int16_le(reader: *const GstByteReader, val: *mut i16) -> gboolean;
pub fn gst_byte_reader_peek_int24_be(reader: *const GstByteReader, val: *mut i32) -> gboolean;
pub fn gst_byte_reader_peek_int24_le(reader: *const GstByteReader, val: *mut i32) -> gboolean;
pub fn gst_byte_reader_peek_int32_be(reader: *const GstByteReader, val: *mut i32) -> gboolean;
pub fn gst_byte_reader_peek_int32_le(reader: *const GstByteReader, val: *mut i32) -> gboolean;
pub fn gst_byte_reader_peek_int64_be(reader: *const GstByteReader, val: *mut i64) -> gboolean;
pub fn gst_byte_reader_peek_int64_le(reader: *const GstByteReader, val: *mut i64) -> gboolean;
pub fn gst_byte_reader_peek_int8(reader: *const GstByteReader, val: *mut i8) -> gboolean;
pub fn gst_byte_reader_peek_string_utf8(
reader: *const GstByteReader,
str: *mut *const c_char,
) -> gboolean;
pub fn gst_byte_reader_peek_sub_reader(
reader: *mut GstByteReader,
sub_reader: *mut GstByteReader,
size: c_uint,
) -> gboolean;
pub fn gst_byte_reader_peek_uint16_be(reader: *const GstByteReader, val: *mut u16) -> gboolean;
pub fn gst_byte_reader_peek_uint16_le(reader: *const GstByteReader, val: *mut u16) -> gboolean;
pub fn gst_byte_reader_peek_uint24_be(reader: *const GstByteReader, val: *mut u32) -> gboolean;
pub fn gst_byte_reader_peek_uint24_le(reader: *const GstByteReader, val: *mut u32) -> gboolean;
pub fn gst_byte_reader_peek_uint32_be(reader: *const GstByteReader, val: *mut u32) -> gboolean;
pub fn gst_byte_reader_peek_uint32_le(reader: *const GstByteReader, val: *mut u32) -> gboolean;
pub fn gst_byte_reader_peek_uint64_be(reader: *const GstByteReader, val: *mut u64) -> gboolean;
pub fn gst_byte_reader_peek_uint64_le(reader: *const GstByteReader, val: *mut u64) -> gboolean;
pub fn gst_byte_reader_peek_uint8(reader: *const GstByteReader, val: *mut u8) -> gboolean;
pub fn gst_byte_reader_set_pos(reader: *mut GstByteReader, pos: c_uint) -> gboolean;
pub fn gst_byte_reader_skip(reader: *mut GstByteReader, nbytes: c_uint) -> gboolean;
pub fn gst_byte_reader_skip_string_utf16(reader: *mut GstByteReader) -> gboolean;
pub fn gst_byte_reader_skip_string_utf32(reader: *mut GstByteReader) -> gboolean;
pub fn gst_byte_reader_skip_string_utf8(reader: *mut GstByteReader) -> gboolean;
pub fn gst_byte_reader_new(data: *const u8, size: c_uint) -> *mut GstByteReader;
pub fn gst_byte_writer_ensure_free_space(writer: *mut GstByteWriter, size: c_uint) -> gboolean;
pub fn gst_byte_writer_fill(writer: *mut GstByteWriter, value: u8, size: c_uint) -> gboolean;
pub fn gst_byte_writer_free(writer: *mut GstByteWriter);
pub fn gst_byte_writer_free_and_get_buffer(writer: *mut GstByteWriter) -> *mut gst::GstBuffer;
pub fn gst_byte_writer_free_and_get_data(writer: *mut GstByteWriter) -> *mut u8;
pub fn gst_byte_writer_get_remaining(writer: *const GstByteWriter) -> c_uint;
pub fn gst_byte_writer_init(writer: *mut GstByteWriter);
pub fn gst_byte_writer_init_with_data(
writer: *mut GstByteWriter,
data: *mut u8,
size: c_uint,
initialized: gboolean,
);
pub fn gst_byte_writer_init_with_size(
writer: *mut GstByteWriter,
size: c_uint,
fixed: gboolean,
);
pub fn gst_byte_writer_put_buffer(
writer: *mut GstByteWriter,
buffer: *mut gst::GstBuffer,
offset: size_t,
size: ssize_t,
) -> gboolean;
pub fn gst_byte_writer_put_data(
writer: *mut GstByteWriter,
data: *const u8,
size: c_uint,
) -> gboolean;
pub fn gst_byte_writer_put_float32_be(writer: *mut GstByteWriter, val: c_float) -> gboolean;
pub fn gst_byte_writer_put_float32_le(writer: *mut GstByteWriter, val: c_float) -> gboolean;
pub fn gst_byte_writer_put_float64_be(writer: *mut GstByteWriter, val: c_double) -> gboolean;
pub fn gst_byte_writer_put_float64_le(writer: *mut GstByteWriter, val: c_double) -> gboolean;
pub fn gst_byte_writer_put_int16_be(writer: *mut GstByteWriter, val: i16) -> gboolean;
pub fn gst_byte_writer_put_int16_le(writer: *mut GstByteWriter, val: i16) -> gboolean;
pub fn gst_byte_writer_put_int24_be(writer: *mut GstByteWriter, val: i32) -> gboolean;
pub fn gst_byte_writer_put_int24_le(writer: *mut GstByteWriter, val: i32) -> gboolean;
pub fn gst_byte_writer_put_int32_be(writer: *mut GstByteWriter, val: i32) -> gboolean;
pub fn gst_byte_writer_put_int32_le(writer: *mut GstByteWriter, val: i32) -> gboolean;
pub fn gst_byte_writer_put_int64_be(writer: *mut GstByteWriter, val: i64) -> gboolean;
pub fn gst_byte_writer_put_int64_le(writer: *mut GstByteWriter, val: i64) -> gboolean;
pub fn gst_byte_writer_put_int8(writer: *mut GstByteWriter, val: i8) -> gboolean;
pub fn gst_byte_writer_put_string_utf16(
writer: *mut GstByteWriter,
data: *const u16,
) -> gboolean;
pub fn gst_byte_writer_put_string_utf32(
writer: *mut GstByteWriter,
data: *const u32,
) -> gboolean;
pub fn gst_byte_writer_put_string_utf8(
writer: *mut GstByteWriter,
data: *const c_char,
) -> gboolean;
pub fn gst_byte_writer_put_uint16_be(writer: *mut GstByteWriter, val: u16) -> gboolean;
pub fn gst_byte_writer_put_uint16_le(writer: *mut GstByteWriter, val: u16) -> gboolean;
pub fn gst_byte_writer_put_uint24_be(writer: *mut GstByteWriter, val: u32) -> gboolean;
pub fn gst_byte_writer_put_uint24_le(writer: *mut GstByteWriter, val: u32) -> gboolean;
pub fn gst_byte_writer_put_uint32_be(writer: *mut GstByteWriter, val: u32) -> gboolean;
pub fn gst_byte_writer_put_uint32_le(writer: *mut GstByteWriter, val: u32) -> gboolean;
pub fn gst_byte_writer_put_uint64_be(writer: *mut GstByteWriter, val: u64) -> gboolean;
pub fn gst_byte_writer_put_uint64_le(writer: *mut GstByteWriter, val: u64) -> gboolean;
pub fn gst_byte_writer_put_uint8(writer: *mut GstByteWriter, val: u8) -> gboolean;
pub fn gst_byte_writer_reset(writer: *mut GstByteWriter);
pub fn gst_byte_writer_reset_and_get_buffer(writer: *mut GstByteWriter) -> *mut gst::GstBuffer;
pub fn gst_byte_writer_reset_and_get_data(writer: *mut GstByteWriter) -> *mut u8;
pub fn gst_byte_writer_new() -> *mut GstByteWriter;
pub fn gst_byte_writer_new_with_data(
data: *mut u8,
size: c_uint,
initialized: gboolean,
) -> *mut GstByteWriter;
pub fn gst_byte_writer_new_with_size(size: c_uint, fixed: gboolean) -> *mut GstByteWriter;
pub fn gst_flow_combiner_get_type() -> GType;
pub fn gst_flow_combiner_new() -> *mut GstFlowCombiner;
pub fn gst_flow_combiner_add_pad(combiner: *mut GstFlowCombiner, pad: *mut gst::GstPad);
pub fn gst_flow_combiner_clear(combiner: *mut GstFlowCombiner);
pub fn gst_flow_combiner_free(combiner: *mut GstFlowCombiner);
#[cfg(any(feature = "v1_12_1", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12_1")))]
pub fn gst_flow_combiner_ref(combiner: *mut GstFlowCombiner) -> *mut GstFlowCombiner;
pub fn gst_flow_combiner_remove_pad(combiner: *mut GstFlowCombiner, pad: *mut gst::GstPad);
pub fn gst_flow_combiner_reset(combiner: *mut GstFlowCombiner);
#[cfg(any(feature = "v1_12_1", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12_1")))]
pub fn gst_flow_combiner_unref(combiner: *mut GstFlowCombiner);
pub fn gst_flow_combiner_update_flow(
combiner: *mut GstFlowCombiner,
fret: gst::GstFlowReturn,
) -> gst::GstFlowReturn;
pub fn gst_flow_combiner_update_pad_flow(
combiner: *mut GstFlowCombiner,
pad: *mut gst::GstPad,
fret: gst::GstFlowReturn,
) -> gst::GstFlowReturn;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_queue_array_clear(array: *mut GstQueueArray);
pub fn gst_queue_array_drop_element(array: *mut GstQueueArray, idx: c_uint) -> gpointer;
pub fn gst_queue_array_drop_struct(
array: *mut GstQueueArray,
idx: c_uint,
p_struct: gpointer,
) -> gboolean;
pub fn gst_queue_array_find(
array: *mut GstQueueArray,
func: glib::GCompareFunc,
data: gpointer,
) -> c_uint;
pub fn gst_queue_array_free(array: *mut GstQueueArray);
pub fn gst_queue_array_get_length(array: *mut GstQueueArray) -> c_uint;
pub fn gst_queue_array_is_empty(array: *mut GstQueueArray) -> gboolean;
pub fn gst_queue_array_peek_head(array: *mut GstQueueArray) -> gpointer;
pub fn gst_queue_array_peek_head_struct(array: *mut GstQueueArray) -> gpointer;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_queue_array_peek_nth(array: *mut GstQueueArray, idx: c_uint) -> gpointer;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_queue_array_peek_nth_struct(array: *mut GstQueueArray, idx: c_uint) -> gpointer;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_queue_array_peek_tail(array: *mut GstQueueArray) -> gpointer;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_queue_array_peek_tail_struct(array: *mut GstQueueArray) -> gpointer;
pub fn gst_queue_array_pop_head(array: *mut GstQueueArray) -> gpointer;
pub fn gst_queue_array_pop_head_struct(array: *mut GstQueueArray) -> gpointer;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_queue_array_pop_tail(array: *mut GstQueueArray) -> gpointer;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_queue_array_pop_tail_struct(array: *mut GstQueueArray) -> gpointer;
pub fn gst_queue_array_push_tail(array: *mut GstQueueArray, data: gpointer);
pub fn gst_queue_array_push_tail_struct(array: *mut GstQueueArray, p_struct: gpointer);
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_queue_array_set_clear_func(
array: *mut GstQueueArray,
clear_func: glib::GDestroyNotify,
);
pub fn gst_queue_array_new(initial_size: c_uint) -> *mut GstQueueArray;
pub fn gst_queue_array_new_for_struct(
struct_size: size_t,
initial_size: c_uint,
) -> *mut GstQueueArray;
pub fn gst_adapter_get_type() -> GType;
pub fn gst_adapter_new() -> *mut GstAdapter;
pub fn gst_adapter_available(adapter: *mut GstAdapter) -> size_t;
pub fn gst_adapter_available_fast(adapter: *mut GstAdapter) -> size_t;
pub fn gst_adapter_clear(adapter: *mut GstAdapter);
pub fn gst_adapter_copy(adapter: *mut GstAdapter, dest: gpointer, offset: size_t, size: size_t);
pub fn gst_adapter_copy_bytes(
adapter: *mut GstAdapter,
offset: size_t,
size: size_t,
) -> *mut glib::GBytes;
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_adapter_distance_from_discont(adapter: *mut GstAdapter) -> u64;
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_adapter_dts_at_discont(adapter: *mut GstAdapter) -> gst::GstClockTime;
pub fn gst_adapter_flush(adapter: *mut GstAdapter, flush: size_t);
pub fn gst_adapter_get_buffer(adapter: *mut GstAdapter, nbytes: size_t) -> *mut gst::GstBuffer;
pub fn gst_adapter_get_buffer_fast(
adapter: *mut GstAdapter,
nbytes: size_t,
) -> *mut gst::GstBuffer;
pub fn gst_adapter_get_buffer_list(
adapter: *mut GstAdapter,
nbytes: size_t,
) -> *mut gst::GstBufferList;
pub fn gst_adapter_get_list(adapter: *mut GstAdapter, nbytes: size_t) -> *mut glib::GList;
pub fn gst_adapter_map(adapter: *mut GstAdapter, size: size_t) -> gconstpointer;
pub fn gst_adapter_masked_scan_uint32(
adapter: *mut GstAdapter,
mask: u32,
pattern: u32,
offset: size_t,
size: size_t,
) -> ssize_t;
pub fn gst_adapter_masked_scan_uint32_peek(
adapter: *mut GstAdapter,
mask: u32,
pattern: u32,
offset: size_t,
size: size_t,
value: *mut u32,
) -> ssize_t;
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_adapter_offset_at_discont(adapter: *mut GstAdapter) -> u64;
pub fn gst_adapter_prev_dts(adapter: *mut GstAdapter, distance: *mut u64) -> gst::GstClockTime;
pub fn gst_adapter_prev_dts_at_offset(
adapter: *mut GstAdapter,
offset: size_t,
distance: *mut u64,
) -> gst::GstClockTime;
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_adapter_prev_offset(adapter: *mut GstAdapter, distance: *mut u64) -> u64;
pub fn gst_adapter_prev_pts(adapter: *mut GstAdapter, distance: *mut u64) -> gst::GstClockTime;
pub fn gst_adapter_prev_pts_at_offset(
adapter: *mut GstAdapter,
offset: size_t,
distance: *mut u64,
) -> gst::GstClockTime;
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_adapter_pts_at_discont(adapter: *mut GstAdapter) -> gst::GstClockTime;
pub fn gst_adapter_push(adapter: *mut GstAdapter, buf: *mut gst::GstBuffer);
pub fn gst_adapter_take(adapter: *mut GstAdapter, nbytes: size_t) -> gpointer;
pub fn gst_adapter_take_buffer(adapter: *mut GstAdapter, nbytes: size_t)
-> *mut gst::GstBuffer;
pub fn gst_adapter_take_buffer_fast(
adapter: *mut GstAdapter,
nbytes: size_t,
) -> *mut gst::GstBuffer;
pub fn gst_adapter_take_buffer_list(
adapter: *mut GstAdapter,
nbytes: size_t,
) -> *mut gst::GstBufferList;
pub fn gst_adapter_take_list(adapter: *mut GstAdapter, nbytes: size_t) -> *mut glib::GList;
pub fn gst_adapter_unmap(adapter: *mut GstAdapter);
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_get_type() -> GType;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_finish_buffer(
aggregator: *mut GstAggregator,
buffer: *mut gst::GstBuffer,
) -> gst::GstFlowReturn;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_aggregator_finish_buffer_list(
aggregator: *mut GstAggregator,
bufferlist: *mut gst::GstBufferList,
) -> gst::GstFlowReturn;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_get_allocator(
self_: *mut GstAggregator,
allocator: *mut *mut gst::GstAllocator,
params: *mut gst::GstAllocationParams,
);
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_get_buffer_pool(self_: *mut GstAggregator) -> *mut gst::GstBufferPool;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_get_latency(self_: *mut GstAggregator) -> gst::GstClockTime;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_aggregator_negotiate(self_: *mut GstAggregator) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_aggregator_peek_next_sample(
self_: *mut GstAggregator,
pad: *mut GstAggregatorPad,
) -> *mut gst::GstSample;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_aggregator_selected_samples(
self_: *mut GstAggregator,
pts: gst::GstClockTime,
dts: gst::GstClockTime,
duration: gst::GstClockTime,
info: *mut gst::GstStructure,
);
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_set_latency(
self_: *mut GstAggregator,
min_latency: gst::GstClockTime,
max_latency: gst::GstClockTime,
);
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_set_src_caps(self_: *mut GstAggregator, caps: *mut gst::GstCaps);
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_aggregator_simple_get_next_time(self_: *mut GstAggregator) -> gst::GstClockTime;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_aggregator_update_segment(
self_: *mut GstAggregator,
segment: *const gst::GstSegment,
);
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_pad_get_type() -> GType;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_pad_drop_buffer(pad: *mut GstAggregatorPad) -> gboolean;
#[cfg(any(feature = "v1_14_1", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))]
pub fn gst_aggregator_pad_has_buffer(pad: *mut GstAggregatorPad) -> gboolean;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_pad_is_eos(pad: *mut GstAggregatorPad) -> gboolean;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_pad_peek_buffer(pad: *mut GstAggregatorPad) -> *mut gst::GstBuffer;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_pad_pop_buffer(pad: *mut GstAggregatorPad) -> *mut gst::GstBuffer;
pub fn gst_base_parse_get_type() -> GType;
pub fn gst_base_parse_add_index_entry(
parse: *mut GstBaseParse,
offset: u64,
ts: gst::GstClockTime,
key: gboolean,
force: gboolean,
) -> gboolean;
pub fn gst_base_parse_convert_default(
parse: *mut GstBaseParse,
src_format: gst::GstFormat,
src_value: i64,
dest_format: gst::GstFormat,
dest_value: *mut i64,
) -> gboolean;
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
pub fn gst_base_parse_drain(parse: *mut GstBaseParse);
pub fn gst_base_parse_finish_frame(
parse: *mut GstBaseParse,
frame: *mut GstBaseParseFrame,
size: c_int,
) -> gst::GstFlowReturn;
pub fn gst_base_parse_merge_tags(
parse: *mut GstBaseParse,
tags: *mut gst::GstTagList,
mode: gst::GstTagMergeMode,
);
pub fn gst_base_parse_push_frame(
parse: *mut GstBaseParse,
frame: *mut GstBaseParseFrame,
) -> gst::GstFlowReturn;
pub fn gst_base_parse_set_average_bitrate(parse: *mut GstBaseParse, bitrate: c_uint);
pub fn gst_base_parse_set_duration(
parse: *mut GstBaseParse,
fmt: gst::GstFormat,
duration: i64,
interval: c_int,
);
pub fn gst_base_parse_set_frame_rate(
parse: *mut GstBaseParse,
fps_num: c_uint,
fps_den: c_uint,
lead_in: c_uint,
lead_out: c_uint,
);
pub fn gst_base_parse_set_has_timing_info(parse: *mut GstBaseParse, has_timing: gboolean);
pub fn gst_base_parse_set_infer_ts(parse: *mut GstBaseParse, infer_ts: gboolean);
pub fn gst_base_parse_set_latency(
parse: *mut GstBaseParse,
min_latency: gst::GstClockTime,
max_latency: gst::GstClockTime,
);
pub fn gst_base_parse_set_min_frame_size(parse: *mut GstBaseParse, min_size: c_uint);
pub fn gst_base_parse_set_passthrough(parse: *mut GstBaseParse, passthrough: gboolean);
pub fn gst_base_parse_set_pts_interpolation(
parse: *mut GstBaseParse,
pts_interpolate: gboolean,
);
pub fn gst_base_parse_set_syncable(parse: *mut GstBaseParse, syncable: gboolean);
pub fn gst_base_parse_set_ts_at_offset(parse: *mut GstBaseParse, offset: size_t);
pub fn gst_base_sink_get_type() -> GType;
pub fn gst_base_sink_do_preroll(
sink: *mut GstBaseSink,
obj: *mut gst::GstMiniObject,
) -> gst::GstFlowReturn;
pub fn gst_base_sink_get_blocksize(sink: *mut GstBaseSink) -> c_uint;
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
pub fn gst_base_sink_get_drop_out_of_segment(sink: *mut GstBaseSink) -> gboolean;
pub fn gst_base_sink_get_last_sample(sink: *mut GstBaseSink) -> *mut gst::GstSample;
pub fn gst_base_sink_get_latency(sink: *mut GstBaseSink) -> gst::GstClockTime;
pub fn gst_base_sink_get_max_bitrate(sink: *mut GstBaseSink) -> u64;
pub fn gst_base_sink_get_max_lateness(sink: *mut GstBaseSink) -> i64;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_base_sink_get_processing_deadline(sink: *mut GstBaseSink) -> gst::GstClockTime;
pub fn gst_base_sink_get_render_delay(sink: *mut GstBaseSink) -> gst::GstClockTime;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_base_sink_get_stats(sink: *mut GstBaseSink) -> *mut gst::GstStructure;
pub fn gst_base_sink_get_sync(sink: *mut GstBaseSink) -> gboolean;
pub fn gst_base_sink_get_throttle_time(sink: *mut GstBaseSink) -> u64;
pub fn gst_base_sink_get_ts_offset(sink: *mut GstBaseSink) -> gst::GstClockTimeDiff;
pub fn gst_base_sink_is_async_enabled(sink: *mut GstBaseSink) -> gboolean;
pub fn gst_base_sink_is_last_sample_enabled(sink: *mut GstBaseSink) -> gboolean;
pub fn gst_base_sink_is_qos_enabled(sink: *mut GstBaseSink) -> gboolean;
pub fn gst_base_sink_query_latency(
sink: *mut GstBaseSink,
live: *mut gboolean,
upstream_live: *mut gboolean,
min_latency: *mut gst::GstClockTime,
max_latency: *mut gst::GstClockTime,
) -> gboolean;
pub fn gst_base_sink_set_async_enabled(sink: *mut GstBaseSink, enabled: gboolean);
pub fn gst_base_sink_set_blocksize(sink: *mut GstBaseSink, blocksize: c_uint);
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
pub fn gst_base_sink_set_drop_out_of_segment(
sink: *mut GstBaseSink,
drop_out_of_segment: gboolean,
);
pub fn gst_base_sink_set_last_sample_enabled(sink: *mut GstBaseSink, enabled: gboolean);
pub fn gst_base_sink_set_max_bitrate(sink: *mut GstBaseSink, max_bitrate: u64);
pub fn gst_base_sink_set_max_lateness(sink: *mut GstBaseSink, max_lateness: i64);
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_base_sink_set_processing_deadline(
sink: *mut GstBaseSink,
processing_deadline: gst::GstClockTime,
);
pub fn gst_base_sink_set_qos_enabled(sink: *mut GstBaseSink, enabled: gboolean);
pub fn gst_base_sink_set_render_delay(sink: *mut GstBaseSink, delay: gst::GstClockTime);
pub fn gst_base_sink_set_sync(sink: *mut GstBaseSink, sync: gboolean);
pub fn gst_base_sink_set_throttle_time(sink: *mut GstBaseSink, throttle: u64);
pub fn gst_base_sink_set_ts_offset(sink: *mut GstBaseSink, offset: gst::GstClockTimeDiff);
pub fn gst_base_sink_wait(
sink: *mut GstBaseSink,
time: gst::GstClockTime,
jitter: *mut gst::GstClockTimeDiff,
) -> gst::GstFlowReturn;
pub fn gst_base_sink_wait_clock(
sink: *mut GstBaseSink,
time: gst::GstClockTime,
jitter: *mut gst::GstClockTimeDiff,
) -> gst::GstClockReturn;
pub fn gst_base_sink_wait_preroll(sink: *mut GstBaseSink) -> gst::GstFlowReturn;
pub fn gst_base_src_get_type() -> GType;
pub fn gst_base_src_get_allocator(
src: *mut GstBaseSrc,
allocator: *mut *mut gst::GstAllocator,
params: *mut gst::GstAllocationParams,
);
pub fn gst_base_src_get_blocksize(src: *mut GstBaseSrc) -> c_uint;
pub fn gst_base_src_get_buffer_pool(src: *mut GstBaseSrc) -> *mut gst::GstBufferPool;
pub fn gst_base_src_get_do_timestamp(src: *mut GstBaseSrc) -> gboolean;
pub fn gst_base_src_is_async(src: *mut GstBaseSrc) -> gboolean;
pub fn gst_base_src_is_live(src: *mut GstBaseSrc) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_base_src_negotiate(src: *mut GstBaseSrc) -> gboolean;
pub fn gst_base_src_new_seamless_segment(
src: *mut GstBaseSrc,
start: i64,
stop: i64,
time: i64,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_base_src_new_segment(
src: *mut GstBaseSrc,
segment: *const gst::GstSegment,
) -> gboolean;
pub fn gst_base_src_query_latency(
src: *mut GstBaseSrc,
live: *mut gboolean,
min_latency: *mut gst::GstClockTime,
max_latency: *mut gst::GstClockTime,
) -> gboolean;
pub fn gst_base_src_set_async(src: *mut GstBaseSrc, async_: gboolean);
pub fn gst_base_src_set_automatic_eos(src: *mut GstBaseSrc, automatic_eos: gboolean);
pub fn gst_base_src_set_blocksize(src: *mut GstBaseSrc, blocksize: c_uint);
pub fn gst_base_src_set_caps(src: *mut GstBaseSrc, caps: *mut gst::GstCaps) -> gboolean;
pub fn gst_base_src_set_do_timestamp(src: *mut GstBaseSrc, timestamp: gboolean);
pub fn gst_base_src_set_dynamic_size(src: *mut GstBaseSrc, dynamic: gboolean);
pub fn gst_base_src_set_format(src: *mut GstBaseSrc, format: gst::GstFormat);
pub fn gst_base_src_set_live(src: *mut GstBaseSrc, live: gboolean);
pub fn gst_base_src_start_complete(basesrc: *mut GstBaseSrc, ret: gst::GstFlowReturn);
pub fn gst_base_src_start_wait(basesrc: *mut GstBaseSrc) -> gst::GstFlowReturn;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_base_src_submit_buffer_list(
src: *mut GstBaseSrc,
buffer_list: *mut gst::GstBufferList,
);
pub fn gst_base_src_wait_playing(src: *mut GstBaseSrc) -> gst::GstFlowReturn;
pub fn gst_base_transform_get_type() -> GType;
pub fn gst_base_transform_get_allocator(
trans: *mut GstBaseTransform,
allocator: *mut *mut gst::GstAllocator,
params: *mut gst::GstAllocationParams,
);
pub fn gst_base_transform_get_buffer_pool(
trans: *mut GstBaseTransform,
) -> *mut gst::GstBufferPool;
pub fn gst_base_transform_is_in_place(trans: *mut GstBaseTransform) -> gboolean;
pub fn gst_base_transform_is_passthrough(trans: *mut GstBaseTransform) -> gboolean;
pub fn gst_base_transform_is_qos_enabled(trans: *mut GstBaseTransform) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_base_transform_reconfigure(trans: *mut GstBaseTransform) -> gboolean;
pub fn gst_base_transform_reconfigure_sink(trans: *mut GstBaseTransform);
pub fn gst_base_transform_reconfigure_src(trans: *mut GstBaseTransform);
pub fn gst_base_transform_set_gap_aware(trans: *mut GstBaseTransform, gap_aware: gboolean);
pub fn gst_base_transform_set_in_place(trans: *mut GstBaseTransform, in_place: gboolean);
pub fn gst_base_transform_set_passthrough(trans: *mut GstBaseTransform, passthrough: gboolean);
pub fn gst_base_transform_set_prefer_passthrough(
trans: *mut GstBaseTransform,
prefer_passthrough: gboolean,
);
pub fn gst_base_transform_set_qos_enabled(trans: *mut GstBaseTransform, enabled: gboolean);
pub fn gst_base_transform_update_qos(
trans: *mut GstBaseTransform,
proportion: c_double,
diff: gst::GstClockTimeDiff,
timestamp: gst::GstClockTime,
);
pub fn gst_base_transform_update_src_caps(
trans: *mut GstBaseTransform,
updated_caps: *mut gst::GstCaps,
) -> gboolean;
pub fn gst_collect_pads_get_type() -> GType;
pub fn gst_collect_pads_new() -> *mut GstCollectPads;
pub fn gst_collect_pads_add_pad(
pads: *mut GstCollectPads,
pad: *mut gst::GstPad,
size: c_uint,
destroy_notify: GstCollectDataDestroyNotify,
lock: gboolean,
) -> *mut GstCollectData;
pub fn gst_collect_pads_available(pads: *mut GstCollectPads) -> c_uint;
pub fn gst_collect_pads_clip_running_time(
pads: *mut GstCollectPads,
cdata: *mut GstCollectData,
buf: *mut gst::GstBuffer,
outbuf: *mut *mut gst::GstBuffer,
user_data: gpointer,
) -> gst::GstFlowReturn;
pub fn gst_collect_pads_event_default(
pads: *mut GstCollectPads,
data: *mut GstCollectData,
event: *mut gst::GstEvent,
discard: gboolean,
) -> gboolean;
pub fn gst_collect_pads_flush(
pads: *mut GstCollectPads,
data: *mut GstCollectData,
size: c_uint,
) -> c_uint;
pub fn gst_collect_pads_peek(
pads: *mut GstCollectPads,
data: *mut GstCollectData,
) -> *mut gst::GstBuffer;
pub fn gst_collect_pads_pop(
pads: *mut GstCollectPads,
data: *mut GstCollectData,
) -> *mut gst::GstBuffer;
pub fn gst_collect_pads_query_default(
pads: *mut GstCollectPads,
data: *mut GstCollectData,
query: *mut gst::GstQuery,
discard: gboolean,
) -> gboolean;
pub fn gst_collect_pads_read_buffer(
pads: *mut GstCollectPads,
data: *mut GstCollectData,
size: c_uint,
) -> *mut gst::GstBuffer;
pub fn gst_collect_pads_remove_pad(
pads: *mut GstCollectPads,
pad: *mut gst::GstPad,
) -> gboolean;
pub fn gst_collect_pads_set_buffer_function(
pads: *mut GstCollectPads,
func: GstCollectPadsBufferFunction,
user_data: gpointer,
);
pub fn gst_collect_pads_set_clip_function(
pads: *mut GstCollectPads,
clipfunc: GstCollectPadsClipFunction,
user_data: gpointer,
);
pub fn gst_collect_pads_set_compare_function(
pads: *mut GstCollectPads,
func: GstCollectPadsCompareFunction,
user_data: gpointer,
);
pub fn gst_collect_pads_set_event_function(
pads: *mut GstCollectPads,
func: GstCollectPadsEventFunction,
user_data: gpointer,
);
pub fn gst_collect_pads_set_flush_function(
pads: *mut GstCollectPads,
func: GstCollectPadsFlushFunction,
user_data: gpointer,
);
pub fn gst_collect_pads_set_flushing(pads: *mut GstCollectPads, flushing: gboolean);
pub fn gst_collect_pads_set_function(
pads: *mut GstCollectPads,
func: GstCollectPadsFunction,
user_data: gpointer,
);
pub fn gst_collect_pads_set_query_function(
pads: *mut GstCollectPads,
func: GstCollectPadsQueryFunction,
user_data: gpointer,
);
pub fn gst_collect_pads_set_waiting(
pads: *mut GstCollectPads,
data: *mut GstCollectData,
waiting: gboolean,
);
pub fn gst_collect_pads_src_event_default(
pads: *mut GstCollectPads,
pad: *mut gst::GstPad,
event: *mut gst::GstEvent,
) -> gboolean;
pub fn gst_collect_pads_start(pads: *mut GstCollectPads);
pub fn gst_collect_pads_stop(pads: *mut GstCollectPads);
pub fn gst_collect_pads_take_buffer(
pads: *mut GstCollectPads,
data: *mut GstCollectData,
size: c_uint,
) -> *mut gst::GstBuffer;
pub fn gst_data_queue_get_type() -> GType;
pub fn gst_data_queue_new(
checkfull: GstDataQueueCheckFullFunction,
fullcallback: GstDataQueueFullCallback,
emptycallback: GstDataQueueEmptyCallback,
checkdata: gpointer,
) -> *mut GstDataQueue;
pub fn gst_data_queue_drop_head(queue: *mut GstDataQueue, type_: GType) -> gboolean;
pub fn gst_data_queue_flush(queue: *mut GstDataQueue);
pub fn gst_data_queue_get_level(queue: *mut GstDataQueue, level: *mut GstDataQueueSize);
pub fn gst_data_queue_is_empty(queue: *mut GstDataQueue) -> gboolean;
pub fn gst_data_queue_is_full(queue: *mut GstDataQueue) -> gboolean;
pub fn gst_data_queue_limits_changed(queue: *mut GstDataQueue);
pub fn gst_data_queue_peek(
queue: *mut GstDataQueue,
item: *mut *mut GstDataQueueItem,
) -> gboolean;
pub fn gst_data_queue_pop(
queue: *mut GstDataQueue,
item: *mut *mut GstDataQueueItem,
) -> gboolean;
pub fn gst_data_queue_push(queue: *mut GstDataQueue, item: *mut GstDataQueueItem) -> gboolean;
pub fn gst_data_queue_push_force(
queue: *mut GstDataQueue,
item: *mut GstDataQueueItem,
) -> gboolean;
pub fn gst_data_queue_set_flushing(queue: *mut GstDataQueue, flushing: gboolean);
pub fn gst_push_src_get_type() -> GType;
pub fn gst_type_find_helper(src: *mut gst::GstPad, size: u64) -> *mut gst::GstCaps;
pub fn gst_type_find_helper_for_buffer(
obj: *mut gst::GstObject,
buf: *mut gst::GstBuffer,
prob: *mut gst::GstTypeFindProbability,
) -> *mut gst::GstCaps;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_type_find_helper_for_buffer_with_extension(
obj: *mut gst::GstObject,
buf: *mut gst::GstBuffer,
extension: *const c_char,
prob: *mut gst::GstTypeFindProbability,
) -> *mut gst::GstCaps;
pub fn gst_type_find_helper_for_data(
obj: *mut gst::GstObject,
data: *const u8,
size: size_t,
prob: *mut gst::GstTypeFindProbability,
) -> *mut gst::GstCaps;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_type_find_helper_for_data_with_extension(
obj: *mut gst::GstObject,
data: *const u8,
size: size_t,
extension: *const c_char,
prob: *mut gst::GstTypeFindProbability,
) -> *mut gst::GstCaps;
pub fn gst_type_find_helper_for_extension(
obj: *mut gst::GstObject,
extension: *const c_char,
) -> *mut gst::GstCaps;
pub fn gst_type_find_helper_get_range(
obj: *mut gst::GstObject,
parent: *mut gst::GstObject,
func: GstTypeFindHelperGetRangeFunction,
size: u64,
extension: *const c_char,
prob: *mut gst::GstTypeFindProbability,
) -> *mut gst::GstCaps;
#[cfg(any(feature = "v1_14_3", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_3")))]
pub fn gst_type_find_helper_get_range_full(
obj: *mut gst::GstObject,
parent: *mut gst::GstObject,
func: GstTypeFindHelperGetRangeFunction,
size: u64,
extension: *const c_char,
caps: *mut *mut gst::GstCaps,
prob: *mut gst::GstTypeFindProbability,
) -> gst::GstFlowReturn;
}