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
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
/* automatically generated by rust-bindgen */

pub const MLT_POSITION_FMT: &'static [u8; 3usize] = b"%d\0";
pub const MLT_DIRLIST_DELIMITER: &'static [u8; 2usize] = b":\0";
pub const MLT_LOG_QUIET: i32 = -8;
pub const MLT_LOG_PANIC: u32 = 0;
pub const MLT_LOG_FATAL: u32 = 8;
pub const MLT_LOG_ERROR: u32 = 16;
pub const MLT_LOG_WARNING: u32 = 24;
pub const MLT_LOG_INFO: u32 = 32;
pub const MLT_LOG_VERBOSE: u32 = 40;
pub const MLT_LOG_TIMINGS: u32 = 44;
pub const MLT_LOG_DEBUG: u32 = 48;
pub type __uint8_t = ::std::os::raw::c_uchar;
pub type __int32_t = ::std::os::raw::c_int;
pub type __int64_t = ::std::os::raw::c_long;
pub type __off_t = ::std::os::raw::c_long;
pub type __off64_t = ::std::os::raw::c_long;
pub type FILE = _IO_FILE;
pub type va_list = __builtin_va_list;
pub type _IO_lock_t = ::std::os::raw::c_void;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_marker {
    pub _next: *mut _IO_marker,
    pub _sbuf: *mut _IO_FILE,
    pub _pos: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout__IO_marker() {
    assert_eq!(
        ::std::mem::size_of::<_IO_marker>(),
        24usize,
        concat!("Size of: ", stringify!(_IO_marker))
    );
    assert_eq!(
        ::std::mem::align_of::<_IO_marker>(),
        8usize,
        concat!("Alignment of ", stringify!(_IO_marker))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_marker>()))._next as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_marker),
            "::",
            stringify!(_next)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_marker>()))._sbuf as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_marker),
            "::",
            stringify!(_sbuf)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_marker>()))._pos as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_marker),
            "::",
            stringify!(_pos)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_FILE {
    pub _flags: ::std::os::raw::c_int,
    pub _IO_read_ptr: *mut ::std::os::raw::c_char,
    pub _IO_read_end: *mut ::std::os::raw::c_char,
    pub _IO_read_base: *mut ::std::os::raw::c_char,
    pub _IO_write_base: *mut ::std::os::raw::c_char,
    pub _IO_write_ptr: *mut ::std::os::raw::c_char,
    pub _IO_write_end: *mut ::std::os::raw::c_char,
    pub _IO_buf_base: *mut ::std::os::raw::c_char,
    pub _IO_buf_end: *mut ::std::os::raw::c_char,
    pub _IO_save_base: *mut ::std::os::raw::c_char,
    pub _IO_backup_base: *mut ::std::os::raw::c_char,
    pub _IO_save_end: *mut ::std::os::raw::c_char,
    pub _markers: *mut _IO_marker,
    pub _chain: *mut _IO_FILE,
    pub _fileno: ::std::os::raw::c_int,
    pub _flags2: ::std::os::raw::c_int,
    pub _old_offset: __off_t,
    pub _cur_column: ::std::os::raw::c_ushort,
    pub _vtable_offset: ::std::os::raw::c_schar,
    pub _shortbuf: [::std::os::raw::c_char; 1usize],
    pub _lock: *mut _IO_lock_t,
    pub _offset: __off64_t,
    pub __pad1: *mut ::std::os::raw::c_void,
    pub __pad2: *mut ::std::os::raw::c_void,
    pub __pad3: *mut ::std::os::raw::c_void,
    pub __pad4: *mut ::std::os::raw::c_void,
    pub __pad5: usize,
    pub _mode: ::std::os::raw::c_int,
    pub _unused2: [::std::os::raw::c_char; 20usize],
}
#[test]
fn bindgen_test_layout__IO_FILE() {
    assert_eq!(
        ::std::mem::size_of::<_IO_FILE>(),
        216usize,
        concat!("Size of: ", stringify!(_IO_FILE))
    );
    assert_eq!(
        ::std::mem::align_of::<_IO_FILE>(),
        8usize,
        concat!("Alignment of ", stringify!(_IO_FILE))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._flags as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_flags)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_read_ptr as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_IO_read_ptr)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_read_end as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_IO_read_end)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_read_base as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_IO_read_base)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_write_base as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_IO_write_base)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_write_ptr as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_IO_write_ptr)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_write_end as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_IO_write_end)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_buf_base as *const _ as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_IO_buf_base)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_buf_end as *const _ as usize },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_IO_buf_end)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_save_base as *const _ as usize },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_IO_save_base)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_backup_base as *const _ as usize },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_IO_backup_base)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_save_end as *const _ as usize },
        88usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_IO_save_end)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._markers as *const _ as usize },
        96usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_markers)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._chain as *const _ as usize },
        104usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_chain)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._fileno as *const _ as usize },
        112usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_fileno)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._flags2 as *const _ as usize },
        116usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_flags2)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._old_offset as *const _ as usize },
        120usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_old_offset)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._cur_column as *const _ as usize },
        128usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_cur_column)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._vtable_offset as *const _ as usize },
        130usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_vtable_offset)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._shortbuf as *const _ as usize },
        131usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_shortbuf)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._lock as *const _ as usize },
        136usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_lock)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._offset as *const _ as usize },
        144usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_offset)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>())).__pad1 as *const _ as usize },
        152usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(__pad1)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>())).__pad2 as *const _ as usize },
        160usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(__pad2)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>())).__pad3 as *const _ as usize },
        168usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(__pad3)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>())).__pad4 as *const _ as usize },
        176usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(__pad4)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>())).__pad5 as *const _ as usize },
        184usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(__pad5)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._mode as *const _ as usize },
        192usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_mode)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._unused2 as *const _ as usize },
        196usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_unused2)
        )
    );
}
extern "C" {
    pub fn mlt_pool_init();
    pub fn mlt_pool_alloc(size: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_void;
    pub fn mlt_pool_realloc(
        ptr: *mut ::std::os::raw::c_void,
        size: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_void;
    pub fn mlt_pool_release(release: *mut ::std::os::raw::c_void);
    pub fn mlt_pool_purge();
    pub fn mlt_pool_close();
    pub fn mlt_pool_stat();
}
/// < image not available
pub const mlt_image_format_mlt_image_none: mlt_image_format = 0;
/// < 8-bit RGB
pub const mlt_image_format_mlt_image_rgb24: mlt_image_format = 1;
/// < 8-bit RGB with alpha channel
pub const mlt_image_format_mlt_image_rgb24a: mlt_image_format = 2;
/// < 8-bit YUV 4:2:2 packed
pub const mlt_image_format_mlt_image_yuv422: mlt_image_format = 3;
/// < 8-bit YUV 4:2:0 planar
pub const mlt_image_format_mlt_image_yuv420p: mlt_image_format = 4;
/// < (deprecated) suitable for OpenGL texture
pub const mlt_image_format_mlt_image_opengl: mlt_image_format = 5;
/// < for opengl module internal use only
pub const mlt_image_format_mlt_image_glsl: mlt_image_format = 6;
/// < an OpenGL texture name
pub const mlt_image_format_mlt_image_glsl_texture: mlt_image_format = 7;
/// < planar YUV 4:2:2, 32bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian
pub const mlt_image_format_mlt_image_yuv422p16: mlt_image_format = 8;
pub const mlt_image_format_mlt_image_invalid: mlt_image_format = 9;
/// The set of supported image formats
pub type mlt_image_format = u32;
/// < audio not available
pub const mlt_audio_format_mlt_audio_none: mlt_audio_format = 0;
/// < \deprecated signed 16-bit interleaved PCM
pub const mlt_audio_format_mlt_audio_pcm: mlt_audio_format = 1;
/// < signed 16-bit interleaved PCM
pub const mlt_audio_format_mlt_audio_s16: mlt_audio_format = 1;
/// < signed 32-bit non-interleaved PCM
pub const mlt_audio_format_mlt_audio_s32: mlt_audio_format = 2;
/// < 32-bit non-interleaved floating point
pub const mlt_audio_format_mlt_audio_float: mlt_audio_format = 3;
/// < signed 32-bit interleaved PCM
pub const mlt_audio_format_mlt_audio_s32le: mlt_audio_format = 4;
/// < 32-bit interleaved floating point
pub const mlt_audio_format_mlt_audio_f32le: mlt_audio_format = 5;
/// < unsigned 8-bit interleaved PCM
pub const mlt_audio_format_mlt_audio_u8: mlt_audio_format = 6;
/// The set of supported audio formats
pub type mlt_audio_format = u32;
/// < MLT will determine the default configuration based on channel number
pub const mlt_channel_layout_mlt_channel_auto: mlt_channel_layout = 0;
/// < channels are not related
pub const mlt_channel_layout_mlt_channel_independent: mlt_channel_layout = 1;
pub const mlt_channel_layout_mlt_channel_mono: mlt_channel_layout = 2;
pub const mlt_channel_layout_mlt_channel_stereo: mlt_channel_layout = 3;
pub const mlt_channel_layout_mlt_channel_2p1: mlt_channel_layout = 4;
pub const mlt_channel_layout_mlt_channel_3p0: mlt_channel_layout = 5;
pub const mlt_channel_layout_mlt_channel_3p0_back: mlt_channel_layout = 6;
pub const mlt_channel_layout_mlt_channel_4p0: mlt_channel_layout = 7;
pub const mlt_channel_layout_mlt_channel_quad_back: mlt_channel_layout = 8;
pub const mlt_channel_layout_mlt_channel_quad_side: mlt_channel_layout = 9;
pub const mlt_channel_layout_mlt_channel_3p1: mlt_channel_layout = 10;
pub const mlt_channel_layout_mlt_channel_5p0_back: mlt_channel_layout = 11;
pub const mlt_channel_layout_mlt_channel_5p0: mlt_channel_layout = 12;
pub const mlt_channel_layout_mlt_channel_4p1: mlt_channel_layout = 13;
pub const mlt_channel_layout_mlt_channel_5p1_back: mlt_channel_layout = 14;
pub const mlt_channel_layout_mlt_channel_5p1: mlt_channel_layout = 15;
pub const mlt_channel_layout_mlt_channel_6p0: mlt_channel_layout = 16;
pub const mlt_channel_layout_mlt_channel_6p0_front: mlt_channel_layout = 17;
pub const mlt_channel_layout_mlt_channel_hexagonal: mlt_channel_layout = 18;
pub const mlt_channel_layout_mlt_channel_6p1: mlt_channel_layout = 19;
pub const mlt_channel_layout_mlt_channel_6p1_back: mlt_channel_layout = 20;
pub const mlt_channel_layout_mlt_channel_6p1_front: mlt_channel_layout = 21;
pub const mlt_channel_layout_mlt_channel_7p0: mlt_channel_layout = 22;
pub const mlt_channel_layout_mlt_channel_7p0_front: mlt_channel_layout = 23;
pub const mlt_channel_layout_mlt_channel_7p1: mlt_channel_layout = 24;
pub const mlt_channel_layout_mlt_channel_7p1_wide_side: mlt_channel_layout = 25;
pub const mlt_channel_layout_mlt_channel_7p1_wide_back: mlt_channel_layout = 26;
pub type mlt_channel_layout = u32;
/// < frame count
pub const mlt_time_format_mlt_time_frames: mlt_time_format = 0;
/// < SMIL clock-value as [[hh:]mm:]ss[.fraction]
pub const mlt_time_format_mlt_time_clock: mlt_time_format = 1;
/// < SMPTE timecode as [[[hh:]mm:]ss{:|;}]frames
pub const mlt_time_format_mlt_time_smpte_df: mlt_time_format = 2;
/// < Deprecated
pub const mlt_time_format_mlt_time_smpte: mlt_time_format = 2;
/// < SMPTE NDF timecode as [[[hh:]mm:]ss:]frames
pub const mlt_time_format_mlt_time_smpte_ndf: mlt_time_format = 3;
/// The time string formats
pub type mlt_time_format = u32;
/// < non-interpolated; value changes instantaneously at the key frame
pub const mlt_keyframe_type_mlt_keyframe_discrete: mlt_keyframe_type = 0;
/// < simple, constant pace from this key frame to the next
pub const mlt_keyframe_type_mlt_keyframe_linear: mlt_keyframe_type = 1;
/// < eased pacing from this keyframe to the next using a Catmull-Rom spline
pub const mlt_keyframe_type_mlt_keyframe_smooth: mlt_keyframe_type = 2;
/// Interpolation methods for animation keyframes
pub type mlt_keyframe_type = u32;
/// < relative to the beginning
pub const mlt_whence_mlt_whence_relative_start: mlt_whence = 0;
/// < relative to the current position
pub const mlt_whence_mlt_whence_relative_current: mlt_whence = 1;
/// < relative to the end
pub const mlt_whence_mlt_whence_relative_end: mlt_whence = 2;
/// The relative time qualifiers
pub type mlt_whence = u32;
/// < invalid service
pub const mlt_service_type_invalid_type: mlt_service_type = 0;
/// < unknown class
pub const mlt_service_type_unknown_type: mlt_service_type = 1;
/// < Producer class
pub const mlt_service_type_producer_type: mlt_service_type = 2;
/// < Tractor class
pub const mlt_service_type_tractor_type: mlt_service_type = 3;
/// < Playlist class
pub const mlt_service_type_playlist_type: mlt_service_type = 4;
/// < Multitrack class
pub const mlt_service_type_multitrack_type: mlt_service_type = 5;
/// < Filter class
pub const mlt_service_type_filter_type: mlt_service_type = 6;
/// < Transition class
pub const mlt_service_type_transition_type: mlt_service_type = 7;
/// < Consumer class
pub const mlt_service_type_consumer_type: mlt_service_type = 8;
/// < Field class
pub const mlt_service_type_field_type: mlt_service_type = 9;
/// The recognized subclasses of mlt_service
pub type mlt_service_type = u32;
pub type mlt_position = i32;
/// A rectangle type with coordinates, size, and opacity
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mlt_rect {
    /// < X coordinate
    pub x: f64,
    /// < Y coordinate
    pub y: f64,
    /// < width
    pub w: f64,
    /// < height
    pub h: f64,
    /// < opacity / mix-level
    pub o: f64,
}
#[test]
fn bindgen_test_layout_mlt_rect() {
    assert_eq!(
        ::std::mem::size_of::<mlt_rect>(),
        40usize,
        concat!("Size of: ", stringify!(mlt_rect))
    );
    assert_eq!(
        ::std::mem::align_of::<mlt_rect>(),
        8usize,
        concat!("Alignment of ", stringify!(mlt_rect))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_rect>())).x as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_rect),
            "::",
            stringify!(x)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_rect>())).y as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_rect),
            "::",
            stringify!(y)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_rect>())).w as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_rect),
            "::",
            stringify!(w)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_rect>())).h as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_rect),
            "::",
            stringify!(h)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_rect>())).o as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_rect),
            "::",
            stringify!(o)
        )
    );
}
/// A tuple of color components
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mlt_color {
    /// < red
    pub r: u8,
    /// < green
    pub g: u8,
    /// < blue
    pub b: u8,
    /// < alpha
    pub a: u8,
}
#[test]
fn bindgen_test_layout_mlt_color() {
    assert_eq!(
        ::std::mem::size_of::<mlt_color>(),
        4usize,
        concat!("Size of: ", stringify!(mlt_color))
    );
    assert_eq!(
        ::std::mem::align_of::<mlt_color>(),
        1usize,
        concat!("Alignment of ", stringify!(mlt_color))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_color>())).r as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_color),
            "::",
            stringify!(r)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_color>())).g as *const _ as usize },
        1usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_color),
            "::",
            stringify!(g)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_color>())).b as *const _ as usize },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_color),
            "::",
            stringify!(b)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_color>())).a as *const _ as usize },
        3usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_color),
            "::",
            stringify!(a)
        )
    );
}
pub type mlt_frame = *mut mlt_frame_s;
pub type mlt_frame_ptr = *mut *mut mlt_frame_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mlt_property_s {
    _unused: [u8; 0],
}
pub type mlt_property = *mut mlt_property_s;
pub type mlt_properties = *mut mlt_properties_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mlt_event_struct {
    _unused: [u8; 0],
}
pub type mlt_event = *mut mlt_event_struct;
pub type mlt_service = *mut mlt_service_s;
pub type mlt_producer = *mut mlt_producer_s;
pub type mlt_playlist = *mut mlt_playlist_s;
pub type mlt_multitrack = *mut mlt_multitrack_s;
pub type mlt_filter = *mut mlt_filter_s;
pub type mlt_transition = *mut mlt_transition_s;
pub type mlt_tractor = *mut mlt_tractor_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mlt_field_s {
    _unused: [u8; 0],
}
pub type mlt_field = *mut mlt_field_s;
pub type mlt_consumer = *mut mlt_consumer_s;
pub type mlt_parser = *mut mlt_parser_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mlt_deque_s {
    _unused: [u8; 0],
}
pub type mlt_deque = *mut mlt_deque_s;
pub type mlt_geometry = *mut mlt_geometry_s;
pub type mlt_geometry_item = *mut mlt_geometry_item_s;
pub type mlt_profile = *mut mlt_profile_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mlt_repository_s {
    _unused: [u8; 0],
}
pub type mlt_repository = *mut mlt_repository_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mlt_cache_s {
    _unused: [u8; 0],
}
pub type mlt_cache = *mut mlt_cache_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mlt_cache_item_s {
    _unused: [u8; 0],
}
pub type mlt_cache_item = *mut mlt_cache_item_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mlt_animation_s {
    _unused: [u8; 0],
}
pub type mlt_animation = *mut mlt_animation_s;
/// \envvar \em MLT_SLICES_COUNT Set the number of slices to use, which
/// defaults to number of CPUs found.
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mlt_slices_s {
    _unused: [u8; 0],
}
pub type mlt_slices = *mut mlt_slices_s;
pub type mlt_destructor =
    ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>;
