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
/* automatically generated by rust-bindgen */

#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
extern crate libusb_sys;

pub const __WORDSIZE: u32 = 64;
pub const __DARWIN_ONLY_64_BIT_INO_T: u32 = 0;
pub const __DARWIN_ONLY_VERS_1050: u32 = 0;
pub const __DARWIN_ONLY_UNIX_CONFORMANCE: u32 = 1;
pub const __DARWIN_UNIX03: u32 = 1;
pub const __DARWIN_64_BIT_INO_T: u32 = 0;
pub const __DARWIN_VERS_1050: u32 = 0;
pub const __DARWIN_NON_CANCELABLE: u32 = 0;
pub const __DARWIN_SUF_EXTSN: &'static [u8; 14usize] = b"$DARWIN_EXTSN\0";
pub const __DARWIN_C_ANSI: u32 = 4096;
pub const __DARWIN_C_FULL: u32 = 900000;
pub const __DARWIN_C_LEVEL: u32 = 900000;
pub const __STDC_WANT_LIB_EXT1__: u32 = 1;
pub const _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE: u32 = 1;
pub const _DARWIN_FEATURE_UNIX_CONFORMANCE: u32 = 3;
pub const __PTHREAD_SIZE__: u32 = 8176;
pub const __PTHREAD_ATTR_SIZE__: u32 = 56;
pub const __PTHREAD_MUTEXATTR_SIZE__: u32 = 8;
pub const __PTHREAD_MUTEX_SIZE__: u32 = 56;
pub const __PTHREAD_CONDATTR_SIZE__: u32 = 8;
pub const __PTHREAD_COND_SIZE__: u32 = 40;
pub const __PTHREAD_ONCE_SIZE__: u32 = 8;
pub const __PTHREAD_RWLOCK_SIZE__: u32 = 192;
pub const __PTHREAD_RWLOCKATTR_SIZE__: u32 = 16;
pub const INT8_MAX: u32 = 127;
pub const INT16_MAX: u32 = 32767;
pub const INT32_MAX: u32 = 2147483647;
pub const INT64_MAX: u64 = 9223372036854775807;
pub const INT8_MIN: i32 = -128;
pub const INT16_MIN: i32 = -32768;
pub const INT32_MIN: i32 = -2147483648;
pub const INT64_MIN: i64 = -9223372036854775808;
pub const UINT8_MAX: u32 = 255;
pub const UINT16_MAX: u32 = 65535;
pub const UINT32_MAX: u32 = 4294967295;
pub const UINT64_MAX: i32 = -1;
pub const INT_LEAST8_MIN: i32 = -128;
pub const INT_LEAST16_MIN: i32 = -32768;
pub const INT_LEAST32_MIN: i32 = -2147483648;
pub const INT_LEAST64_MIN: i64 = -9223372036854775808;
pub const INT_LEAST8_MAX: u32 = 127;
pub const INT_LEAST16_MAX: u32 = 32767;
pub const INT_LEAST32_MAX: u32 = 2147483647;
pub const INT_LEAST64_MAX: u64 = 9223372036854775807;
pub const UINT_LEAST8_MAX: u32 = 255;
pub const UINT_LEAST16_MAX: u32 = 65535;
pub const UINT_LEAST32_MAX: u32 = 4294967295;
pub const UINT_LEAST64_MAX: i32 = -1;
pub const INT_FAST8_MIN: i32 = -128;
pub const INT_FAST16_MIN: i32 = -32768;
pub const INT_FAST32_MIN: i32 = -2147483648;
pub const INT_FAST64_MIN: i64 = -9223372036854775808;
pub const INT_FAST8_MAX: u32 = 127;
pub const INT_FAST16_MAX: u32 = 32767;
pub const INT_FAST32_MAX: u32 = 2147483647;
pub const INT_FAST64_MAX: u64 = 9223372036854775807;
pub const UINT_FAST8_MAX: u32 = 255;
pub const UINT_FAST16_MAX: u32 = 65535;
pub const UINT_FAST32_MAX: u32 = 4294967295;
pub const UINT_FAST64_MAX: i32 = -1;
pub const INTPTR_MIN: i64 = -9223372036854775808;
pub const INTPTR_MAX: u64 = 9223372036854775807;
pub const UINTPTR_MAX: i32 = -1;
pub const INTMAX_MIN: i64 = -9223372036854775808;
pub const INTMAX_MAX: u64 = 9223372036854775807;
pub const UINTMAX_MAX: i32 = -1;
pub const PTRDIFF_MIN: i64 = -9223372036854775808;
pub const PTRDIFF_MAX: u64 = 9223372036854775807;
pub const SIZE_MAX: i32 = -1;
pub const RSIZE_MAX: i32 = -1;
pub const WINT_MIN: i32 = -2147483648;
pub const WINT_MAX: u32 = 2147483647;
pub const SIG_ATOMIC_MIN: i32 = -2147483648;
pub const SIG_ATOMIC_MAX: u32 = 2147483647;
pub const __MAC_10_0: u32 = 1000;
pub const __MAC_10_1: u32 = 1010;
pub const __MAC_10_2: u32 = 1020;
pub const __MAC_10_3: u32 = 1030;
pub const __MAC_10_4: u32 = 1040;
pub const __MAC_10_5: u32 = 1050;
pub const __MAC_10_6: u32 = 1060;
pub const __MAC_10_7: u32 = 1070;
pub const __MAC_10_8: u32 = 1080;
pub const __MAC_10_9: u32 = 1090;
pub const __MAC_10_10: u32 = 101000;
pub const __MAC_10_10_2: u32 = 101002;
pub const __MAC_10_10_3: u32 = 101003;
pub const __MAC_10_11: u32 = 101100;
pub const __MAC_10_11_2: u32 = 101102;
pub const __MAC_10_11_3: u32 = 101103;
pub const __MAC_10_11_4: u32 = 101104;
pub const __MAC_10_12: u32 = 101200;
pub const __MAC_10_12_1: u32 = 101201;
pub const __MAC_10_12_2: u32 = 101202;
pub const __MAC_10_12_4: u32 = 101204;
pub const __IPHONE_2_0: u32 = 20000;
pub const __IPHONE_2_1: u32 = 20100;
pub const __IPHONE_2_2: u32 = 20200;
pub const __IPHONE_3_0: u32 = 30000;
pub const __IPHONE_3_1: u32 = 30100;
pub const __IPHONE_3_2: u32 = 30200;
pub const __IPHONE_4_0: u32 = 40000;
pub const __IPHONE_4_1: u32 = 40100;
pub const __IPHONE_4_2: u32 = 40200;
pub const __IPHONE_4_3: u32 = 40300;
pub const __IPHONE_5_0: u32 = 50000;
pub const __IPHONE_5_1: u32 = 50100;
pub const __IPHONE_6_0: u32 = 60000;
pub const __IPHONE_6_1: u32 = 60100;
pub const __IPHONE_7_0: u32 = 70000;
pub const __IPHONE_7_1: u32 = 70100;
pub const __IPHONE_8_0: u32 = 80000;
pub const __IPHONE_8_1: u32 = 80100;
pub const __IPHONE_8_2: u32 = 80200;
pub const __IPHONE_8_3: u32 = 80300;
pub const __IPHONE_8_4: u32 = 80400;
pub const __IPHONE_9_0: u32 = 90000;
pub const __IPHONE_9_1: u32 = 90100;
pub const __IPHONE_9_2: u32 = 90200;
pub const __IPHONE_9_3: u32 = 90300;
pub const __IPHONE_10_0: u32 = 100000;
pub const __IPHONE_10_1: u32 = 100100;
pub const __IPHONE_10_2: u32 = 100200;
pub const __IPHONE_10_3: u32 = 100300;
pub const __TVOS_9_0: u32 = 90000;
pub const __TVOS_9_1: u32 = 90100;
pub const __TVOS_9_2: u32 = 90200;
pub const __TVOS_10_0: u32 = 100000;
pub const __TVOS_10_0_1: u32 = 100001;
pub const __TVOS_10_1: u32 = 100100;
pub const __TVOS_10_2: u32 = 100200;
pub const __WATCHOS_1_0: u32 = 10000;
pub const __WATCHOS_2_0: u32 = 20000;
pub const __WATCHOS_2_1: u32 = 20100;
pub const __WATCHOS_2_2: u32 = 20200;
pub const __WATCHOS_3_0: u32 = 30000;
pub const __WATCHOS_3_1: u32 = 30100;
pub const __WATCHOS_3_1_1: u32 = 30101;
pub const __WATCHOS_3_2: u32 = 30200;
pub const __MAC_OS_X_VERSION_MAX_ALLOWED: u32 = 101204;
pub const __DARWIN_WCHAR_MIN: i32 = -2147483648;
pub const _FORTIFY_SOURCE: u32 = 0;
pub const RENAME_SECLUDE: u32 = 1;
pub const RENAME_SWAP: u32 = 2;
pub const RENAME_EXCL: u32 = 4;
pub const __SLBF: u32 = 1;
pub const __SNBF: u32 = 2;
pub const __SRD: u32 = 4;
pub const __SWR: u32 = 8;
pub const __SRW: u32 = 16;
pub const __SEOF: u32 = 32;
pub const __SERR: u32 = 64;
pub const __SMBF: u32 = 128;
pub const __SAPP: u32 = 256;
pub const __SSTR: u32 = 512;
pub const __SOPT: u32 = 1024;
pub const __SNPT: u32 = 2048;
pub const __SOFF: u32 = 4096;
pub const __SMOD: u32 = 8192;
pub const __SALC: u32 = 16384;
pub const __SIGN: u32 = 32768;
pub const _IOFBF: u32 = 0;
pub const _IOLBF: u32 = 1;
pub const _IONBF: u32 = 2;
pub const BUFSIZ: u32 = 1024;
pub const EOF: i32 = -1;
pub const FOPEN_MAX: u32 = 20;
pub const FILENAME_MAX: u32 = 1024;
pub const P_tmpdir: &'static [u8; 10usize] = b"/var/tmp/\0";
pub const L_tmpnam: u32 = 1024;
pub const TMP_MAX: u32 = 308915776;
pub const SEEK_SET: u32 = 0;
pub const SEEK_CUR: u32 = 1;
pub const SEEK_END: u32 = 2;
pub const L_ctermid: u32 = 1024;
pub const __CTERMID_DEFINED: u32 = 1;
pub const DC1394_CAPTURE_FLAGS_CHANNEL_ALLOC: u32 = 1;
pub const DC1394_CAPTURE_FLAGS_BANDWIDTH_ALLOC: u32 = 2;
pub const DC1394_CAPTURE_FLAGS_DEFAULT: u32 = 4;
pub const DC1394_CAPTURE_FLAGS_AUTO_ISO: u32 = 8;
pub const DC1394_QUERY_FROM_CAMERA: i32 = -1;
pub const DC1394_USE_MAX_AVAIL: i32 = -2;
pub const DC1394_USE_RECOMMENDED: i32 = -3;
pub type int_least8_t = i8;
pub type int_least16_t = i16;
pub type int_least32_t = i32;
pub type int_least64_t = i64;
pub type uint_least8_t = u8;
pub type uint_least16_t = u16;
pub type uint_least32_t = u32;
pub type uint_least64_t = u64;
pub type int_fast8_t = i8;
pub type int_fast16_t = i16;
pub type int_fast32_t = i32;
pub type int_fast64_t = i64;
pub type uint_fast8_t = u8;
pub type uint_fast16_t = u16;
pub type uint_fast32_t = u32;
pub type uint_fast64_t = u64;
pub type __int8_t = ::std::os::raw::c_schar;
pub type __uint8_t = ::std::os::raw::c_uchar;
pub type __int16_t = ::std::os::raw::c_short;
pub type __uint16_t = ::std::os::raw::c_ushort;
pub type __int32_t = ::std::os::raw::c_int;
pub type __uint32_t = ::std::os::raw::c_uint;
pub type __int64_t = ::std::os::raw::c_longlong;
pub type __uint64_t = ::std::os::raw::c_ulonglong;
pub type __darwin_intptr_t = ::std::os::raw::c_long;
pub type __darwin_natural_t = ::std::os::raw::c_uint;
pub type __darwin_ct_rune_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Copy, Clone)]
pub union __mbstate_t {
    pub __mbstate8: [::std::os::raw::c_char; 128usize],
    pub _mbstateL: ::std::os::raw::c_longlong,
    _bindgen_union_align: [u64; 16usize],
}
#[test]
fn bindgen_test_layout___mbstate_t() {
    assert_eq!(
        ::std::mem::size_of::<__mbstate_t>(),
        128usize,
        concat!("Size of: ", stringify!(__mbstate_t))
    );
    assert_eq!(
        ::std::mem::align_of::<__mbstate_t>(),
        8usize,
        concat!("Alignment of ", stringify!(__mbstate_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__mbstate_t>())).__mbstate8 as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__mbstate_t),
            "::",
            stringify!(__mbstate8)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__mbstate_t>()))._mbstateL as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__mbstate_t),
            "::",
            stringify!(_mbstateL)
        )
    );
}
pub type __darwin_mbstate_t = __mbstate_t;
pub type __darwin_ptrdiff_t = ::std::os::raw::c_long;
pub type __darwin_size_t = ::std::os::raw::c_ulong;
pub type __darwin_va_list = __builtin_va_list;
pub type __darwin_wchar_t = ::std::os::raw::c_int;
pub type __darwin_rune_t = __darwin_wchar_t;
pub type __darwin_wint_t = ::std::os::raw::c_int;
pub type __darwin_clock_t = ::std::os::raw::c_ulong;
pub type __darwin_socklen_t = __uint32_t;
pub type __darwin_ssize_t = ::std::os::raw::c_long;
pub type __darwin_time_t = ::std::os::raw::c_long;
pub type __darwin_blkcnt_t = __int64_t;
pub type __darwin_blksize_t = __int32_t;
pub type __darwin_dev_t = __int32_t;
pub type __darwin_fsblkcnt_t = ::std::os::raw::c_uint;
pub type __darwin_fsfilcnt_t = ::std::os::raw::c_uint;
pub type __darwin_gid_t = __uint32_t;
pub type __darwin_id_t = __uint32_t;
pub type __darwin_ino64_t = __uint64_t;
pub type __darwin_ino_t = __uint32_t;
pub type __darwin_mach_port_name_t = __darwin_natural_t;
pub type __darwin_mach_port_t = __darwin_mach_port_name_t;
pub type __darwin_mode_t = __uint16_t;
pub type __darwin_off_t = __int64_t;
pub type __darwin_pid_t = __int32_t;
pub type __darwin_sigset_t = __uint32_t;
pub type __darwin_suseconds_t = __int32_t;
pub type __darwin_uid_t = __uint32_t;
pub type __darwin_useconds_t = __uint32_t;
pub type __darwin_uuid_t = [::std::os::raw::c_uchar; 16usize];
pub type __darwin_uuid_string_t = [::std::os::raw::c_char; 37usize];
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_pthread_handler_rec {
    pub __routine: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
    pub __arg: *mut ::std::os::raw::c_void,
    pub __next: *mut __darwin_pthread_handler_rec,
}
#[test]
fn bindgen_test_layout___darwin_pthread_handler_rec() {
    assert_eq!(
        ::std::mem::size_of::<__darwin_pthread_handler_rec>(),
        24usize,
        concat!("Size of: ", stringify!(__darwin_pthread_handler_rec))
    );
    assert_eq!(
        ::std::mem::align_of::<__darwin_pthread_handler_rec>(),
        8usize,
        concat!("Alignment of ", stringify!(__darwin_pthread_handler_rec))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__darwin_pthread_handler_rec>())).__routine as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__darwin_pthread_handler_rec),
            "::",
            stringify!(__routine)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__darwin_pthread_handler_rec>())).__arg as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(__darwin_pthread_handler_rec),
            "::",
            stringify!(__arg)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__darwin_pthread_handler_rec>())).__next as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(__darwin_pthread_handler_rec),
            "::",
            stringify!(__next)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _opaque_pthread_attr_t {
    pub __sig: ::std::os::raw::c_long,
    pub __opaque: [::std::os::raw::c_char; 56usize],
}
#[test]
fn bindgen_test_layout__opaque_pthread_attr_t() {
    assert_eq!(
        ::std::mem::size_of::<_opaque_pthread_attr_t>(),
        64usize,
        concat!("Size of: ", stringify!(_opaque_pthread_attr_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_opaque_pthread_attr_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_opaque_pthread_attr_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_opaque_pthread_attr_t>())).__sig as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_opaque_pthread_attr_t),
            "::",
            stringify!(__sig)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_opaque_pthread_attr_t>())).__opaque as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(_opaque_pthread_attr_t),
            "::",
            stringify!(__opaque)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _opaque_pthread_cond_t {
    pub __sig: ::std::os::raw::c_long,
    pub __opaque: [::std::os::raw::c_char; 40usize],
}
#[test]
fn bindgen_test_layout__opaque_pthread_cond_t() {
    assert_eq!(
        ::std::mem::size_of::<_opaque_pthread_cond_t>(),
        48usize,
        concat!("Size of: ", stringify!(_opaque_pthread_cond_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_opaque_pthread_cond_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_opaque_pthread_cond_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_opaque_pthread_cond_t>())).__sig as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_opaque_pthread_cond_t),
            "::",
            stringify!(__sig)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_opaque_pthread_cond_t>())).__opaque as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(_opaque_pthread_cond_t),
            "::",
            stringify!(__opaque)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_condattr_t {
    pub __sig: ::std::os::raw::c_long,
    pub __opaque: [::std::os::raw::c_char; 8usize],
}
#[test]
fn bindgen_test_layout__opaque_pthread_condattr_t() {
    assert_eq!(
        ::std::mem::size_of::<_opaque_pthread_condattr_t>(),
        16usize,
        concat!("Size of: ", stringify!(_opaque_pthread_condattr_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_opaque_pthread_condattr_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_opaque_pthread_condattr_t))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_opaque_pthread_condattr_t>())).__sig as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_opaque_pthread_condattr_t),
            "::",
            stringify!(__sig)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_opaque_pthread_condattr_t>())).__opaque as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(_opaque_pthread_condattr_t),
            "::",
            stringify!(__opaque)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _opaque_pthread_mutex_t {
    pub __sig: ::std::os::raw::c_long,
    pub __opaque: [::std::os::raw::c_char; 56usize],
}
#[test]
fn bindgen_test_layout__opaque_pthread_mutex_t() {
    assert_eq!(
        ::std::mem::size_of::<_opaque_pthread_mutex_t>(),
        64usize,
        concat!("Size of: ", stringify!(_opaque_pthread_mutex_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_opaque_pthread_mutex_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_opaque_pthread_mutex_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_opaque_pthread_mutex_t>())).__sig as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_opaque_pthread_mutex_t),
            "::",
            stringify!(__sig)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_opaque_pthread_mutex_t>())).__opaque as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(_opaque_pthread_mutex_t),
            "::",
            stringify!(__opaque)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_mutexattr_t {
    pub __sig: ::std::os::raw::c_long,
    pub __opaque: [::std::os::raw::c_char; 8usize],
}
#[test]
fn bindgen_test_layout__opaque_pthread_mutexattr_t() {
    assert_eq!(
        ::std::mem::size_of::<_opaque_pthread_mutexattr_t>(),
        16usize,
        concat!("Size of: ", stringify!(_opaque_pthread_mutexattr_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_opaque_pthread_mutexattr_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_opaque_pthread_mutexattr_t))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_opaque_pthread_mutexattr_t>())).__sig as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_opaque_pthread_mutexattr_t),
            "::",
            stringify!(__sig)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_opaque_pthread_mutexattr_t>())).__opaque as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(_opaque_pthread_mutexattr_t),
            "::",
            stringify!(__opaque)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_once_t {
    pub __sig: ::std::os::raw::c_long,
    pub __opaque: [::std::os::raw::c_char; 8usize],
}
#[test]
fn bindgen_test_layout__opaque_pthread_once_t() {
    assert_eq!(
        ::std::mem::size_of::<_opaque_pthread_once_t>(),
        16usize,
        concat!("Size of: ", stringify!(_opaque_pthread_once_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_opaque_pthread_once_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_opaque_pthread_once_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_opaque_pthread_once_t>())).__sig as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_opaque_pthread_once_t),
            "::",
            stringify!(__sig)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_opaque_pthread_once_t>())).__opaque as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(_opaque_pthread_once_t),
            "::",
            stringify!(__opaque)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _opaque_pthread_rwlock_t {
    pub __sig: ::std::os::raw::c_long,
    pub __opaque: [::std::os::raw::c_char; 192usize],
}
#[test]
fn bindgen_test_layout__opaque_pthread_rwlock_t() {
    assert_eq!(
        ::std::mem::size_of::<_opaque_pthread_rwlock_t>(),
        200usize,
        concat!("Size of: ", stringify!(_opaque_pthread_rwlock_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_opaque_pthread_rwlock_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_opaque_pthread_rwlock_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_opaque_pthread_rwlock_t>())).__sig as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_opaque_pthread_rwlock_t),
            "::",
            stringify!(__sig)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_opaque_pthread_rwlock_t>())).__opaque as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(_opaque_pthread_rwlock_t),
            "::",
            stringify!(__opaque)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_rwlockattr_t {
    pub __sig: ::std::os::raw::c_long,
    pub __opaque: [::std::os::raw::c_char; 16usize],
}
#[test]
fn bindgen_test_layout__opaque_pthread_rwlockattr_t() {
    assert_eq!(
        ::std::mem::size_of::<_opaque_pthread_rwlockattr_t>(),
        24usize,
        concat!("Size of: ", stringify!(_opaque_pthread_rwlockattr_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_opaque_pthread_rwlockattr_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_opaque_pthread_rwlockattr_t))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_opaque_pthread_rwlockattr_t>())).__sig as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_opaque_pthread_rwlockattr_t),
            "::",
            stringify!(__sig)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_opaque_pthread_rwlockattr_t>())).__opaque as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(_opaque_pthread_rwlockattr_t),
            "::",
            stringify!(__opaque)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _opaque_pthread_t {
    pub __sig: ::std::os::raw::c_long,
    pub __cleanup_stack: *mut __darwin_pthread_handler_rec,
    pub __opaque: [::std::os::raw::c_char; 8176usize],
}
#[test]
fn bindgen_test_layout__opaque_pthread_t() {
    assert_eq!(
        ::std::mem::size_of::<_opaque_pthread_t>(),
        8192usize,
        concat!("Size of: ", stringify!(_opaque_pthread_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_opaque_pthread_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_opaque_pthread_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_opaque_pthread_t>())).__sig as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_opaque_pthread_t),
            "::",
            stringify!(__sig)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_opaque_pthread_t>())).__cleanup_stack as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(_opaque_pthread_t),
            "::",
            stringify!(__cleanup_stack)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_opaque_pthread_t>())).__opaque as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(_opaque_pthread_t),
            "::",
            stringify!(__opaque)
        )
    );
}
pub type __darwin_pthread_attr_t = _opaque_pthread_attr_t;
pub type __darwin_pthread_cond_t = _opaque_pthread_cond_t;
pub type __darwin_pthread_condattr_t = _opaque_pthread_condattr_t;
pub type __darwin_pthread_key_t = ::std::os::raw::c_ulong;
pub type __darwin_pthread_mutex_t = _opaque_pthread_mutex_t;
pub type __darwin_pthread_mutexattr_t = _opaque_pthread_mutexattr_t;
pub type __darwin_pthread_once_t = _opaque_pthread_once_t;
pub type __darwin_pthread_rwlock_t = _opaque_pthread_rwlock_t;
pub type __darwin_pthread_rwlockattr_t = _opaque_pthread_rwlockattr_t;
pub type __darwin_pthread_t = *mut _opaque_pthread_t;
pub type intmax_t = ::std::os::raw::c_long;
pub type uintmax_t = ::std::os::raw::c_ulong;
pub mod dc1394video_mode_t {
    #[doc = " Enumeration of video modes. Note that the notion of IIDC \"format\" is not present here, except in the format_7 name."]
    pub type Type = u32;
    pub const DC1394_VIDEO_MODE_160x120_YUV444: Type = 64;
    pub const DC1394_VIDEO_MODE_320x240_YUV422: Type = 65;
    pub const DC1394_VIDEO_MODE_640x480_YUV411: Type = 66;
    pub const DC1394_VIDEO_MODE_640x480_YUV422: Type = 67;
    pub const DC1394_VIDEO_MODE_640x480_RGB8: Type = 68;
    pub const DC1394_VIDEO_MODE_640x480_MONO8: Type = 69;
    pub const DC1394_VIDEO_MODE_640x480_MONO16: Type = 70;
    pub const DC1394_VIDEO_MODE_800x600_YUV422: Type = 71;
    pub const DC1394_VIDEO_MODE_800x600_RGB8: Type = 72;
    pub const DC1394_VIDEO_MODE_800x600_MONO8: Type = 73;
    pub const DC1394_VIDEO_MODE_1024x768_YUV422: Type = 74;
    pub const DC1394_VIDEO_MODE_1024x768_RGB8: Type = 75;
    pub const DC1394_VIDEO_MODE_1024x768_MONO8: Type = 76;
    pub const DC1394_VIDEO_MODE_800x600_MONO16: Type = 77;
    pub const DC1394_VIDEO_MODE_1024x768_MONO16: Type = 78;
    pub const DC1394_VIDEO_MODE_1280x960_YUV422: Type = 79;
    pub const DC1394_VIDEO_MODE_1280x960_RGB8: Type = 80;
    pub const DC1394_VIDEO_MODE_1280x960_MONO8: Type = 81;
    pub const DC1394_VIDEO_MODE_1600x1200_YUV422: Type = 82;
    pub const DC1394_VIDEO_MODE_1600x1200_RGB8: Type = 83;
    pub const DC1394_VIDEO_MODE_1600x1200_MONO8: Type = 84;
    pub const DC1394_VIDEO_MODE_1280x960_MONO16: Type = 85;
    pub const DC1394_VIDEO_MODE_1600x1200_MONO16: Type = 86;
    pub const DC1394_VIDEO_MODE_EXIF: Type = 87;
    pub const DC1394_VIDEO_MODE_FORMAT7_0: Type = 88;
    pub const DC1394_VIDEO_MODE_FORMAT7_1: Type = 89;
    pub const DC1394_VIDEO_MODE_FORMAT7_2: Type = 90;
    pub const DC1394_VIDEO_MODE_FORMAT7_3: Type = 91;
    pub const DC1394_VIDEO_MODE_FORMAT7_4: Type = 92;
    pub const DC1394_VIDEO_MODE_FORMAT7_5: Type = 93;
    pub const DC1394_VIDEO_MODE_FORMAT7_6: Type = 94;
    pub const DC1394_VIDEO_MODE_FORMAT7_7: Type = 95;
}
pub mod dc1394color_coding_t {
    #[doc = " Enumeration of colour codings. For details on the data format please read the IIDC specifications."]
    pub type Type = u32;
    pub const DC1394_COLOR_CODING_MONO8: Type = 352;
    pub const DC1394_COLOR_CODING_YUV411: Type = 353;
    pub const DC1394_COLOR_CODING_YUV422: Type = 354;
    pub const DC1394_COLOR_CODING_YUV444: Type = 355;
    pub const DC1394_COLOR_CODING_RGB8: Type = 356;
    pub const DC1394_COLOR_CODING_MONO16: Type = 357;
    pub const DC1394_COLOR_CODING_RGB16: Type = 358;
    pub const DC1394_COLOR_CODING_MONO16S: Type = 359;
    pub const DC1394_COLOR_CODING_RGB16S: Type = 360;
    pub const DC1394_COLOR_CODING_RAW8: Type = 361;
    pub const DC1394_COLOR_CODING_RAW16: Type = 362;
}
pub mod dc1394color_filter_t {
    #[doc = " RAW sensor filters. These elementary tiles tesselate the image plane in RAW modes. RGGB should be interpreted in 2D as"]
    #[doc = ""]
    #[doc = "    RG"]
    #[doc = "    GB"]
    #[doc = ""]
    #[doc = " and similarly for other filters."]
    pub type Type = u32;
    pub const DC1394_COLOR_FILTER_RGGB: Type = 512;
    pub const DC1394_COLOR_FILTER_GBRG: Type = 513;
    pub const DC1394_COLOR_FILTER_GRBG: Type = 514;
    pub const DC1394_COLOR_FILTER_BGGR: Type = 515;
}
pub mod dc1394byte_order_t {
    #[doc = " Byte order for YUV formats (may be expanded to RGB in the future)"]
    #[doc = ""]
    #[doc = " IIDC cameras always return data in UYVY order, but conversion functions can change this if requested."]
    pub type Type = u32;
    pub const DC1394_BYTE_ORDER_UYVY: Type = 800;
    pub const DC1394_BYTE_ORDER_YUYV: Type = 801;
}
#[doc = " A struct containing a list of color codings"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dc1394color_codings_t {
    pub num: u32,
    pub codings: [dc1394color_coding_t::Type; 11usize],
}
#[test]
fn bindgen_test_layout_dc1394color_codings_t() {
    assert_eq!(
        ::std::mem::size_of::<dc1394color_codings_t>(),
        48usize,
        concat!("Size of: ", stringify!(dc1394color_codings_t))
    );
    assert_eq!(
        ::std::mem::align_of::<dc1394color_codings_t>(),
        4usize,
        concat!("Alignment of ", stringify!(dc1394color_codings_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<dc1394color_codings_t>())).num as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(dc1394color_codings_t),
            "::",
            stringify!(num)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<dc1394color_codings_t>())).codings as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(dc1394color_codings_t),
            "::",
            stringify!(codings)
        )
    );
}
#[doc = " A struct containing a list of video modes"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dc1394video_modes_t {
    pub num: u32,
    pub modes: [dc1394video_mode_t::Type; 32usize],
}
#[test]
fn bindgen_test_layout_dc1394video_modes_t() {
    assert_eq!(
        ::std::mem::size_of::<dc1394video_modes_t>(),
        132usize,
        concat!("Size of: ", stringify!(dc1394video_modes_t))
    );
    assert_eq!(
        ::std::mem::align_of::<dc1394video_modes_t>(),
        4usize,
        concat!("Alignment of ", stringify!(dc1394video_modes_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<dc1394video_modes_t>())).num as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(dc1394video_modes_t),
            "::",
            stringify!(num)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<dc1394video_modes_t>())).modes as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(dc1394video_modes_t),
            "::",
            stringify!(modes)
        )
    );
}
pub mod dc1394bool_t {
    #[doc = " Yet another boolean data type"]
    pub type Type = u32;
    pub const DC1394_FALSE: Type = 0;
    pub const DC1394_TRUE: Type = 1;
}
pub mod dc1394switch_t {
    #[doc = " Yet another boolean data type, a bit more oriented towards electrical-engineers"]
    pub type Type = u32;
    pub const DC1394_OFF: Type = 0;
    pub const DC1394_ON: Type = 1;
}
pub mod dc1394error_t {
    #[doc = " Error codes returned by most libdc1394 functions."]
    #[doc = ""]
    #[doc = " General rule: 0 is success, negative denotes a problem."]
    pub type Type = i32;
    pub const DC1394_SUCCESS: Type = 0;
    pub const DC1394_FAILURE: Type = -1;
    pub const DC1394_NOT_A_CAMERA: Type = -2;
    pub const DC1394_FUNCTION_NOT_SUPPORTED: Type = -3;
    pub const DC1394_CAMERA_NOT_INITIALIZED: Type = -4;
    pub const DC1394_MEMORY_ALLOCATION_FAILURE: Type = -5;
    pub const DC1394_TAGGED_REGISTER_NOT_FOUND: Type = -6;
    pub const DC1394_NO_ISO_CHANNEL: Type = -7;
    pub const DC1394_NO_BANDWIDTH: Type = -8;
    pub const DC1394_IOCTL_FAILURE: Type = -9;
    pub const DC1394_CAPTURE_IS_NOT_SET: Type = -10;
    pub const DC1394_CAPTURE_IS_RUNNING: Type = -11;
    pub const DC1394_RAW1394_FAILURE: Type = -12;
    pub const DC1394_FORMAT7_ERROR_FLAG_1: Type = -13;
    pub const DC1394_FORMAT7_ERROR_FLAG_2: Type = -14;
    pub const DC1394_INVALID_ARGUMENT_VALUE: Type = -15;
    pub const DC1394_REQ_VALUE_OUTSIDE_RANGE: Type = -16;
    pub const DC1394_INVALID_FEATURE: Type = -17;
    pub const DC1394_INVALID_VIDEO_FORMAT: Type = -18;
    pub const DC1394_INVALID_VIDEO_MODE: Type = -19;
    pub const DC1394_INVALID_FRAMERATE: Type = -20;
    pub const DC1394_INVALID_TRIGGER_MODE: Type = -21;
    pub const DC1394_INVALID_TRIGGER_SOURCE: Type = -22;
    pub const DC1394_INVALID_ISO_SPEED: Type = -23;
    pub const DC1394_INVALID_IIDC_VERSION: Type = -24;
    pub const DC1394_INVALID_COLOR_CODING: Type = -25;
    pub const DC1394_INVALID_COLOR_FILTER: Type = -26;
    pub const DC1394_INVALID_CAPTURE_POLICY: Type = -27;
    pub const DC1394_INVALID_ERROR_CODE: Type = -28;
    pub const DC1394_INVALID_BAYER_METHOD: Type = -29;
    pub const DC1394_INVALID_VIDEO1394_DEVICE: Type = -30;
    pub const DC1394_INVALID_OPERATION_MODE: Type = -31;
    pub const DC1394_INVALID_TRIGGER_POLARITY: Type = -32;
    pub const DC1394_INVALID_FEATURE_MODE: Type = -33;
    pub const DC1394_INVALID_LOG_TYPE: Type = -34;
    pub const DC1394_INVALID_BYTE_ORDER: Type = -35;
    pub const DC1394_INVALID_STEREO_METHOD: Type = -36;
    pub const DC1394_BASLER_NO_MORE_SFF_CHUNKS: Type = -37;
    pub const DC1394_BASLER_CORRUPTED_SFF_CHUNK: Type = -38;
    pub const DC1394_BASLER_UNKNOWN_SFF_CHUNK: Type = -39;
}
pub mod dc1394log_t {
    #[doc = " Types of logging messages"]
    #[doc = ""]
    #[doc = " Three types exist:"]
    #[doc = " - ERROR for real, hard, unrecoverable errors that will result in the program terminating."]
    #[doc = " - WARNING for things that have gone wrong, but are not requiring a termination of the program."]
    #[doc = " - DEBUG for debug messages that can be very verbose but may help the developers to fix bugs."]
    pub type Type = u32;
    pub const DC1394_LOG_ERROR: Type = 768;
    pub const DC1394_LOG_WARNING: Type = 769;
    pub const DC1394_LOG_DEBUG: Type = 770;
}
extern "C" {
    #[doc = " dc1394_log_register_handler: register log handler for reporting error, warning or debug statements"]
    #[doc = " Passing NULL as argument turns off this log level."]
    #[doc = " @param [in] log_handler: pointer to a function which takes a character string as argument"]
    #[doc = "             type: the type of log"]
    #[doc = " @param [in] type: message type (\\a debug, \\a err or \\a warning)"]
    #[doc = " @param [in] message: log message"]
    pub fn dc1394_log_register_handler(
        type_: dc1394log_t::Type,
        log_handler: ::std::option::Option<
            unsafe extern "C" fn(
                type_: dc1394log_t::Type,
                log_handler: *const ::std::os::raw::c_char,
                user: *mut ::std::os::raw::c_void,
            ),
        >,
        user: *mut ::std::os::raw::c_void,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " dc1394_log_set_default_handler: set the log handler to the default handler"]
    #[doc = " At boot time, debug logging is OFF (handler is NULL). Using this function for the debug statements"]
    #[doc = " will start logging of debug statements usng the default handler."]
    pub fn dc1394_log_set_default_handler(type_: dc1394log_t::Type) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " dc1394_log_error: logs a fatal error condition to the registered facility"]
    #[doc = " This function shall be invoked if a fatal error condition is encountered."]
    #[doc = " The message passed as argument is delivered to the registered error reporting"]
    #[doc = " function registered before."]
    #[doc = " @param [in] format,...: error message to be logged, multiple arguments allowed (printf style)"]
    pub fn dc1394_log_error(format: *const ::std::os::raw::c_char, ...);
}
extern "C" {
    #[doc = " dc1394_log_warning: logs a nonfatal error condition to the registered facility"]
    #[doc = " This function shall be invoked if a nonfatal error condition is encountered."]
    #[doc = " The message passed as argument is delivered to the registered warning reporting"]
    #[doc = " function registered before."]
    #[doc = " @param [in] format,...: warning message to be logged, multiple arguments allowed (printf style)"]
    pub fn dc1394_log_warning(format: *const ::std::os::raw::c_char, ...);
}
extern "C" {
    #[doc = " dc1394_log_debug: logs a debug statement to the registered facility"]
    #[doc = " This function shall be invoked if a debug statement is to be logged."]
    #[doc = " The message passed as argument is delivered to the registered debug reporting"]
    #[doc = " function registered before ONLY IF the environment variable DC1394_DEBUG has been set before the"]
    #[doc = " program starts."]
    #[doc = " @param [in] format,...: debug statement to be logged, multiple arguments allowed (printf style)"]
    pub fn dc1394_log_debug(format: *const ::std::os::raw::c_char, ...);
}
pub type __darwin_nl_item = ::std::os::raw::c_int;
pub type __darwin_wctrans_t = ::std::os::raw::c_int;
pub type __darwin_wctype_t = __uint32_t;
pub type va_list = __darwin_va_list;
extern "C" {
    pub fn renameat(
        arg1: ::std::os::raw::c_int,
        arg2: *const ::std::os::raw::c_char,
        arg3: ::std::os::raw::c_int,
        arg4: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn renamex_np(
        arg1: *const ::std::os::raw::c_char,
        arg2: *const ::std::os::raw::c_char,
        arg3: ::std::os::raw::c_uint,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn renameatx_np(
        arg1: ::std::os::raw::c_int,
        arg2: *const ::std::os::raw::c_char,
        arg3: ::std::os::raw::c_int,
        arg4: *const ::std::os::raw::c_char,
        arg5: ::std::os::raw::c_uint,
    ) -> ::std::os::raw::c_int;
}
pub type fpos_t = __darwin_off_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __sbuf {
    pub _base: *mut ::std::os::raw::c_uchar,
    pub _size: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout___sbuf() {
    assert_eq!(
        ::std::mem::size_of::<__sbuf>(),
        16usize,
        concat!("Size of: ", stringify!(__sbuf))
    );
    assert_eq!(
        ::std::mem::align_of::<__sbuf>(),
        8usize,
        concat!("Alignment of ", stringify!(__sbuf))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__sbuf>()))._base as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__sbuf),
            "::",
            stringify!(_base)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__sbuf>()))._size as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(__sbuf),
            "::",
            stringify!(_size)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __sFILEX {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __sFILE {
    pub _p: *mut ::std::os::raw::c_uchar,
    pub _r: ::std::os::raw::c_int,
    pub _w: ::std::os::raw::c_int,
    pub _flags: ::std::os::raw::c_short,
    pub _file: ::std::os::raw::c_short,
    pub _bf: __sbuf,
    pub _lbfsize: ::std::os::raw::c_int,
    pub _cookie: *mut ::std::os::raw::c_void,
    pub _close: ::std::option::Option<
        unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
    >,
    pub _read: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: *mut ::std::os::raw::c_void,
            arg2: *mut ::std::os::raw::c_char,
            arg3: ::std::os::raw::c_int,
        ) -> ::std::os::raw::c_int,
    >,
    pub _seek: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: *mut ::std::os::raw::c_void,
            arg2: fpos_t,
            arg3: ::std::os::raw::c_int,
        ) -> fpos_t,
    >,
    pub _write: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: *mut ::std::os::raw::c_void,
            arg2: *const ::std::os::raw::c_char,
            arg3: ::std::os::raw::c_int,
        ) -> ::std::os::raw::c_int,
    >,
    pub _ub: __sbuf,
    pub _extra: *mut __sFILEX,
    pub _ur: ::std::os::raw::c_int,
    pub _ubuf: [::std::os::raw::c_uchar; 3usize],
    pub _nbuf: [::std::os::raw::c_uchar; 1usize],
    pub _lb: __sbuf,
    pub _blksize: ::std::os::raw::c_int,
    pub _offset: fpos_t,
}
#[test]
fn bindgen_test_layout___sFILE() {
    assert_eq!(
        ::std::mem::size_of::<__sFILE>(),
        152usize,
        concat!("Size of: ", stringify!(__sFILE))
    );
    assert_eq!(
        ::std::mem::align_of::<__sFILE>(),
        8usize,
        concat!("Alignment of ", stringify!(__sFILE))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__sFILE>()))._p as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__sFILE),
            "::",
            stringify!(_p)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__sFILE>()))._r as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(__sFILE),
            "::",
            stringify!(_r)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__sFILE>()))._w as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(__sFILE),
            "::",
            stringify!(_w)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__sFILE>()))._flags as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(__sFILE),
            "::",
            stringify!(_flags)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__sFILE>()))._file as *const _ as usize },
        18usize,
        concat!(
            "Offset of field: ",
            stringify!(__sFILE),
            "::",
            stringify!(_file)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__sFILE>()))._bf as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(__sFILE),
            "::",
            stringify!(_bf)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__sFILE>()))._lbfsize as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(__sFILE),
            "::",
            stringify!(_lbfsize)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__sFILE>()))._cookie as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(__sFILE),
            "::",
            stringify!(_cookie)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__sFILE>()))._close as *const _ as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(__sFILE),
            "::",
            stringify!(_close)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__sFILE>()))._read as *const _ as usize },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(__sFILE),
            "::",
            stringify!(_read)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__sFILE>()))._seek as *const _ as usize },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(__sFILE),
            "::",
            stringify!(_seek)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__sFILE>()))._write as *const _ as usize },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(__sFILE),
            "::",
            stringify!(_write)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__sFILE>()))._ub as *const _ as usize },
        88usize,
        concat!(
            "Offset of field: ",
            stringify!(__sFILE),
            "::",
            stringify!(_ub)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__sFILE>()))._extra as *const _ as usize },
        104usize,
        concat!(
            "Offset of field: ",
            stringify!(__sFILE),
            "::",
            stringify!(_extra)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__sFILE>()))._ur as *const _ as usize },
        112usize,
        concat!(
            "Offset of field: ",
            stringify!(__sFILE),
            "::",
            stringify!(_ur)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__sFILE>()))._ubuf as *const _ as usize },
        116usize,
        concat!(
            "Offset of field: ",
            stringify!(__sFILE),
            "::",
            stringify!(_ubuf)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__sFILE>()))._nbuf as *const _ as usize },
        119usize,
        concat!(
            "Offset of field: ",
            stringify!(__sFILE),
            "::",
            stringify!(_nbuf)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__sFILE>()))._lb as *const _ as usize },
        120usize,
        concat!(
            "Offset of field: ",
            stringify!(__sFILE),
            "::",
            stringify!(_lb)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__sFILE>()))._blksize as *const _ as usize },
        136usize,
        concat!(
            "Offset of field: ",
            stringify!(__sFILE),
            "::",
            stringify!(_blksize)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__sFILE>()))._offset as *const _ as usize },
        144usize,
        concat!(
            "Offset of field: ",
            stringify!(__sFILE),
            "::",
            stringify!(_offset)
        )
    );
}
pub type FILE = __sFILE;
extern "C" {
    pub static mut __stdinp: *mut FILE;
}
extern "C" {
    pub static mut __stdoutp: *mut FILE;
}
extern "C" {
    pub static mut __stderrp: *mut FILE;
}
extern "C" {
    pub fn clearerr(arg1: *mut FILE);
}
extern "C" {
    pub fn fclose(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn feof(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ferror(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fflush(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fgetc(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fgetpos(arg1: *mut FILE, arg2: *mut fpos_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fgets(
        arg1: *mut ::std::os::raw::c_char,
        arg2: ::std::os::raw::c_int,
        arg3: *mut FILE,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn fopen(
        __filename: *const ::std::os::raw::c_char,
        __mode: *const ::std::os::raw::c_char,
    ) -> *mut FILE;
}
extern "C" {
    pub fn fprintf(
        arg1: *mut FILE,
        arg2: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fputc(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fputs(arg1: *const ::std::os::raw::c_char, arg2: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fread(
        __ptr: *mut ::std::os::raw::c_void,
        __size: usize,
        __nitems: usize,
        __stream: *mut FILE,
    ) -> usize;
}
extern "C" {
    pub fn freopen(
        arg1: *const ::std::os::raw::c_char,
        arg2: *const ::std::os::raw::c_char,
        arg3: *mut FILE,
    ) -> *mut FILE;
}
extern "C" {
    pub fn fscanf(
        arg1: *mut FILE,
        arg2: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fseek(
        arg1: *mut FILE,
        arg2: ::std::os::raw::c_long,
        arg3: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fsetpos(arg1: *mut FILE, arg2: *const fpos_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ftell(arg1: *mut FILE) -> ::std::os::raw::c_long;
}
extern "C" {
    pub fn fwrite(
        __ptr: *const ::std::os::raw::c_void,
        __size: usize,
        __nitems: usize,
        __stream: *mut FILE,
    ) -> usize;
}
extern "C" {
    pub fn getc(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn getchar() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gets(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn perror(arg1: *const ::std::os::raw::c_char);
}
extern "C" {
    pub fn printf(arg1: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn putc(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn putchar(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn puts(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn remove(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn rename(
        __old: *const ::std::os::raw::c_char,
        __new: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn rewind(arg1: *mut FILE);
}
extern "C" {
    pub fn scanf(arg1: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn setbuf(arg1: *mut FILE, arg2: *mut ::std::os::raw::c_char);
}
extern "C" {
    pub fn setvbuf(
        arg1: *mut FILE,
        arg2: *mut ::std::os::raw::c_char,
        arg3: ::std::os::raw::c_int,
        arg4: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sprintf(
        arg1: *mut ::std::os::raw::c_char,
        arg2: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sscanf(
        arg1: *const ::std::os::raw::c_char,
        arg2: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn tmpfile() -> *mut FILE;
}
extern "C" {
    pub fn tmpnam(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn ungetc(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn vfprintf(
        arg1: *mut FILE,
        arg2: *const ::std::os::raw::c_char,
        arg3: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn vprintf(
        arg1: *const ::std::os::raw::c_char,
        arg2: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn vsprintf(
        arg1: *mut ::std::os::raw::c_char,
        arg2: *const ::std::os::raw::c_char,
        arg3: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ctermid(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn fdopen(arg1: ::std::os::raw::c_int, arg2: *const ::std::os::raw::c_char) -> *mut FILE;
}
extern "C" {
    pub fn fileno(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn pclose(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn popen(
        arg1: *const ::std::os::raw::c_char,
        arg2: *const ::std::os::raw::c_char,
    ) -> *mut FILE;
}
extern "C" {
    pub fn __srget(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn __svfscanf(
        arg1: *mut FILE,
        arg2: *const ::std::os::raw::c_char,
        arg3: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn __swbuf(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn flockfile(arg1: *mut FILE);
}
extern "C" {
    pub fn ftrylockfile(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn funlockfile(arg1: *mut FILE);
}
extern "C" {
    pub fn getc_unlocked(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn getchar_unlocked() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn putc_unlocked(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn putchar_unlocked(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn getw(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn putw(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn tempnam(
        __dir: *const ::std::os::raw::c_char,
        __prefix: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
pub type off_t = __darwin_off_t;
extern "C" {
    pub fn fseeko(
        __stream: *mut FILE,
        __offset: off_t,
        __whence: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ftello(__stream: *mut FILE) -> off_t;
}
extern "C" {
    pub fn snprintf(
        __str: *mut ::std::os::raw::c_char,
        __size: ::std::os::raw::c_ulong,
        __format: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn vfscanf(
        __stream: *mut FILE,
        __format: *const ::std::os::raw::c_char,
        arg1: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn vscanf(
        __format: *const ::std::os::raw::c_char,
        arg1: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn vsnprintf(
        __str: *mut ::std::os::raw::c_char,
        __size: ::std::os::raw::c_ulong,
        __format: *const ::std::os::raw::c_char,
        arg1: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn vsscanf(
        __str: *const ::std::os::raw::c_char,
        __format: *const ::std::os::raw::c_char,
        arg1: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn dprintf(
        arg1: ::std::os::raw::c_int,
        arg2: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn vdprintf(
        arg1: ::std::os::raw::c_int,
        arg2: *const ::std::os::raw::c_char,
        arg3: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn getdelim(
        __linep: *mut *mut ::std::os::raw::c_char,
        __linecapp: *mut usize,
        __delimiter: ::std::os::raw::c_int,
        __stream: *mut FILE,
    ) -> isize;
}
extern "C" {
    pub fn getline(
        __linep: *mut *mut ::std::os::raw::c_char,
        __linecapp: *mut usize,
        __stream: *mut FILE,
    ) -> isize;
}
extern "C" {
    pub static sys_nerr: ::std::os::raw::c_int;
}
extern "C" {
    pub static mut sys_errlist: [*const ::std::os::raw::c_char; 0usize];
}
extern "C" {
    pub fn asprintf(
        arg1: *mut *mut ::std::os::raw::c_char,
        arg2: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ctermid_r(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn fgetln(arg1: *mut FILE, arg2: *mut usize) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn fmtcheck(
        arg1: *const ::std::os::raw::c_char,
        arg2: *const ::std::os::raw::c_char,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn fpurge(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn setbuffer(
        arg1: *mut FILE,
        arg2: *mut ::std::os::raw::c_char,
        arg3: ::std::os::raw::c_int,
    );
}
extern "C" {
    pub fn setlinebuf(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn vasprintf(
        arg1: *mut *mut ::std::os::raw::c_char,
        arg2: *const ::std::os::raw::c_char,
        arg3: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn zopen(
        arg1: *const ::std::os::raw::c_char,
        arg2: *const ::std::os::raw::c_char,
        arg3: ::std::os::raw::c_int,
    ) -> *mut FILE;
}
extern "C" {
    pub fn funopen(
        arg1: *const ::std::os::raw::c_void,
        arg2: ::std::option::Option<
            unsafe extern "C" fn(
                arg1: *mut ::std::os::raw::c_void,
                arg2: *mut ::std::os::raw::c_char,
                arg3: ::std::os::raw::c_int,
            ) -> ::std::os::raw::c_int,
        >,
        arg3: ::std::option::Option<
            unsafe extern "C" fn(
                arg1: *mut ::std::os::raw::c_void,
                arg2: *const ::std::os::raw::c_char,
                arg3: ::std::os::raw::c_int,
            ) -> ::std::os::raw::c_int,
        >,
        arg4: ::std::option::Option<
            unsafe extern "C" fn(
                arg1: *mut ::std::os::raw::c_void,
                arg2: fpos_t,
                arg3: ::std::os::raw::c_int,
            ) -> fpos_t,
        >,
        arg5: ::std::option::Option<
            unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
        >,
    ) -> *mut FILE;
}
pub mod dc1394iidc_version_t {
    #[doc = " List of IIDC versions"]
    #[doc = ""]
    #[doc = " Currently, the following versions exist: 1.04, 1.20, PTGREY, 1.30 and 1.31 (1.32 coming soon)"]
    #[doc = " Observing other versions means that there\'s a bug crawling somewhere."]
    pub type Type = u32;
    pub const DC1394_IIDC_VERSION_1_04: Type = 544;
    pub const DC1394_IIDC_VERSION_1_20: Type = 545;
    pub const DC1394_IIDC_VERSION_PTGREY: Type = 546;
    pub const DC1394_IIDC_VERSION_1_30: Type = 547;
    pub const DC1394_IIDC_VERSION_1_31: Type = 548;
    pub const DC1394_IIDC_VERSION_1_32: Type = 549;
    pub const DC1394_IIDC_VERSION_1_33: Type = 550;
    pub const DC1394_IIDC_VERSION_1_34: Type = 551;
    pub const DC1394_IIDC_VERSION_1_35: Type = 552;
    pub const DC1394_IIDC_VERSION_1_36: Type = 553;
    pub const DC1394_IIDC_VERSION_1_37: Type = 554;
    pub const DC1394_IIDC_VERSION_1_38: Type = 555;
    pub const DC1394_IIDC_VERSION_1_39: Type = 556;
}
pub mod dc1394power_class_t {
    #[doc = " Enumeration of power classes"]
    #[doc = ""]
    #[doc = " This is currently not used in libdc1394."]
    pub type Type = u32;
    pub const DC1394_POWER_CLASS_NONE: Type = 608;
    pub const DC1394_POWER_CLASS_PROV_MIN_15W: Type = 609;
    pub const DC1394_POWER_CLASS_PROV_MIN_30W: Type = 610;
    pub const DC1394_POWER_CLASS_PROV_MIN_45W: Type = 611;
    pub const DC1394_POWER_CLASS_USES_MAX_1W: Type = 612;
    pub const DC1394_POWER_CLASS_USES_MAX_3W: Type = 613;
    pub const DC1394_POWER_CLASS_USES_MAX_6W: Type = 614;
    pub const DC1394_POWER_CLASS_USES_MAX_10W: Type = 615;
}
pub mod dc1394phy_delay_t {
    #[doc = " Enumeration of PHY delays"]
    #[doc = ""]
    #[doc = " This is currently not used in libdc1394."]
    pub type Type = u32;
    pub const DC1394_PHY_DELAY_MAX_144_NS: Type = 640;
    pub const DC1394_PHY_DELAY_UNKNOWN_0: Type = 641;
    pub const DC1394_PHY_DELAY_UNKNOWN_1: Type = 642;
    pub const DC1394_PHY_DELAY_UNKNOWN_2: Type = 643;
}
#[doc = " Camera structure"]
#[doc = ""]
#[doc = " This structure represents the camera in libdc1394. It contains a number of useful static information, such as model/vendor names,"]
#[doc = " a few capabilities, some ROM offsets, a unique identifier, etc..."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __dc1394_camera {
    pub guid: u64,
    pub unit: ::std::os::raw::c_int,
    pub unit_spec_ID: u32,
    pub unit_sw_version: u32,
    pub unit_sub_sw_version: u32,
    pub command_registers_base: u32,
    pub unit_directory: u32,
    pub unit_dependent_directory: u32,
    pub advanced_features_csr: u64,
    pub PIO_control_csr: u64,
    pub SIO_control_csr: u64,
    pub strobe_control_csr: u64,
    pub format7_csr: [u64; 8usize],
    pub iidc_version: dc1394iidc_version_t::Type,
    pub vendor: *mut ::std::os::raw::c_char,
    pub model: *mut ::std::os::raw::c_char,
    pub vendor_id: u32,
    pub model_id: u32,
    pub bmode_capable: dc1394bool_t::Type,
    pub one_shot_capable: dc1394bool_t::Type,
    pub multi_shot_capable: dc1394bool_t::Type,
    pub can_switch_on_off: dc1394bool_t::Type,
    pub has_vmode_error_status: dc1394bool_t::Type,
    pub has_feature_error_status: dc1394bool_t::Type,
    pub max_mem_channel: ::std::os::raw::c_int,
    pub flags: u32,
}
#[test]
fn bindgen_test_layout___dc1394_camera() {
    assert_eq!(
        ::std::mem::size_of::<__dc1394_camera>(),
        200usize,
        concat!("Size of: ", stringify!(__dc1394_camera))
    );
    assert_eq!(
        ::std::mem::align_of::<__dc1394_camera>(),
        8usize,
        concat!("Alignment of ", stringify!(__dc1394_camera))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394_camera>())).guid as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_camera),
            "::",
            stringify!(guid)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394_camera>())).unit as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_camera),
            "::",
            stringify!(unit)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394_camera>())).unit_spec_ID as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_camera),
            "::",
            stringify!(unit_spec_ID)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394_camera>())).unit_sw_version as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_camera),
            "::",
            stringify!(unit_sw_version)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394_camera>())).unit_sub_sw_version as *const _ as usize
        },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_camera),
            "::",
            stringify!(unit_sub_sw_version)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394_camera>())).command_registers_base as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_camera),
            "::",
            stringify!(command_registers_base)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394_camera>())).unit_directory as *const _ as usize },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_camera),
            "::",
            stringify!(unit_directory)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394_camera>())).unit_dependent_directory as *const _
                as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_camera),
            "::",
            stringify!(unit_dependent_directory)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394_camera>())).advanced_features_csr as *const _ as usize
        },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_camera),
            "::",
            stringify!(advanced_features_csr)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394_camera>())).PIO_control_csr as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_camera),
            "::",
            stringify!(PIO_control_csr)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394_camera>())).SIO_control_csr as *const _ as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_camera),
            "::",
            stringify!(SIO_control_csr)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394_camera>())).strobe_control_csr as *const _ as usize
        },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_camera),
            "::",
            stringify!(strobe_control_csr)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394_camera>())).format7_csr as *const _ as usize },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_camera),
            "::",
            stringify!(format7_csr)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394_camera>())).iidc_version as *const _ as usize },
        136usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_camera),
            "::",
            stringify!(iidc_version)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394_camera>())).vendor as *const _ as usize },
        144usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_camera),
            "::",
            stringify!(vendor)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394_camera>())).model as *const _ as usize },
        152usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_camera),
            "::",
            stringify!(model)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394_camera>())).vendor_id as *const _ as usize },
        160usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_camera),
            "::",
            stringify!(vendor_id)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394_camera>())).model_id as *const _ as usize },
        164usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_camera),
            "::",
            stringify!(model_id)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394_camera>())).bmode_capable as *const _ as usize },
        168usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_camera),
            "::",
            stringify!(bmode_capable)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394_camera>())).one_shot_capable as *const _ as usize
        },
        172usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_camera),
            "::",
            stringify!(one_shot_capable)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394_camera>())).multi_shot_capable as *const _ as usize
        },
        176usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_camera),
            "::",
            stringify!(multi_shot_capable)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394_camera>())).can_switch_on_off as *const _ as usize
        },
        180usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_camera),
            "::",
            stringify!(can_switch_on_off)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394_camera>())).has_vmode_error_status as *const _ as usize
        },
        184usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_camera),
            "::",
            stringify!(has_vmode_error_status)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394_camera>())).has_feature_error_status as *const _
                as usize
        },
        188usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_camera),
            "::",
            stringify!(has_feature_error_status)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394_camera>())).max_mem_channel as *const _ as usize },
        192usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_camera),
            "::",
            stringify!(max_mem_channel)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394_camera>())).flags as *const _ as usize },
        196usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_camera),
            "::",
            stringify!(flags)
        )
    );
}
pub type dc1394camera_t = __dc1394_camera;
#[doc = " A unique identifier for a functional camera unit"]
#[doc = ""]
#[doc = " Since a single camera can contain several functional units (think stereo cameras), the GUID is not enough to identify an IIDC camera."]
#[doc = " The unit number must also be used, hence this struct."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dc1394camera_id_t {
    pub unit: u16,
    pub guid: u64,
}
#[test]
fn bindgen_test_layout_dc1394camera_id_t() {
    assert_eq!(
        ::std::mem::size_of::<dc1394camera_id_t>(),
        16usize,
        concat!("Size of: ", stringify!(dc1394camera_id_t))
    );
    assert_eq!(
        ::std::mem::align_of::<dc1394camera_id_t>(),
        8usize,
        concat!("Alignment of ", stringify!(dc1394camera_id_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<dc1394camera_id_t>())).unit as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(dc1394camera_id_t),
            "::",
            stringify!(unit)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<dc1394camera_id_t>())).guid as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(dc1394camera_id_t),
            "::",
            stringify!(guid)
        )
    );
}
#[doc = " A list of cameras"]
#[doc = ""]
#[doc = " Usually returned by dc1394_camera_eumerate()."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __dc1394camera_list_t {
    pub num: u32,
    pub ids: *mut dc1394camera_id_t,
}
#[test]
fn bindgen_test_layout___dc1394camera_list_t() {
    assert_eq!(
        ::std::mem::size_of::<__dc1394camera_list_t>(),
        16usize,
        concat!("Size of: ", stringify!(__dc1394camera_list_t))
    );
    assert_eq!(
        ::std::mem::align_of::<__dc1394camera_list_t>(),
        8usize,
        concat!("Alignment of ", stringify!(__dc1394camera_list_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394camera_list_t>())).num as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394camera_list_t),
            "::",
            stringify!(num)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394camera_list_t>())).ids as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394camera_list_t),
            "::",
            stringify!(ids)
        )
    );
}
pub type dc1394camera_list_t = __dc1394camera_list_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __dc1394_t {
    _unused: [u8; 0],
}
pub type dc1394_t = __dc1394_t;
extern "C" {
    #[doc = " Creates a new context in which cameras can be searched and used. This should be called before using any other libdc1394 function."]
    pub fn dc1394_new() -> *mut dc1394_t;
}
extern "C" {
    #[doc = " Liberates a context. Last function to use in your program. After this, no libdc1394 function can be used."]
    pub fn dc1394_free(dc1394: *mut dc1394_t);
}
extern "C" {
    #[doc = " Sets and gets the broadcast flag of a camera. If the broadcast flag is set,"]
    #[doc = " all devices on the bus will execute the command. Useful to sync ISO start"]
    #[doc = " commands or setting a bunch of cameras at the same time. Broadcast only works"]
    #[doc = " with identical devices (brand/model). If the devices are not identical your"]
    #[doc = " mileage may vary. Some cameras may not answer broadcast commands at all. Also,"]
    #[doc = " this only works with cameras on the SAME bus (IOW, the same port)."]
    pub fn dc1394_camera_set_broadcast(
        camera: *mut dc1394camera_t,
        pwr: dc1394bool_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    pub fn dc1394_camera_get_broadcast(
        camera: *mut dc1394camera_t,
        pwr: *mut dc1394bool_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Resets the IEEE1394 bus which camera is attached to.  Calling this function is"]
    #[doc = " \"rude\" to other devices because it causes them to re-enumerate on the bus and"]
    #[doc = " may cause a temporary disruption in their current activities.  Thus, use it"]
    #[doc = " sparingly.  Its primary use is if a program shuts down uncleanly and needs to"]
    #[doc = " free leftover ISO channels or bandwidth.  A bus reset will free those things"]
    #[doc = " as a side effect."]
    pub fn dc1394_reset_bus(camera: *mut dc1394camera_t) -> dc1394error_t::Type;
}
extern "C" {
    pub fn dc1394_read_cycle_timer(
        camera: *mut dc1394camera_t,
        cycle_timer: *mut u32,
        local_time: *mut u64,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the IEEE 1394 node ID of the camera."]
    pub fn dc1394_camera_get_node(
        camera: *mut dc1394camera_t,
        node: *mut u32,
        generation: *mut u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Returns the list of cameras available on the computer. If present, multiple cards will be probed"]
    pub fn dc1394_camera_enumerate(
        dc1394: *mut dc1394_t,
        list: *mut *mut dc1394camera_list_t,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Frees the memory allocated in dc1394_enumerate_cameras for the camera list"]
    pub fn dc1394_camera_free_list(list: *mut dc1394camera_list_t);
}
extern "C" {
    #[doc = " Create a new camera based on a GUID (Global Unique IDentifier)"]
    pub fn dc1394_camera_new(dc1394: *mut dc1394_t, guid: u64) -> *mut dc1394camera_t;
}
extern "C" {
    #[doc = " Create a new camera based on a GUID and a unit number (for multi-unit cameras)"]
    pub fn dc1394_camera_new_unit(
        dc1394: *mut dc1394_t,
        guid: u64,
        unit: ::std::os::raw::c_int,
    ) -> *mut dc1394camera_t;
}
extern "C" {
    #[doc = " Frees a camera structure"]
    pub fn dc1394_camera_free(camera: *mut dc1394camera_t);
}
extern "C" {
    #[doc = " Print various camera information, such as GUID, vendor, model, supported IIDC specs, etc..."]
    pub fn dc1394_camera_print_info(
        camera: *mut dc1394camera_t,
        fd: *mut FILE,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Returns a pointer to a string identifying the platform for the cameras. Platforms strings are:"]
    #[doc = " juju, linux, macosx, windows, usb"]
    pub fn dc1394_camera_get_platform_string(
        camera: *mut dc1394camera_t,
        platform: *mut *const ::std::os::raw::c_char,
    ) -> dc1394error_t::Type;
}
pub mod dc1394trigger_mode_t {
    #[doc = " Enumeration of trigger modes"]
    pub type Type = u32;
    pub const DC1394_TRIGGER_MODE_0: Type = 384;
    pub const DC1394_TRIGGER_MODE_1: Type = 385;
    pub const DC1394_TRIGGER_MODE_2: Type = 386;
    pub const DC1394_TRIGGER_MODE_3: Type = 387;
    pub const DC1394_TRIGGER_MODE_4: Type = 388;
    pub const DC1394_TRIGGER_MODE_5: Type = 389;
    pub const DC1394_TRIGGER_MODE_14: Type = 390;
    pub const DC1394_TRIGGER_MODE_15: Type = 391;
}
pub mod dc1394feature_t {
    #[doc = " Enumeration of camera features"]
    pub type Type = u32;
    pub const DC1394_FEATURE_BRIGHTNESS: Type = 416;
    pub const DC1394_FEATURE_EXPOSURE: Type = 417;
    pub const DC1394_FEATURE_SHARPNESS: Type = 418;
    pub const DC1394_FEATURE_WHITE_BALANCE: Type = 419;
    pub const DC1394_FEATURE_HUE: Type = 420;
    pub const DC1394_FEATURE_SATURATION: Type = 421;
    pub const DC1394_FEATURE_GAMMA: Type = 422;
    pub const DC1394_FEATURE_SHUTTER: Type = 423;
    pub const DC1394_FEATURE_GAIN: Type = 424;
    pub const DC1394_FEATURE_IRIS: Type = 425;
    pub const DC1394_FEATURE_FOCUS: Type = 426;
    pub const DC1394_FEATURE_TEMPERATURE: Type = 427;
    pub const DC1394_FEATURE_TRIGGER: Type = 428;
    pub const DC1394_FEATURE_TRIGGER_DELAY: Type = 429;
    pub const DC1394_FEATURE_WHITE_SHADING: Type = 430;
    pub const DC1394_FEATURE_FRAME_RATE: Type = 431;
    pub const DC1394_FEATURE_ZOOM: Type = 432;
    pub const DC1394_FEATURE_PAN: Type = 433;
    pub const DC1394_FEATURE_TILT: Type = 434;
    pub const DC1394_FEATURE_OPTICAL_FILTER: Type = 435;
    pub const DC1394_FEATURE_CAPTURE_SIZE: Type = 436;
    pub const DC1394_FEATURE_CAPTURE_QUALITY: Type = 437;
}
pub mod dc1394trigger_source_t {
    #[doc = " Enumeration of trigger sources"]
    pub type Type = u32;
    pub const DC1394_TRIGGER_SOURCE_0: Type = 576;
    pub const DC1394_TRIGGER_SOURCE_1: Type = 577;
    pub const DC1394_TRIGGER_SOURCE_2: Type = 578;
    pub const DC1394_TRIGGER_SOURCE_3: Type = 579;
    pub const DC1394_TRIGGER_SOURCE_SOFTWARE: Type = 580;
}
pub mod dc1394trigger_polarity_t {
    #[doc = " External trigger polarity"]
    pub type Type = u32;
    pub const DC1394_TRIGGER_ACTIVE_LOW: Type = 704;
    pub const DC1394_TRIGGER_ACTIVE_HIGH: Type = 705;
}
pub mod dc1394feature_mode_t {
    #[doc = " Control modes for a feature (excl. absolute control)"]
    pub type Type = u32;
    pub const DC1394_FEATURE_MODE_MANUAL: Type = 736;
    pub const DC1394_FEATURE_MODE_AUTO: Type = 737;
    pub const DC1394_FEATURE_MODE_ONE_PUSH_AUTO: Type = 738;
}
#[doc = " List of feature modes"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dc1394feature_modes_t {
    pub num: u32,
    pub modes: [dc1394feature_mode_t::Type; 3usize],
}
#[test]
fn bindgen_test_layout_dc1394feature_modes_t() {
    assert_eq!(
        ::std::mem::size_of::<dc1394feature_modes_t>(),
        16usize,
        concat!("Size of: ", stringify!(dc1394feature_modes_t))
    );
    assert_eq!(
        ::std::mem::align_of::<dc1394feature_modes_t>(),
        4usize,
        concat!("Alignment of ", stringify!(dc1394feature_modes_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<dc1394feature_modes_t>())).num as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(dc1394feature_modes_t),
            "::",
            stringify!(num)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<dc1394feature_modes_t>())).modes as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(dc1394feature_modes_t),
            "::",
            stringify!(modes)
        )
    );
}
#[doc = " List of trigger modes"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dc1394trigger_modes_t {
    pub num: u32,
    pub modes: [dc1394trigger_mode_t::Type; 8usize],
}
#[test]
fn bindgen_test_layout_dc1394trigger_modes_t() {
    assert_eq!(
        ::std::mem::size_of::<dc1394trigger_modes_t>(),
        36usize,
        concat!("Size of: ", stringify!(dc1394trigger_modes_t))
    );
    assert_eq!(
        ::std::mem::align_of::<dc1394trigger_modes_t>(),
        4usize,
        concat!("Alignment of ", stringify!(dc1394trigger_modes_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<dc1394trigger_modes_t>())).num as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(dc1394trigger_modes_t),
            "::",
            stringify!(num)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<dc1394trigger_modes_t>())).modes as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(dc1394trigger_modes_t),
            "::",
            stringify!(modes)
        )
    );
}
#[doc = " List of trigger sources"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dc1394trigger_sources_t {
    pub num: u32,
    pub sources: [dc1394trigger_source_t::Type; 5usize],
}
#[test]
fn bindgen_test_layout_dc1394trigger_sources_t() {
    assert_eq!(
        ::std::mem::size_of::<dc1394trigger_sources_t>(),
        24usize,
        concat!("Size of: ", stringify!(dc1394trigger_sources_t))
    );
    assert_eq!(
        ::std::mem::align_of::<dc1394trigger_sources_t>(),
        4usize,
        concat!("Alignment of ", stringify!(dc1394trigger_sources_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<dc1394trigger_sources_t>())).num as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(dc1394trigger_sources_t),
            "::",
            stringify!(num)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<dc1394trigger_sources_t>())).sources as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(dc1394trigger_sources_t),
            "::",
            stringify!(sources)
        )
    );
}
#[doc = " A structure containing all information about a feature."]
#[doc = ""]
#[doc = " Some fields are only valid for some features (e.g. trigger, white balance,...)"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __dc1394feature_info_t_struct {
    pub id: dc1394feature_t::Type,
    pub available: dc1394bool_t::Type,
    pub absolute_capable: dc1394bool_t::Type,
    pub readout_capable: dc1394bool_t::Type,
    pub on_off_capable: dc1394bool_t::Type,
    pub polarity_capable: dc1394bool_t::Type,
    pub is_on: dc1394switch_t::Type,
    pub current_mode: dc1394feature_mode_t::Type,
    pub modes: dc1394feature_modes_t,
    pub trigger_modes: dc1394trigger_modes_t,
    pub trigger_mode: dc1394trigger_mode_t::Type,
    pub trigger_polarity: dc1394trigger_polarity_t::Type,
    pub trigger_sources: dc1394trigger_sources_t,
    pub trigger_source: dc1394trigger_source_t::Type,
    pub min: u32,
    pub max: u32,
    pub value: u32,
    pub BU_value: u32,
    pub RV_value: u32,
    pub B_value: u32,
    pub R_value: u32,
    pub G_value: u32,
    pub target_value: u32,
    pub abs_control: dc1394switch_t::Type,
    pub abs_value: f32,
    pub abs_max: f32,
    pub abs_min: f32,
}
#[test]
fn bindgen_test_layout___dc1394feature_info_t_struct() {
    assert_eq!(
        ::std::mem::size_of::<__dc1394feature_info_t_struct>(),
        172usize,
        concat!("Size of: ", stringify!(__dc1394feature_info_t_struct))
    );
    assert_eq!(
        ::std::mem::align_of::<__dc1394feature_info_t_struct>(),
        4usize,
        concat!("Alignment of ", stringify!(__dc1394feature_info_t_struct))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394feature_info_t_struct>())).id as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394feature_info_t_struct),
            "::",
            stringify!(id)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394feature_info_t_struct>())).available as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394feature_info_t_struct),
            "::",
            stringify!(available)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394feature_info_t_struct>())).absolute_capable as *const _
                as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394feature_info_t_struct),
            "::",
            stringify!(absolute_capable)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394feature_info_t_struct>())).readout_capable as *const _
                as usize
        },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394feature_info_t_struct),
            "::",
            stringify!(readout_capable)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394feature_info_t_struct>())).on_off_capable as *const _
                as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394feature_info_t_struct),
            "::",
            stringify!(on_off_capable)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394feature_info_t_struct>())).polarity_capable as *const _
                as usize
        },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394feature_info_t_struct),
            "::",
            stringify!(polarity_capable)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394feature_info_t_struct>())).is_on as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394feature_info_t_struct),
            "::",
            stringify!(is_on)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394feature_info_t_struct>())).current_mode as *const _
                as usize
        },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394feature_info_t_struct),
            "::",
            stringify!(current_mode)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394feature_info_t_struct>())).modes as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394feature_info_t_struct),
            "::",
            stringify!(modes)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394feature_info_t_struct>())).trigger_modes as *const _
                as usize
        },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394feature_info_t_struct),
            "::",
            stringify!(trigger_modes)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394feature_info_t_struct>())).trigger_mode as *const _
                as usize
        },
        84usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394feature_info_t_struct),
            "::",
            stringify!(trigger_mode)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394feature_info_t_struct>())).trigger_polarity as *const _
                as usize
        },
        88usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394feature_info_t_struct),
            "::",
            stringify!(trigger_polarity)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394feature_info_t_struct>())).trigger_sources as *const _
                as usize
        },
        92usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394feature_info_t_struct),
            "::",
            stringify!(trigger_sources)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394feature_info_t_struct>())).trigger_source as *const _
                as usize
        },
        116usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394feature_info_t_struct),
            "::",
            stringify!(trigger_source)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394feature_info_t_struct>())).min as *const _ as usize
        },
        120usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394feature_info_t_struct),
            "::",
            stringify!(min)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394feature_info_t_struct>())).max as *const _ as usize
        },
        124usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394feature_info_t_struct),
            "::",
            stringify!(max)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394feature_info_t_struct>())).value as *const _ as usize
        },
        128usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394feature_info_t_struct),
            "::",
            stringify!(value)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394feature_info_t_struct>())).BU_value as *const _ as usize
        },
        132usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394feature_info_t_struct),
            "::",
            stringify!(BU_value)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394feature_info_t_struct>())).RV_value as *const _ as usize
        },
        136usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394feature_info_t_struct),
            "::",
            stringify!(RV_value)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394feature_info_t_struct>())).B_value as *const _ as usize
        },
        140usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394feature_info_t_struct),
            "::",
            stringify!(B_value)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394feature_info_t_struct>())).R_value as *const _ as usize
        },
        144usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394feature_info_t_struct),
            "::",
            stringify!(R_value)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394feature_info_t_struct>())).G_value as *const _ as usize
        },
        148usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394feature_info_t_struct),
            "::",
            stringify!(G_value)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394feature_info_t_struct>())).target_value as *const _
                as usize
        },
        152usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394feature_info_t_struct),
            "::",
            stringify!(target_value)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394feature_info_t_struct>())).abs_control as *const _
                as usize
        },
        156usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394feature_info_t_struct),
            "::",
            stringify!(abs_control)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394feature_info_t_struct>())).abs_value as *const _ as usize
        },
        160usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394feature_info_t_struct),
            "::",
            stringify!(abs_value)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394feature_info_t_struct>())).abs_max as *const _ as usize
        },
        164usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394feature_info_t_struct),
            "::",
            stringify!(abs_max)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394feature_info_t_struct>())).abs_min as *const _ as usize
        },
        168usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394feature_info_t_struct),
            "::",
            stringify!(abs_min)
        )
    );
}
pub type dc1394feature_info_t = __dc1394feature_info_t_struct;
#[doc = " The list of features"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __dc1394featureset_t {
    pub feature: [dc1394feature_info_t; 22usize],
}
#[test]
fn bindgen_test_layout___dc1394featureset_t() {
    assert_eq!(
        ::std::mem::size_of::<__dc1394featureset_t>(),
        3784usize,
        concat!("Size of: ", stringify!(__dc1394featureset_t))
    );
    assert_eq!(
        ::std::mem::align_of::<__dc1394featureset_t>(),
        4usize,
        concat!("Alignment of ", stringify!(__dc1394featureset_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394featureset_t>())).feature as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394featureset_t),
            "::",
            stringify!(feature)
        )
    );
}
pub type dc1394featureset_t = __dc1394featureset_t;
extern "C" {
    #[doc = " Collects the available features for the camera described by node and stores them in features."]
    pub fn dc1394_feature_get_all(
        camera: *mut dc1394camera_t,
        features: *mut dc1394featureset_t,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Stores the bounds and options associated with the feature described by feature->feature_id"]
    pub fn dc1394_feature_get(
        camera: *mut dc1394camera_t,
        feature: *mut dc1394feature_info_t,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Displays the bounds and options of the given feature"]
    pub fn dc1394_feature_print(
        feature: *mut dc1394feature_info_t,
        fd: *mut FILE,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Displays the bounds and options of every feature supported by the camera"]
    pub fn dc1394_feature_print_all(
        features: *mut dc1394featureset_t,
        fd: *mut FILE,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the whitebalance values"]
    pub fn dc1394_feature_whitebalance_get_value(
        camera: *mut dc1394camera_t,
        u_b_value: *mut u32,
        v_r_value: *mut u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Sets the whitebalance values"]
    pub fn dc1394_feature_whitebalance_set_value(
        camera: *mut dc1394camera_t,
        u_b_value: u32,
        v_r_value: u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the temperature values (target and current)"]
    pub fn dc1394_feature_temperature_get_value(
        camera: *mut dc1394camera_t,
        target_temperature: *mut u32,
        temperature: *mut u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Sets the temperature values (target only) FIXME: COULD BE DROPPED? already in the standard feature_set_value()?"]
    pub fn dc1394_feature_temperature_set_value(
        camera: *mut dc1394camera_t,
        target_temperature: u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the white shading values"]
    pub fn dc1394_feature_whiteshading_get_value(
        camera: *mut dc1394camera_t,
        r_value: *mut u32,
        g_value: *mut u32,
        b_value: *mut u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Sets the white shading values"]
    pub fn dc1394_feature_whiteshading_set_value(
        camera: *mut dc1394camera_t,
        r_value: u32,
        g_value: u32,
        b_value: u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the value of a feature"]
    pub fn dc1394_feature_get_value(
        camera: *mut dc1394camera_t,
        feature: dc1394feature_t::Type,
        value: *mut u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Sets the value of a feature"]
    pub fn dc1394_feature_set_value(
        camera: *mut dc1394camera_t,
        feature: dc1394feature_t::Type,
        value: u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Tells whether a feature is present or not"]
    pub fn dc1394_feature_is_present(
        camera: *mut dc1394camera_t,
        feature: dc1394feature_t::Type,
        value: *mut dc1394bool_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Tells whether a feature is readable or not"]
    pub fn dc1394_feature_is_readable(
        camera: *mut dc1394camera_t,
        feature: dc1394feature_t::Type,
        value: *mut dc1394bool_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the boundaries of a feature"]
    pub fn dc1394_feature_get_boundaries(
        camera: *mut dc1394camera_t,
        feature: dc1394feature_t::Type,
        min: *mut u32,
        max: *mut u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Tells whether a feature is switcheable or not (ON/OFF)"]
    pub fn dc1394_feature_is_switchable(
        camera: *mut dc1394camera_t,
        feature: dc1394feature_t::Type,
        value: *mut dc1394bool_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the power status of a feature (ON or OFF)"]
    pub fn dc1394_feature_get_power(
        camera: *mut dc1394camera_t,
        feature: dc1394feature_t::Type,
        pwr: *mut dc1394switch_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Sets the power status of a feature (ON or OFF)"]
    pub fn dc1394_feature_set_power(
        camera: *mut dc1394camera_t,
        feature: dc1394feature_t::Type,
        pwr: dc1394switch_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the list of control modes for a feature (manual, auto, etc...)"]
    pub fn dc1394_feature_get_modes(
        camera: *mut dc1394camera_t,
        feature: dc1394feature_t::Type,
        modes: *mut dc1394feature_modes_t,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the current control modes for a feature"]
    pub fn dc1394_feature_get_mode(
        camera: *mut dc1394camera_t,
        feature: dc1394feature_t::Type,
        mode: *mut dc1394feature_mode_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Sets the current control modes for a feature"]
    pub fn dc1394_feature_set_mode(
        camera: *mut dc1394camera_t,
        feature: dc1394feature_t::Type,
        mode: dc1394feature_mode_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Tells whether a feature can be controlled in absolute mode"]
    pub fn dc1394_feature_has_absolute_control(
        camera: *mut dc1394camera_t,
        feature: dc1394feature_t::Type,
        value: *mut dc1394bool_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the absolute boundaries of a feature"]
    pub fn dc1394_feature_get_absolute_boundaries(
        camera: *mut dc1394camera_t,
        feature: dc1394feature_t::Type,
        min: *mut f32,
        max: *mut f32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the absolute value of a feature"]
    pub fn dc1394_feature_get_absolute_value(
        camera: *mut dc1394camera_t,
        feature: dc1394feature_t::Type,
        value: *mut f32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Sets the absolute value of a feature"]
    pub fn dc1394_feature_set_absolute_value(
        camera: *mut dc1394camera_t,
        feature: dc1394feature_t::Type,
        value: f32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the status of absolute control of a feature"]
    pub fn dc1394_feature_get_absolute_control(
        camera: *mut dc1394camera_t,
        feature: dc1394feature_t::Type,
        pwr: *mut dc1394switch_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Sets the feature in absolute control mode (ON/OFF)"]
    pub fn dc1394_feature_set_absolute_control(
        camera: *mut dc1394camera_t,
        feature: dc1394feature_t::Type,
        pwr: dc1394switch_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Sets the polarity of the external trigger"]
    pub fn dc1394_external_trigger_set_polarity(
        camera: *mut dc1394camera_t,
        polarity: dc1394trigger_polarity_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the polarity of the external trigger"]
    pub fn dc1394_external_trigger_get_polarity(
        camera: *mut dc1394camera_t,
        polarity: *mut dc1394trigger_polarity_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Tells whether the external trigger can change its polarity or not."]
    pub fn dc1394_external_trigger_has_polarity(
        camera: *mut dc1394camera_t,
        polarity_capable: *mut dc1394bool_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Switch between internal and external trigger"]
    pub fn dc1394_external_trigger_set_power(
        camera: *mut dc1394camera_t,
        pwr: dc1394switch_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the status of the external trigger"]
    pub fn dc1394_external_trigger_get_power(
        camera: *mut dc1394camera_t,
        pwr: *mut dc1394switch_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Sets the external trigger mode"]
    pub fn dc1394_external_trigger_set_mode(
        camera: *mut dc1394camera_t,
        mode: dc1394trigger_mode_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the external trigger mode"]
    pub fn dc1394_external_trigger_get_mode(
        camera: *mut dc1394camera_t,
        mode: *mut dc1394trigger_mode_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Sets the external trigger source"]
    pub fn dc1394_external_trigger_set_source(
        camera: *mut dc1394camera_t,
        source: dc1394trigger_source_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the external trigger source"]
    pub fn dc1394_external_trigger_get_source(
        camera: *mut dc1394camera_t,
        source: *mut dc1394trigger_source_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the list of available external trigger source"]
    pub fn dc1394_external_trigger_get_supported_sources(
        camera: *mut dc1394camera_t,
        sources: *mut dc1394trigger_sources_t,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Turn software trigger on or off"]
    pub fn dc1394_software_trigger_set_power(
        camera: *mut dc1394camera_t,
        pwr: dc1394switch_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the state of software trigger"]
    pub fn dc1394_software_trigger_get_power(
        camera: *mut dc1394camera_t,
        pwr: *mut dc1394switch_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Sends a quadlet on the PIO (output)"]
    pub fn dc1394_pio_set(camera: *mut dc1394camera_t, value: u32) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the current quadlet at the PIO (input)"]
    pub fn dc1394_pio_get(camera: *mut dc1394camera_t, value: *mut u32) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " reset a camera to factory default settings"]
    pub fn dc1394_camera_reset(camera: *mut dc1394camera_t) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " turn a camera on or off"]
    pub fn dc1394_camera_set_power(
        camera: *mut dc1394camera_t,
        pwr: dc1394switch_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Download a camera setup from the memory."]
    pub fn dc1394_memory_busy(
        camera: *mut dc1394camera_t,
        value: *mut dc1394bool_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Uploads a camera setup in the memory."]
    #[doc = ""]
    #[doc = " Note that this operation can only be performed a certain number of"]
    #[doc = " times for a given camera, as it requires reprogramming of an EEPROM."]
    pub fn dc1394_memory_save(camera: *mut dc1394camera_t, channel: u32) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Tells whether the writing of the camera setup in memory is finished or not."]
    pub fn dc1394_memory_load(camera: *mut dc1394camera_t, channel: u32) -> dc1394error_t::Type;
}
pub mod dc1394speed_t {
    #[doc = " Enumeration of iso data speeds"]
    #[doc = ""]
    #[doc = " Most (if not all) cameras are compatible with 400Mbps speed. Only older cameras (pre-1999) may still only work at sub-400"]
    #[doc = " speeds. However, speeds lower than 400Mbps are still useful: they can be used for longer distances (e.g. 10m cables)."]
    #[doc = " Speeds over 400Mbps are only available in \"B\" mode (DC1394_OPERATION_MODE_1394B)."]
    pub type Type = u32;
    pub const DC1394_ISO_SPEED_100: Type = 0;
    pub const DC1394_ISO_SPEED_200: Type = 1;
    pub const DC1394_ISO_SPEED_400: Type = 2;
    pub const DC1394_ISO_SPEED_800: Type = 3;
    pub const DC1394_ISO_SPEED_1600: Type = 4;
    pub const DC1394_ISO_SPEED_3200: Type = 5;
}
pub mod dc1394framerate_t {
    #[doc = " Enumeration of video framerates"]
    #[doc = ""]
    #[doc = " This enumeration is used for non-Format_7 modes. The framerate can be lower than expected if the exposure time is longer"]
    #[doc = " than the requested frame period. Framerate can be controlled in a number of other ways: framerate feature, external trigger,"]
    #[doc = " software trigger, shutter throttling and packet size (Format_7)"]
    pub type Type = u32;
    pub const DC1394_FRAMERATE_1_875: Type = 32;
    pub const DC1394_FRAMERATE_3_75: Type = 33;
    pub const DC1394_FRAMERATE_7_5: Type = 34;
    pub const DC1394_FRAMERATE_15: Type = 35;
    pub const DC1394_FRAMERATE_30: Type = 36;
    pub const DC1394_FRAMERATE_60: Type = 37;
    pub const DC1394_FRAMERATE_120: Type = 38;
    pub const DC1394_FRAMERATE_240: Type = 39;
}
pub mod dc1394operation_mode_t {
    #[doc = " Operation modes"]
    #[doc = ""]
    #[doc = " Two operation modes exist: the legacy and most common 1394a, and the newer 1394B. The latter allows speeds over 400Mbps, but"]
    #[doc = " can also be used at other speeds."]
    pub type Type = u32;
    pub const DC1394_OPERATION_MODE_LEGACY: Type = 480;
    pub const DC1394_OPERATION_MODE_1394B: Type = 481;
}
#[doc = " List of framerates"]
#[doc = ""]
#[doc = " dc1394framerates_t contains a list of available framerates for a particular video mode."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dc1394framerates_t {
    pub num: u32,
    pub framerates: [dc1394framerate_t::Type; 8usize],
}
#[test]
fn bindgen_test_layout_dc1394framerates_t() {
    assert_eq!(
        ::std::mem::size_of::<dc1394framerates_t>(),
        36usize,
        concat!("Size of: ", stringify!(dc1394framerates_t))
    );
    assert_eq!(
        ::std::mem::align_of::<dc1394framerates_t>(),
        4usize,
        concat!("Alignment of ", stringify!(dc1394framerates_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<dc1394framerates_t>())).num as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(dc1394framerates_t),
            "::",
            stringify!(num)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<dc1394framerates_t>())).framerates as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(dc1394framerates_t),
            "::",
            stringify!(framerates)
        )
    );
}
#[doc = " Video frame structure."]
#[doc = ""]
#[doc = " dc1394video_frame_t is the structure returned by the capture functions. It contains the captured image as well as a number of"]
#[doc = " information."]
#[doc = ""]
#[doc = " In general this structure should be calloc\'ed so that members such as \"allocated size\""]
#[doc = " are properly set to zero. Don\'t forget to free the \"image\" member before freeing the struct itself."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __dc1394_video_frame {
    pub image: *mut ::std::os::raw::c_uchar,
    pub size: [u32; 2usize],
    pub position: [u32; 2usize],
    pub color_coding: dc1394color_coding_t::Type,
    pub color_filter: dc1394color_filter_t::Type,
    pub yuv_byte_order: u32,
    pub data_depth: u32,
    pub stride: u32,
    pub video_mode: dc1394video_mode_t::Type,
    pub total_bytes: u64,
    pub image_bytes: u32,
    pub padding_bytes: u32,
    pub packet_size: u32,
    pub packets_per_frame: u32,
    pub timestamp: u64,
    pub frames_behind: u32,
    pub camera: *mut dc1394camera_t,
    pub id: u32,
    pub allocated_image_bytes: u64,
    pub little_endian: dc1394bool_t::Type,
    pub data_in_padding: dc1394bool_t::Type,
}
#[test]
fn bindgen_test_layout___dc1394_video_frame() {
    assert_eq!(
        ::std::mem::size_of::<__dc1394_video_frame>(),
        120usize,
        concat!("Size of: ", stringify!(__dc1394_video_frame))
    );
    assert_eq!(
        ::std::mem::align_of::<__dc1394_video_frame>(),
        8usize,
        concat!("Alignment of ", stringify!(__dc1394_video_frame))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394_video_frame>())).image as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_video_frame),
            "::",
            stringify!(image)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394_video_frame>())).size as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_video_frame),
            "::",
            stringify!(size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394_video_frame>())).position as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_video_frame),
            "::",
            stringify!(position)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394_video_frame>())).color_coding as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_video_frame),
            "::",
            stringify!(color_coding)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394_video_frame>())).color_filter as *const _ as usize
        },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_video_frame),
            "::",
            stringify!(color_filter)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394_video_frame>())).yuv_byte_order as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_video_frame),
            "::",
            stringify!(yuv_byte_order)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394_video_frame>())).data_depth as *const _ as usize },
        36usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_video_frame),
            "::",
            stringify!(data_depth)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394_video_frame>())).stride as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_video_frame),
            "::",
            stringify!(stride)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394_video_frame>())).video_mode as *const _ as usize },
        44usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_video_frame),
            "::",
            stringify!(video_mode)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394_video_frame>())).total_bytes as *const _ as usize
        },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_video_frame),
            "::",
            stringify!(total_bytes)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394_video_frame>())).image_bytes as *const _ as usize
        },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_video_frame),
            "::",
            stringify!(image_bytes)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394_video_frame>())).padding_bytes as *const _ as usize
        },
        60usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_video_frame),
            "::",
            stringify!(padding_bytes)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394_video_frame>())).packet_size as *const _ as usize
        },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_video_frame),
            "::",
            stringify!(packet_size)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394_video_frame>())).packets_per_frame as *const _ as usize
        },
        68usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_video_frame),
            "::",
            stringify!(packets_per_frame)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394_video_frame>())).timestamp as *const _ as usize },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_video_frame),
            "::",
            stringify!(timestamp)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394_video_frame>())).frames_behind as *const _ as usize
        },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_video_frame),
            "::",
            stringify!(frames_behind)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394_video_frame>())).camera as *const _ as usize },
        88usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_video_frame),
            "::",
            stringify!(camera)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394_video_frame>())).id as *const _ as usize },
        96usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_video_frame),
            "::",
            stringify!(id)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394_video_frame>())).allocated_image_bytes as *const _
                as usize
        },
        104usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_video_frame),
            "::",
            stringify!(allocated_image_bytes)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394_video_frame>())).little_endian as *const _ as usize
        },
        112usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_video_frame),
            "::",
            stringify!(little_endian)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394_video_frame>())).data_in_padding as *const _ as usize
        },
        116usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394_video_frame),
            "::",
            stringify!(data_in_padding)
        )
    );
}
pub type dc1394video_frame_t = __dc1394_video_frame;
extern "C" {
    #[doc = " Gets a list of video modes supported by the camera."]
    pub fn dc1394_video_get_supported_modes(
        camera: *mut dc1394camera_t,
        video_modes: *mut dc1394video_modes_t,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets a list of supported video framerates for a given video mode. This function only works with non-scalable formats."]
    pub fn dc1394_video_get_supported_framerates(
        camera: *mut dc1394camera_t,
        video_mode: dc1394video_mode_t::Type,
        framerates: *mut dc1394framerates_t,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the current framerate. This is meaningful only if the video mode is not scalable."]
    pub fn dc1394_video_get_framerate(
        camera: *mut dc1394camera_t,
        framerate: *mut dc1394framerate_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Sets the current framerate. This is meaningful only if the video mode is not scalable."]
    pub fn dc1394_video_set_framerate(
        camera: *mut dc1394camera_t,
        framerate: dc1394framerate_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the current vide mode."]
    pub fn dc1394_video_get_mode(
        camera: *mut dc1394camera_t,
        video_mode: *mut dc1394video_mode_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Sets the current vide mode."]
    pub fn dc1394_video_set_mode(
        camera: *mut dc1394camera_t,
        video_mode: dc1394video_mode_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the current operation mode."]
    pub fn dc1394_video_get_operation_mode(
        camera: *mut dc1394camera_t,
        mode: *mut dc1394operation_mode_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Sets the current operation mode."]
    pub fn dc1394_video_set_operation_mode(
        camera: *mut dc1394camera_t,
        mode: dc1394operation_mode_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the current ISO speed."]
    pub fn dc1394_video_get_iso_speed(
        camera: *mut dc1394camera_t,
        speed: *mut dc1394speed_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Sets the current ISO speed. Speeds over 400Mbps require 1394B."]
    pub fn dc1394_video_set_iso_speed(
        camera: *mut dc1394camera_t,
        speed: dc1394speed_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the current ISO channel"]
    pub fn dc1394_video_get_iso_channel(
        camera: *mut dc1394camera_t,
        channel: *mut u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Sets the current ISO channel"]
    pub fn dc1394_video_set_iso_channel(
        camera: *mut dc1394camera_t,
        channel: u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the current data depth, in bits. Only meaningful for 16bpp video modes (RAW16, RGB48, MONO16,...)"]
    pub fn dc1394_video_get_data_depth(
        camera: *mut dc1394camera_t,
        depth: *mut u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Starts/stops the isochronous data transmission. In other words, use this to control the image flow."]
    pub fn dc1394_video_set_transmission(
        camera: *mut dc1394camera_t,
        pwr: dc1394switch_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the status of the video transmission"]
    pub fn dc1394_video_get_transmission(
        camera: *mut dc1394camera_t,
        pwr: *mut dc1394switch_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Turns one-shot mode on or off"]
    pub fn dc1394_video_set_one_shot(
        camera: *mut dc1394camera_t,
        pwr: dc1394switch_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the status of the one-shot mode."]
    pub fn dc1394_video_get_one_shot(
        camera: *mut dc1394camera_t,
        is_on: *mut dc1394bool_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Turns multishot mode on or off"]
    pub fn dc1394_video_set_multi_shot(
        camera: *mut dc1394camera_t,
        numFrames: u32,
        pwr: dc1394switch_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the status of the multi-shot mode."]
    pub fn dc1394_video_get_multi_shot(
        camera: *mut dc1394camera_t,
        is_on: *mut dc1394bool_t::Type,
        numFrames: *mut u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the bandwidth usage of a camera."]
    #[doc = ""]
    #[doc = " This function returns the bandwidth that is used by the camera *IF* ISO was ON."]
    #[doc = " The returned value is in bandwidth units. The 1394 bus has 4915 bandwidth units"]
    #[doc = " available per cycle. Each unit corresponds to the time it takes to send one"]
    #[doc = " quadlet at ISO speed S1600. The bandwidth usage at S400 is thus four times the"]
    #[doc = " number of quadlets per packet. Thanks to Krisitian Hogsberg for clarifying this."]
    pub fn dc1394_video_get_bandwidth_usage(
        camera: *mut dc1394camera_t,
        bandwidth: *mut u32,
    ) -> dc1394error_t::Type;
}
pub mod dc1394capture_policy_t {
    #[doc = " The capture policy."]
    #[doc = ""]
    #[doc = " Can be blocking (wait for a frame forever) or polling (returns if no frames is in the ring buffer)"]
    pub type Type = u32;
    pub const DC1394_CAPTURE_POLICY_WAIT: Type = 672;
    pub const DC1394_CAPTURE_POLICY_POLL: Type = 673;
}
#[doc = " typedef for the callback param for dc1394_capture_set_callback"]
pub type dc1394capture_callback_t = ::std::option::Option<
    unsafe extern "C" fn(arg1: *mut dc1394camera_t, arg2: *mut ::std::os::raw::c_void),
>;
extern "C" {
    #[doc = " Setup the capture, using a ring buffer of a certain size (num_dma_buffers) and certain options (flags)"]
    pub fn dc1394_capture_setup(
        camera: *mut dc1394camera_t,
        num_dma_buffers: u32,
        flags: u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Stop the capture"]
    pub fn dc1394_capture_stop(camera: *mut dc1394camera_t) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets a file descriptor to be used for select(). Must be called after dc1394_capture_setup()."]
    pub fn dc1394_capture_get_fileno(camera: *mut dc1394camera_t) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Captures a video frame. The returned struct contains the image buffer, among others. This image buffer SHALL NOT be freed, as it represents an area"]
    #[doc = " in the memory that belongs to the system."]
    pub fn dc1394_capture_dequeue(
        camera: *mut dc1394camera_t,
        policy: dc1394capture_policy_t::Type,
        frame: *mut *mut dc1394video_frame_t,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Returns a frame to the ring buffer once it has been used."]
    pub fn dc1394_capture_enqueue(
        camera: *mut dc1394camera_t,
        frame: *mut dc1394video_frame_t,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Returns DC1394_TRUE if the given frame (previously dequeued) has been"]
    #[doc = " detected to be corrupt (missing data, corrupted data, overrun buffer, etc.)."]
    #[doc = " Note that certain types of corruption may go undetected in which case"]
    #[doc = " DC1394_FALSE will be returned.  The ability to detect corruption also"]
    #[doc = " varies between platforms.  Note that corrupt frames still need to be"]
    #[doc = " enqueued with dc1394_capture_enqueue() when no longer needed by the user."]
    pub fn dc1394_capture_is_frame_corrupt(
        camera: *mut dc1394camera_t,
        frame: *mut dc1394video_frame_t,
    ) -> dc1394bool_t::Type;
}
extern "C" {
    #[doc = " Set a callback if supported by the platform (OS X only for now)."]
    pub fn dc1394_capture_set_callback(
        camera: *mut dc1394camera_t,
        callback: dc1394capture_callback_t,
        user_data: *mut ::std::os::raw::c_void,
    );
}
pub mod dc1394bayer_method_t {
    #[doc = " A list of de-mosaicing techniques for Bayer-patterns."]
    #[doc = ""]
    #[doc = " The speed of the techniques can vary greatly, as well as their quality."]
    pub type Type = u32;
    pub const DC1394_BAYER_METHOD_NEAREST: Type = 0;
    pub const DC1394_BAYER_METHOD_SIMPLE: Type = 1;
    pub const DC1394_BAYER_METHOD_BILINEAR: Type = 2;
    pub const DC1394_BAYER_METHOD_HQLINEAR: Type = 3;
    pub const DC1394_BAYER_METHOD_DOWNSAMPLE: Type = 4;
    pub const DC1394_BAYER_METHOD_EDGESENSE: Type = 5;
    pub const DC1394_BAYER_METHOD_VNG: Type = 6;
    pub const DC1394_BAYER_METHOD_AHD: Type = 7;
}
pub mod dc1394stereo_method_t {
    #[doc = " A list of known stereo-in-normal-video modes used by manufacturers like Point Grey Research and Videre Design."]
    pub type Type = u32;
    pub const DC1394_STEREO_METHOD_INTERLACED: Type = 0;
    pub const DC1394_STEREO_METHOD_FIELD: Type = 1;
}
extern "C" {
    #[doc = " Converts an image buffer to YUV422"]
    pub fn dc1394_convert_to_YUV422(
        src: *mut u8,
        dest: *mut u8,
        width: u32,
        height: u32,
        byte_order: u32,
        source_coding: dc1394color_coding_t::Type,
        bits: u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Converts an image buffer to MONO8"]
    pub fn dc1394_convert_to_MONO8(
        src: *mut u8,
        dest: *mut u8,
        width: u32,
        height: u32,
        byte_order: u32,
        source_coding: dc1394color_coding_t::Type,
        bits: u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Converts an image buffer to RGB8"]
    pub fn dc1394_convert_to_RGB8(
        src: *mut u8,
        dest: *mut u8,
        width: u32,
        height: u32,
        byte_order: u32,
        source_coding: dc1394color_coding_t::Type,
        bits: u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " changes a 16bit stereo image (8bit/channel) into two 8bit images on top of each other"]
    pub fn dc1394_deinterlace_stereo(
        src: *mut u8,
        dest: *mut u8,
        width: u32,
        height: u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Perform de-mosaicing on an 8-bit image buffer"]
    pub fn dc1394_bayer_decoding_8bit(
        bayer: *const u8,
        rgb: *mut u8,
        width: u32,
        height: u32,
        tile: dc1394color_filter_t::Type,
        method: dc1394bayer_method_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Perform de-mosaicing on an 16-bit image buffer"]
    pub fn dc1394_bayer_decoding_16bit(
        bayer: *const u16,
        rgb: *mut u16,
        width: u32,
        height: u32,
        tile: dc1394color_filter_t::Type,
        method: dc1394bayer_method_t::Type,
        bits: u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Converts the format of a video frame."]
    #[doc = ""]
    #[doc = " To set the format of the output, simply set the values of the corresponding fields in the output frame"]
    pub fn dc1394_convert_frames(
        in_: *mut dc1394video_frame_t,
        out: *mut dc1394video_frame_t,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " De-mosaicing of a Bayer-encoded video frame"]
    #[doc = ""]
    #[doc = " To set the format of the output, simply set the values of the corresponding fields in the output frame"]
    #[doc = " @param in is a pointer to the bayer video frame that is to be converted"]
    #[doc = " @param out is a pointer to the frame to be converted to.  If there is memory allocated to the image field,"]
    #[doc = "      then it will be adjusted accordingly by this function.  If there is no memory allocated to the image"]
    #[doc = "      field, then ensure that out->image == NULL and out->allocated_image_bytes == 0"]
    #[doc = " @param method is the bayer method to interpolate the frame."]
    pub fn dc1394_debayer_frames(
        in_: *mut dc1394video_frame_t,
        out: *mut dc1394video_frame_t,
        method: dc1394bayer_method_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " De-interlacing of stereo data for cideo frames"]
    #[doc = ""]
    #[doc = " To set the format of the output, simply set the values of the corresponding fields in the output frame"]
    pub fn dc1394_deinterlace_stereo_frames(
        in_: *mut dc1394video_frame_t,
        out: *mut dc1394video_frame_t,
        method: dc1394stereo_method_t::Type,
    ) -> dc1394error_t::Type;
}
#[doc = " A struct containing information about a mode of Format_7, the scalable image format."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __dc1394format7mode_t {
    pub present: dc1394bool_t::Type,
    pub size_x: u32,
    pub size_y: u32,
    pub max_size_x: u32,
    pub max_size_y: u32,
    pub pos_x: u32,
    pub pos_y: u32,
    pub unit_size_x: u32,
    pub unit_size_y: u32,
    pub unit_pos_x: u32,
    pub unit_pos_y: u32,
    pub color_codings: dc1394color_codings_t,
    pub color_coding: dc1394color_coding_t::Type,
    pub pixnum: u32,
    pub packet_size: u32,
    pub unit_packet_size: u32,
    pub max_packet_size: u32,
    pub total_bytes: u64,
    pub color_filter: dc1394color_filter_t::Type,
}
#[test]
fn bindgen_test_layout___dc1394format7mode_t() {
    assert_eq!(
        ::std::mem::size_of::<__dc1394format7mode_t>(),
        128usize,
        concat!("Size of: ", stringify!(__dc1394format7mode_t))
    );
    assert_eq!(
        ::std::mem::align_of::<__dc1394format7mode_t>(),
        8usize,
        concat!("Alignment of ", stringify!(__dc1394format7mode_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394format7mode_t>())).present as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394format7mode_t),
            "::",
            stringify!(present)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394format7mode_t>())).size_x as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394format7mode_t),
            "::",
            stringify!(size_x)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394format7mode_t>())).size_y as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394format7mode_t),
            "::",
            stringify!(size_y)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394format7mode_t>())).max_size_x as *const _ as usize
        },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394format7mode_t),
            "::",
            stringify!(max_size_x)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394format7mode_t>())).max_size_y as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394format7mode_t),
            "::",
            stringify!(max_size_y)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394format7mode_t>())).pos_x as *const _ as usize },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394format7mode_t),
            "::",
            stringify!(pos_x)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394format7mode_t>())).pos_y as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394format7mode_t),
            "::",
            stringify!(pos_y)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394format7mode_t>())).unit_size_x as *const _ as usize
        },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394format7mode_t),
            "::",
            stringify!(unit_size_x)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394format7mode_t>())).unit_size_y as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394format7mode_t),
            "::",
            stringify!(unit_size_y)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394format7mode_t>())).unit_pos_x as *const _ as usize
        },
        36usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394format7mode_t),
            "::",
            stringify!(unit_pos_x)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394format7mode_t>())).unit_pos_y as *const _ as usize
        },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394format7mode_t),
            "::",
            stringify!(unit_pos_y)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394format7mode_t>())).color_codings as *const _ as usize
        },
        44usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394format7mode_t),
            "::",
            stringify!(color_codings)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394format7mode_t>())).color_coding as *const _ as usize
        },
        92usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394format7mode_t),
            "::",
            stringify!(color_coding)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394format7mode_t>())).pixnum as *const _ as usize },
        96usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394format7mode_t),
            "::",
            stringify!(pixnum)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394format7mode_t>())).packet_size as *const _ as usize
        },
        100usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394format7mode_t),
            "::",
            stringify!(packet_size)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394format7mode_t>())).unit_packet_size as *const _ as usize
        },
        104usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394format7mode_t),
            "::",
            stringify!(unit_packet_size)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394format7mode_t>())).max_packet_size as *const _ as usize
        },
        108usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394format7mode_t),
            "::",
            stringify!(max_packet_size)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394format7mode_t>())).total_bytes as *const _ as usize
        },
        112usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394format7mode_t),
            "::",
            stringify!(total_bytes)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__dc1394format7mode_t>())).color_filter as *const _ as usize
        },
        120usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394format7mode_t),
            "::",
            stringify!(color_filter)
        )
    );
}
pub type dc1394format7mode_t = __dc1394format7mode_t;
#[doc = " A struct containing the list of Format_7 modes."]
#[doc = " FIXME: this may become very big if format_7 pages are used in IIDC 1.32. It would be better to use a \"num\" and an allocated list."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __dc1394format7modeset_t {
    pub mode: [dc1394format7mode_t; 8usize],
}
#[test]
fn bindgen_test_layout___dc1394format7modeset_t() {
    assert_eq!(
        ::std::mem::size_of::<__dc1394format7modeset_t>(),
        1024usize,
        concat!("Size of: ", stringify!(__dc1394format7modeset_t))
    );
    assert_eq!(
        ::std::mem::align_of::<__dc1394format7modeset_t>(),
        8usize,
        concat!("Alignment of ", stringify!(__dc1394format7modeset_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__dc1394format7modeset_t>())).mode as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__dc1394format7modeset_t),
            "::",
            stringify!(mode)
        )
    );
}
pub type dc1394format7modeset_t = __dc1394format7modeset_t;
extern "C" {
    #[doc = " Gets the maximal image size for a given mode."]
    pub fn dc1394_format7_get_max_image_size(
        camera: *mut dc1394camera_t,
        video_mode: dc1394video_mode_t::Type,
        h_size: *mut u32,
        v_size: *mut u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the unit sizes for a given mode. The image size can only be a multiple of the unit size, and cannot be smaller than it."]
    pub fn dc1394_format7_get_unit_size(
        camera: *mut dc1394camera_t,
        video_mode: dc1394video_mode_t::Type,
        h_unit: *mut u32,
        v_unit: *mut u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the current image size."]
    pub fn dc1394_format7_get_image_size(
        camera: *mut dc1394camera_t,
        video_mode: dc1394video_mode_t::Type,
        width: *mut u32,
        height: *mut u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Sets the current image size"]
    pub fn dc1394_format7_set_image_size(
        camera: *mut dc1394camera_t,
        video_mode: dc1394video_mode_t::Type,
        width: u32,
        height: u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the current image position"]
    pub fn dc1394_format7_get_image_position(
        camera: *mut dc1394camera_t,
        video_mode: dc1394video_mode_t::Type,
        left: *mut u32,
        top: *mut u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Sets the current image position"]
    pub fn dc1394_format7_set_image_position(
        camera: *mut dc1394camera_t,
        video_mode: dc1394video_mode_t::Type,
        left: u32,
        top: u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the unit positions for a given mode. The image position can only be a multiple of the unit position (zero is acceptable)."]
    pub fn dc1394_format7_get_unit_position(
        camera: *mut dc1394camera_t,
        video_mode: dc1394video_mode_t::Type,
        h_unit_pos: *mut u32,
        v_unit_pos: *mut u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the current color coding"]
    pub fn dc1394_format7_get_color_coding(
        camera: *mut dc1394camera_t,
        video_mode: dc1394video_mode_t::Type,
        color_coding: *mut dc1394color_coding_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the list of color codings available for this mode"]
    pub fn dc1394_format7_get_color_codings(
        camera: *mut dc1394camera_t,
        video_mode: dc1394video_mode_t::Type,
        codings: *mut dc1394color_codings_t,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Sets the current color coding"]
    pub fn dc1394_format7_set_color_coding(
        camera: *mut dc1394camera_t,
        video_mode: dc1394video_mode_t::Type,
        color_coding: dc1394color_coding_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the current color filter"]
    pub fn dc1394_format7_get_color_filter(
        camera: *mut dc1394camera_t,
        video_mode: dc1394video_mode_t::Type,
        color_filter: *mut dc1394color_filter_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Get the parameters of the packet size: its maximal size and its unit size. The packet size is always a multiple of the unit bytes and cannot be zero."]
    pub fn dc1394_format7_get_packet_parameters(
        camera: *mut dc1394camera_t,
        video_mode: dc1394video_mode_t::Type,
        unit_bytes: *mut u32,
        max_bytes: *mut u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the current packet size"]
    pub fn dc1394_format7_get_packet_size(
        camera: *mut dc1394camera_t,
        video_mode: dc1394video_mode_t::Type,
        packet_size: *mut u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Sets the current packet size"]
    pub fn dc1394_format7_set_packet_size(
        camera: *mut dc1394camera_t,
        video_mode: dc1394video_mode_t::Type,
        packet_size: u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the recommended packet size. Ignore if zero."]
    pub fn dc1394_format7_get_recommended_packet_size(
        camera: *mut dc1394camera_t,
        video_mode: dc1394video_mode_t::Type,
        packet_size: *mut u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the number of packets per frame."]
    pub fn dc1394_format7_get_packets_per_frame(
        camera: *mut dc1394camera_t,
        video_mode: dc1394video_mode_t::Type,
        ppf: *mut u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the data depth (e.g. 12, 13, 14 bits/pixel)"]
    pub fn dc1394_format7_get_data_depth(
        camera: *mut dc1394camera_t,
        video_mode: dc1394video_mode_t::Type,
        data_depth: *mut u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the frame interval in float format"]
    pub fn dc1394_format7_get_frame_interval(
        camera: *mut dc1394camera_t,
        video_mode: dc1394video_mode_t::Type,
        interval: *mut f32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the number of pixels per image frame"]
    pub fn dc1394_format7_get_pixel_number(
        camera: *mut dc1394camera_t,
        video_mode: dc1394video_mode_t::Type,
        pixnum: *mut u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Get the total number of bytes per frame. This includes padding (to reach an entire number of packets)"]
    pub fn dc1394_format7_get_total_bytes(
        camera: *mut dc1394camera_t,
        video_mode: dc1394video_mode_t::Type,
        total_bytes: *mut u64,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the properties of all Format_7 modes supported by the camera."]
    pub fn dc1394_format7_get_modeset(
        camera: *mut dc1394camera_t,
        info: *mut dc1394format7modeset_t,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Gets the properties of a Format_7 mode"]
    pub fn dc1394_format7_get_mode_info(
        camera: *mut dc1394camera_t,
        video_mode: dc1394video_mode_t::Type,
        f7_mode: *mut dc1394format7mode_t,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Joint function that fully sets a certain ROI taking all parameters into account."]
    #[doc = " Note that this function does not SWITCH to the video mode passed as argument, it mearly sets it"]
    pub fn dc1394_format7_set_roi(
        camera: *mut dc1394camera_t,
        video_mode: dc1394video_mode_t::Type,
        color_coding: dc1394color_coding_t::Type,
        packet_size: i32,
        left: i32,
        top: i32,
        width: i32,
        height: i32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Joint function that fully gets a certain ROI taking all parameters into account."]
    pub fn dc1394_format7_get_roi(
        camera: *mut dc1394camera_t,
        video_mode: dc1394video_mode_t::Type,
        color_coding: *mut dc1394color_coding_t::Type,
        packet_size: *mut u32,
        left: *mut u32,
        top: *mut u32,
        width: *mut u32,
        height: *mut u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " dc1394_iso_set_persist"]
    #[doc = " @param camera A camera handle."]
    #[doc = ""]
    #[doc = " Calling this function will cause isochronous channel and bandwidth"]
    #[doc = " allocations to persist beyond the lifetime of this dc1394camera_t"]
    #[doc = " instance.  Normally (when this function is not called), any allocations"]
    #[doc = " would be automatically released upon freeing this camera or a"]
    #[doc = " premature shutdown of the application (if possible).  For this function"]
    #[doc = " to be used, it must be called prior to any allocations or an error will"]
    #[doc = " be returned."]
    #[doc = ""]
    #[doc = " @return \\a DC1394_SUCCESS if the operation succeeded."]
    #[doc = " \\a DC1394_FUNCTION_NOT_SUPPORTED if the current platform/driver does not"]
    #[doc = " allow persistent allocations."]
    pub fn dc1394_iso_set_persist(camera: *mut dc1394camera_t) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " dc1394_iso_allocate_channel:"]
    #[doc = " @param camera A camera handle."]
    #[doc = " @param channels_allowed A bitmask of acceptable channels for the allocation."]
    #[doc = "   The LSB corresponds to channel 0 and the MSB corresponds to channel"]
    #[doc = "   63.  Only channels whose bit is set will be considered for the allocation."]
    #[doc = "   If \\a channels_allowed = 0, the complete set of channels supported by"]
    #[doc = "   this camera will be considered for the allocation."]
    #[doc = " @param channel The allocated channel number is returned here."]
    #[doc = ""]
    #[doc = " Allocates an isochronous channel.  This"]
    #[doc = " function may be called multiple times, each time allocating an additional"]
    #[doc = " channel.  The channel is automatically re-allocated if there is a bus"]
    #[doc = " reset.  The channel is automatically released when this dc1394camera_t"]
    #[doc = " is freed or if the application shuts down prematurely.  If the channel"]
    #[doc = " needs to persist beyond the lifetime of this application, call"]
    #[doc = " \\a dc1394_iso_set_persist() first.  Note that this function does _not_"]
    #[doc = " automatically program @a camera to use the allocated channel for isochronous"]
    #[doc = " streaming.  You must do that manually using \\a dc1394_video_set_iso_channel()."]
    #[doc = ""]
    #[doc = " @return \\a DC1394_SUCCESS if the operation succeeded.  The allocated"]
    #[doc = " channel is stored in \\a channel. \\a DC1394_FUNCTION_NOT_SUPPORTED if the"]
    #[doc = " current driver/platform does not allow channel allocation."]
    #[doc = " \\a DC1394_NO_ISO_CHANNEL if none of the requested channels are available."]
    pub fn dc1394_iso_allocate_channel(
        camera: *mut dc1394camera_t,
        channels_allowed: u64,
        channel: *mut ::std::os::raw::c_int,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " dc1394_iso_release_channel:"]
    #[doc = " @param camera A camera handle."]
    #[doc = " @param channel The channel number to release."]
    #[doc = ""]
    #[doc = " Releases a previously allocated channel.  It is acceptable to release"]
    #[doc = " channels that were allocated by a different process or host.  If"]
    #[doc = " attempting to release a channel that is already released, the function"]
    #[doc = " will succeed."]
    #[doc = ""]
    #[doc = " @return \\a DC1394_SUCCESS if the operation succeeded."]
    #[doc = " \\a DC1394_FUNCTION_NOT_SUPPORTED if the current driver/platform does not"]
    #[doc = " allow channel release."]
    pub fn dc1394_iso_release_channel(
        camera: *mut dc1394camera_t,
        channel: ::std::os::raw::c_int,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " dc1394_iso_allocate_bandwidth:"]
    #[doc = " @param camera A camera handle."]
    #[doc = " @param bandwidth_units The number of isochronous bandwidth units to allocate."]
    #[doc = ""]
    #[doc = " Allocates isochronous bandwidth.  This functions allocates bandwidth"]
    #[doc = " _in addition_ to any previous allocations.  It may be called multiple"]
    #[doc = " times.  The bandwidth is automatically re-allocated if there is a bus"]
    #[doc = " reset.  The bandwidth is automatically released if this camera is freed"]
    #[doc = " or the application shuts down prematurely.  If the bandwidth needs to"]
    #[doc = " persist beyond the lifetime of this application, call"]
    #[doc = " \\a dc1394_iso_set_persist() first."]
    #[doc = ""]
    #[doc = " @return \\a DC1394_SUCCESS if the operation succeeded."]
    #[doc = " \\a DC1394_FUNCTION_NOT_SUPPORTED if the current driver/platform does not"]
    #[doc = " allow bandwidth allocation. \\a DC1394_NO_BANDWIDTH if there is not enough"]
    #[doc = " available bandwidth to support the allocation.  In this case,"]
    #[doc = " no bandwidth is allocated."]
    pub fn dc1394_iso_allocate_bandwidth(
        camera: *mut dc1394camera_t,
        bandwidth_units: ::std::os::raw::c_int,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " dc1394_iso_release_bandwidth:"]
    #[doc = " @param camera A camera handle."]
    #[doc = " @param bandwidth_units The number of isochronous bandwidth units to free."]
    #[doc = ""]
    #[doc = " Releases previously allocated isochronous bandwidth.  Each \\a dc1394camera_t"]
    #[doc = " keeps track of a running total of bandwidth that has been allocated."]
    #[doc = " Released bandwidth is subtracted from this total for the sake of"]
    #[doc = " automatic re-allocation and automatic release on shutdown.  It is also"]
    #[doc = " acceptable for a camera to release more bandwidth than it has allocated"]
    #[doc = " (to clean up for another process for example).  In this case, the"]
    #[doc = " running total of bandwidth is not affected.  It is acceptable to"]
    #[doc = " release more bandwidth than is allocated in total for the bus.  In this"]
    #[doc = " case, all bandwidth is released and the function succeeds."]
    #[doc = ""]
    #[doc = " @return \\a DC1394_SUCCESS if the operation succeeded."]
    #[doc = " \\a DC1394_FUNCTION_NOT_SUPPORTED if the current driver/platform does not"]
    #[doc = " allow bandwidth release."]
    pub fn dc1394_iso_release_bandwidth(
        camera: *mut dc1394camera_t,
        bandwidth_units: ::std::os::raw::c_int,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " dc1394_iso_release_all:"]
    #[doc = " @param camera A camera handle."]
    #[doc = ""]
    #[doc = " Releases all channels and bandwidth that have been previously allocated"]
    #[doc = " for this dc1394camera_t.  Note that this information can only be tracked"]
    #[doc = " per process, and there is no knowledge of allocations for this camera"]
    #[doc = " by previous processes.  To release resources in such a case, the manual"]
    #[doc = " release functions \\a dc1394_iso_release_channel() and"]
    #[doc = " \\a dc1394_iso_release_bandwidth() must be used."]
    #[doc = ""]
    #[doc = " @return \\a DC1394_SUCCESS if the operation succeeded. \\a DC1394_FAILURE"]
    #[doc = " if some resources were not able to be released."]
    pub fn dc1394_iso_release_all(camera: *mut dc1394camera_t) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " No Docs"]
    pub fn dc1394_get_registers(
        camera: *mut dc1394camera_t,
        offset: u64,
        value: *mut u32,
        num_regs: u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " No Docs"]
    pub fn dc1394_set_registers(
        camera: *mut dc1394camera_t,
        offset: u64,
        value: *const u32,
        num_regs: u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " No Docs"]
    pub fn dc1394_get_control_registers(
        camera: *mut dc1394camera_t,
        offset: u64,
        value: *mut u32,
        num_regs: u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " No Docs"]
    pub fn dc1394_set_control_registers(
        camera: *mut dc1394camera_t,
        offset: u64,
        value: *const u32,
        num_regs: u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " No Docs"]
    pub fn dc1394_get_adv_control_registers(
        camera: *mut dc1394camera_t,
        offset: u64,
        value: *mut u32,
        num_regs: u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " No Docs"]
    pub fn dc1394_set_adv_control_registers(
        camera: *mut dc1394camera_t,
        offset: u64,
        value: *const u32,
        num_regs: u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " No Docs"]
    pub fn dc1394_get_format7_register(
        camera: *mut dc1394camera_t,
        mode: ::std::os::raw::c_uint,
        offset: u64,
        value: *mut u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " No Docs"]
    pub fn dc1394_set_format7_register(
        camera: *mut dc1394camera_t,
        mode: ::std::os::raw::c_uint,
        offset: u64,
        value: u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " No Docs"]
    pub fn dc1394_get_absolute_register(
        camera: *mut dc1394camera_t,
        feature: ::std::os::raw::c_uint,
        offset: u64,
        value: *mut u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " No Docs"]
    pub fn dc1394_set_absolute_register(
        camera: *mut dc1394camera_t,
        feature: ::std::os::raw::c_uint,
        offset: u64,
        value: u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " No Docs"]
    pub fn dc1394_get_PIO_register(
        camera: *mut dc1394camera_t,
        offset: u64,
        value: *mut u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " No Docs"]
    pub fn dc1394_set_PIO_register(
        camera: *mut dc1394camera_t,
        offset: u64,
        value: u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " No Docs"]
    pub fn dc1394_get_SIO_register(
        camera: *mut dc1394camera_t,
        offset: u64,
        value: *mut u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " No Docs"]
    pub fn dc1394_set_SIO_register(
        camera: *mut dc1394camera_t,
        offset: u64,
        value: u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " No Docs"]
    pub fn dc1394_get_strobe_register(
        camera: *mut dc1394camera_t,
        offset: u64,
        value: *mut u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " No Docs"]
    pub fn dc1394_set_strobe_register(
        camera: *mut dc1394camera_t,
        offset: u64,
        value: u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Returns the image width and height (in pixels) corresponding to a video mode. Works for scalable and non-scalable video modes."]
    pub fn dc1394_get_image_size_from_video_mode(
        camera: *mut dc1394camera_t,
        video_mode: u32,
        width: *mut u32,
        height: *mut u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Returns the given framerate as a float."]
    pub fn dc1394_framerate_as_float(
        framerate_enum: dc1394framerate_t::Type,
        framerate: *mut f32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Returns the number of bits per pixel for a certain color coding. This is the size of the data sent on the bus, the effective"]
    #[doc = " data depth may vary. Example: RGB16 is 16, YUV411 is 8, YUV422 is 8."]
    pub fn dc1394_get_color_coding_data_depth(
        color_coding: dc1394color_coding_t::Type,
        bits: *mut u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Returns the bit-space used by a pixel. This is different from the data depth! For instance, RGB16 has a bit space of 48 bits,"]
    #[doc = " YUV422 is 16bits and YU411 is 12bits."]
    pub fn dc1394_get_color_coding_bit_size(
        color_coding: dc1394color_coding_t::Type,
        bits: *mut u32,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Returns the color coding from the video mode. Works with scalable image formats too."]
    pub fn dc1394_get_color_coding_from_video_mode(
        camera: *mut dc1394camera_t,
        video_mode: dc1394video_mode_t::Type,
        color_coding: *mut dc1394color_coding_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Tells whether the color mode is color or monochrome"]
    pub fn dc1394_is_color(
        color_mode: dc1394color_coding_t::Type,
        is_color: *mut dc1394bool_t::Type,
    ) -> dc1394error_t::Type;
}
extern "C" {
    #[doc = " Tells whether the video mode is scalable or not."]
    pub fn dc1394_is_video_mode_scalable(
        video_mode: dc1394video_mode_t::Type,
    ) -> dc1394bool_t::Type;
}
extern "C" {
    #[doc = " Tells whether the video mode is \"still image\" or not (\"still image\" is currently not supported by any cameras on the market)"]
    pub fn dc1394_is_video_mode_still_image(
        video_mode: dc1394video_mode_t::Type,
    ) -> dc1394bool_t::Type;
}
extern "C" {
    #[doc = " Tells whether two IDs refer to the same physical camera unit."]
    pub fn dc1394_is_same_camera(
        id1: dc1394camera_id_t,
        id2: dc1394camera_id_t,
    ) -> dc1394bool_t::Type;
}
extern "C" {
    #[doc = " Returns a descriptive name for a feature"]
    pub fn dc1394_feature_get_string(
        feature: dc1394feature_t::Type,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Returns a descriptive string for an error code"]
    pub fn dc1394_error_get_string(error: dc1394error_t::Type) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Calculates the CRC16 checksum of a memory region. Useful to verify the CRC of an image buffer, for instance."]
    pub fn dc1394_checksum_crc16(buffer: *const u8, buffer_size: u32) -> u16;
}
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)
        )
    );
}