pub type mlt_serialiser = ::std::option::Option<
    unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void, length: ::std::os::raw::c_int)
        -> *mut ::std::os::raw::c_char,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __locale_struct {
    pub __locales: [*mut __locale_data; 13usize],
    pub __ctype_b: *const ::std::os::raw::c_ushort,
    pub __ctype_tolower: *const ::std::os::raw::c_int,
    pub __ctype_toupper: *const ::std::os::raw::c_int,
    pub __names: [*const ::std::os::raw::c_char; 13usize],
}
#[test]
fn bindgen_test_layout___locale_struct() {
    assert_eq!(
        ::std::mem::size_of::<__locale_struct>(),
        232usize,
        concat!("Size of: ", stringify!(__locale_struct))
    );
    assert_eq!(
        ::std::mem::align_of::<__locale_struct>(),
        8usize,
        concat!("Alignment of ", stringify!(__locale_struct))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__locale_struct>())).__locales as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__locale_struct),
            "::",
            stringify!(__locales)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__locale_struct>())).__ctype_b as *const _ as usize },
        104usize,
        concat!(
            "Offset of field: ",
            stringify!(__locale_struct),
            "::",
            stringify!(__ctype_b)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__locale_struct>())).__ctype_tolower as *const _ as usize },
        112usize,
        concat!(
            "Offset of field: ",
            stringify!(__locale_struct),
            "::",
            stringify!(__ctype_tolower)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__locale_struct>())).__ctype_toupper as *const _ as usize },
        120usize,
        concat!(
            "Offset of field: ",
            stringify!(__locale_struct),
            "::",
            stringify!(__ctype_toupper)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__locale_struct>())).__names as *const _ as usize },
        128usize,
        concat!(
            "Offset of field: ",
            stringify!(__locale_struct),
            "::",
            stringify!(__names)
        )
    );
}
pub type __locale_t = *mut __locale_struct;
pub type locale_t = __locale_t;
extern "C" {
    pub fn mlt_property_init() -> mlt_property;
    pub fn mlt_property_clear(self_: mlt_property);
    pub fn mlt_property_set_int(
    self_: mlt_property,
    value: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_property_set_double(self_: mlt_property, value: f64) -> ::std::os::raw::c_int;
    pub fn mlt_property_set_position(
        self_: mlt_property,
        value: mlt_position,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_property_set_int64(self_: mlt_property, value: i64) -> ::std::os::raw::c_int;
    pub fn mlt_property_set_string(
        self_: mlt_property,
        value: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_property_set_data(
        self_: mlt_property,
        value: *mut ::std::os::raw::c_void,
        length: ::std::os::raw::c_int,
        destructor: mlt_destructor,
        serialiser: mlt_serialiser,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_property_get_int(
        self_: mlt_property,
        fps: f64,
        arg1: locale_t,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_property_get_double(self_: mlt_property, fps: f64, arg1: locale_t) -> f64;
    pub fn mlt_property_get_position(self_: mlt_property, fps: f64, arg1: locale_t)
        -> mlt_position;
    pub fn mlt_property_get_int64(self_: mlt_property) -> i64;
    pub fn mlt_property_get_string_tf(
        self_: mlt_property,
        arg1: mlt_time_format,
    ) -> *mut ::std::os::raw::c_char;
    pub fn mlt_property_get_string(self_: mlt_property) -> *mut ::std::os::raw::c_char;
    pub fn mlt_property_get_string_l_tf(
        self_: mlt_property,
        arg1: locale_t,
        arg2: mlt_time_format,
    ) -> *mut ::std::os::raw::c_char;
    pub fn mlt_property_get_string_l(
        self_: mlt_property,
        arg1: locale_t,
    ) -> *mut ::std::os::raw::c_char;
    pub fn mlt_property_get_data(
        self_: mlt_property,
        length: *mut ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_void;
    pub fn mlt_property_close(self_: mlt_property);
    pub fn mlt_property_pass(self_: mlt_property, that: mlt_property);
    pub fn mlt_property_get_time(
        self_: mlt_property,
        arg1: mlt_time_format,
        fps: f64,
        arg2: locale_t,
    ) -> *mut ::std::os::raw::c_char;
    pub fn mlt_property_interpolate(
        self_: mlt_property,
        points: *mut mlt_property,
        progress: f64,
        fps: f64,
        locale: locale_t,
        interp: mlt_keyframe_type,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_property_anim_get_double(
        self_: mlt_property,
        fps: f64,
        locale: locale_t,
        position: ::std::os::raw::c_int,
        length: ::std::os::raw::c_int,
    ) -> f64;
    pub fn mlt_property_anim_get_int(
        self_: mlt_property,
        fps: f64,
        locale: locale_t,
        position: ::std::os::raw::c_int,
        length: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_property_anim_get_string(
        self_: mlt_property,
        fps: f64,
        locale: locale_t,
        position: ::std::os::raw::c_int,
        length: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
    pub fn mlt_property_anim_set_double(
        self_: mlt_property,
        value: f64,
        fps: f64,
        locale: locale_t,
        position: ::std::os::raw::c_int,
        length: ::std::os::raw::c_int,
        keyframe_type: mlt_keyframe_type,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_property_anim_set_int(
        self_: mlt_property,
        value: ::std::os::raw::c_int,
        fps: f64,
        locale: locale_t,
        position: ::std::os::raw::c_int,
        length: ::std::os::raw::c_int,
        keyframe_type: mlt_keyframe_type,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_property_anim_set_string(
        self_: mlt_property,
        value: *const ::std::os::raw::c_char,
        fps: f64,
        locale: locale_t,
        position: ::std::os::raw::c_int,
        length: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_property_get_animation(self_: mlt_property) -> mlt_animation;
    pub fn mlt_property_set_rect(self_: mlt_property, value: mlt_rect) -> ::std::os::raw::c_int;
    pub fn mlt_property_get_rect(self_: mlt_property, locale: locale_t) -> mlt_rect;
    pub fn mlt_property_anim_set_rect(
        self_: mlt_property,
        value: mlt_rect,
        fps: f64,
        locale: locale_t,
        position: ::std::os::raw::c_int,
        length: ::std::os::raw::c_int,
        keyframe_type: mlt_keyframe_type,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_property_anim_get_rect(
        self_: mlt_property,
        fps: f64,
        locale: locale_t,
        position: ::std::os::raw::c_int,
        length: ::std::os::raw::c_int,
    ) -> mlt_rect;
}
/// An animation item that represents a keyframe-property combination.
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mlt_animation_item_s {
    /// < a boolean of whether this is a key frame or an interpolated item
    pub is_key: ::std::os::raw::c_int,
    /// < the frame number for this instance of the property
    pub frame: ::std::os::raw::c_int,
    /// < the property for this point in time
    pub property: mlt_property,
    /// < the method of interpolation for this key frame
    pub keyframe_type: mlt_keyframe_type,
}
#[test]
fn bindgen_test_layout_mlt_animation_item_s() {
    assert_eq!(
        ::std::mem::size_of::<mlt_animation_item_s>(),
        24usize,
        concat!("Size of: ", stringify!(mlt_animation_item_s))
    );
    assert_eq!(
        ::std::mem::align_of::<mlt_animation_item_s>(),
        8usize,
        concat!("Alignment of ", stringify!(mlt_animation_item_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_animation_item_s>())).is_key as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_animation_item_s),
            "::",
            stringify!(is_key)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_animation_item_s>())).frame as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_animation_item_s),
            "::",
            stringify!(frame)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_animation_item_s>())).property as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_animation_item_s),
            "::",
            stringify!(property)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<mlt_animation_item_s>())).keyframe_type as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_animation_item_s),
            "::",
            stringify!(keyframe_type)
        )
    );
}
pub type mlt_animation_item = *mut mlt_animation_item_s;
extern "C" {
    pub fn mlt_animation_new() -> mlt_animation;
    pub fn mlt_animation_parse(
        self_: mlt_animation,
        data: *const ::std::os::raw::c_char,
        length: ::std::os::raw::c_int,
        fps: f64,
        locale: locale_t,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_animation_refresh(
        self_: mlt_animation,
        data: *const ::std::os::raw::c_char,
        length: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_animation_get_length(self_: mlt_animation) -> ::std::os::raw::c_int;
    pub fn mlt_animation_set_length(self_: mlt_animation, length: ::std::os::raw::c_int);
    pub fn mlt_animation_parse_item(
        self_: mlt_animation,
        item: mlt_animation_item,
        data: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_animation_get_item(
        self_: mlt_animation,
        item: mlt_animation_item,
        position: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_animation_insert(
        self_: mlt_animation,
        item: mlt_animation_item,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_animation_remove(
        self_: mlt_animation,
        position: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_animation_interpolate(self_: mlt_animation);
    pub fn mlt_animation_next_key(
        self_: mlt_animation,
        item: mlt_animation_item,
        position: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_animation_prev_key(
        self_: mlt_animation,
        item: mlt_animation_item,
        position: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_animation_serialize_cut_tf(
        self_: mlt_animation,
        in_: ::std::os::raw::c_int,
        out: ::std::os::raw::c_int,
        arg1: mlt_time_format,
    ) -> *mut ::std::os::raw::c_char;
    pub fn mlt_animation_serialize_cut(
        self_: mlt_animation,
        in_: ::std::os::raw::c_int,
        out: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
    pub fn mlt_animation_serialize_tf(
        self_: mlt_animation,
        arg1: mlt_time_format,
    ) -> *mut ::std::os::raw::c_char;
    pub fn mlt_animation_serialize(self_: mlt_animation) -> *mut ::std::os::raw::c_char;
    pub fn mlt_animation_key_count(self_: mlt_animation) -> ::std::os::raw::c_int;
    pub fn mlt_animation_key_get(
        self_: mlt_animation,
        item: mlt_animation_item,
        index: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_animation_close(self_: mlt_animation);
    pub fn mlt_animation_key_set_type(
        self_: mlt_animation,
        index: ::std::os::raw::c_int,
        type_: mlt_keyframe_type,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_animation_key_set_frame(
        self_: mlt_animation,
        index: ::std::os::raw::c_int,
        frame: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
/// \brief Profile class
///
/// \envvar \em MLT_PROFILES_PATH overrides the default full path to the profile preset files, defaults to \p MLT_DATA/profiles
/// \envvar \em MLT_PROFILE the profile preset to use, defaults to "dv_pal"
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mlt_profile_s {
    /// < a brief description suitable as a label in UI menu
    pub description: *mut ::std::os::raw::c_char,
    /// < the numerator of the video frame rate
    pub frame_rate_num: ::std::os::raw::c_int,
    /// < the denominator of the video frame rate
    pub frame_rate_den: ::std::os::raw::c_int,
    /// < the horizontal resolution of the video
    pub width: ::std::os::raw::c_int,
    /// < the vertical resolution of the video
    pub height: ::std::os::raw::c_int,
    /// < a flag to indicate if the video is progressive scan, interlace if not set
    pub progressive: ::std::os::raw::c_int,
    /// < the numerator of the pixel aspect ratio
    pub sample_aspect_num: ::std::os::raw::c_int,
    /// < the denominator of the pixel aspect ratio
    pub sample_aspect_den: ::std::os::raw::c_int,
    /// < the numerator of the image aspect ratio in case it can not be simply derived (e.g. ITU-R 601)
    pub display_aspect_num: ::std::os::raw::c_int,
    /// < the denominator of the image aspect ratio in case it can not be simply derived (e.g. ITU-R 601)
    pub display_aspect_den: ::std::os::raw::c_int,
    /// < the Y'CbCr colorspace standard: =601 for ITU-R 601, =709 for ITU-R 709, or =240 for SMPTE240M
    pub colorspace: ::std::os::raw::c_int,
    /// < used internally to indicate if the profile was requested explicitly or computed or defaulted
    pub is_explicit: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_mlt_profile_s() {
    assert_eq!(
        ::std::mem::size_of::<mlt_profile_s>(),
        56usize,
        concat!("Size of: ", stringify!(mlt_profile_s))
    );
    assert_eq!(
        ::std::mem::align_of::<mlt_profile_s>(),
        8usize,
        concat!("Alignment of ", stringify!(mlt_profile_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_profile_s>())).description as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_profile_s),
            "::",
            stringify!(description)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_profile_s>())).frame_rate_num as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_profile_s),
            "::",
            stringify!(frame_rate_num)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_profile_s>())).frame_rate_den as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_profile_s),
            "::",
            stringify!(frame_rate_den)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_profile_s>())).width as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_profile_s),
            "::",
            stringify!(width)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_profile_s>())).height as *const _ as usize },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_profile_s),
            "::",
            stringify!(height)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_profile_s>())).progressive as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_profile_s),
            "::",
            stringify!(progressive)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_profile_s>())).sample_aspect_num as *const _ as usize },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_profile_s),
            "::",
            stringify!(sample_aspect_num)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_profile_s>())).sample_aspect_den as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_profile_s),
            "::",
            stringify!(sample_aspect_den)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<mlt_profile_s>())).display_aspect_num as *const _ as usize
        },
        36usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_profile_s),
            "::",
            stringify!(display_aspect_num)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<mlt_profile_s>())).display_aspect_den as *const _ as usize
        },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_profile_s),
            "::",
            stringify!(display_aspect_den)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_profile_s>())).colorspace as *const _ as usize },
        44usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_profile_s),
            "::",
            stringify!(colorspace)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_profile_s>())).is_explicit as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_profile_s),
            "::",
            stringify!(is_explicit)
        )
    );
}
extern "C" {
    pub fn mlt_profile_init(name: *const ::std::os::raw::c_char) -> mlt_profile;
    pub fn mlt_profile_load_file(file: *const ::std::os::raw::c_char) -> mlt_profile;
    pub fn mlt_profile_load_properties(properties: mlt_properties) -> mlt_profile;
    pub fn mlt_profile_load_string(string: *const ::std::os::raw::c_char) -> mlt_profile;
    pub fn mlt_profile_fps(profile: mlt_profile) -> f64;
    pub fn mlt_profile_sar(profile: mlt_profile) -> f64;
    pub fn mlt_profile_dar(profile: mlt_profile) -> f64;
    pub fn mlt_profile_close(profile: mlt_profile);
    pub fn mlt_profile_clone(profile: mlt_profile) -> mlt_profile;
    pub fn mlt_profile_list() -> mlt_properties;
    pub fn mlt_profile_from_producer(profile: mlt_profile, producer: mlt_producer);
}
/// The callback function that modules implement to construct a service.
pub type mlt_register_callback = ::std::option::Option<
    unsafe extern "C" fn(
        arg1: mlt_profile,
        arg2: mlt_service_type,
        arg3: *const ::std::os::raw::c_char,
        arg4: *const ::std::os::raw::c_void,
    ) -> *mut ::std::os::raw::c_void,
>;
/// The callback function that modules implement to supply metadata as a properties list.
pub type mlt_metadata_callback = ::std::option::Option<
    unsafe extern "C" fn(
        arg1: mlt_service_type,
        arg2: *const ::std::os::raw::c_char,
        arg3: *mut ::std::os::raw::c_void,
    ) -> mlt_properties,
>;
extern "C" {
    pub fn mlt_repository_init(directory: *const ::std::os::raw::c_char) -> mlt_repository;
    pub fn mlt_repository_register(
        self_: mlt_repository,
        service_type: mlt_service_type,
        service: *const ::std::os::raw::c_char,
        arg1: mlt_register_callback,
    );
    pub fn mlt_repository_create(
        self_: mlt_repository,
        profile: mlt_profile,
        type_: mlt_service_type,
        service: *const ::std::os::raw::c_char,
        arg: *const ::std::os::raw::c_void,
    ) -> *mut ::std::os::raw::c_void;
    pub fn mlt_repository_close(self_: mlt_repository);
    pub fn mlt_repository_consumers(self_: mlt_repository) -> mlt_properties;
    pub fn mlt_repository_filters(self_: mlt_repository) -> mlt_properties;
    pub fn mlt_repository_producers(self_: mlt_repository) -> mlt_properties;
    pub fn mlt_repository_transitions(self_: mlt_repository) -> mlt_properties;
    pub fn mlt_repository_register_metadata(
        self_: mlt_repository,
        type_: mlt_service_type,
        service: *const ::std::os::raw::c_char,
        arg1: mlt_metadata_callback,
        callback_data: *mut ::std::os::raw::c_void,
    );
    pub fn mlt_repository_metadata(
        self_: mlt_repository,
        type_: mlt_service_type,
        service: *const ::std::os::raw::c_char,
    ) -> mlt_properties;
    pub fn mlt_repository_languages(self_: mlt_repository) -> mlt_properties;
    pub fn mlt_repository_presets() -> mlt_properties;
}

extern "C" {
    /// \envvar \em MLT_PRODUCER the name of a default producer often used by other services, defaults to "loader"
    /// \envvar \em MLT_CONSUMER the name of a default consumer, defaults to "sdl2" followed by "sdl"
    /// \envvar \em MLT_TEST_CARD the name of a producer or file to be played when nothing is available (all tracks blank)
    /// \envvar \em MLT_DATA overrides the default full path to the MLT and module supplemental data files, defaults to \p PREFIX_DATA
    /// \envvar \em MLT_PROFILE selects the default mlt_profile_s, defaults to "dv_pal"
    /// \envvar \em MLT_REPOSITORY overrides the default location of the plugin modules, defaults to \p PREFIX_LIB.
    /// MLT_REPOSITORY is ignored on Windows and OS X relocatable builds.
    /// \envvar \em MLT_PRESETS_PATH overrides the default full path to the properties preset files, defaults to \p MLT_DATA/presets
    /// \event \em producer-create-request fired when mlt_factory_producer is called
    /// \event \em producer-create-done fired when a producer registers itself
    /// \event \em filter-create-request fired when mlt_factory_filter is called
    /// \event \em filter-create-done fired when a filter registers itself
    /// \event \em transition-create-request fired when mlt_factory_transition is called
    /// \event \em transition-create-done fired when a transition registers itself
    /// \event \em consumer-create-request fired when mlt_factory_consumer is called
    /// \event \em consumer-create-done fired when a consumer registers itself
    pub fn mlt_factory_init(directory: *const ::std::os::raw::c_char) -> mlt_repository;
    pub fn mlt_factory_repository() -> mlt_repository;
    pub fn mlt_factory_directory() -> *const ::std::os::raw::c_char;
    pub fn mlt_environment(name: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
    pub fn mlt_environment_set(
        name: *const ::std::os::raw::c_char,
        value: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_factory_event_object() -> mlt_properties;
    pub fn mlt_factory_producer(
        profile: mlt_profile,
        service: *const ::std::os::raw::c_char,
        resource: *const ::std::os::raw::c_void,
    ) -> mlt_producer;
    pub fn mlt_factory_filter(
        profile: mlt_profile,
        name: *const ::std::os::raw::c_char,
        input: *const ::std::os::raw::c_void,
    ) -> mlt_filter;
    pub fn mlt_factory_transition(
        profile: mlt_profile,
        name: *const ::std::os::raw::c_char,
        input: *const ::std::os::raw::c_void,
    ) -> mlt_transition;
    pub fn mlt_factory_consumer(
        profile: mlt_profile,
        name: *const ::std::os::raw::c_char,
        input: *const ::std::os::raw::c_void,
    ) -> mlt_consumer;
    pub fn mlt_factory_register_for_clean_up(
        ptr: *mut ::std::os::raw::c_void,
        destructor: mlt_destructor,
    );
    pub fn mlt_factory_close();
    pub fn mlt_global_properties() -> mlt_properties;
}

pub type mlt_transmitter =
    ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void, ...)>;
pub type mlt_listener =
    ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void, ...)>;

extern "C" {
    pub fn mlt_events_init(self_: mlt_properties);
    pub fn mlt_events_register(
        self_: mlt_properties,
        id: *const ::std::os::raw::c_char,
        transmitter: mlt_transmitter,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_events_fire(
        self_: mlt_properties,
        id: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
    pub fn mlt_events_listen(
        self_: mlt_properties,
        service: *mut ::std::os::raw::c_void,
        id: *const ::std::os::raw::c_char,
        listener: mlt_listener,
    ) -> mlt_event;
    pub fn mlt_events_block(self_: mlt_properties, service: *mut ::std::os::raw::c_void);
    pub fn mlt_events_unblock(self_: mlt_properties, service: *mut ::std::os::raw::c_void);
    pub fn mlt_events_disconnect(self_: mlt_properties, service: *mut ::std::os::raw::c_void);
    pub fn mlt_events_setup_wait_for(
        self_: mlt_properties,
        id: *const ::std::os::raw::c_char,
    ) -> mlt_event;
    pub fn mlt_events_wait_for(self_: mlt_properties, event: mlt_event);
    pub fn mlt_events_close_wait_for(self_: mlt_properties, event: mlt_event);
    pub fn mlt_event_inc_ref(self_: mlt_event);
    pub fn mlt_event_block(self_: mlt_event);
    pub fn mlt_event_unblock(self_: mlt_event);
    pub fn mlt_event_close(self_: mlt_event);
}

/// \brief Properties class
///
/// Properties is a combination list/dictionary of name/::mlt_property pairs.
/// It is also a base class for many of the other MLT classes.

#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mlt_properties_s {
    /// < \private the object of a subclass
    pub child: *mut ::std::os::raw::c_void,
    /// < \private instance object
    pub local: *mut ::std::os::raw::c_void,
    /// the destructor virtual function
    pub close: mlt_destructor,
    /// < the object supplied to the close virtual function
    pub close_object: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_mlt_properties_s() {
    assert_eq!(
        ::std::mem::size_of::<mlt_properties_s>(),
        32usize,
        concat!("Size of: ", stringify!(mlt_properties_s))
    );
    assert_eq!(
        ::std::mem::align_of::<mlt_properties_s>(),
        8usize,
        concat!("Alignment of ", stringify!(mlt_properties_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_properties_s>())).child as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_properties_s),
            "::",
            stringify!(child)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_properties_s>())).local as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_properties_s),
            "::",
            stringify!(local)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_properties_s>())).close as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_properties_s),
            "::",
            stringify!(close)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_properties_s>())).close_object as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_properties_s),
            "::",
            stringify!(close_object)
        )
    );
}
extern "C" {
    pub fn mlt_properties_init(
        arg1: mlt_properties,
        child: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_properties_new() -> mlt_properties;
    pub fn mlt_properties_set_lcnumeric(
        arg1: mlt_properties,
        locale: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_properties_get_lcnumeric(self_: mlt_properties) -> *const ::std::os::raw::c_char;
    pub fn mlt_properties_load(file: *const ::std::os::raw::c_char) -> mlt_properties;
    pub fn mlt_properties_preset(
        self_: mlt_properties,
        name: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_properties_inc_ref(self_: mlt_properties) -> ::std::os::raw::c_int;
    pub fn mlt_properties_dec_ref(self_: mlt_properties) -> ::std::os::raw::c_int;
    pub fn mlt_properties_ref_count(self_: mlt_properties) -> ::std::os::raw::c_int;
    pub fn mlt_properties_mirror(self_: mlt_properties, that: mlt_properties);
    pub fn mlt_properties_inherit(
        self_: mlt_properties,
        that: mlt_properties,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_properties_pass(
        self_: mlt_properties,
        that: mlt_properties,
        prefix: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_properties_pass_property(
        self_: mlt_properties,
        that: mlt_properties,
        name: *const ::std::os::raw::c_char,
    );
    pub fn mlt_properties_pass_list(
        self_: mlt_properties,
        that: mlt_properties,
        list: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_properties_set(
        self_: mlt_properties,
        name: *const ::std::os::raw::c_char,
        value: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_properties_set_or_default(
        self_: mlt_properties,
        name: *const ::std::os::raw::c_char,
        value: *const ::std::os::raw::c_char,
        def: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_properties_parse(
        self_: mlt_properties,
        namevalue: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_properties_get(
        self_: mlt_properties,
        name: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
    pub fn mlt_properties_get_name(
        self_: mlt_properties,
        index: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
    pub fn mlt_properties_get_value_tf(
        self_: mlt_properties,
        index: ::std::os::raw::c_int,
        arg1: mlt_time_format,
    ) -> *mut ::std::os::raw::c_char;
    pub fn mlt_properties_get_value(
        self_: mlt_properties,
        index: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
    pub fn mlt_properties_get_data_at(
        self_: mlt_properties,
        index: ::std::os::raw::c_int,
        size: *mut ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_void;
    pub fn mlt_properties_get_int(
        self_: mlt_properties,
        name: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_properties_set_int(
        self_: mlt_properties,
        name: *const ::std::os::raw::c_char,
        value: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
    pub fn mlt_properties_get_int64(
        self_: mlt_properties,
        name: *const ::std::os::raw::c_char,
    ) -> i64;
}
extern "C" {
    pub fn mlt_properties_set_int64(
        self_: mlt_properties,
        name: *const ::std::os::raw::c_char,
        value: i64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_properties_get_double(
        self_: mlt_properties,
        name: *const ::std::os::raw::c_char,
    ) -> f64;
}
extern "C" {
    pub fn mlt_properties_set_double(
        self_: mlt_properties,
        name: *const ::std::os::raw::c_char,
        value: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_properties_get_position(
        self_: mlt_properties,
        name: *const ::std::os::raw::c_char,
    ) -> mlt_position;
}
extern "C" {
    pub fn mlt_properties_set_position(
        self_: mlt_properties,
        name: *const ::std::os::raw::c_char,
        value: mlt_position,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_properties_set_data(
        self_: mlt_properties,
        name: *const ::std::os::raw::c_char,
        value: *mut ::std::os::raw::c_void,
        length: ::std::os::raw::c_int,
        arg1: mlt_destructor,
        arg2: mlt_serialiser,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_properties_get_data(
        self_: mlt_properties,
        name: *const ::std::os::raw::c_char,
        length: *mut ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn mlt_properties_rename(
        self_: mlt_properties,
        source: *const ::std::os::raw::c_char,
        dest: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_properties_count(self_: mlt_properties) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_properties_dump(self_: mlt_properties, output: *mut FILE);
}
extern "C" {
    pub fn mlt_properties_debug(
        self_: mlt_properties,
        title: *const ::std::os::raw::c_char,
        output: *mut FILE,
    );
}
extern "C" {
    pub fn mlt_properties_save(
        arg1: mlt_properties,
        arg2: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_properties_dir_list(
        arg1: mlt_properties,
        arg2: *const ::std::os::raw::c_char,
        arg3: *const ::std::os::raw::c_char,
        arg4: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_properties_close(self_: mlt_properties);
}
extern "C" {
    pub fn mlt_properties_is_sequence(self_: mlt_properties) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_properties_parse_yaml(file: *const ::std::os::raw::c_char) -> mlt_properties;
}
extern "C" {
    pub fn mlt_properties_serialise_yaml(self_: mlt_properties) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn mlt_properties_lock(self_: mlt_properties);
}
extern "C" {
    pub fn mlt_properties_unlock(self_: mlt_properties);
}
extern "C" {
    pub fn mlt_properties_clear(self_: mlt_properties, name: *const ::std::os::raw::c_char);
}
extern "C" {
    pub fn mlt_properties_get_time(
        arg1: mlt_properties,
        name: *const ::std::os::raw::c_char,
        arg2: mlt_time_format,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn mlt_properties_frames_to_time(
        arg1: mlt_properties,
        arg2: mlt_position,
        arg3: mlt_time_format,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn mlt_properties_time_to_frames(
        arg1: mlt_properties,
        time: *const ::std::os::raw::c_char,
    ) -> mlt_position;
}
extern "C" {
    pub fn mlt_properties_get_color(
        arg1: mlt_properties,
        name: *const ::std::os::raw::c_char,
    ) -> mlt_color;
}
extern "C" {
    pub fn mlt_properties_set_color(
        arg1: mlt_properties,
        name: *const ::std::os::raw::c_char,
        value: mlt_color,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_properties_anim_get(
        self_: mlt_properties,
        name: *const ::std::os::raw::c_char,
        position: ::std::os::raw::c_int,
        length: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn mlt_properties_anim_set(
        self_: mlt_properties,
        name: *const ::std::os::raw::c_char,
        value: *const ::std::os::raw::c_char,
        position: ::std::os::raw::c_int,
        length: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_properties_anim_get_int(
        self_: mlt_properties,
        name: *const ::std::os::raw::c_char,
        position: ::std::os::raw::c_int,
        length: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_properties_anim_set_int(
        self_: mlt_properties,
        name: *const ::std::os::raw::c_char,
        value: ::std::os::raw::c_int,
        position: ::std::os::raw::c_int,
        length: ::std::os::raw::c_int,
        keyframe_type: mlt_keyframe_type,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_properties_anim_get_double(
        self_: mlt_properties,
        name: *const ::std::os::raw::c_char,
        position: ::std::os::raw::c_int,
        length: ::std::os::raw::c_int,
    ) -> f64;
}
extern "C" {
    pub fn mlt_properties_anim_set_double(
        self_: mlt_properties,
        name: *const ::std::os::raw::c_char,
        value: f64,
        position: ::std::os::raw::c_int,
        length: ::std::os::raw::c_int,
        keyframe_type: mlt_keyframe_type,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_properties_get_animation(
        self_: mlt_properties,
        name: *const ::std::os::raw::c_char,
    ) -> mlt_animation;
}
extern "C" {
    pub fn mlt_properties_set_rect(
        self_: mlt_properties,
        name: *const ::std::os::raw::c_char,
        value: mlt_rect,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_properties_get_rect(
        self_: mlt_properties,
        name: *const ::std::os::raw::c_char,
    ) -> mlt_rect;
}
extern "C" {
    pub fn mlt_properties_anim_set_rect(
        self_: mlt_properties,
        name: *const ::std::os::raw::c_char,
        value: mlt_rect,
        position: ::std::os::raw::c_int,
        length: ::std::os::raw::c_int,
        keyframe_type: mlt_keyframe_type,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_properties_anim_get_rect(
        self_: mlt_properties,
        name: *const ::std::os::raw::c_char,
        position: ::std::os::raw::c_int,
        length: ::std::os::raw::c_int,
    ) -> mlt_rect;
}
extern "C" {
    pub fn mlt_properties_from_utf8(
        properties: mlt_properties,
        name_from: *const ::std::os::raw::c_char,
        name_to: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_properties_to_utf8(
        properties: mlt_properties,
        name_from: *const ::std::os::raw::c_char,
        name_to: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
/// The callback function used to compare items for insert sort.
///
/// \public \memberof mlt_deque_s
/// \param a the first object
/// \param b the second object
/// \returns 0 if equal, < 0 if a < b, or > 0 if a > b
pub type mlt_deque_compare = ::std::option::Option<
    unsafe extern "C" fn(a: *mut ::std::os::raw::c_void, b: *mut ::std::os::raw::c_void)
        -> ::std::os::raw::c_int,
>;
extern "C" {
    pub fn mlt_deque_init() -> mlt_deque;
}
extern "C" {
    pub fn mlt_deque_count(self_: mlt_deque) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_deque_push_back(
        self_: mlt_deque,
        item: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_deque_pop_back(self_: mlt_deque) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn mlt_deque_push_front(
        self_: mlt_deque,
        item: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_deque_pop_front(self_: mlt_deque) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn mlt_deque_peek_back(self_: mlt_deque) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn mlt_deque_peek_front(self_: mlt_deque) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn mlt_deque_peek(
        self_: mlt_deque,
        index: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn mlt_deque_insert(
        self_: mlt_deque,
        item: *mut ::std::os::raw::c_void,
        arg1: mlt_deque_compare,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_deque_push_back_int(
        self_: mlt_deque,
        item: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_deque_pop_back_int(self_: mlt_deque) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_deque_push_front_int(
        self_: mlt_deque,
        item: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_deque_pop_front_int(self_: mlt_deque) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_deque_peek_back_int(self_: mlt_deque) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_deque_peek_front_int(self_: mlt_deque) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_deque_push_back_double(self_: mlt_deque, item: f64) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_deque_pop_back_double(self_: mlt_deque) -> f64;
}
extern "C" {
    pub fn mlt_deque_push_front_double(self_: mlt_deque, item: f64) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_deque_pop_front_double(self_: mlt_deque) -> f64;
}
extern "C" {
    pub fn mlt_deque_peek_back_double(self_: mlt_deque) -> f64;
}
extern "C" {
    pub fn mlt_deque_peek_front_double(self_: mlt_deque) -> f64;
}
extern "C" {
    pub fn mlt_deque_close(self_: mlt_deque);
}
/// \brief Service abstract base class
///
/// \extends mlt_properties
/// The service is the base class for all of the interesting classes and
/// plugins for MLT. A service can have multiple inputs connections to
/// other services called its "producers" but only a single output to another
/// service called its "consumer." A service that has both producer and
/// consumer connections is called a filter. Any service can have zero or more
/// filters "attached" to it. We call any collection of services and their
/// connections a "service network," which is similar to what DirectShow calls
/// a filter graph or what gstreamer calls an element pipeline.
///
/// \event \em service-changed a filter was attached or detached or a transition was connected or disconnected
/// \event \em property-changed
/// \properties \em mlt_type identifies the subclass
/// \properties \em _mlt_service_hidden a flag that indicates whether to hide the mlt_service
/// \properties \em mlt_service is the name of the implementation of the service
/// \properties \em resource is either the stream identifier or grandchild-class
/// \properties \em in when to start, what is started is service-specific
/// \properties \em out when to stop
/// \properties \em _filter_private Set this on a service to ensure that attached filters are handled privately.
/// See modules/core/filter_region.c and modules/core/filter_watermark.c for examples.
/// \properties \em _profile stores the mlt_profile for a service
/// \properties \em _unique_id is a unique identifier
/// \properties \em _need_previous_next boolean that instructs producers to get
/// preceding and following frames inside of \p mlt_service_get_frame
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mlt_service_s {
    /// < \private A service extends properties.
    pub parent: mlt_properties_s,
    /// Get a frame of data (virtual function).
    ///
    /// \param mlt_producer a producer
    /// \param mlt_frame_ptr a frame pointer by reference
    /// \param int an index
    /// \return true if there was an error
    pub get_frame: ::std::option::Option<
        unsafe extern "C" fn(
            self_: mlt_service,
            frame: mlt_frame_ptr,
            index: ::std::os::raw::c_int,
        ) -> ::std::os::raw::c_int,
    >,
    /// the destructor virtual function
    pub close: mlt_destructor,
    /// < the object supplied to the close virtual function
    pub close_object: *mut ::std::os::raw::c_void,
    /// < \private instance object
    pub local: *mut ::std::os::raw::c_void,
    /// < \private the object of a subclass
    pub child: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_mlt_service_s() {
    assert_eq!(
        ::std::mem::size_of::<mlt_service_s>(),
        72usize,
        concat!("Size of: ", stringify!(mlt_service_s))
    );
    assert_eq!(
        ::std::mem::align_of::<mlt_service_s>(),
        8usize,
        concat!("Alignment of ", stringify!(mlt_service_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_service_s>())).parent as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_service_s),
            "::",
            stringify!(parent)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_service_s>())).get_frame as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_service_s),
            "::",
            stringify!(get_frame)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_service_s>())).close as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_service_s),
            "::",
            stringify!(close)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_service_s>())).close_object as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_service_s),
            "::",
            stringify!(close_object)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_service_s>())).local as *const _ as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_service_s),
            "::",
            stringify!(local)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_service_s>())).child as *const _ as usize },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_service_s),
            "::",
            stringify!(child)
        )
    );
}
extern "C" {
    pub fn mlt_service_init(
        self_: mlt_service,
        child: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_service_lock(self_: mlt_service);
}
extern "C" {
    pub fn mlt_service_unlock(self_: mlt_service);
}
extern "C" {
    pub fn mlt_service_identify(self_: mlt_service) -> mlt_service_type;
}
extern "C" {
    pub fn mlt_service_connect_producer(
        self_: mlt_service,
        producer: mlt_service,
        index: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_service_insert_producer(
        self_: mlt_service,
        producer: mlt_service,
        index: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_service_disconnect_producer(
        self_: mlt_service,
        index: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_service_disconnect_all_producers(self_: mlt_service) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_service_get_producer(self_: mlt_service) -> mlt_service;
}
extern "C" {
    pub fn mlt_service_get_frame(
        self_: mlt_service,
        frame: mlt_frame_ptr,
        index: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_service_properties(self_: mlt_service) -> mlt_properties;
}
extern "C" {
    pub fn mlt_service_consumer(self_: mlt_service) -> mlt_service;
}
extern "C" {
    pub fn mlt_service_producer(self_: mlt_service) -> mlt_service;
}
extern "C" {
    pub fn mlt_service_attach(self_: mlt_service, filter: mlt_filter) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_service_detach(self_: mlt_service, filter: mlt_filter) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_service_apply_filters(
        self_: mlt_service,
        frame: mlt_frame,
        index: ::std::os::raw::c_int,
    );
}
extern "C" {
    pub fn mlt_service_filter_count(self_: mlt_service) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_service_move_filter(
        self_: mlt_service,
        from: ::std::os::raw::c_int,
        to: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_service_filter(self_: mlt_service, index: ::std::os::raw::c_int) -> mlt_filter;
}
extern "C" {
    pub fn mlt_service_profile(self_: mlt_service) -> mlt_profile;
}
extern "C" {
    pub fn mlt_service_set_profile(self_: mlt_service, profile: mlt_profile);
}
extern "C" {
    pub fn mlt_service_close(self_: mlt_service);
}
extern "C" {
    pub fn mlt_service_cache_put(
        self_: mlt_service,
        name: *const ::std::os::raw::c_char,
        data: *mut ::std::os::raw::c_void,
        size: ::std::os::raw::c_int,
        destructor: mlt_destructor,
    );
}
extern "C" {
    pub fn mlt_service_cache_get(
        self_: mlt_service,
        name: *const ::std::os::raw::c_char,
    ) -> mlt_cache_item;
}
extern "C" {
    pub fn mlt_service_cache_set_size(
        self_: mlt_service,
        name: *const ::std::os::raw::c_char,
        size: ::std::os::raw::c_int,
    );
}
extern "C" {
    pub fn mlt_service_cache_get_size(
        self_: mlt_service,
        name: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_service_cache_purge(self_: mlt_service);
}
/// Callback function to get video data.
///
pub type mlt_get_image = ::std::option::Option<
    unsafe extern "C" fn(
        self_: mlt_frame,
        buffer: *mut *mut u8,
        format: *mut mlt_image_format,
        width: *mut ::std::os::raw::c_int,
        height: *mut ::std::os::raw::c_int,
        writable: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int,
>;
/// \brief Frame class
///
/// The frame is the primary data object that gets passed around to and through services.
///
/// \extends mlt_properties
/// \properties \em test_image set if the frame holds a "test card" image
/// \properties \em test_audio set if the frame holds "test card" audio
/// \properties \em _producer holds a reference to the frame's end producer
/// \properties \em _speed the current speed of the producer that generated the frame
/// \properties \em _position the position of the frame
/// \properties \em meta.* holds metadata
/// \properties \em hide set to 1 to hide the video, 2 to mute the audio
/// \properties \em last_track a flag to indicate an end-of-tracks frame
/// \properties \em previous \em frame a reference to the unfiltered preceding frame
/// (no speed factor applied, only available when \em _need_previous_next is set on the producer)
/// \properties \em next \em frame a reference to the unfiltered following frame
/// (no speed factor applied, only available when \em _need_previous_next is set on the producer)
/// \properties \em colorspace the standard for the YUV coefficients
/// \properties \em force_full_luma luma range handling, set to -1 for pass-through, 1 for full range, 0 for scaling
/// \properties \em color_trc the color transfer characteristic (gamma)
/// \properties \em audio_frequency the sample rate of the audio
/// \properties \em audio_channels the number of audio channels
/// \properties \em audio_samples the number of audio samples
/// \properties \em audio_format the mlt_audio_format for the audio on this frame
/// \properties \em format the mlt_image_format of the image on this frame
/// \properties \em width the horizontal resolution of the image
/// \properties \em height the vertical resolution of the image
/// \properties \em aspect_ratio the sample aspect ratio of the image
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mlt_frame_s {
    /// < \private A frame extends properties.
    pub parent: mlt_properties_s,
    /// Get the alpha channel (callback function).
    /// \param self a frame
    /// \return the 8-bit alpha channel
    pub get_alpha_mask: ::std::option::Option<unsafe extern "C" fn(self_: mlt_frame) -> *mut u8>,
    /// Convert the image format (callback function).
    /// \param self a frame
    /// \param[in,out] image a buffer of image data
    /// \param[in,out] input the image format of supplied image data
    /// \param output the image format to which to convert
    /// \return true if error
    pub convert_image: ::std::option::Option<
        unsafe extern "C" fn(
            self_: mlt_frame,
            image: *mut *mut u8,
            input: *mut mlt_image_format,
            output: mlt_image_format,
        ) -> ::std::os::raw::c_int,
    >,
    /// Convert the audio format (callback function).
    /// \param self a frame
    /// \param[in,out] audio a buffer of audio data
    /// \param[in,out] input the audio format of supplied data
    /// \param output the audio format to which to convert
    /// \return true if error
    pub convert_audio: ::std::option::Option<
        unsafe extern "C" fn(
            self_: mlt_frame,
            audio: *mut *mut ::std::os::raw::c_void,
            input: *mut mlt_audio_format,
            output: mlt_audio_format,
        ) -> ::std::os::raw::c_int,
    >,
    /// < \private the image processing stack of operations and data
    pub stack_image: mlt_deque,
    /// < \private the audio processing stack of operations and data
    pub stack_audio: mlt_deque,
    /// < \private a general purpose data stack
    pub stack_service: mlt_deque,
    /// < \private indicates if a frame is or was processed by the parallel consumer
    pub is_processing: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_mlt_frame_s() {
    assert_eq!(
        ::std::mem::size_of::<mlt_frame_s>(),
        88usize,
        concat!("Size of: ", stringify!(mlt_frame_s))
    );
    assert_eq!(
        ::std::mem::align_of::<mlt_frame_s>(),
        8usize,
        concat!("Alignment of ", stringify!(mlt_frame_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_frame_s>())).parent as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_frame_s),
            "::",
            stringify!(parent)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_frame_s>())).get_alpha_mask as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_frame_s),
            "::",
            stringify!(get_alpha_mask)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_frame_s>())).convert_image as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_frame_s),
            "::",
            stringify!(convert_image)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_frame_s>())).convert_audio as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_frame_s),
            "::",
            stringify!(convert_audio)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_frame_s>())).stack_image as *const _ as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_frame_s),
            "::",
            stringify!(stack_image)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_frame_s>())).stack_audio as *const _ as usize },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_frame_s),
            "::",
            stringify!(stack_audio)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_frame_s>())).stack_service as *const _ as usize },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_frame_s),
            "::",
            stringify!(stack_service)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_frame_s>())).is_processing as *const _ as usize },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_frame_s),
            "::",
            stringify!(is_processing)
        )
    );
}
extern "C" {
    pub fn mlt_frame_init(service: mlt_service) -> mlt_frame;
}
extern "C" {
    pub fn mlt_frame_properties(self_: mlt_frame) -> mlt_properties;
}
extern "C" {
    pub fn mlt_frame_is_test_card(self_: mlt_frame) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_frame_is_test_audio(self_: mlt_frame) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_frame_get_aspect_ratio(self_: mlt_frame) -> f64;
}
extern "C" {
    pub fn mlt_frame_set_aspect_ratio(self_: mlt_frame, value: f64) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_frame_get_position(self_: mlt_frame) -> mlt_position;
}
extern "C" {
    pub fn mlt_frame_original_position(self_: mlt_frame) -> mlt_position;
}
extern "C" {
    pub fn mlt_frame_set_position(self_: mlt_frame, value: mlt_position) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_frame_set_image(
        self_: mlt_frame,
        image: *mut u8,
        size: ::std::os::raw::c_int,
        destroy: mlt_destructor,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_frame_set_alpha(
        self_: mlt_frame,
        alpha: *mut u8,
        size: ::std::os::raw::c_int,
        destroy: mlt_destructor,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_frame_replace_image(
        self_: mlt_frame,
        image: *mut u8,
        format: mlt_image_format,
        width: ::std::os::raw::c_int,
        height: ::std::os::raw::c_int,
    );
}
extern "C" {
    pub fn mlt_frame_get_image(
        self_: mlt_frame,
        buffer: *mut *mut u8,
        format: *mut mlt_image_format,
        width: *mut ::std::os::raw::c_int,
        height: *mut ::std::os::raw::c_int,
        writable: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_frame_get_alpha_mask(self_: mlt_frame) -> *mut u8;
}
extern "C" {
    pub fn mlt_frame_get_alpha(self_: mlt_frame) -> *mut u8;
}
extern "C" {
    pub fn mlt_frame_get_audio(
        self_: mlt_frame,
        buffer: *mut *mut ::std::os::raw::c_void,
        format: *mut mlt_audio_format,
        frequency: *mut ::std::os::raw::c_int,
        channels: *mut ::std::os::raw::c_int,
        samples: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_frame_set_audio(
        self_: mlt_frame,
        buffer: *mut ::std::os::raw::c_void,
        arg1: mlt_audio_format,
        size: ::std::os::raw::c_int,
        arg2: mlt_destructor,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_frame_get_waveform(
        self_: mlt_frame,
        w: ::std::os::raw::c_int,
        h: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_uchar;
}
extern "C" {
    pub fn mlt_frame_push_get_image(
        self_: mlt_frame,
        get_image: mlt_get_image,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_frame_pop_get_image(self_: mlt_frame) -> mlt_get_image;
}
extern "C" {
    pub fn mlt_frame_push_frame(self_: mlt_frame, that: mlt_frame) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_frame_pop_frame(self_: mlt_frame) -> mlt_frame;
}
extern "C" {
    pub fn mlt_frame_push_service(
        self_: mlt_frame,
        that: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_frame_pop_service(self_: mlt_frame) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn mlt_frame_push_service_int(
        self_: mlt_frame,
        that: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_frame_pop_service_int(self_: mlt_frame) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_frame_push_audio(
        self_: mlt_frame,
        that: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_frame_pop_audio(self_: mlt_frame) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn mlt_frame_service_stack(self_: mlt_frame) -> mlt_deque;
}
extern "C" {
    pub fn mlt_frame_get_original_producer(self_: mlt_frame) -> mlt_producer;
}
extern "C" {
    pub fn mlt_frame_close(self_: mlt_frame);
}
extern "C" {
    pub fn mlt_frame_unique_properties(self_: mlt_frame, service: mlt_service) -> mlt_properties;
}
extern "C" {
    pub fn mlt_frame_clone(self_: mlt_frame, is_deep: ::std::os::raw::c_int) -> mlt_frame;
}
extern "C" {
    pub fn mlt_sample_calculator(
        fps: f32,
        frequency: ::std::os::raw::c_int,
        position: i64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_sample_calculator_to_now(
        fps: f32,
        frequency: ::std::os::raw::c_int,
        position: i64,
    ) -> i64;
}
extern "C" {
    pub fn mlt_image_format_name(format: mlt_image_format) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn mlt_image_format_size(
        format: mlt_image_format,
        width: ::std::os::raw::c_int,
        height: ::std::os::raw::c_int,
        bpp: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_audio_format_name(format: mlt_audio_format) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn mlt_audio_format_size(
        format: mlt_audio_format,
        samples: ::std::os::raw::c_int,
        channels: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_frame_write_ppm(frame: mlt_frame);
}
extern "C" {
    pub fn mlt_image_format_planes(
        format: mlt_image_format,
        width: ::std::os::raw::c_int,
        height: ::std::os::raw::c_int,
        data: *mut ::std::os::raw::c_void,
        planes: *mut *mut ::std::os::raw::c_uchar,
        strides: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_image_format_id(name: *const ::std::os::raw::c_char) -> mlt_image_format;
}
extern "C" {
    pub fn mlt_channel_layout_name(layout: mlt_channel_layout) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn mlt_channel_layout_id(name: *const ::std::os::raw::c_char) -> mlt_channel_layout;
}
extern "C" {
    pub fn mlt_channel_layout_channels(layout: mlt_channel_layout) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_channel_layout_default(channels: ::std::os::raw::c_int) -> mlt_channel_layout;
}
/// \brief Filter abstract service class
///
/// A filter is a service that may modify the output of a single producer.
///
/// \extends mlt_service_s
/// \properties \em track the index of the track of a multitrack on which the filter is applied
/// \properties \em service a reference to the service to which this filter is attached.
/// \properties \em disable Set this to disable the filter while keeping it in the object model.
/// Currently this is not cleared when the filter is detached.
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mlt_filter_s {
    /// We're implementing service here
    pub parent: mlt_service_s,
    /// public virtual
    pub close: ::std::option::Option<unsafe extern "C" fn(arg1: mlt_filter)>,
    /// protected filter method
    pub process:
        ::std::option::Option<unsafe extern "C" fn(arg1: mlt_filter, arg2: mlt_frame) -> mlt_frame>,
    /// Protected
    pub child: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_mlt_filter_s() {
    assert_eq!(
        ::std::mem::size_of::<mlt_filter_s>(),
        96usize,
        concat!("Size of: ", stringify!(mlt_filter_s))
    );
    assert_eq!(
        ::std::mem::align_of::<mlt_filter_s>(),
        8usize,
        concat!("Alignment of ", stringify!(mlt_filter_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_filter_s>())).parent as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_filter_s),
            "::",
            stringify!(parent)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_filter_s>())).close as *const _ as usize },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_filter_s),
            "::",
            stringify!(close)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_filter_s>())).process as *const _ as usize },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_filter_s),
            "::",
            stringify!(process)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_filter_s>())).child as *const _ as usize },
        88usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_filter_s),
            "::",
            stringify!(child)
        )
    );
}
extern "C" {
    pub fn mlt_filter_init(
        self_: mlt_filter,
        child: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_filter_new() -> mlt_filter;
}
extern "C" {
    pub fn mlt_filter_service(self_: mlt_filter) -> mlt_service;
}
extern "C" {
    pub fn mlt_filter_properties(self_: mlt_filter) -> mlt_properties;
}
extern "C" {
    pub fn mlt_filter_process(self_: mlt_filter, that: mlt_frame) -> mlt_frame;
}
extern "C" {
    pub fn mlt_filter_connect(
        self_: mlt_filter,
        producer: mlt_service,
        index: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_filter_set_in_and_out(self_: mlt_filter, in_: mlt_position, out: mlt_position);
}
extern "C" {
    pub fn mlt_filter_get_track(self_: mlt_filter) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_filter_get_in(self_: mlt_filter) -> mlt_position;
}
extern "C" {
    pub fn mlt_filter_get_out(self_: mlt_filter) -> mlt_position;
}
extern "C" {
    pub fn mlt_filter_get_length(self_: mlt_filter) -> mlt_position;
}
extern "C" {
    pub fn mlt_filter_get_length2(self_: mlt_filter, frame: mlt_frame) -> mlt_position;
}
extern "C" {
    pub fn mlt_filter_get_position(self_: mlt_filter, frame: mlt_frame) -> mlt_position;
}
extern "C" {
    pub fn mlt_filter_get_progress(self_: mlt_filter, frame: mlt_frame) -> f64;
}
extern "C" {
    pub fn mlt_filter_close(arg1: mlt_filter);
}
/// \brief Producer abstract service class
///
/// A producer is a service that generates audio, video, and metadata.
/// Some day it may also generate text (subtitles). This is not to say
/// a producer "synthesizes," rather that is an origin of data within the
/// service network - that could be through synthesis or reading a stream.
///
/// \extends mlt_service
/// \event \em producer-changed either service-changed was fired or the timing of the producer changed
/// \properties \em mlt_type the name of the service subclass, e.g. mlt_producer
/// \properties \em mlt_service the name of a producer subclass
/// \properties \em _position the current position of the play head, relative to the in point
/// \properties \em _frame the current position of the play head, relative to the beginning of the resource
/// \properties \em _speed the current speed factor, where 1.0 is normal
/// \properties \em aspect_ratio sample aspect ratio
/// \properties \em length the duration of the cut in frames
/// \properties \em eof the end-of-file behavior, one of: pause, continue, loop
/// \properties \em resource the file name, stream address, or the class name in angle brackets
/// \properties \em _cut set if this producer is a "cut" producer
/// \properties \em mlt_mix stores the data for a "mix" producer
/// \properties \em _cut_parent holds a reference to the cut's parent producer
/// \properties \em ignore_points Set this to temporarily disable the in and out points.
/// \properties \em use_clone holds a reference to a clone's producer, as created by mlt_producer_optimise
/// \properties \em _clone is the index of the clone in the list of clones stored on the clone's producer
/// \properties \em _clones is the number of clones of the producer, as created by mlt_producer_optimise
/// \properties \em _clone.{N} holds a reference to the N'th clone of the producer, as created by mlt_producer_optimise
/// \properties \em meta.* holds metadata - there is a loose taxonomy to be defined
/// \properties \em set.* holds properties to set on a frame produced
/// \envvar \em MLT_DEFAULT_PRODUCER_LENGTH - the default duration of the producer in frames, defaults to 15000.
/// Most producers will set the producer length to something appropriate
/// like the real duration of an audio or video clip. However, some other things
/// like still images and generators do not have an intrinsic length besides one
/// or infinity. Those producers tend to not override the default length and one
/// expect the app or user to set the length. The default value of 15000 was chosen
/// to provide something useful - not too long or short and convenient to simply
/// set an out point without necessarily nedding to extend the length.
/// \todo define the media metadata taxonomy
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mlt_producer_s {
    /// A producer is a service.
    pub parent: mlt_service_s,
    /// Get a frame of data (virtual function).
    ///
    /// \param mlt_producer a producer
    /// \param mlt_frame_ptr a frame pointer by reference
    /// \param int an index
    /// \return true if there was an error
    pub get_frame: ::std::option::Option<
        unsafe extern "C" fn(arg1: mlt_producer, arg2: mlt_frame_ptr, arg3: ::std::os::raw::c_int)
            -> ::std::os::raw::c_int,
    >,
    /// the destructor virtual function
    pub close: mlt_destructor,
    /// < the object supplied to the close virtual function
    pub close_object: *mut ::std::os::raw::c_void,
    /// < \private instance object
    pub local: *mut ::std::os::raw::c_void,
    /// < \private the object of a subclass
    pub child: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_mlt_producer_s() {
    assert_eq!(
        ::std::mem::size_of::<mlt_producer_s>(),
        112usize,
        concat!("Size of: ", stringify!(mlt_producer_s))
    );
    assert_eq!(
        ::std::mem::align_of::<mlt_producer_s>(),
        8usize,
        concat!("Alignment of ", stringify!(mlt_producer_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_producer_s>())).parent as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_producer_s),
            "::",
            stringify!(parent)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_producer_s>())).get_frame as *const _ as usize },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_producer_s),
            "::",
            stringify!(get_frame)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_producer_s>())).close as *const _ as usize },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_producer_s),
            "::",
            stringify!(close)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_producer_s>())).close_object as *const _ as usize },
        88usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_producer_s),
            "::",
            stringify!(close_object)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_producer_s>())).local as *const _ as usize },
        96usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_producer_s),
            "::",
            stringify!(local)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_producer_s>())).child as *const _ as usize },
        104usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_producer_s),
            "::",
            stringify!(child)
        )
    );
}
extern "C" {
    pub fn mlt_producer_init(
        self_: mlt_producer,
        child: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_producer_new(arg1: mlt_profile) -> mlt_producer;
}
extern "C" {
    pub fn mlt_producer_service(self_: mlt_producer) -> mlt_service;
}
extern "C" {
    pub fn mlt_producer_properties(self_: mlt_producer) -> mlt_properties;
}
extern "C" {
    pub fn mlt_producer_seek(self_: mlt_producer, position: mlt_position) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_producer_seek_time(
        self_: mlt_producer,
        time: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_producer_position(self_: mlt_producer) -> mlt_position;
}
extern "C" {
    pub fn mlt_producer_frame(self_: mlt_producer) -> mlt_position;
}
extern "C" {
    pub fn mlt_producer_frame_time(
        self_: mlt_producer,
        arg1: mlt_time_format,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn mlt_producer_set_speed(self_: mlt_producer, speed: f64) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_producer_get_speed(self_: mlt_producer) -> f64;
}
extern "C" {
    pub fn mlt_producer_get_fps(self_: mlt_producer) -> f64;
}
extern "C" {
    pub fn mlt_producer_set_in_and_out(
        self_: mlt_producer,
        in_: mlt_position,
        out: mlt_position,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_producer_clear(self_: mlt_producer) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_producer_get_in(self_: mlt_producer) -> mlt_position;
}
extern "C" {
    pub fn mlt_producer_get_out(self_: mlt_producer) -> mlt_position;
}
extern "C" {
    pub fn mlt_producer_get_playtime(self_: mlt_producer) -> mlt_position;
}
extern "C" {
    pub fn mlt_producer_get_length(self_: mlt_producer) -> mlt_position;
}
extern "C" {
    pub fn mlt_producer_get_length_time(
        self_: mlt_producer,
        arg1: mlt_time_format,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn mlt_producer_prepare_next(self_: mlt_producer);
}
extern "C" {
    pub fn mlt_producer_attach(self_: mlt_producer, filter: mlt_filter) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_producer_detach(self_: mlt_producer, filter: mlt_filter) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_producer_filter(self_: mlt_producer, index: ::std::os::raw::c_int) -> mlt_filter;
}
extern "C" {
    pub fn mlt_producer_cut(
        self_: mlt_producer,
        in_: ::std::os::raw::c_int,
        out: ::std::os::raw::c_int,
    ) -> mlt_producer;
}
extern "C" {
    pub fn mlt_producer_is_cut(self_: mlt_producer) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_producer_is_mix(self_: mlt_producer) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_producer_is_blank(self_: mlt_producer) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_producer_cut_parent(self_: mlt_producer) -> mlt_producer;
}
extern "C" {
    pub fn mlt_producer_optimise(self_: mlt_producer) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_producer_close(self_: mlt_producer);
}
/// \brief Track class used by mlt_multitrack_s
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mlt_track_s {
    pub producer: mlt_producer,
    pub event: mlt_event,
}
#[test]
fn bindgen_test_layout_mlt_track_s() {
    assert_eq!(
        ::std::mem::size_of::<mlt_track_s>(),
        16usize,
        concat!("Size of: ", stringify!(mlt_track_s))
    );
    assert_eq!(
        ::std::mem::align_of::<mlt_track_s>(),
        8usize,
        concat!("Alignment of ", stringify!(mlt_track_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_track_s>())).producer as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_track_s),
            "::",
            stringify!(producer)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_track_s>())).event as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_track_s),
            "::",
            stringify!(event)
        )
    );
}
pub type mlt_track = *mut mlt_track_s;
/// \brief Multitrack class
///
/// A multitrack is a parallel container of producers that acts a single producer.
///
/// \extends mlt_producer_s
/// \properties \em log_id not currently used, but sets it to "mulitrack"
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mlt_multitrack_s {
    /// We're extending producer here
    pub parent: mlt_producer_s,
    pub list: *mut mlt_track,
    pub size: ::std::os::raw::c_int,
    pub count: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_mlt_multitrack_s() {
    assert_eq!(
        ::std::mem::size_of::<mlt_multitrack_s>(),
        128usize,
        concat!("Size of: ", stringify!(mlt_multitrack_s))
    );
    assert_eq!(
        ::std::mem::align_of::<mlt_multitrack_s>(),
        8usize,
        concat!("Alignment of ", stringify!(mlt_multitrack_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_multitrack_s>())).parent as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_multitrack_s),
            "::",
            stringify!(parent)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_multitrack_s>())).list as *const _ as usize },
        112usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_multitrack_s),
            "::",
            stringify!(list)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_multitrack_s>())).size as *const _ as usize },
        120usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_multitrack_s),
            "::",
            stringify!(size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_multitrack_s>())).count as *const _ as usize },
        124usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_multitrack_s),
            "::",
            stringify!(count)
        )
    );
}
extern "C" {
    pub fn mlt_multitrack_init() -> mlt_multitrack;
}
extern "C" {
    pub fn mlt_multitrack_producer(self_: mlt_multitrack) -> mlt_producer;
}
extern "C" {
    pub fn mlt_multitrack_service(self_: mlt_multitrack) -> mlt_service;
}
extern "C" {
    pub fn mlt_multitrack_properties(self_: mlt_multitrack) -> mlt_properties;
}
extern "C" {
    pub fn mlt_multitrack_connect(
        self_: mlt_multitrack,
        producer: mlt_producer,
        track: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_multitrack_insert(
        self_: mlt_multitrack,
        producer: mlt_producer,
        track: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_multitrack_disconnect(
        self_: mlt_multitrack,
        track: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_multitrack_clip(
        self_: mlt_multitrack,
        whence: mlt_whence,
        index: ::std::os::raw::c_int,
    ) -> mlt_position;
}
extern "C" {
    pub fn mlt_multitrack_close(self_: mlt_multitrack);
}
extern "C" {
    pub fn mlt_multitrack_count(self_: mlt_multitrack) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_multitrack_refresh(self_: mlt_multitrack);
}
extern "C" {
    pub fn mlt_multitrack_track(
        self_: mlt_multitrack,
        track: ::std::os::raw::c_int,
    ) -> mlt_producer;
}
/// \brief Transition abstract service class
///
/// A transition may modify the output of a producer based on the output of a second producer.
///
/// \extends mlt_service_s
/// \properties \em a_track the track index (0-based) of a multitrack of the first producer
/// \properties \em b_track the track index (0-based) of a multitrack of the second producer
/// \properties \em accepts_blanks a flag to indicate if the transition should accept blank frames
/// \properties \em always_active a flag to indicate that the in and out points do not apply
/// \properties \em _transition_type 1 for video, 2 for audio, 3 for both audio and video
/// \properties \em disable Set this to disable the transition while keeping it in the object model.
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mlt_transition_s {
    /// We're implementing service here
    pub parent: mlt_service_s,
    /// public virtual
    pub close: ::std::option::Option<unsafe extern "C" fn(arg1: mlt_transition)>,
    /// protected transition method
    pub process: ::std::option::Option<
        unsafe extern "C" fn(arg1: mlt_transition, arg2: mlt_frame, arg3: mlt_frame) -> mlt_frame,
    >,
    /// Protected
    pub child: *mut ::std::os::raw::c_void,
    /// track and in/out points
    pub producer: mlt_service,
    /// Private
    pub frames: *mut mlt_frame,
    pub held: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_mlt_transition_s() {
    assert_eq!(
        ::std::mem::size_of::<mlt_transition_s>(),
        120usize,
        concat!("Size of: ", stringify!(mlt_transition_s))
    );
    assert_eq!(
        ::std::mem::align_of::<mlt_transition_s>(),
        8usize,
        concat!("Alignment of ", stringify!(mlt_transition_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_transition_s>())).parent as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_transition_s),
            "::",
            stringify!(parent)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_transition_s>())).close as *const _ as usize },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_transition_s),
            "::",
            stringify!(close)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_transition_s>())).process as *const _ as usize },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_transition_s),
            "::",
            stringify!(process)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_transition_s>())).child as *const _ as usize },
        88usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_transition_s),
            "::",
            stringify!(child)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_transition_s>())).producer as *const _ as usize },
        96usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_transition_s),
            "::",
            stringify!(producer)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_transition_s>())).frames as *const _ as usize },
        104usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_transition_s),
            "::",
            stringify!(frames)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_transition_s>())).held as *const _ as usize },
        112usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_transition_s),
            "::",
            stringify!(held)
        )
    );
}
extern "C" {
    pub fn mlt_transition_init(
        self_: mlt_transition,
        child: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_transition_new() -> mlt_transition;
}
extern "C" {
    pub fn mlt_transition_service(self_: mlt_transition) -> mlt_service;
}
extern "C" {
    pub fn mlt_transition_properties(self_: mlt_transition) -> mlt_properties;
}
extern "C" {
    pub fn mlt_transition_connect(
        self_: mlt_transition,
        producer: mlt_service,
        a_track: ::std::os::raw::c_int,
        b_track: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_transition_set_in_and_out(
        self_: mlt_transition,
        in_: mlt_position,
        out: mlt_position,
    );
}
extern "C" {
    pub fn mlt_transition_set_tracks(
        self_: mlt_transition,
        a_track: ::std::os::raw::c_int,
        b_track: ::std::os::raw::c_int,
    );
}
extern "C" {
    pub fn mlt_transition_get_a_track(self_: mlt_transition) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_transition_get_b_track(self_: mlt_transition) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_transition_get_in(self_: mlt_transition) -> mlt_position;
}
extern "C" {
    pub fn mlt_transition_get_out(self_: mlt_transition) -> mlt_position;
}
extern "C" {
    pub fn mlt_transition_get_length(self_: mlt_transition) -> mlt_position;
}
extern "C" {
    pub fn mlt_transition_get_position(self_: mlt_transition, frame: mlt_frame) -> mlt_position;
}
extern "C" {
    pub fn mlt_transition_get_progress(self_: mlt_transition, frame: mlt_frame) -> f64;
}
extern "C" {
    pub fn mlt_transition_get_progress_delta(self_: mlt_transition, frame: mlt_frame) -> f64;
}
extern "C" {
    pub fn mlt_transition_process(
        self_: mlt_transition,
        a_frame: mlt_frame,
        b_frame: mlt_frame,
    ) -> mlt_frame;
}
extern "C" {
    pub fn mlt_transition_close(self_: mlt_transition);
}
/// \brief Consumer abstract service class
///
/// A consumer is a service that pulls audio and video from the connected
/// producers, filters, and transitions. Typically a consumer is used to
/// output audio and/or video to a device, file, or socket.
///
/// \extends mlt_service_s
/// \properties \em rescale the scaling algorithm to pass on to all scaling
/// filters, defaults to "bilinear"
/// \properties \em buffer the number of frames to use in the asynchronous
/// render thread, defaults to 25
/// \properties \em prefill the number of frames to render before commencing
/// output when real_time <> 0, defaults to the size of buffer
/// \properties \em drop_max the maximum number of consecutively dropped frames, defaults to 5
/// \properties \em frequency the audio sample rate to use in Hertz, defaults to 48000
/// \properties \em channels the number of audio channels to use, defaults to 2
/// \properties \em channel_layout the layout of the audio channels, defaults to auto.
/// other options include: mono, stereo, 5.1, 7.1, etc.
/// \properties \em real_time the asynchronous behavior: 1 (default) for asynchronous
/// with frame dropping, -1 for asynchronous without frame dropping, 0 to disable (synchronous)
/// \properties \em test_card the name of a resource to use as the test card, defaults to
/// environment variable MLT_TEST_CARD. If undefined, the hard-coded default test card is
/// white silence. A test card is what appears when nothing is produced.
/// \event \em consumer-frame-show Subclass implementations fire this immediately after showing a frame
/// or when a frame should be shown (if audio-only consumer).
/// \event \em consumer-frame-render The base class fires this immediately before rendering a frame.
/// \event \em consumer-thread-create Override the implementation of creating and
/// starting a thread by listening and responding to this (real_time 1 or -1 only).
/// \event \em consumer-thread-join Override the implementation of waiting and
/// joining a terminated thread  by listening and responding to this (real_time 1 or -1 only).
/// \event \em consumer-thread-started The base class fires when beginning execution of a rendering thread.
/// \event \em consumer-thread-stopped The base class fires when a rendering thread has ended.
/// \event \em consumer-stopping This is fired when stop was requested, but before render threads are joined.
/// \event \em consumer-stopped This is fired when the subclass implementation calls mlt_consumer_stopped().
/// \properties \em fps video frames per second as floating point (read only)
/// \properties \em frame_rate_num the numerator of the video frame rate, overrides \p mlt_profile_s
/// \properties \em frame_rate_den the denominator of the video frame rate, overrides \p mlt_profile_s
/// \properties \em width the horizontal video resolution, overrides \p mlt_profile_s
/// \properties \em height the vertical video resolution, overrides \p mlt_profile_s
/// \properties \em progressive a flag that indicates if the video is interlaced
/// or progressive, overrides \p mlt_profile_s
/// \properties \em aspect_ratio the video sample (pixel) aspect ratio as floating point (read only)
/// \properties \em sample_aspect_num the numerator of the sample aspect ratio, overrides \p mlt_profile_s
/// \properties \em sample_aspect_den the denominator of the sample aspect ratio, overrides \p mlt_profile_s
/// \properties \em display_ratio the video frame aspect ratio as floating point (read only)
/// \properties \em display_aspect_num the numerator of the video frame aspect ratio, overrides \p mlt_profile_s
/// \properties \em display_aspect_den the denominator of the video frame aspect ratio, overrides \p mlt_profile_s
/// \properties \em priority the OS scheduling priority for the render threads when real_time is not 0.
/// \properties \em top_field_first when not progressive, whether interlace field order is top-field-first, defaults to 0.
/// Set this to -1 if the consumer does not care about the field order.
/// \properties \em mlt_image_format the image format to request in rendering threads, defaults to yuv422
/// \properties \em mlt_audio_format the audio format to request in rendering threads, defaults to S16
/// \properties \em audio_off set non-zero to disable audio processing
/// \properties \em video_off set non-zero to disable video processing
/// \properties \em drop_count the number of video frames not rendered since starting consumer
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mlt_consumer_s {
    /// A consumer is a service.
    pub parent: mlt_service_s,
    /// Start the consumer to pull frames (virtual function).
    ///
    /// \param mlt_consumer a consumer
    /// \return true if there was an error
    pub start:
        ::std::option::Option<unsafe extern "C" fn(arg1: mlt_consumer) -> ::std::os::raw::c_int>,
    /// Stop the consumer (virtual function).
    ///
    /// \param mlt_consumer a consumer
    /// \return true if there was an error
    pub stop:
        ::std::option::Option<unsafe extern "C" fn(arg1: mlt_consumer) -> ::std::os::raw::c_int>,
    /// Get whether the consumer is running or stopped (virtual function).
    ///
    /// \param mlt_consumer a consumer
    /// \return true if the consumer is stopped
    pub is_stopped:
        ::std::option::Option<unsafe extern "C" fn(arg1: mlt_consumer) -> ::std::os::raw::c_int>,
    /// Purge the consumer of buffered data (virtual function).
    ///
    /// \param mlt_consumer a consumer
    pub purge: ::std::option::Option<unsafe extern "C" fn(arg1: mlt_consumer)>,
    /// The destructor virtual function
    ///
    /// \param mlt_consumer a consumer
    pub close: ::std::option::Option<unsafe extern "C" fn(arg1: mlt_consumer)>,
    /// < \private instance object
    pub local: *mut ::std::os::raw::c_void,
    /// < \private the object of a subclass
    pub child: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_mlt_consumer_s() {
    assert_eq!(
        ::std::mem::size_of::<mlt_consumer_s>(),
        128usize,
        concat!("Size of: ", stringify!(mlt_consumer_s))
    );
    assert_eq!(
        ::std::mem::align_of::<mlt_consumer_s>(),
        8usize,
        concat!("Alignment of ", stringify!(mlt_consumer_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_consumer_s>())).parent as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_consumer_s),
            "::",
            stringify!(parent)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_consumer_s>())).start as *const _ as usize },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_consumer_s),
            "::",
            stringify!(start)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_consumer_s>())).stop as *const _ as usize },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_consumer_s),
            "::",
            stringify!(stop)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_consumer_s>())).is_stopped as *const _ as usize },
        88usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_consumer_s),
            "::",
            stringify!(is_stopped)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_consumer_s>())).purge as *const _ as usize },
        96usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_consumer_s),
            "::",
            stringify!(purge)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_consumer_s>())).close as *const _ as usize },
        104usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_consumer_s),
            "::",
            stringify!(close)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_consumer_s>())).local as *const _ as usize },
        112usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_consumer_s),
            "::",
            stringify!(local)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_consumer_s>())).child as *const _ as usize },
        120usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_consumer_s),
            "::",
            stringify!(child)
        )
    );
}
extern "C" {
    pub fn mlt_consumer_init(
        self_: mlt_consumer,
        child: *mut ::std::os::raw::c_void,
        profile: mlt_profile,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_consumer_new(profile: mlt_profile) -> mlt_consumer;
}
extern "C" {
    pub fn mlt_consumer_service(self_: mlt_consumer) -> mlt_service;
}
extern "C" {
    pub fn mlt_consumer_properties(self_: mlt_consumer) -> mlt_properties;
}
extern "C" {
    pub fn mlt_consumer_connect(
        self_: mlt_consumer,
        producer: mlt_service,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_consumer_start(self_: mlt_consumer) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_consumer_purge(self_: mlt_consumer);
}
extern "C" {
    pub fn mlt_consumer_put_frame(self_: mlt_consumer, frame: mlt_frame) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_consumer_get_frame(self_: mlt_consumer) -> mlt_frame;
}
extern "C" {
    pub fn mlt_consumer_rt_frame(self_: mlt_consumer) -> mlt_frame;
}
extern "C" {
    pub fn mlt_consumer_stop(self_: mlt_consumer) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_consumer_is_stopped(self_: mlt_consumer) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_consumer_stopped(self_: mlt_consumer);
}
extern "C" {
    pub fn mlt_consumer_close(arg1: mlt_consumer);
}
extern "C" {
    pub fn mlt_consumer_position(arg1: mlt_consumer) -> mlt_position;
}
/// \brief structure for returning clip information from a playlist entry
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mlt_playlist_clip_info {
    /// < the index of the clip within the playlist
    pub clip: ::std::os::raw::c_int,
    /// < the clip's producer (or parent producer of a cut)
    pub producer: mlt_producer,
    /// < the clips' cut producer
    pub cut: mlt_producer,
    /// < the time this begins relative to the beginning of the playlist
    pub start: mlt_position,
    /// < the file name or address of the clip
    pub resource: *mut ::std::os::raw::c_char,
    /// < the clip's in point
    pub frame_in: mlt_position,
    /// < the clip's out point
    pub frame_out: mlt_position,
    /// < the duration of the clip
    pub frame_count: mlt_position,
    /// < the unedited duration of the clip
    pub length: mlt_position,
    /// < the frame rate of the clip
    pub fps: f32,
    /// < the number of times the clip is repeated
    pub repeat: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_mlt_playlist_clip_info() {
    assert_eq!(
        ::std::mem::size_of::<mlt_playlist_clip_info>(),
        64usize,
        concat!("Size of: ", stringify!(mlt_playlist_clip_info))
    );
    assert_eq!(
        ::std::mem::align_of::<mlt_playlist_clip_info>(),
        8usize,
        concat!("Alignment of ", stringify!(mlt_playlist_clip_info))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_playlist_clip_info>())).clip as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_playlist_clip_info),
            "::",
            stringify!(clip)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_playlist_clip_info>())).producer as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_playlist_clip_info),
            "::",
            stringify!(producer)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_playlist_clip_info>())).cut as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_playlist_clip_info),
            "::",
            stringify!(cut)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_playlist_clip_info>())).start as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_playlist_clip_info),
            "::",
            stringify!(start)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_playlist_clip_info>())).resource as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_playlist_clip_info),
            "::",
            stringify!(resource)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_playlist_clip_info>())).frame_in as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_playlist_clip_info),
            "::",
            stringify!(frame_in)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<mlt_playlist_clip_info>())).frame_out as *const _ as usize
        },
        44usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_playlist_clip_info),
            "::",
            stringify!(frame_out)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<mlt_playlist_clip_info>())).frame_count as *const _ as usize
        },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_playlist_clip_info),
            "::",
            stringify!(frame_count)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_playlist_clip_info>())).length as *const _ as usize },
        52usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_playlist_clip_info),
            "::",
            stringify!(length)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_playlist_clip_info>())).fps as *const _ as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_playlist_clip_info),
            "::",
            stringify!(fps)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_playlist_clip_info>())).repeat as *const _ as usize },
        60usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_playlist_clip_info),
            "::",
            stringify!(repeat)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct playlist_entry_s {
    _unused: [u8; 0],
}
/// Playlist Entry
pub type playlist_entry = playlist_entry_s;
/// \brief Playlist class
///
/// A playlist is a sequential container of producers and blank spaces. The class provides all
/// sorts of playlist assembly and manipulation routines. A playlist is also a producer within
/// the framework.
///
/// \extends mlt_producer_s
/// \properties \em autoclose Set this true if you are doing sequential processing and want to
/// automatically close producers as they are finished being used to free resources.
/// \properties \em meta.fx_cut Set true on a producer to indicate that it is a "fx_cut,"
/// which is a way to add filters as a playlist entry - useful only in a multitrack. See FxCut on the wiki.
/// \properties \em mix_in
/// \properties \em mix_out
/// \properties \em hide Set to 1 to hide the video (make it an audio-only track),
/// 2 to hide the audio (make it a video-only track), or 3 to hide audio and video (hidden track).
/// This property only applies when using a multitrack or transition.
/// \event \em playlist-next The playlist fires this when it moves to the next item in the list.
/// The listener receives one argument that is the index of the entry that just completed.
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mlt_playlist_s {
    pub parent: mlt_producer_s,
    pub blank: mlt_producer_s,
    pub size: ::std::os::raw::c_int,
    pub count: ::std::os::raw::c_int,
    pub list: *mut *mut playlist_entry,
}
#[test]
fn bindgen_test_layout_mlt_playlist_s() {
    assert_eq!(
        ::std::mem::size_of::<mlt_playlist_s>(),
        240usize,
        concat!("Size of: ", stringify!(mlt_playlist_s))
    );
    assert_eq!(
        ::std::mem::align_of::<mlt_playlist_s>(),
        8usize,
        concat!("Alignment of ", stringify!(mlt_playlist_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_playlist_s>())).parent as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_playlist_s),
            "::",
            stringify!(parent)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_playlist_s>())).blank as *const _ as usize },
        112usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_playlist_s),
            "::",
            stringify!(blank)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_playlist_s>())).size as *const _ as usize },
        224usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_playlist_s),
            "::",
            stringify!(size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_playlist_s>())).count as *const _ as usize },
        228usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_playlist_s),
            "::",
            stringify!(count)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_playlist_s>())).list as *const _ as usize },
        232usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_playlist_s),
            "::",
            stringify!(list)
        )
    );
}
extern "C" {
    pub fn mlt_playlist_init() -> mlt_playlist;
}
extern "C" {
    pub fn mlt_playlist_new(profile: mlt_profile) -> mlt_playlist;
}
extern "C" {
    pub fn mlt_playlist_producer(self_: mlt_playlist) -> mlt_producer;
}
extern "C" {
    pub fn mlt_playlist_service(self_: mlt_playlist) -> mlt_service;
}
extern "C" {
    pub fn mlt_playlist_properties(self_: mlt_playlist) -> mlt_properties;
}
extern "C" {
    pub fn mlt_playlist_count(self_: mlt_playlist) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_clear(self_: mlt_playlist) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_append(
        self_: mlt_playlist,
        producer: mlt_producer,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_append_io(
        self_: mlt_playlist,
        producer: mlt_producer,
        in_: mlt_position,
        out: mlt_position,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_blank(self_: mlt_playlist, out: mlt_position) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_blank_time(
        self_: mlt_playlist,
        length: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_clip(
        self_: mlt_playlist,
        whence: mlt_whence,
        index: ::std::os::raw::c_int,
    ) -> mlt_position;
}
extern "C" {
    pub fn mlt_playlist_current_clip(self_: mlt_playlist) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_current(self_: mlt_playlist) -> mlt_producer;
}
extern "C" {
    pub fn mlt_playlist_get_clip_info(
        self_: mlt_playlist,
        info: *mut mlt_playlist_clip_info,
        index: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_insert(
        self_: mlt_playlist,
        producer: mlt_producer,
        where_: ::std::os::raw::c_int,
        in_: mlt_position,
        out: mlt_position,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_remove(
        self_: mlt_playlist,
        where_: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_move(
        self_: mlt_playlist,
        from: ::std::os::raw::c_int,
        to: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_resize_clip(
        self_: mlt_playlist,
        clip: ::std::os::raw::c_int,
        in_: mlt_position,
        out: mlt_position,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_repeat_clip(
        self_: mlt_playlist,
        clip: ::std::os::raw::c_int,
        repeat: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_split(
        self_: mlt_playlist,
        clip: ::std::os::raw::c_int,
        position: mlt_position,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_split_at(
        self_: mlt_playlist,
        position: mlt_position,
        left: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_join(
        self_: mlt_playlist,
        clip: ::std::os::raw::c_int,
        count: ::std::os::raw::c_int,
        merge: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_mix(
        self_: mlt_playlist,
        clip: ::std::os::raw::c_int,
        length: ::std::os::raw::c_int,
        transition: mlt_transition,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_mix_in(
        self_: mlt_playlist,
        clip: ::std::os::raw::c_int,
        length: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_mix_out(
        self_: mlt_playlist,
        clip: ::std::os::raw::c_int,
        length: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_mix_add(
        self_: mlt_playlist,
        clip: ::std::os::raw::c_int,
        transition: mlt_transition,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_get_clip(self_: mlt_playlist, clip: ::std::os::raw::c_int) -> mlt_producer;
}
extern "C" {
    pub fn mlt_playlist_get_clip_at(self_: mlt_playlist, position: mlt_position) -> mlt_producer;
}
extern "C" {
    pub fn mlt_playlist_get_clip_index_at(
        self_: mlt_playlist,
        position: mlt_position,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_clip_is_mix(
        self_: mlt_playlist,
        clip: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_consolidate_blanks(self_: mlt_playlist, keep_length: ::std::os::raw::c_int);
}
extern "C" {
    pub fn mlt_playlist_is_blank(
        self_: mlt_playlist,
        clip: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_is_blank_at(
        self_: mlt_playlist,
        position: mlt_position,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_insert_blank(
        self_: mlt_playlist,
        clip: ::std::os::raw::c_int,
        out: ::std::os::raw::c_int,
    );
}
extern "C" {
    pub fn mlt_playlist_pad_blanks(
        self_: mlt_playlist,
        position: mlt_position,
        length: ::std::os::raw::c_int,
        find: ::std::os::raw::c_int,
    );
}
extern "C" {
    pub fn mlt_playlist_replace_with_blank(
        self_: mlt_playlist,
        clip: ::std::os::raw::c_int,
    ) -> mlt_producer;
}
extern "C" {
    pub fn mlt_playlist_insert_at(
        self_: mlt_playlist,
        position: mlt_position,
        producer: mlt_producer,
        mode: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_clip_start(
        self_: mlt_playlist,
        clip: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_clip_length(
        self_: mlt_playlist,
        clip: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_blanks_from(
        self_: mlt_playlist,
        clip: ::std::os::raw::c_int,
        bounded: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_remove_region(
        self_: mlt_playlist,
        position: mlt_position,
        length: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_move_region(
        self_: mlt_playlist,
        position: mlt_position,
        length: ::std::os::raw::c_int,
        new_position: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_playlist_close(self_: mlt_playlist);
}
extern "C" {
    pub fn mlt_field_init() -> mlt_field;
}
extern "C" {
    pub fn mlt_field_new(multitrack: mlt_multitrack, tractor: mlt_tractor) -> mlt_field;
}
extern "C" {
    pub fn mlt_field_service(self_: mlt_field) -> mlt_service;
}
extern "C" {
    pub fn mlt_field_tractor(self_: mlt_field) -> mlt_tractor;
}
extern "C" {
    pub fn mlt_field_multitrack(self_: mlt_field) -> mlt_multitrack;
}
extern "C" {
    pub fn mlt_field_properties(self_: mlt_field) -> mlt_properties;
}
extern "C" {
    pub fn mlt_field_plant_filter(
        self_: mlt_field,
        that: mlt_filter,
        track: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_field_plant_transition(
        self_: mlt_field,
        that: mlt_transition,
        a_track: ::std::os::raw::c_int,
        b_track: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_field_close(self_: mlt_field);
}
extern "C" {
    pub fn mlt_field_disconnect_service(self_: mlt_field, service: mlt_service);
}
/// \brief Tractor class
///
/// The tractor is a convenience class that works with the field class
/// to manage a multitrack, track filters, and transitions.
///
/// \extends mlt_producer_s
/// \properties \em multitrack holds a reference to the mulitrack object that a tractor manages
/// \properties \em field holds a reference to the field object that a tractor manages
/// \properties \em producer holds a reference to an encapsulated producer
/// \properties \em global_feed a flag to indicate whether this tractor feeds to the consumer or stops here
/// \properties \em global_queue is something for the data_feed functionality in the core module
/// \properties \em data_queue is something for the data_feed functionality in the core module
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mlt_tractor_s {
    pub parent: mlt_producer_s,
    pub producer: mlt_service,
}
#[test]
fn bindgen_test_layout_mlt_tractor_s() {
    assert_eq!(
        ::std::mem::size_of::<mlt_tractor_s>(),
        120usize,
        concat!("Size of: ", stringify!(mlt_tractor_s))
    );
    assert_eq!(
        ::std::mem::align_of::<mlt_tractor_s>(),
        8usize,
        concat!("Alignment of ", stringify!(mlt_tractor_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_tractor_s>())).parent as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_tractor_s),
            "::",
            stringify!(parent)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_tractor_s>())).producer as *const _ as usize },
        112usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_tractor_s),
            "::",
            stringify!(producer)
        )
    );
}
extern "C" {
    pub fn mlt_tractor_init() -> mlt_tractor;
}
extern "C" {
    pub fn mlt_tractor_new() -> mlt_tractor;
}
extern "C" {
    pub fn mlt_tractor_service(self_: mlt_tractor) -> mlt_service;
}
extern "C" {
    pub fn mlt_tractor_producer(self_: mlt_tractor) -> mlt_producer;
}
extern "C" {
    pub fn mlt_tractor_properties(self_: mlt_tractor) -> mlt_properties;
}
extern "C" {
    pub fn mlt_tractor_field(self_: mlt_tractor) -> mlt_field;
}
extern "C" {
    pub fn mlt_tractor_multitrack(self_: mlt_tractor) -> mlt_multitrack;
}
extern "C" {
    pub fn mlt_tractor_connect(self_: mlt_tractor, service: mlt_service) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_tractor_refresh(self_: mlt_tractor);
}
extern "C" {
    pub fn mlt_tractor_set_track(
        self_: mlt_tractor,
        producer: mlt_producer,
        index: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_tractor_insert_track(
        self_: mlt_tractor,
        producer: mlt_producer,
        index: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_tractor_remove_track(
        self_: mlt_tractor,
        index: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_tractor_get_track(self_: mlt_tractor, index: ::std::os::raw::c_int) -> mlt_producer;
}
extern "C" {
    pub fn mlt_tractor_close(self_: mlt_tractor);
}
/// \brief Tokeniser class
///
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mlt_tokeniser_t {
    pub input: *mut ::std::os::raw::c_char,
    pub tokens: *mut *mut ::std::os::raw::c_char,
    pub count: ::std::os::raw::c_int,
    pub size: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_mlt_tokeniser_t() {
    assert_eq!(
        ::std::mem::size_of::<mlt_tokeniser_t>(),
        24usize,
        concat!("Size of: ", stringify!(mlt_tokeniser_t))
    );
    assert_eq!(
        ::std::mem::align_of::<mlt_tokeniser_t>(),
        8usize,
        concat!("Alignment of ", stringify!(mlt_tokeniser_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_tokeniser_t>())).input as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_tokeniser_t),
            "::",
            stringify!(input)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_tokeniser_t>())).tokens as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_tokeniser_t),
            "::",
            stringify!(tokens)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_tokeniser_t>())).count as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_tokeniser_t),
            "::",
            stringify!(count)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_tokeniser_t>())).size as *const _ as usize },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_tokeniser_t),
            "::",
            stringify!(size)
        )
    );
}
pub type mlt_tokeniser = *mut mlt_tokeniser_t;
extern "C" {
    pub fn mlt_tokeniser_init() -> mlt_tokeniser;
}
extern "C" {
    pub fn mlt_tokeniser_parse_new(
        tokeniser: mlt_tokeniser,
        text: *mut ::std::os::raw::c_char,
        delimiter: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_tokeniser_get_input(tokeniser: mlt_tokeniser) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn mlt_tokeniser_count(tokeniser: mlt_tokeniser) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_tokeniser_get_string(
        tokeniser: mlt_tokeniser,
        index: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn mlt_tokeniser_close(tokeniser: mlt_tokeniser);
}
/// \brief Parser class
///
/// \extends mlt_properties_s
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mlt_parser_s {
    pub parent: mlt_properties_s,
    pub on_invalid: ::std::option::Option<
        unsafe extern "C" fn(self_: mlt_parser, object: mlt_service) -> ::std::os::raw::c_int,
    >,
    pub on_unknown: ::std::option::Option<
        unsafe extern "C" fn(self_: mlt_parser, object: mlt_service) -> ::std::os::raw::c_int,
    >,
    pub on_start_producer: ::std::option::Option<
        unsafe extern "C" fn(self_: mlt_parser, object: mlt_producer) -> ::std::os::raw::c_int,
    >,
    pub on_end_producer: ::std::option::Option<
        unsafe extern "C" fn(self_: mlt_parser, object: mlt_producer) -> ::std::os::raw::c_int,
    >,
    pub on_start_playlist: ::std::option::Option<
        unsafe extern "C" fn(self_: mlt_parser, object: mlt_playlist) -> ::std::os::raw::c_int,
    >,
    pub on_end_playlist: ::std::option::Option<
        unsafe extern "C" fn(self_: mlt_parser, object: mlt_playlist) -> ::std::os::raw::c_int,
    >,
    pub on_start_tractor: ::std::option::Option<
        unsafe extern "C" fn(self_: mlt_parser, object: mlt_tractor) -> ::std::os::raw::c_int,
    >,
    pub on_end_tractor: ::std::option::Option<
        unsafe extern "C" fn(self_: mlt_parser, object: mlt_tractor) -> ::std::os::raw::c_int,
    >,
    pub on_start_multitrack: ::std::option::Option<
        unsafe extern "C" fn(self_: mlt_parser, object: mlt_multitrack) -> ::std::os::raw::c_int,
    >,
    pub on_end_multitrack: ::std::option::Option<
        unsafe extern "C" fn(self_: mlt_parser, object: mlt_multitrack) -> ::std::os::raw::c_int,
    >,
    pub on_start_track:
        ::std::option::Option<unsafe extern "C" fn(self_: mlt_parser) -> ::std::os::raw::c_int>,
    pub on_end_track:
        ::std::option::Option<unsafe extern "C" fn(self_: mlt_parser) -> ::std::os::raw::c_int>,
    pub on_start_filter: ::std::option::Option<
        unsafe extern "C" fn(self_: mlt_parser, object: mlt_filter) -> ::std::os::raw::c_int,
    >,
    pub on_end_filter: ::std::option::Option<
        unsafe extern "C" fn(self_: mlt_parser, object: mlt_filter) -> ::std::os::raw::c_int,
    >,
    pub on_start_transition: ::std::option::Option<
        unsafe extern "C" fn(self_: mlt_parser, object: mlt_transition) -> ::std::os::raw::c_int,
    >,
    pub on_end_transition: ::std::option::Option<
        unsafe extern "C" fn(self_: mlt_parser, object: mlt_transition) -> ::std::os::raw::c_int,
    >,
}
#[test]
fn bindgen_test_layout_mlt_parser_s() {
    assert_eq!(
        ::std::mem::size_of::<mlt_parser_s>(),
        160usize,
        concat!("Size of: ", stringify!(mlt_parser_s))
    );
    assert_eq!(
        ::std::mem::align_of::<mlt_parser_s>(),
        8usize,
        concat!("Alignment of ", stringify!(mlt_parser_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_parser_s>())).parent as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_parser_s),
            "::",
            stringify!(parent)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_parser_s>())).on_invalid as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_parser_s),
            "::",
            stringify!(on_invalid)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_parser_s>())).on_unknown as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_parser_s),
            "::",
            stringify!(on_unknown)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_parser_s>())).on_start_producer as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_parser_s),
            "::",
            stringify!(on_start_producer)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_parser_s>())).on_end_producer as *const _ as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_parser_s),
            "::",
            stringify!(on_end_producer)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_parser_s>())).on_start_playlist as *const _ as usize },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_parser_s),
            "::",
            stringify!(on_start_playlist)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_parser_s>())).on_end_playlist as *const _ as usize },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_parser_s),
            "::",
            stringify!(on_end_playlist)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_parser_s>())).on_start_tractor as *const _ as usize },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_parser_s),
            "::",
            stringify!(on_start_tractor)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_parser_s>())).on_end_tractor as *const _ as usize },
        88usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_parser_s),
            "::",
            stringify!(on_end_tractor)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<mlt_parser_s>())).on_start_multitrack as *const _ as usize
        },
        96usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_parser_s),
            "::",
            stringify!(on_start_multitrack)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_parser_s>())).on_end_multitrack as *const _ as usize },
        104usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_parser_s),
            "::",
            stringify!(on_end_multitrack)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_parser_s>())).on_start_track as *const _ as usize },
        112usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_parser_s),
            "::",
            stringify!(on_start_track)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_parser_s>())).on_end_track as *const _ as usize },
        120usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_parser_s),
            "::",
            stringify!(on_end_track)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_parser_s>())).on_start_filter as *const _ as usize },
        128usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_parser_s),
            "::",
            stringify!(on_start_filter)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_parser_s>())).on_end_filter as *const _ as usize },
        136usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_parser_s),
            "::",
            stringify!(on_end_filter)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<mlt_parser_s>())).on_start_transition as *const _ as usize
        },
        144usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_parser_s),
            "::",
            stringify!(on_start_transition)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_parser_s>())).on_end_transition as *const _ as usize },
        152usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_parser_s),
            "::",
            stringify!(on_end_transition)
        )
    );
}
extern "C" {
    pub fn mlt_parser_new() -> mlt_parser;
}
extern "C" {
    pub fn mlt_parser_properties(self_: mlt_parser) -> mlt_properties;
}
extern "C" {
    pub fn mlt_parser_start(self_: mlt_parser, object: mlt_service) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_parser_close(self_: mlt_parser);
}
/// geometry animation item (deprecated)
/// \deprecated use mlt_animation_s instead
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mlt_geometry_item_s {
    pub key: ::std::os::raw::c_int,
    pub frame: ::std::os::raw::c_int,
    pub distort: ::std::os::raw::c_int,
    pub x: f32,
    pub y: f32,
    pub w: f32,
    pub h: f32,
    pub mix: f32,
    pub f: [::std::os::raw::c_int; 5usize],
}
#[test]
fn bindgen_test_layout_mlt_geometry_item_s() {
    assert_eq!(
        ::std::mem::size_of::<mlt_geometry_item_s>(),
        52usize,
        concat!("Size of: ", stringify!(mlt_geometry_item_s))
    );
    assert_eq!(
        ::std::mem::align_of::<mlt_geometry_item_s>(),
        4usize,
        concat!("Alignment of ", stringify!(mlt_geometry_item_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_geometry_item_s>())).key as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_geometry_item_s),
            "::",
            stringify!(key)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_geometry_item_s>())).frame as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_geometry_item_s),
            "::",
            stringify!(frame)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_geometry_item_s>())).distort as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_geometry_item_s),
            "::",
            stringify!(distort)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_geometry_item_s>())).x as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_geometry_item_s),
            "::",
            stringify!(x)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_geometry_item_s>())).y as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_geometry_item_s),
            "::",
            stringify!(y)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_geometry_item_s>())).w as *const _ as usize },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_geometry_item_s),
            "::",
            stringify!(w)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_geometry_item_s>())).h as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_geometry_item_s),
            "::",
            stringify!(h)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_geometry_item_s>())).mix as *const _ as usize },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_geometry_item_s),
            "::",
            stringify!(mix)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_geometry_item_s>())).f as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_geometry_item_s),
            "::",
            stringify!(f)
        )
    );
}
/// geometry object (deprecated)
/// \deprecated use mlt_animation_s instead
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mlt_geometry_s {
    pub local: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_mlt_geometry_s() {
    assert_eq!(
        ::std::mem::size_of::<mlt_geometry_s>(),
        8usize,
        concat!("Size of: ", stringify!(mlt_geometry_s))
    );
    assert_eq!(
        ::std::mem::align_of::<mlt_geometry_s>(),
        8usize,
        concat!("Alignment of ", stringify!(mlt_geometry_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mlt_geometry_s>())).local as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(mlt_geometry_s),
            "::",
            stringify!(local)
        )
    );
}
extern "C" {
    pub fn mlt_geometry_init() -> mlt_geometry;
}
extern "C" {
    pub fn mlt_geometry_parse(
        self_: mlt_geometry,
        data: *mut ::std::os::raw::c_char,
        length: ::std::os::raw::c_int,
        nw: ::std::os::raw::c_int,
        nh: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_geometry_refresh(
        self_: mlt_geometry,
        data: *mut ::std::os::raw::c_char,
        length: ::std::os::raw::c_int,
        nw: ::std::os::raw::c_int,
        nh: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_geometry_get_length(self_: mlt_geometry) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_geometry_set_length(self_: mlt_geometry, length: ::std::os::raw::c_int);
}
extern "C" {
    pub fn mlt_geometry_parse_item(
        self_: mlt_geometry,
        item: mlt_geometry_item,
        data: *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_geometry_fetch(
        self_: mlt_geometry,
        item: mlt_geometry_item,
        position: f32,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_geometry_insert(
        self_: mlt_geometry,
        item: mlt_geometry_item,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_geometry_remove(
        self_: mlt_geometry,
        position: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_geometry_interpolate(self_: mlt_geometry);
}
extern "C" {
    pub fn mlt_geometry_next_key(
        self_: mlt_geometry,
        item: mlt_geometry_item,
        position: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_geometry_prev_key(
        self_: mlt_geometry,
        item: mlt_geometry_item,
        position: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_geometry_serialise_cut(
        self_: mlt_geometry,
        in_: ::std::os::raw::c_int,
        out: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn mlt_geometry_serialise(self_: mlt_geometry) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn mlt_geometry_close(self_: mlt_geometry);
}
extern "C" {
    pub fn mlt_log(
        service: *mut ::std::os::raw::c_void,
        level: ::std::os::raw::c_int,
        fmt: *const ::std::os::raw::c_char,
        ...
    );
}
extern "C" {
    pub fn mlt_vlog(
        service: *mut ::std::os::raw::c_void,
        level: ::std::os::raw::c_int,
        fmt: *const ::std::os::raw::c_char,
        arg1: *mut __va_list_tag,
    );
}
extern "C" {
    pub fn mlt_log_get_level() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_log_set_level(arg1: ::std::os::raw::c_int);
}
extern "C" {
    pub fn mlt_log_set_callback(
        arg1: ::std::option::Option<
            unsafe extern "C" fn(
                arg1: *mut ::std::os::raw::c_void,
                arg2: ::std::os::raw::c_int,
                arg3: *const ::std::os::raw::c_char,
                arg4: *mut __va_list_tag,
            ),
        >,
    );
}
extern "C" {
    pub fn mlt_log_timings_now() -> i64;
}
extern "C" {
    pub fn mlt_cache_item_data(
        item: mlt_cache_item,
        size: *mut ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn mlt_cache_item_close(item: mlt_cache_item);
}
extern "C" {
    pub fn mlt_cache_init() -> mlt_cache;
}
extern "C" {
    pub fn mlt_cache_set_size(cache: mlt_cache, size: ::std::os::raw::c_int);
}
extern "C" {
    pub fn mlt_cache_get_size(cache: mlt_cache) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_cache_close(cache: mlt_cache);
}
extern "C" {
    pub fn mlt_cache_purge(cache: mlt_cache, object: *mut ::std::os::raw::c_void);
}
extern "C" {
    pub fn mlt_cache_put(
        cache: mlt_cache,
        object: *mut ::std::os::raw::c_void,
        data: *mut ::std::os::raw::c_void,
        size: ::std::os::raw::c_int,
        destructor: mlt_destructor,
    );
}
extern "C" {
    pub fn mlt_cache_get(cache: mlt_cache, object: *mut ::std::os::raw::c_void) -> mlt_cache_item;
}
extern "C" {
    pub fn mlt_cache_put_frame(cache: mlt_cache, frame: mlt_frame);
}
extern "C" {
    pub fn mlt_cache_get_frame(cache: mlt_cache, position: mlt_position) -> mlt_frame;
}
extern "C" {
    pub fn mlt_version_get_int() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_version_get_major() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_version_get_minor() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_version_get_revision() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_version_get_string() -> *mut ::std::os::raw::c_char;
}
pub type mlt_slices_proc = ::std::option::Option<
    unsafe extern "C" fn(
        id: ::std::os::raw::c_int,
        idx: ::std::os::raw::c_int,
        jobs: ::std::os::raw::c_int,
        cookie: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
extern "C" {
    pub fn mlt_slices_init(
        threads: ::std::os::raw::c_int,
        policy: ::std::os::raw::c_int,
        priority: ::std::os::raw::c_int,
    ) -> mlt_slices;
}
extern "C" {
    pub fn mlt_slices_close(ctx: mlt_slices);
}
extern "C" {
    pub fn mlt_slices_run(
        ctx: mlt_slices,
        jobs: ::std::os::raw::c_int,
        proc_: mlt_slices_proc,
        cookie: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    pub fn mlt_slices_count_normal() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_slices_count_rr() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_slices_count_fifo() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mlt_slices_run_normal(
        jobs: ::std::os::raw::c_int,
        proc_: mlt_slices_proc,
        cookie: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    pub fn mlt_slices_run_rr(
        jobs: ::std::os::raw::c_int,
        proc_: mlt_slices_proc,
        cookie: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    pub fn mlt_slices_run_fifo(
        jobs: ::std::os::raw::c_int,
        proc_: mlt_slices_proc,
        cookie: *mut ::std::os::raw::c_void,
    );
}
pub type __builtin_va_list = [__va_list_tag; 1usize];
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __va_list_tag {
    pub gp_offset: ::std::os::raw::c_uint,
    pub fp_offset: ::std::os::raw::c_uint,
    pub overflow_arg_area: *mut ::std::os::raw::c_void,
    pub reg_save_area: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout___va_list_tag() {
    assert_eq!(
        ::std::mem::size_of::<__va_list_tag>(),
        24usize,
        concat!("Size of: ", stringify!(__va_list_tag))
    );
    assert_eq!(
        ::std::mem::align_of::<__va_list_tag>(),
        8usize,
        concat!("Alignment of ", stringify!(__va_list_tag))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__va_list_tag>())).gp_offset as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__va_list_tag),
            "::",
            stringify!(gp_offset)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__va_list_tag>())).fp_offset as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(__va_list_tag),
            "::",
            stringify!(fp_offset)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__va_list_tag>())).overflow_arg_area as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(__va_list_tag),
            "::",
            stringify!(overflow_arg_area)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__va_list_tag>())).reg_save_area as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(__va_list_tag),
            "::",
            stringify!(reg_save_area)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __locale_data {
    pub _address: u8,
}