1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
/* automatically generated by rust-bindgen */

#[link(name = "flac")] extern { }

#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct __BindgenBitfieldUnit<Storage, Align>
where
    Storage: AsRef<[u8]> + AsMut<[u8]>,
{
    storage: Storage,
    align: [Align; 0],
}
impl<Storage, Align> __BindgenBitfieldUnit<Storage, Align>
where
    Storage: AsRef<[u8]> + AsMut<[u8]>,
{
    #[inline]
    pub fn new(storage: Storage) -> Self {
        Self { storage, align: [] }
    }
    #[inline]
    pub fn get_bit(&self, index: usize) -> bool {
        debug_assert!(index / 8 < self.storage.as_ref().len());
        let byte_index = index / 8;
        let byte = self.storage.as_ref()[byte_index];
        let bit_index = if cfg!(target_endian = "big") {
            7 - (index % 8)
        } else {
            index % 8
        };
        let mask = 1 << bit_index;
        byte & mask == mask
    }
    #[inline]
    pub fn set_bit(&mut self, index: usize, val: bool) {
        debug_assert!(index / 8 < self.storage.as_ref().len());
        let byte_index = index / 8;
        let byte = &mut self.storage.as_mut()[byte_index];
        let bit_index = if cfg!(target_endian = "big") {
            7 - (index % 8)
        } else {
            index % 8
        };
        let mask = 1 << bit_index;
        if val {
            *byte |= mask;
        } else {
            *byte &= !mask;
        }
    }
    #[inline]
    pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
        debug_assert!(bit_width <= 64);
        debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
        debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
        let mut val = 0;
        for i in 0..(bit_width as usize) {
            if self.get_bit(i + bit_offset) {
                let index = if cfg!(target_endian = "big") {
                    bit_width as usize - 1 - i
                } else {
                    i
                };
                val |= 1 << index;
            }
        }
        val
    }
    #[inline]
    pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) {
        debug_assert!(bit_width <= 64);
        debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
        debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
        for i in 0..(bit_width as usize) {
            let mask = 1 << i;
            let val_bit_is_set = val & mask == mask;
            let index = if cfg!(target_endian = "big") {
                bit_width as usize - 1 - i
            } else {
                i
            };
            self.set_bit(index + bit_offset, val_bit_is_set);
        }
    }
}
pub const FLAC_API_VERSION_CURRENT: u32 = 11;
pub const FLAC_API_VERSION_REVISION: u32 = 0;
pub const FLAC_API_VERSION_AGE: u32 = 3;
pub const _STDINT_H: u32 = 1;
pub const _FEATURES_H: u32 = 1;
pub const _DEFAULT_SOURCE: u32 = 1;
pub const __USE_ISOC11: u32 = 1;
pub const __USE_ISOC99: u32 = 1;
pub const __USE_ISOC95: u32 = 1;
pub const __USE_POSIX_IMPLICITLY: u32 = 1;
pub const _POSIX_SOURCE: u32 = 1;
pub const _POSIX_C_SOURCE: u32 = 200809;
pub const __USE_POSIX: u32 = 1;
pub const __USE_POSIX2: u32 = 1;
pub const __USE_POSIX199309: u32 = 1;
pub const __USE_POSIX199506: u32 = 1;
pub const __USE_XOPEN2K: u32 = 1;
pub const __USE_XOPEN2K8: u32 = 1;
pub const _ATFILE_SOURCE: u32 = 1;
pub const __USE_MISC: u32 = 1;
pub const __USE_ATFILE: u32 = 1;
pub const __USE_FORTIFY_LEVEL: u32 = 0;
pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0;
pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0;
pub const _STDC_PREDEF_H: u32 = 1;
pub const __STDC_IEC_559__: u32 = 1;
pub const __STDC_IEC_559_COMPLEX__: u32 = 1;
pub const __STDC_ISO_10646__: u32 = 201706;
pub const __GNU_LIBRARY__: u32 = 6;
pub const __GLIBC__: u32 = 2;
pub const __GLIBC_MINOR__: u32 = 29;
pub const _SYS_CDEFS_H: u32 = 1;
pub const __glibc_c99_flexarr_available: u32 = 1;
pub const __WORDSIZE: u32 = 64;
pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1;
pub const __SYSCALL_WORDSIZE: u32 = 64;
pub const __HAVE_GENERIC_SELECTION: u32 = 1;
pub const __GLIBC_USE_LIB_EXT2: u32 = 0;
pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0;
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0;
pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0;
pub const _BITS_TYPES_H: u32 = 1;
pub const __TIMESIZE: u32 = 64;
pub const _BITS_TYPESIZES_H: u32 = 1;
pub const __OFF_T_MATCHES_OFF64_T: u32 = 1;
pub const __INO_T_MATCHES_INO64_T: u32 = 1;
pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1;
pub const __FD_SETSIZE: u32 = 1024;
pub const _BITS_TIME64_H: u32 = 1;
pub const _BITS_WCHAR_H: u32 = 1;
pub const _BITS_STDINT_INTN_H: u32 = 1;
pub const _BITS_STDINT_UINTN_H: u32 = 1;
pub const INT8_MIN: i32 = -128;
pub const INT16_MIN: i32 = -32768;
pub const INT32_MIN: i32 = -2147483648;
pub const INT8_MAX: u32 = 127;
pub const INT16_MAX: u32 = 32767;
pub const INT32_MAX: u32 = 2147483647;
pub const UINT8_MAX: u32 = 255;
pub const UINT16_MAX: u32 = 65535;
pub const UINT32_MAX: u32 = 4294967295;
pub const INT_LEAST8_MIN: i32 = -128;
pub const INT_LEAST16_MIN: i32 = -32768;
pub const INT_LEAST32_MIN: i32 = -2147483648;
pub const INT_LEAST8_MAX: u32 = 127;
pub const INT_LEAST16_MAX: u32 = 32767;
pub const INT_LEAST32_MAX: u32 = 2147483647;
pub const UINT_LEAST8_MAX: u32 = 255;
pub const UINT_LEAST16_MAX: u32 = 65535;
pub const UINT_LEAST32_MAX: u32 = 4294967295;
pub const INT_FAST8_MIN: i32 = -128;
pub const INT_FAST16_MIN: i64 = -9223372036854775808;
pub const INT_FAST32_MIN: i64 = -9223372036854775808;
pub const INT_FAST8_MAX: u32 = 127;
pub const INT_FAST16_MAX: u64 = 9223372036854775807;
pub const INT_FAST32_MAX: u64 = 9223372036854775807;
pub const UINT_FAST8_MAX: u32 = 255;
pub const UINT_FAST16_MAX: i32 = -1;
pub const UINT_FAST32_MAX: i32 = -1;
pub const INTPTR_MIN: i64 = -9223372036854775808;
pub const INTPTR_MAX: u64 = 9223372036854775807;
pub const UINTPTR_MAX: i32 = -1;
pub const PTRDIFF_MIN: i64 = -9223372036854775808;
pub const PTRDIFF_MAX: u64 = 9223372036854775807;
pub const SIG_ATOMIC_MIN: i32 = -2147483648;
pub const SIG_ATOMIC_MAX: u32 = 2147483647;
pub const SIZE_MAX: i32 = -1;
pub const WINT_MIN: u32 = 0;
pub const WINT_MAX: u32 = 4294967295;
pub const true_: u32 = 1;
pub const false_: u32 = 0;
pub const _STDLIB_H: u32 = 1;
pub const WNOHANG: u32 = 1;
pub const WUNTRACED: u32 = 2;
pub const WSTOPPED: u32 = 2;
pub const WEXITED: u32 = 4;
pub const WCONTINUED: u32 = 8;
pub const WNOWAIT: u32 = 16777216;
pub const __WNOTHREAD: u32 = 536870912;
pub const __WALL: u32 = 1073741824;
pub const __WCLONE: u32 = 2147483648;
pub const __W_CONTINUED: u32 = 65535;
pub const __WCOREFLAG: u32 = 128;
pub const __HAVE_FLOAT128: u32 = 0;
pub const __HAVE_DISTINCT_FLOAT128: u32 = 0;
pub const __HAVE_FLOAT64X: u32 = 1;
pub const __HAVE_FLOAT64X_LONG_DOUBLE: u32 = 1;
pub const __HAVE_FLOAT16: u32 = 0;
pub const __HAVE_FLOAT32: u32 = 1;
pub const __HAVE_FLOAT64: u32 = 1;
pub const __HAVE_FLOAT32X: u32 = 1;
pub const __HAVE_FLOAT128X: u32 = 0;
pub const __HAVE_DISTINCT_FLOAT16: u32 = 0;
pub const __HAVE_DISTINCT_FLOAT32: u32 = 0;
pub const __HAVE_DISTINCT_FLOAT64: u32 = 0;
pub const __HAVE_DISTINCT_FLOAT32X: u32 = 0;
pub const __HAVE_DISTINCT_FLOAT64X: u32 = 0;
pub const __HAVE_DISTINCT_FLOAT128X: u32 = 0;
pub const __HAVE_FLOATN_NOT_TYPEDEF: u32 = 0;
pub const __ldiv_t_defined: u32 = 1;
pub const __lldiv_t_defined: u32 = 1;
pub const RAND_MAX: u32 = 2147483647;
pub const EXIT_FAILURE: u32 = 1;
pub const EXIT_SUCCESS: u32 = 0;
pub const _SYS_TYPES_H: u32 = 1;
pub const __clock_t_defined: u32 = 1;
pub const __clockid_t_defined: u32 = 1;
pub const __time_t_defined: u32 = 1;
pub const __timer_t_defined: u32 = 1;
pub const __BIT_TYPES_DEFINED__: u32 = 1;
pub const _ENDIAN_H: u32 = 1;
pub const __LITTLE_ENDIAN: u32 = 1234;
pub const __BIG_ENDIAN: u32 = 4321;
pub const __PDP_ENDIAN: u32 = 3412;
pub const __BYTE_ORDER: u32 = 1234;
pub const __FLOAT_WORD_ORDER: u32 = 1234;
pub const LITTLE_ENDIAN: u32 = 1234;
pub const BIG_ENDIAN: u32 = 4321;
pub const PDP_ENDIAN: u32 = 3412;
pub const BYTE_ORDER: u32 = 1234;
pub const _BITS_BYTESWAP_H: u32 = 1;
pub const _BITS_UINTN_IDENTITY_H: u32 = 1;
pub const _SYS_SELECT_H: u32 = 1;
pub const __FD_ZERO_STOS: &'static [u8; 6usize] = b"stosq\0";
pub const __sigset_t_defined: u32 = 1;
pub const __timeval_defined: u32 = 1;
pub const _STRUCT_TIMESPEC: u32 = 1;
pub const FD_SETSIZE: u32 = 1024;
pub const _BITS_PTHREADTYPES_COMMON_H: u32 = 1;
pub const _THREAD_SHARED_TYPES_H: u32 = 1;
pub const _BITS_PTHREADTYPES_ARCH_H: u32 = 1;
pub const __SIZEOF_PTHREAD_MUTEX_T: u32 = 40;
pub const __SIZEOF_PTHREAD_ATTR_T: u32 = 56;
pub const __SIZEOF_PTHREAD_RWLOCK_T: u32 = 56;
pub const __SIZEOF_PTHREAD_BARRIER_T: u32 = 32;
pub const __SIZEOF_PTHREAD_MUTEXATTR_T: u32 = 4;
pub const __SIZEOF_PTHREAD_COND_T: u32 = 48;
pub const __SIZEOF_PTHREAD_CONDATTR_T: u32 = 4;
pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: u32 = 8;
pub const __SIZEOF_PTHREAD_BARRIERATTR_T: u32 = 4;
pub const __PTHREAD_MUTEX_LOCK_ELISION: u32 = 1;
pub const __PTHREAD_MUTEX_NUSERS_AFTER_KIND: u32 = 0;
pub const __PTHREAD_MUTEX_USE_UNION: u32 = 0;
pub const __PTHREAD_RWLOCK_INT_FLAGS_SHARED: u32 = 1;
pub const __PTHREAD_MUTEX_HAVE_PREV: u32 = 1;
pub const __have_pthread_attr_t: u32 = 1;
pub const _ALLOCA_H: u32 = 1;
pub const FLAC__MAX_METADATA_TYPE_CODE: u32 = 126;
pub const FLAC__MIN_BLOCK_SIZE: u32 = 16;
pub const FLAC__MAX_BLOCK_SIZE: u32 = 65535;
pub const FLAC__SUBSET_MAX_BLOCK_SIZE_48000HZ: u32 = 4608;
pub const FLAC__MAX_CHANNELS: u32 = 8;
pub const FLAC__MIN_BITS_PER_SAMPLE: u32 = 4;
pub const FLAC__MAX_BITS_PER_SAMPLE: u32 = 32;
pub const FLAC__REFERENCE_CODEC_MAX_BITS_PER_SAMPLE: u32 = 24;
pub const FLAC__MAX_SAMPLE_RATE: u32 = 655350;
pub const FLAC__MAX_LPC_ORDER: u32 = 32;
pub const FLAC__SUBSET_MAX_LPC_ORDER_48000HZ: u32 = 12;
pub const FLAC__MIN_QLP_COEFF_PRECISION: u32 = 5;
pub const FLAC__MAX_QLP_COEFF_PRECISION: u32 = 15;
pub const FLAC__MAX_FIXED_ORDER: u32 = 4;
pub const FLAC__MAX_RICE_PARTITION_ORDER: u32 = 15;
pub const FLAC__SUBSET_MAX_RICE_PARTITION_ORDER: u32 = 8;
pub const FLAC__STREAM_SYNC_LENGTH: u32 = 4;
pub const FLAC__STREAM_METADATA_STREAMINFO_LENGTH: u32 = 34;
pub const FLAC__STREAM_METADATA_SEEKPOINT_LENGTH: u32 = 18;
pub const FLAC__STREAM_METADATA_HEADER_LENGTH: u32 = 4;
pub const _STDIO_H: u32 = 1;
pub const __GNUC_VA_LIST: u32 = 1;
pub const _____fpos_t_defined: u32 = 1;
pub const ____mbstate_t_defined: u32 = 1;
pub const _____fpos64_t_defined: u32 = 1;
pub const ____FILE_defined: u32 = 1;
pub const __FILE_defined: u32 = 1;
pub const __struct_FILE_defined: u32 = 1;
pub const _IO_EOF_SEEN: u32 = 16;
pub const _IO_ERR_SEEN: u32 = 32;
pub const _IO_USER_LOCK: u32 = 32768;
pub const _IOFBF: u32 = 0;
pub const _IOLBF: u32 = 1;
pub const _IONBF: u32 = 2;
pub const BUFSIZ: u32 = 8192;
pub const EOF: i32 = -1;
pub const SEEK_SET: u32 = 0;
pub const SEEK_CUR: u32 = 1;
pub const SEEK_END: u32 = 2;
pub const P_tmpdir: &'static [u8; 5usize] = b"/tmp\0";
pub const _BITS_STDIO_LIM_H: u32 = 1;
pub const L_tmpnam: u32 = 20;
pub const TMP_MAX: u32 = 238328;
pub const FILENAME_MAX: u32 = 4096;
pub const L_ctermid: u32 = 9;
pub const FOPEN_MAX: u32 = 16;
extern "C" {
    #[link_name = "\u{1}FLAC_API_SUPPORTS_OGG_FLAC"]
    pub static mut FLAC_API_SUPPORTS_OGG_FLAC: ::std::os::raw::c_int;
}
pub type __u_char = ::std::os::raw::c_uchar;
pub type __u_short = ::std::os::raw::c_ushort;
pub type __u_int = ::std::os::raw::c_uint;
pub type __u_long = ::std::os::raw::c_ulong;
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_long;
pub type __uint64_t = ::std::os::raw::c_ulong;
pub type __int_least8_t = __int8_t;
pub type __uint_least8_t = __uint8_t;
pub type __int_least16_t = __int16_t;
pub type __uint_least16_t = __uint16_t;
pub type __int_least32_t = __int32_t;
pub type __uint_least32_t = __uint32_t;
pub type __int_least64_t = __int64_t;
pub type __uint_least64_t = __uint64_t;
pub type __quad_t = ::std::os::raw::c_long;
pub type __u_quad_t = ::std::os::raw::c_ulong;
pub type __intmax_t = ::std::os::raw::c_long;
pub type __uintmax_t = ::std::os::raw::c_ulong;
pub type __dev_t = ::std::os::raw::c_ulong;
pub type __uid_t = ::std::os::raw::c_uint;
pub type __gid_t = ::std::os::raw::c_uint;
pub type __ino_t = ::std::os::raw::c_ulong;
pub type __ino64_t = ::std::os::raw::c_ulong;
pub type __mode_t = ::std::os::raw::c_uint;
pub type __nlink_t = ::std::os::raw::c_ulong;
pub type __off_t = ::std::os::raw::c_long;
pub type __off64_t = ::std::os::raw::c_long;
pub type __pid_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __fsid_t {
    pub __val: [::std::os::raw::c_int; 2usize],
}
pub type __clock_t = ::std::os::raw::c_long;
pub type __rlim_t = ::std::os::raw::c_ulong;
pub type __rlim64_t = ::std::os::raw::c_ulong;
pub type __id_t = ::std::os::raw::c_uint;
pub type __time_t = ::std::os::raw::c_long;
pub type __useconds_t = ::std::os::raw::c_uint;
pub type __suseconds_t = ::std::os::raw::c_long;
pub type __daddr_t = ::std::os::raw::c_int;
pub type __key_t = ::std::os::raw::c_int;
pub type __clockid_t = ::std::os::raw::c_int;
pub type __timer_t = *mut ::std::os::raw::c_void;
pub type __blksize_t = ::std::os::raw::c_long;
pub type __blkcnt_t = ::std::os::raw::c_long;
pub type __blkcnt64_t = ::std::os::raw::c_long;
pub type __fsblkcnt_t = ::std::os::raw::c_ulong;
pub type __fsblkcnt64_t = ::std::os::raw::c_ulong;
pub type __fsfilcnt_t = ::std::os::raw::c_ulong;
pub type __fsfilcnt64_t = ::std::os::raw::c_ulong;
pub type __fsword_t = ::std::os::raw::c_long;
pub type __ssize_t = ::std::os::raw::c_long;
pub type __syscall_slong_t = ::std::os::raw::c_long;
pub type __syscall_ulong_t = ::std::os::raw::c_ulong;
pub type __loff_t = __off64_t;
pub type __caddr_t = *mut ::std::os::raw::c_char;
pub type __intptr_t = ::std::os::raw::c_long;
pub type __socklen_t = ::std::os::raw::c_uint;
pub type __sig_atomic_t = ::std::os::raw::c_int;
pub type int_least8_t = __int_least8_t;
pub type int_least16_t = __int_least16_t;
pub type int_least32_t = __int_least32_t;
pub type int_least64_t = __int_least64_t;
pub type uint_least8_t = __uint_least8_t;
pub type uint_least16_t = __uint_least16_t;
pub type uint_least32_t = __uint_least32_t;
pub type uint_least64_t = __uint_least64_t;
pub type int_fast8_t = ::std::os::raw::c_schar;
pub type int_fast16_t = ::std::os::raw::c_long;
pub type int_fast32_t = ::std::os::raw::c_long;
pub type int_fast64_t = ::std::os::raw::c_long;
pub type uint_fast8_t = ::std::os::raw::c_uchar;
pub type uint_fast16_t = ::std::os::raw::c_ulong;
pub type uint_fast32_t = ::std::os::raw::c_ulong;
pub type uint_fast64_t = ::std::os::raw::c_ulong;
pub type intmax_t = __intmax_t;
pub type uintmax_t = __uintmax_t;
pub type FLAC__int8 = i8;
pub type FLAC__uint8 = u8;
pub type FLAC__int16 = i16;
pub type FLAC__int32 = i32;
pub type FLAC__int64 = i64;
pub type FLAC__uint16 = u16;
pub type FLAC__uint32 = u32;
pub type FLAC__uint64 = u64;
pub type FLAC__bool = ::std::os::raw::c_int;
pub type FLAC__byte = FLAC__uint8;
pub type wchar_t = ::std::os::raw::c_int;
pub type _Float32 = f32;
pub type _Float64 = f64;
pub type _Float32x = f64;
pub type _Float64x = u128;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct div_t {
    pub quot: ::std::os::raw::c_int,
    pub rem: ::std::os::raw::c_int,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ldiv_t {
    pub quot: ::std::os::raw::c_long,
    pub rem: ::std::os::raw::c_long,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lldiv_t {
    pub quot: ::std::os::raw::c_longlong,
    pub rem: ::std::os::raw::c_longlong,
}
extern "C" {
    pub fn __ctype_get_mb_cur_max() -> usize;
}
extern "C" {
    pub fn atof(__nptr: *const ::std::os::raw::c_char) -> f64;
}
extern "C" {
    pub fn atoi(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn atol(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long;
}
extern "C" {
    pub fn atoll(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong;
}
extern "C" {
    pub fn strtod(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
    ) -> f64;
}
extern "C" {
    pub fn strtof(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
    ) -> f32;
}
extern "C" {
    pub fn strtold(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
    ) -> u128;
}
extern "C" {
    pub fn strtol(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __base: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_long;
}
extern "C" {
    pub fn strtoul(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __base: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_ulong;
}
extern "C" {
    pub fn strtoq(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __base: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_longlong;
}
extern "C" {
    pub fn strtouq(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __base: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_ulonglong;
}
extern "C" {
    pub fn strtoll(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __base: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_longlong;
}
extern "C" {
    pub fn strtoull(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __base: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_ulonglong;
}
extern "C" {
    pub fn l64a(__n: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn a64l(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long;
}
pub type u_char = __u_char;
pub type u_short = __u_short;
pub type u_int = __u_int;
pub type u_long = __u_long;
pub type quad_t = __quad_t;
pub type u_quad_t = __u_quad_t;
pub type fsid_t = __fsid_t;
pub type loff_t = __loff_t;
pub type ino_t = __ino_t;
pub type dev_t = __dev_t;
pub type gid_t = __gid_t;
pub type mode_t = __mode_t;
pub type nlink_t = __nlink_t;
pub type uid_t = __uid_t;
pub type off_t = __off_t;
pub type pid_t = __pid_t;
pub type id_t = __id_t;
pub type daddr_t = __daddr_t;
pub type caddr_t = __caddr_t;
pub type key_t = __key_t;
pub type clock_t = __clock_t;
pub type clockid_t = __clockid_t;
pub type time_t = __time_t;
pub type timer_t = __timer_t;
pub type ulong = ::std::os::raw::c_ulong;
pub type ushort = ::std::os::raw::c_ushort;
pub type uint = ::std::os::raw::c_uint;
pub type u_int8_t = ::std::os::raw::c_uchar;
pub type u_int16_t = ::std::os::raw::c_ushort;
pub type u_int32_t = ::std::os::raw::c_uint;
pub type u_int64_t = ::std::os::raw::c_ulong;
pub type register_t = ::std::os::raw::c_long;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __sigset_t {
    pub __val: [::std::os::raw::c_ulong; 16usize],
}
pub type sigset_t = __sigset_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct timeval {
    pub tv_sec: __time_t,
    pub tv_usec: __suseconds_t,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct timespec {
    pub tv_sec: __time_t,
    pub tv_nsec: __syscall_slong_t,
}
pub type suseconds_t = __suseconds_t;
pub type __fd_mask = ::std::os::raw::c_long;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct fd_set {
    pub __fds_bits: [__fd_mask; 16usize],
}
pub type fd_mask = __fd_mask;
extern "C" {
    pub fn select(
        __nfds: ::std::os::raw::c_int,
        __readfds: *mut fd_set,
        __writefds: *mut fd_set,
        __exceptfds: *mut fd_set,
        __timeout: *mut timeval,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn pselect(
        __nfds: ::std::os::raw::c_int,
        __readfds: *mut fd_set,
        __writefds: *mut fd_set,
        __exceptfds: *mut fd_set,
        __timeout: *const timespec,
        __sigmask: *const __sigset_t,
    ) -> ::std::os::raw::c_int;
}
pub type blksize_t = __blksize_t;
pub type blkcnt_t = __blkcnt_t;
pub type fsblkcnt_t = __fsblkcnt_t;
pub type fsfilcnt_t = __fsfilcnt_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_rwlock_arch_t {
    pub __readers: ::std::os::raw::c_uint,
    pub __writers: ::std::os::raw::c_uint,
    pub __wrphase_futex: ::std::os::raw::c_uint,
    pub __writers_futex: ::std::os::raw::c_uint,
    pub __pad3: ::std::os::raw::c_uint,
    pub __pad4: ::std::os::raw::c_uint,
    pub __cur_writer: ::std::os::raw::c_int,
    pub __shared: ::std::os::raw::c_int,
    pub __rwelision: ::std::os::raw::c_schar,
    pub __pad1: [::std::os::raw::c_uchar; 7usize],
    pub __pad2: ::std::os::raw::c_ulong,
    pub __flags: ::std::os::raw::c_uint,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_internal_list {
    pub __prev: *mut __pthread_internal_list,
    pub __next: *mut __pthread_internal_list,
}
pub type __pthread_list_t = __pthread_internal_list;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_mutex_s {
    pub __lock: ::std::os::raw::c_int,
    pub __count: ::std::os::raw::c_uint,
    pub __owner: ::std::os::raw::c_int,
    pub __nusers: ::std::os::raw::c_uint,
    pub __kind: ::std::os::raw::c_int,
    pub __spins: ::std::os::raw::c_short,
    pub __elision: ::std::os::raw::c_short,
    pub __list: __pthread_list_t,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct __pthread_cond_s {
    pub __bindgen_anon_1: __pthread_cond_s__bindgen_ty_1,
    pub __bindgen_anon_2: __pthread_cond_s__bindgen_ty_2,
    pub __g_refs: [::std::os::raw::c_uint; 2usize],
    pub __g_size: [::std::os::raw::c_uint; 2usize],
    pub __g1_orig_size: ::std::os::raw::c_uint,
    pub __wrefs: ::std::os::raw::c_uint,
    pub __g_signals: [::std::os::raw::c_uint; 2usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __pthread_cond_s__bindgen_ty_1 {
    pub __wseq: ::std::os::raw::c_ulonglong,
    pub __wseq32: __pthread_cond_s__bindgen_ty_1__bindgen_ty_1,
    _bindgen_union_align: u64,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 {
    pub __low: ::std::os::raw::c_uint,
    pub __high: ::std::os::raw::c_uint,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __pthread_cond_s__bindgen_ty_2 {
    pub __g1_start: ::std::os::raw::c_ulonglong,
    pub __g1_start32: __pthread_cond_s__bindgen_ty_2__bindgen_ty_1,
    _bindgen_union_align: u64,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 {
    pub __low: ::std::os::raw::c_uint,
    pub __high: ::std::os::raw::c_uint,
}
pub type pthread_t = ::std::os::raw::c_ulong;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_mutexattr_t {
    pub __size: [::std::os::raw::c_char; 4usize],
    pub __align: ::std::os::raw::c_int,
    _bindgen_union_align: u32,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_condattr_t {
    pub __size: [::std::os::raw::c_char; 4usize],
    pub __align: ::std::os::raw::c_int,
    _bindgen_union_align: u32,
}
pub type pthread_key_t = ::std::os::raw::c_uint;
pub type pthread_once_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_attr_t {
    pub __size: [::std::os::raw::c_char; 56usize],
    pub __align: ::std::os::raw::c_long,
    _bindgen_union_align: [u64; 7usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_mutex_t {
    pub __data: __pthread_mutex_s,
    pub __size: [::std::os::raw::c_char; 40usize],
    pub __align: ::std::os::raw::c_long,
    _bindgen_union_align: [u64; 5usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_cond_t {
    pub __data: __pthread_cond_s,
    pub __size: [::std::os::raw::c_char; 48usize],
    pub __align: ::std::os::raw::c_longlong,
    _bindgen_union_align: [u64; 6usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_rwlock_t {
    pub __data: __pthread_rwlock_arch_t,
    pub __size: [::std::os::raw::c_char; 56usize],
    pub __align: ::std::os::raw::c_long,
    _bindgen_union_align: [u64; 7usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_rwlockattr_t {
    pub __size: [::std::os::raw::c_char; 8usize],
    pub __align: ::std::os::raw::c_long,
    _bindgen_union_align: u64,
}
pub type pthread_spinlock_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_barrier_t {
    pub __size: [::std::os::raw::c_char; 32usize],
    pub __align: ::std::os::raw::c_long,
    _bindgen_union_align: [u64; 4usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_barrierattr_t {
    pub __size: [::std::os::raw::c_char; 4usize],
    pub __align: ::std::os::raw::c_int,
    _bindgen_union_align: u32,
}
extern "C" {
    pub fn random() -> ::std::os::raw::c_long;
}
extern "C" {
    pub fn srandom(__seed: ::std::os::raw::c_uint);
}
extern "C" {
    pub fn initstate(
        __seed: ::std::os::raw::c_uint,
        __statebuf: *mut ::std::os::raw::c_char,
        __statelen: usize,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn setstate(__statebuf: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct random_data {
    pub fptr: *mut i32,
    pub rptr: *mut i32,
    pub state: *mut i32,
    pub rand_type: ::std::os::raw::c_int,
    pub rand_deg: ::std::os::raw::c_int,
    pub rand_sep: ::std::os::raw::c_int,
    pub end_ptr: *mut i32,
}
extern "C" {
    pub fn random_r(__buf: *mut random_data, __result: *mut i32) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn srandom_r(
        __seed: ::std::os::raw::c_uint,
        __buf: *mut random_data,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn initstate_r(
        __seed: ::std::os::raw::c_uint,
        __statebuf: *mut ::std::os::raw::c_char,
        __statelen: usize,
        __buf: *mut random_data,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn setstate_r(
        __statebuf: *mut ::std::os::raw::c_char,
        __buf: *mut random_data,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn rand() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn srand(__seed: ::std::os::raw::c_uint);
}
extern "C" {
    pub fn rand_r(__seed: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn drand48() -> f64;
}
extern "C" {
    pub fn erand48(__xsubi: *mut ::std::os::raw::c_ushort) -> f64;
}
extern "C" {
    pub fn lrand48() -> ::std::os::raw::c_long;
}
extern "C" {
    pub fn nrand48(__xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long;
}
extern "C" {
    pub fn mrand48() -> ::std::os::raw::c_long;
}
extern "C" {
    pub fn jrand48(__xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long;
}
extern "C" {
    pub fn srand48(__seedval: ::std::os::raw::c_long);
}
extern "C" {
    pub fn seed48(__seed16v: *mut ::std::os::raw::c_ushort) -> *mut ::std::os::raw::c_ushort;
}
extern "C" {
    pub fn lcong48(__param: *mut ::std::os::raw::c_ushort);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drand48_data {
    pub __x: [::std::os::raw::c_ushort; 3usize],
    pub __old_x: [::std::os::raw::c_ushort; 3usize],
    pub __c: ::std::os::raw::c_ushort,
    pub __init: ::std::os::raw::c_ushort,
    pub __a: ::std::os::raw::c_ulonglong,
}
extern "C" {
    pub fn drand48_r(__buffer: *mut drand48_data, __result: *mut f64) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn erand48_r(
        __xsubi: *mut ::std::os::raw::c_ushort,
        __buffer: *mut drand48_data,
        __result: *mut f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn lrand48_r(
        __buffer: *mut drand48_data,
        __result: *mut ::std::os::raw::c_long,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn nrand48_r(
        __xsubi: *mut ::std::os::raw::c_ushort,
        __buffer: *mut drand48_data,
        __result: *mut ::std::os::raw::c_long,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mrand48_r(
        __buffer: *mut drand48_data,
        __result: *mut ::std::os::raw::c_long,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn jrand48_r(
        __xsubi: *mut ::std::os::raw::c_ushort,
        __buffer: *mut drand48_data,
        __result: *mut ::std::os::raw::c_long,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn srand48_r(
        __seedval: ::std::os::raw::c_long,
        __buffer: *mut drand48_data,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn seed48_r(
        __seed16v: *mut ::std::os::raw::c_ushort,
        __buffer: *mut drand48_data,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn lcong48_r(
        __param: *mut ::std::os::raw::c_ushort,
        __buffer: *mut drand48_data,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn malloc(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn calloc(
        __nmemb: ::std::os::raw::c_ulong,
        __size: ::std::os::raw::c_ulong,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn realloc(
        __ptr: *mut ::std::os::raw::c_void,
        __size: ::std::os::raw::c_ulong,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn reallocarray(
        __ptr: *mut ::std::os::raw::c_void,
        __nmemb: usize,
        __size: usize,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn free(__ptr: *mut ::std::os::raw::c_void);
}
extern "C" {
    pub fn alloca(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn valloc(__size: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn posix_memalign(
        __memptr: *mut *mut ::std::os::raw::c_void,
        __alignment: usize,
        __size: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn aligned_alloc(__alignment: usize, __size: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn abort();
}
extern "C" {
    pub fn atexit(__func: ::std::option::Option<unsafe extern "C" fn()>) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn at_quick_exit(
        __func: ::std::option::Option<unsafe extern "C" fn()>,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn on_exit(
        __func: ::std::option::Option<
            unsafe extern "C" fn(__func: ::std::os::raw::c_int, __arg: *mut ::std::os::raw::c_void),
        >,
        __arg: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn exit(__status: ::std::os::raw::c_int);
}
extern "C" {
    pub fn quick_exit(__status: ::std::os::raw::c_int);
}
extern "C" {
    pub fn _Exit(__status: ::std::os::raw::c_int);
}
extern "C" {
    pub fn getenv(__name: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn putenv(__string: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn setenv(
        __name: *const ::std::os::raw::c_char,
        __value: *const ::std::os::raw::c_char,
        __replace: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn unsetenv(__name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn clearenv() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mktemp(__template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn mkstemp(__template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mkstemps(
        __template: *mut ::std::os::raw::c_char,
        __suffixlen: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mkdtemp(__template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn system(__command: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn realpath(
        __name: *const ::std::os::raw::c_char,
        __resolved: *mut ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
pub type __compar_fn_t = ::std::option::Option<
    unsafe extern "C" fn(
        arg1: *const ::std::os::raw::c_void,
        arg2: *const ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
extern "C" {
    pub fn bsearch(
        __key: *const ::std::os::raw::c_void,
        __base: *const ::std::os::raw::c_void,
        __nmemb: usize,
        __size: usize,
        __compar: __compar_fn_t,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn qsort(
        __base: *mut ::std::os::raw::c_void,
        __nmemb: usize,
        __size: usize,
        __compar: __compar_fn_t,
    );
}
extern "C" {
    pub fn abs(__x: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn labs(__x: ::std::os::raw::c_long) -> ::std::os::raw::c_long;
}
extern "C" {
    pub fn llabs(__x: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong;
}
extern "C" {
    pub fn div(__numer: ::std::os::raw::c_int, __denom: ::std::os::raw::c_int) -> div_t;
}
extern "C" {
    pub fn ldiv(__numer: ::std::os::raw::c_long, __denom: ::std::os::raw::c_long) -> ldiv_t;
}
extern "C" {
    pub fn lldiv(
        __numer: ::std::os::raw::c_longlong,
        __denom: ::std::os::raw::c_longlong,
    ) -> lldiv_t;
}
extern "C" {
    pub fn ecvt(
        __value: f64,
        __ndigit: ::std::os::raw::c_int,
        __decpt: *mut ::std::os::raw::c_int,
        __sign: *mut ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn fcvt(
        __value: f64,
        __ndigit: ::std::os::raw::c_int,
        __decpt: *mut ::std::os::raw::c_int,
        __sign: *mut ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn gcvt(
        __value: f64,
        __ndigit: ::std::os::raw::c_int,
        __buf: *mut ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn qecvt(
        __value: u128,
        __ndigit: ::std::os::raw::c_int,
        __decpt: *mut ::std::os::raw::c_int,
        __sign: *mut ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn qfcvt(
        __value: u128,
        __ndigit: ::std::os::raw::c_int,
        __decpt: *mut ::std::os::raw::c_int,
        __sign: *mut ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn qgcvt(
        __value: u128,
        __ndigit: ::std::os::raw::c_int,
        __buf: *mut ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn ecvt_r(
        __value: f64,
        __ndigit: ::std::os::raw::c_int,
        __decpt: *mut ::std::os::raw::c_int,
        __sign: *mut ::std::os::raw::c_int,
        __buf: *mut ::std::os::raw::c_char,
        __len: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fcvt_r(
        __value: f64,
        __ndigit: ::std::os::raw::c_int,
        __decpt: *mut ::std::os::raw::c_int,
        __sign: *mut ::std::os::raw::c_int,
        __buf: *mut ::std::os::raw::c_char,
        __len: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn qecvt_r(
        __value: u128,
        __ndigit: ::std::os::raw::c_int,
        __decpt: *mut ::std::os::raw::c_int,
        __sign: *mut ::std::os::raw::c_int,
        __buf: *mut ::std::os::raw::c_char,
        __len: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn qfcvt_r(
        __value: u128,
        __ndigit: ::std::os::raw::c_int,
        __decpt: *mut ::std::os::raw::c_int,
        __sign: *mut ::std::os::raw::c_int,
        __buf: *mut ::std::os::raw::c_char,
        __len: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mblen(__s: *const ::std::os::raw::c_char, __n: usize) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mbtowc(
        __pwc: *mut wchar_t,
        __s: *const ::std::os::raw::c_char,
        __n: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn wctomb(__s: *mut ::std::os::raw::c_char, __wchar: wchar_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mbstowcs(__pwcs: *mut wchar_t, __s: *const ::std::os::raw::c_char, __n: usize) -> usize;
}
extern "C" {
    pub fn wcstombs(__s: *mut ::std::os::raw::c_char, __pwcs: *const wchar_t, __n: usize) -> usize;
}
extern "C" {
    pub fn rpmatch(__response: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn getsubopt(
        __optionp: *mut *mut ::std::os::raw::c_char,
        __tokens: *const *mut ::std::os::raw::c_char,
        __valuep: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn getloadavg(__loadavg: *mut f64, __nelem: ::std::os::raw::c_int)
        -> ::std::os::raw::c_int;
}
#[doc = " This is the opaque handle type used by the callbacks.  Typically"]
#[doc = "  this is a \\c FILE* or address of a file descriptor."]
pub type FLAC__IOHandle = *mut ::std::os::raw::c_void;
#[doc = " Signature for the read callback."]
#[doc = "  The signature and semantics match POSIX fread() implementations"]
#[doc = "  and can generally be used interchangeably."]
#[doc = ""]
#[doc = " \\param  ptr      The address of the read buffer."]
#[doc = " \\param  size     The size of the records to be read."]
#[doc = " \\param  nmemb    The number of records to be read."]
#[doc = " \\param  handle   The handle to the data source."]
#[doc = " \\retval size_t"]
#[doc = "    The number of records read."]
pub type FLAC__IOCallback_Read = ::std::option::Option<
    unsafe extern "C" fn(
        ptr: *mut ::std::os::raw::c_void,
        size: usize,
        nmemb: usize,
        handle: FLAC__IOHandle,
    ) -> usize,
>;
#[doc = " Signature for the write callback."]
#[doc = "  The signature and semantics match POSIX fwrite() implementations"]
#[doc = "  and can generally be used interchangeably."]
#[doc = ""]
#[doc = " \\param  ptr      The address of the write buffer."]
#[doc = " \\param  size     The size of the records to be written."]
#[doc = " \\param  nmemb    The number of records to be written."]
#[doc = " \\param  handle   The handle to the data source."]
#[doc = " \\retval size_t"]
#[doc = "    The number of records written."]
pub type FLAC__IOCallback_Write = ::std::option::Option<
    unsafe extern "C" fn(
        ptr: *const ::std::os::raw::c_void,
        size: usize,
        nmemb: usize,
        handle: FLAC__IOHandle,
    ) -> usize,
>;
#[doc = " Signature for the seek callback."]
#[doc = "  The signature and semantics mostly match POSIX fseek() WITH ONE IMPORTANT"]
#[doc = "  EXCEPTION: the offset is a 64-bit type whereas fseek() is generally \'long\'"]
#[doc = "  and 32-bits wide."]
#[doc = ""]
#[doc = " \\param  handle   The handle to the data source."]
#[doc = " \\param  offset   The new position, relative to \\a whence"]
#[doc = " \\param  whence   \\c SEEK_SET, \\c SEEK_CUR, or \\c SEEK_END"]
#[doc = " \\retval int"]
#[doc = "    \\c 0 on success, \\c -1 on error."]
pub type FLAC__IOCallback_Seek = ::std::option::Option<
    unsafe extern "C" fn(
        handle: FLAC__IOHandle,
        offset: FLAC__int64,
        whence: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int,
>;
#[doc = " Signature for the tell callback."]
#[doc = "  The signature and semantics mostly match POSIX ftell() WITH ONE IMPORTANT"]
#[doc = "  EXCEPTION: the offset is a 64-bit type whereas ftell() is generally \'long\'"]
#[doc = "  and 32-bits wide."]
#[doc = ""]
#[doc = " \\param  handle   The handle to the data source."]
#[doc = " \\retval FLAC__int64"]
#[doc = "    The current position on success, \\c -1 on error."]
pub type FLAC__IOCallback_Tell =
    ::std::option::Option<unsafe extern "C" fn(handle: FLAC__IOHandle) -> FLAC__int64>;
#[doc = " Signature for the EOF callback."]
#[doc = "  The signature and semantics mostly match POSIX feof() but WATCHOUT:"]
#[doc = "  on many systems, feof() is a macro, so in this case a wrapper function"]
#[doc = "  must be provided instead."]
#[doc = ""]
#[doc = " \\param  handle   The handle to the data source."]
#[doc = " \\retval int"]
#[doc = "    \\c 0 if not at end of file, nonzero if at end of file."]
pub type FLAC__IOCallback_Eof =
    ::std::option::Option<unsafe extern "C" fn(handle: FLAC__IOHandle) -> ::std::os::raw::c_int>;
#[doc = " Signature for the close callback."]
#[doc = "  The signature and semantics match POSIX fclose() implementations"]
#[doc = "  and can generally be used interchangeably."]
#[doc = ""]
#[doc = " \\param  handle   The handle to the data source."]
#[doc = " \\retval int"]
#[doc = "    \\c 0 on success, \\c EOF on error."]
pub type FLAC__IOCallback_Close =
    ::std::option::Option<unsafe extern "C" fn(handle: FLAC__IOHandle) -> ::std::os::raw::c_int>;
#[doc = " A structure for holding a set of callbacks."]
#[doc = "  Each FLAC interface that requires a FLAC__IOCallbacks structure will"]
#[doc = "  describe which of the callbacks are required.  The ones that are not"]
#[doc = "  required may be set to NULL."]
#[doc = ""]
#[doc = "  If the seek requirement for an interface is optional, you can signify that"]
#[doc = "  a data sorce is not seekable by setting the \\a seek field to \\c NULL."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLAC__IOCallbacks {
    pub read: FLAC__IOCallback_Read,
    pub write: FLAC__IOCallback_Write,
    pub seek: FLAC__IOCallback_Seek,
    pub tell: FLAC__IOCallback_Tell,
    pub eof: FLAC__IOCallback_Eof,
    pub close: FLAC__IOCallback_Close,
}
extern "C" {
    #[link_name = "\u{1}FLAC__VERSION_STRING"]
    pub static mut FLAC__VERSION_STRING: *const ::std::os::raw::c_char;
}
extern "C" {
    #[link_name = "\u{1}FLAC__VENDOR_STRING"]
    pub static mut FLAC__VENDOR_STRING: *const ::std::os::raw::c_char;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_SYNC_STRING"]
    pub static mut FLAC__STREAM_SYNC_STRING: [FLAC__byte; 4usize];
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_SYNC"]
    pub static FLAC__STREAM_SYNC: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_SYNC_LEN"]
    pub static FLAC__STREAM_SYNC_LEN: ::std::os::raw::c_uint;
}
pub const FLAC__EntropyCodingMethodType_FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE:
    FLAC__EntropyCodingMethodType = 0;
pub const FLAC__EntropyCodingMethodType_FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2:
    FLAC__EntropyCodingMethodType = 1;
#[doc = " An enumeration of the available entropy coding methods."]
pub type FLAC__EntropyCodingMethodType = u32;
extern "C" {
    #[link_name = "\u{1}FLAC__EntropyCodingMethodTypeString"]
    pub static mut FLAC__EntropyCodingMethodTypeString: [*const ::std::os::raw::c_char; 0usize];
}
#[doc = " Contents of a Rice partitioned residual"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLAC__EntropyCodingMethod_PartitionedRiceContents {
    pub parameters: *mut ::std::os::raw::c_uint,
    pub raw_bits: *mut ::std::os::raw::c_uint,
    pub capacity_by_order: ::std::os::raw::c_uint,
}
#[doc = " Header for a Rice partitioned residual.  (c.f. <A HREF=\"../format.html#partitioned_rice\">format specification</A>)"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLAC__EntropyCodingMethod_PartitionedRice {
    pub order: ::std::os::raw::c_uint,
    pub contents: *const FLAC__EntropyCodingMethod_PartitionedRiceContents,
}
extern "C" {
    #[link_name = "\u{1}FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_ORDER_LEN"]
    pub static FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_ORDER_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_PARAMETER_LEN"]
    pub static FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_PARAMETER_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_PARAMETER_LEN"]
    pub static FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_PARAMETER_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_RAW_LEN"]
    pub static FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_RAW_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_ESCAPE_PARAMETER"]
    pub static FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_ESCAPE_PARAMETER:
        ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_ESCAPE_PARAMETER"]
    pub static FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_ESCAPE_PARAMETER:
        ::std::os::raw::c_uint;
}
#[doc = " Header for the entropy coding method.  (c.f. <A HREF=\"../format.html#residual\">format specification</A>)"]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct FLAC__EntropyCodingMethod {
    pub type_: FLAC__EntropyCodingMethodType,
    pub data: FLAC__EntropyCodingMethod__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union FLAC__EntropyCodingMethod__bindgen_ty_1 {
    pub partitioned_rice: FLAC__EntropyCodingMethod_PartitionedRice,
    _bindgen_union_align: [u64; 2usize],
}
extern "C" {
    #[link_name = "\u{1}FLAC__ENTROPY_CODING_METHOD_TYPE_LEN"]
    pub static FLAC__ENTROPY_CODING_METHOD_TYPE_LEN: ::std::os::raw::c_uint;
}
#[doc = "< constant signal"]
pub const FLAC__SubframeType_FLAC__SUBFRAME_TYPE_CONSTANT: FLAC__SubframeType = 0;
#[doc = "< uncompressed signal"]
pub const FLAC__SubframeType_FLAC__SUBFRAME_TYPE_VERBATIM: FLAC__SubframeType = 1;
#[doc = "< fixed polynomial prediction"]
pub const FLAC__SubframeType_FLAC__SUBFRAME_TYPE_FIXED: FLAC__SubframeType = 2;
#[doc = "< linear prediction"]
pub const FLAC__SubframeType_FLAC__SUBFRAME_TYPE_LPC: FLAC__SubframeType = 3;
#[doc = " An enumeration of the available subframe types."]
pub type FLAC__SubframeType = u32;
extern "C" {
    #[link_name = "\u{1}FLAC__SubframeTypeString"]
    pub static mut FLAC__SubframeTypeString: [*const ::std::os::raw::c_char; 0usize];
}
#[doc = " CONSTANT subframe.  (c.f. <A HREF=\"../format.html#subframe_constant\">format specification</A>)"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLAC__Subframe_Constant {
    #[doc = "< The constant signal value."]
    pub value: FLAC__int32,
}
#[doc = " VERBATIM subframe.  (c.f. <A HREF=\"../format.html#subframe_verbatim\">format specification</A>)"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLAC__Subframe_Verbatim {
    #[doc = "< A pointer to verbatim signal."]
    pub data: *const FLAC__int32,
}
#[doc = " FIXED subframe.  (c.f. <A HREF=\"../format.html#subframe_fixed\">format specification</A>)"]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct FLAC__Subframe_Fixed {
    pub entropy_coding_method: FLAC__EntropyCodingMethod,
    pub order: ::std::os::raw::c_uint,
    pub warmup: [FLAC__int32; 4usize],
    pub residual: *const FLAC__int32,
}
#[doc = " LPC subframe.  (c.f. <A HREF=\"../format.html#subframe_lpc\">format specification</A>)"]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct FLAC__Subframe_LPC {
    pub entropy_coding_method: FLAC__EntropyCodingMethod,
    pub order: ::std::os::raw::c_uint,
    pub qlp_coeff_precision: ::std::os::raw::c_uint,
    pub quantization_level: ::std::os::raw::c_int,
    pub qlp_coeff: [FLAC__int32; 32usize],
    pub warmup: [FLAC__int32; 32usize],
    pub residual: *const FLAC__int32,
}
extern "C" {
    #[link_name = "\u{1}FLAC__SUBFRAME_LPC_QLP_COEFF_PRECISION_LEN"]
    pub static FLAC__SUBFRAME_LPC_QLP_COEFF_PRECISION_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__SUBFRAME_LPC_QLP_SHIFT_LEN"]
    pub static FLAC__SUBFRAME_LPC_QLP_SHIFT_LEN: ::std::os::raw::c_uint;
}
#[doc = " FLAC subframe structure.  (c.f. <A HREF=\"../format.html#subframe\">format specification</A>)"]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct FLAC__Subframe {
    pub type_: FLAC__SubframeType,
    pub data: FLAC__Subframe__bindgen_ty_1,
    pub wasted_bits: ::std::os::raw::c_uint,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union FLAC__Subframe__bindgen_ty_1 {
    pub constant: FLAC__Subframe_Constant,
    pub fixed: FLAC__Subframe_Fixed,
    pub lpc: FLAC__Subframe_LPC,
    pub verbatim: FLAC__Subframe_Verbatim,
    _bindgen_union_align: [u64; 38usize],
}
extern "C" {
    #[link_name = "\u{1}FLAC__SUBFRAME_ZERO_PAD_LEN"]
    pub static FLAC__SUBFRAME_ZERO_PAD_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__SUBFRAME_TYPE_LEN"]
    pub static FLAC__SUBFRAME_TYPE_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__SUBFRAME_WASTED_BITS_FLAG_LEN"]
    pub static FLAC__SUBFRAME_WASTED_BITS_FLAG_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__SUBFRAME_TYPE_CONSTANT_BYTE_ALIGNED_MASK"]
    pub static FLAC__SUBFRAME_TYPE_CONSTANT_BYTE_ALIGNED_MASK: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__SUBFRAME_TYPE_VERBATIM_BYTE_ALIGNED_MASK"]
    pub static FLAC__SUBFRAME_TYPE_VERBATIM_BYTE_ALIGNED_MASK: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__SUBFRAME_TYPE_FIXED_BYTE_ALIGNED_MASK"]
    pub static FLAC__SUBFRAME_TYPE_FIXED_BYTE_ALIGNED_MASK: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__SUBFRAME_TYPE_LPC_BYTE_ALIGNED_MASK"]
    pub static FLAC__SUBFRAME_TYPE_LPC_BYTE_ALIGNED_MASK: ::std::os::raw::c_uint;
}
#[doc = "< independent channels"]
pub const FLAC__ChannelAssignment_FLAC__CHANNEL_ASSIGNMENT_INDEPENDENT: FLAC__ChannelAssignment = 0;
#[doc = "< left+side stereo"]
pub const FLAC__ChannelAssignment_FLAC__CHANNEL_ASSIGNMENT_LEFT_SIDE: FLAC__ChannelAssignment = 1;
#[doc = "< right+side stereo"]
pub const FLAC__ChannelAssignment_FLAC__CHANNEL_ASSIGNMENT_RIGHT_SIDE: FLAC__ChannelAssignment = 2;
#[doc = "< mid+side stereo"]
pub const FLAC__ChannelAssignment_FLAC__CHANNEL_ASSIGNMENT_MID_SIDE: FLAC__ChannelAssignment = 3;
#[doc = " An enumeration of the available channel assignments."]
pub type FLAC__ChannelAssignment = u32;
extern "C" {
    #[link_name = "\u{1}FLAC__ChannelAssignmentString"]
    pub static mut FLAC__ChannelAssignmentString: [*const ::std::os::raw::c_char; 0usize];
}
#[doc = "< number contains the frame number"]
pub const FLAC__FrameNumberType_FLAC__FRAME_NUMBER_TYPE_FRAME_NUMBER: FLAC__FrameNumberType = 0;
#[doc = "< number contains the sample number of first sample in frame"]
pub const FLAC__FrameNumberType_FLAC__FRAME_NUMBER_TYPE_SAMPLE_NUMBER: FLAC__FrameNumberType = 1;
#[doc = " An enumeration of the possible frame numbering methods."]
pub type FLAC__FrameNumberType = u32;
extern "C" {
    #[link_name = "\u{1}FLAC__FrameNumberTypeString"]
    pub static mut FLAC__FrameNumberTypeString: [*const ::std::os::raw::c_char; 0usize];
}
#[doc = " FLAC frame header structure.  (c.f. <A HREF=\"../format.html#frame_header\">format specification</A>)"]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct FLAC__FrameHeader {
    pub blocksize: ::std::os::raw::c_uint,
    pub sample_rate: ::std::os::raw::c_uint,
    pub channels: ::std::os::raw::c_uint,
    pub channel_assignment: FLAC__ChannelAssignment,
    pub bits_per_sample: ::std::os::raw::c_uint,
    pub number_type: FLAC__FrameNumberType,
    pub number: FLAC__FrameHeader__bindgen_ty_1,
    pub crc: FLAC__uint8,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union FLAC__FrameHeader__bindgen_ty_1 {
    pub frame_number: FLAC__uint32,
    pub sample_number: FLAC__uint64,
    _bindgen_union_align: u64,
}
extern "C" {
    #[link_name = "\u{1}FLAC__FRAME_HEADER_SYNC"]
    pub static FLAC__FRAME_HEADER_SYNC: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__FRAME_HEADER_SYNC_LEN"]
    pub static FLAC__FRAME_HEADER_SYNC_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__FRAME_HEADER_RESERVED_LEN"]
    pub static FLAC__FRAME_HEADER_RESERVED_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__FRAME_HEADER_BLOCKING_STRATEGY_LEN"]
    pub static FLAC__FRAME_HEADER_BLOCKING_STRATEGY_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__FRAME_HEADER_BLOCK_SIZE_LEN"]
    pub static FLAC__FRAME_HEADER_BLOCK_SIZE_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__FRAME_HEADER_SAMPLE_RATE_LEN"]
    pub static FLAC__FRAME_HEADER_SAMPLE_RATE_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__FRAME_HEADER_CHANNEL_ASSIGNMENT_LEN"]
    pub static FLAC__FRAME_HEADER_CHANNEL_ASSIGNMENT_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__FRAME_HEADER_BITS_PER_SAMPLE_LEN"]
    pub static FLAC__FRAME_HEADER_BITS_PER_SAMPLE_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__FRAME_HEADER_ZERO_PAD_LEN"]
    pub static FLAC__FRAME_HEADER_ZERO_PAD_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__FRAME_HEADER_CRC_LEN"]
    pub static FLAC__FRAME_HEADER_CRC_LEN: ::std::os::raw::c_uint;
}
#[doc = " FLAC frame footer structure.  (c.f. <A HREF=\"../format.html#frame_footer\">format specification</A>)"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLAC__FrameFooter {
    pub crc: FLAC__uint16,
}
extern "C" {
    #[link_name = "\u{1}FLAC__FRAME_FOOTER_CRC_LEN"]
    pub static FLAC__FRAME_FOOTER_CRC_LEN: ::std::os::raw::c_uint;
}
#[doc = " FLAC frame structure.  (c.f. <A HREF=\"../format.html#frame\">format specification</A>)"]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct FLAC__Frame {
    pub header: FLAC__FrameHeader,
    pub subframes: [FLAC__Subframe; 8usize],
    pub footer: FLAC__FrameFooter,
}
pub const FLAC__MetadataType_FLAC__METADATA_TYPE_STREAMINFO: FLAC__MetadataType = 0;
pub const FLAC__MetadataType_FLAC__METADATA_TYPE_PADDING: FLAC__MetadataType = 1;
pub const FLAC__MetadataType_FLAC__METADATA_TYPE_APPLICATION: FLAC__MetadataType = 2;
pub const FLAC__MetadataType_FLAC__METADATA_TYPE_SEEKTABLE: FLAC__MetadataType = 3;
pub const FLAC__MetadataType_FLAC__METADATA_TYPE_VORBIS_COMMENT: FLAC__MetadataType = 4;
pub const FLAC__MetadataType_FLAC__METADATA_TYPE_CUESHEET: FLAC__MetadataType = 5;
pub const FLAC__MetadataType_FLAC__METADATA_TYPE_PICTURE: FLAC__MetadataType = 6;
pub const FLAC__MetadataType_FLAC__METADATA_TYPE_UNDEFINED: FLAC__MetadataType = 7;
pub const FLAC__MetadataType_FLAC__MAX_METADATA_TYPE: FLAC__MetadataType = 126;
#[doc = " An enumeration of the available metadata block types."]
pub type FLAC__MetadataType = u32;
extern "C" {
    #[link_name = "\u{1}FLAC__MetadataTypeString"]
    pub static mut FLAC__MetadataTypeString: [*const ::std::os::raw::c_char; 0usize];
}
#[doc = " FLAC STREAMINFO structure.  (c.f. <A HREF=\"../format.html#metadata_block_streaminfo\">format specification</A>)"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLAC__StreamMetadata_StreamInfo {
    pub min_blocksize: ::std::os::raw::c_uint,
    pub max_blocksize: ::std::os::raw::c_uint,
    pub min_framesize: ::std::os::raw::c_uint,
    pub max_framesize: ::std::os::raw::c_uint,
    pub sample_rate: ::std::os::raw::c_uint,
    pub channels: ::std::os::raw::c_uint,
    pub bits_per_sample: ::std::os::raw::c_uint,
    pub total_samples: FLAC__uint64,
    pub md5sum: [FLAC__byte; 16usize],
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_STREAMINFO_MIN_BLOCK_SIZE_LEN"]
    pub static FLAC__STREAM_METADATA_STREAMINFO_MIN_BLOCK_SIZE_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_STREAMINFO_MAX_BLOCK_SIZE_LEN"]
    pub static FLAC__STREAM_METADATA_STREAMINFO_MAX_BLOCK_SIZE_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_STREAMINFO_MIN_FRAME_SIZE_LEN"]
    pub static FLAC__STREAM_METADATA_STREAMINFO_MIN_FRAME_SIZE_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_STREAMINFO_MAX_FRAME_SIZE_LEN"]
    pub static FLAC__STREAM_METADATA_STREAMINFO_MAX_FRAME_SIZE_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_STREAMINFO_SAMPLE_RATE_LEN"]
    pub static FLAC__STREAM_METADATA_STREAMINFO_SAMPLE_RATE_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_STREAMINFO_CHANNELS_LEN"]
    pub static FLAC__STREAM_METADATA_STREAMINFO_CHANNELS_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_STREAMINFO_BITS_PER_SAMPLE_LEN"]
    pub static FLAC__STREAM_METADATA_STREAMINFO_BITS_PER_SAMPLE_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_STREAMINFO_TOTAL_SAMPLES_LEN"]
    pub static FLAC__STREAM_METADATA_STREAMINFO_TOTAL_SAMPLES_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_STREAMINFO_MD5SUM_LEN"]
    pub static FLAC__STREAM_METADATA_STREAMINFO_MD5SUM_LEN: ::std::os::raw::c_uint;
}
#[doc = " FLAC PADDING structure.  (c.f. <A HREF=\"../format.html#metadata_block_padding\">format specification</A>)"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLAC__StreamMetadata_Padding {
    pub dummy: ::std::os::raw::c_int,
}
#[doc = " FLAC APPLICATION structure.  (c.f. <A HREF=\"../format.html#metadata_block_application\">format specification</A>)"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLAC__StreamMetadata_Application {
    pub id: [FLAC__byte; 4usize],
    pub data: *mut FLAC__byte,
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_APPLICATION_ID_LEN"]
    pub static FLAC__STREAM_METADATA_APPLICATION_ID_LEN: ::std::os::raw::c_uint;
}
#[doc = " SeekPoint structure used in SEEKTABLE blocks.  (c.f. <A HREF=\"../format.html#seekpoint\">format specification</A>)"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLAC__StreamMetadata_SeekPoint {
    pub sample_number: FLAC__uint64,
    pub stream_offset: FLAC__uint64,
    pub frame_samples: ::std::os::raw::c_uint,
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_SEEKPOINT_SAMPLE_NUMBER_LEN"]
    pub static FLAC__STREAM_METADATA_SEEKPOINT_SAMPLE_NUMBER_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_SEEKPOINT_STREAM_OFFSET_LEN"]
    pub static FLAC__STREAM_METADATA_SEEKPOINT_STREAM_OFFSET_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_SEEKPOINT_FRAME_SAMPLES_LEN"]
    pub static FLAC__STREAM_METADATA_SEEKPOINT_FRAME_SAMPLES_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDER"]
    pub static FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDER: FLAC__uint64;
}
#[doc = " FLAC SEEKTABLE structure.  (c.f. <A HREF=\"../format.html#metadata_block_seektable\">format specification</A>)"]
#[doc = ""]
#[doc = " \\note From the format specification:"]
#[doc = " - The seek points must be sorted by ascending sample number."]
#[doc = " - Each seek point\'s sample number must be the first sample of the"]
#[doc = "   target frame."]
#[doc = " - Each seek point\'s sample number must be unique within the table."]
#[doc = " - Existence of a SEEKTABLE block implies a correct setting of"]
#[doc = "   total_samples in the stream_info block."]
#[doc = " - Behavior is undefined when more than one SEEKTABLE block is"]
#[doc = "   present in a stream."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLAC__StreamMetadata_SeekTable {
    pub num_points: ::std::os::raw::c_uint,
    pub points: *mut FLAC__StreamMetadata_SeekPoint,
}
#[doc = " Vorbis comment entry structure used in VORBIS_COMMENT blocks.  (c.f. <A HREF=\"../format.html#metadata_block_vorbis_comment\">format specification</A>)"]
#[doc = ""]
#[doc = "  For convenience, the APIs maintain a trailing NUL character at the end of"]
#[doc = "  \\a entry which is not counted toward \\a length, i.e."]
#[doc = "  \\code strlen(entry) == length \\endcode"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLAC__StreamMetadata_VorbisComment_Entry {
    pub length: FLAC__uint32,
    pub entry: *mut FLAC__byte,
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_VORBIS_COMMENT_ENTRY_LENGTH_LEN"]
    pub static FLAC__STREAM_METADATA_VORBIS_COMMENT_ENTRY_LENGTH_LEN: ::std::os::raw::c_uint;
}
#[doc = " FLAC VORBIS_COMMENT structure.  (c.f. <A HREF=\"../format.html#metadata_block_vorbis_comment\">format specification</A>)"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLAC__StreamMetadata_VorbisComment {
    pub vendor_string: FLAC__StreamMetadata_VorbisComment_Entry,
    pub num_comments: FLAC__uint32,
    pub comments: *mut FLAC__StreamMetadata_VorbisComment_Entry,
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_VORBIS_COMMENT_NUM_COMMENTS_LEN"]
    pub static FLAC__STREAM_METADATA_VORBIS_COMMENT_NUM_COMMENTS_LEN: ::std::os::raw::c_uint;
}
#[doc = " FLAC CUESHEET track index structure.  (See the"]
#[doc = " <A HREF=\"../format.html#cuesheet_track_index\">format specification</A> for"]
#[doc = " the full description of each field.)"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLAC__StreamMetadata_CueSheet_Index {
    pub offset: FLAC__uint64,
    pub number: FLAC__byte,
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_CUESHEET_INDEX_OFFSET_LEN"]
    pub static FLAC__STREAM_METADATA_CUESHEET_INDEX_OFFSET_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_CUESHEET_INDEX_NUMBER_LEN"]
    pub static FLAC__STREAM_METADATA_CUESHEET_INDEX_NUMBER_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_CUESHEET_INDEX_RESERVED_LEN"]
    pub static FLAC__STREAM_METADATA_CUESHEET_INDEX_RESERVED_LEN: ::std::os::raw::c_uint;
}
#[doc = " FLAC CUESHEET track structure.  (See the"]
#[doc = " <A HREF=\"../format.html#cuesheet_track\">format specification</A> for"]
#[doc = " the full description of each field.)"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLAC__StreamMetadata_CueSheet_Track {
    pub offset: FLAC__uint64,
    pub number: FLAC__byte,
    pub isrc: [::std::os::raw::c_char; 13usize],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize], u8>,
    pub num_indices: FLAC__byte,
    pub indices: *mut FLAC__StreamMetadata_CueSheet_Index,
}
impl FLAC__StreamMetadata_CueSheet_Track {
    #[inline]
    pub fn type_(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_type(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn pre_emphasis(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_pre_emphasis(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(1usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn new_bitfield_1(
        type_: ::std::os::raw::c_uint,
        pre_emphasis: ::std::os::raw::c_uint,
    ) -> __BindgenBitfieldUnit<[u8; 1usize], u8> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> =
            Default::default();
        __bindgen_bitfield_unit.set(0usize, 1u8, {
            let type_: u32 = unsafe { ::std::mem::transmute(type_) };
            type_ as u64
        });
        __bindgen_bitfield_unit.set(1usize, 1u8, {
            let pre_emphasis: u32 = unsafe { ::std::mem::transmute(pre_emphasis) };
            pre_emphasis as u64
        });
        __bindgen_bitfield_unit
    }
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_CUESHEET_TRACK_OFFSET_LEN"]
    pub static FLAC__STREAM_METADATA_CUESHEET_TRACK_OFFSET_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_CUESHEET_TRACK_NUMBER_LEN"]
    pub static FLAC__STREAM_METADATA_CUESHEET_TRACK_NUMBER_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_CUESHEET_TRACK_ISRC_LEN"]
    pub static FLAC__STREAM_METADATA_CUESHEET_TRACK_ISRC_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_CUESHEET_TRACK_TYPE_LEN"]
    pub static FLAC__STREAM_METADATA_CUESHEET_TRACK_TYPE_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_CUESHEET_TRACK_PRE_EMPHASIS_LEN"]
    pub static FLAC__STREAM_METADATA_CUESHEET_TRACK_PRE_EMPHASIS_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_CUESHEET_TRACK_RESERVED_LEN"]
    pub static FLAC__STREAM_METADATA_CUESHEET_TRACK_RESERVED_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_CUESHEET_TRACK_NUM_INDICES_LEN"]
    pub static FLAC__STREAM_METADATA_CUESHEET_TRACK_NUM_INDICES_LEN: ::std::os::raw::c_uint;
}
#[doc = " FLAC CUESHEET structure.  (See the"]
#[doc = " <A HREF=\"../format.html#metadata_block_cuesheet\">format specification</A>"]
#[doc = " for the full description of each field.)"]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct FLAC__StreamMetadata_CueSheet {
    pub media_catalog_number: [::std::os::raw::c_char; 129usize],
    pub lead_in: FLAC__uint64,
    pub is_cd: FLAC__bool,
    pub num_tracks: ::std::os::raw::c_uint,
    pub tracks: *mut FLAC__StreamMetadata_CueSheet_Track,
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_CUESHEET_MEDIA_CATALOG_NUMBER_LEN"]
    pub static FLAC__STREAM_METADATA_CUESHEET_MEDIA_CATALOG_NUMBER_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_CUESHEET_LEAD_IN_LEN"]
    pub static FLAC__STREAM_METADATA_CUESHEET_LEAD_IN_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_CUESHEET_IS_CD_LEN"]
    pub static FLAC__STREAM_METADATA_CUESHEET_IS_CD_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_CUESHEET_RESERVED_LEN"]
    pub static FLAC__STREAM_METADATA_CUESHEET_RESERVED_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_CUESHEET_NUM_TRACKS_LEN"]
    pub static FLAC__STREAM_METADATA_CUESHEET_NUM_TRACKS_LEN: ::std::os::raw::c_uint;
}
#[doc = "< Other"]
pub const FLAC__StreamMetadata_Picture_Type_FLAC__STREAM_METADATA_PICTURE_TYPE_OTHER:
    FLAC__StreamMetadata_Picture_Type = 0;
#[doc = "< 32x32 pixels \'file icon\' (PNG only)"]
pub const FLAC__StreamMetadata_Picture_Type_FLAC__STREAM_METADATA_PICTURE_TYPE_FILE_ICON_STANDARD : FLAC__StreamMetadata_Picture_Type = 1 ;
#[doc = "< Other file icon"]
pub const FLAC__StreamMetadata_Picture_Type_FLAC__STREAM_METADATA_PICTURE_TYPE_FILE_ICON:
    FLAC__StreamMetadata_Picture_Type = 2;
#[doc = "< Cover (front)"]
pub const FLAC__StreamMetadata_Picture_Type_FLAC__STREAM_METADATA_PICTURE_TYPE_FRONT_COVER:
    FLAC__StreamMetadata_Picture_Type = 3;
#[doc = "< Cover (back)"]
pub const FLAC__StreamMetadata_Picture_Type_FLAC__STREAM_METADATA_PICTURE_TYPE_BACK_COVER:
    FLAC__StreamMetadata_Picture_Type = 4;
#[doc = "< Leaflet page"]
pub const FLAC__StreamMetadata_Picture_Type_FLAC__STREAM_METADATA_PICTURE_TYPE_LEAFLET_PAGE:
    FLAC__StreamMetadata_Picture_Type = 5;
#[doc = "< Media (e.g. label side of CD)"]
pub const FLAC__StreamMetadata_Picture_Type_FLAC__STREAM_METADATA_PICTURE_TYPE_MEDIA:
    FLAC__StreamMetadata_Picture_Type = 6;
#[doc = "< Lead artist/lead performer/soloist"]
pub const FLAC__StreamMetadata_Picture_Type_FLAC__STREAM_METADATA_PICTURE_TYPE_LEAD_ARTIST:
    FLAC__StreamMetadata_Picture_Type = 7;
#[doc = "< Artist/performer"]
pub const FLAC__StreamMetadata_Picture_Type_FLAC__STREAM_METADATA_PICTURE_TYPE_ARTIST:
    FLAC__StreamMetadata_Picture_Type = 8;
#[doc = "< Conductor"]
pub const FLAC__StreamMetadata_Picture_Type_FLAC__STREAM_METADATA_PICTURE_TYPE_CONDUCTOR:
    FLAC__StreamMetadata_Picture_Type = 9;
#[doc = "< Band/Orchestra"]
pub const FLAC__StreamMetadata_Picture_Type_FLAC__STREAM_METADATA_PICTURE_TYPE_BAND:
    FLAC__StreamMetadata_Picture_Type = 10;
#[doc = "< Composer"]
pub const FLAC__StreamMetadata_Picture_Type_FLAC__STREAM_METADATA_PICTURE_TYPE_COMPOSER:
    FLAC__StreamMetadata_Picture_Type = 11;
#[doc = "< Lyricist/text writer"]
pub const FLAC__StreamMetadata_Picture_Type_FLAC__STREAM_METADATA_PICTURE_TYPE_LYRICIST:
    FLAC__StreamMetadata_Picture_Type = 12;
#[doc = "< Recording Location"]
pub const FLAC__StreamMetadata_Picture_Type_FLAC__STREAM_METADATA_PICTURE_TYPE_RECORDING_LOCATION : FLAC__StreamMetadata_Picture_Type = 13 ;
#[doc = "< During recording"]
pub const FLAC__StreamMetadata_Picture_Type_FLAC__STREAM_METADATA_PICTURE_TYPE_DURING_RECORDING:
    FLAC__StreamMetadata_Picture_Type = 14;
#[doc = "< During performance"]
pub const FLAC__StreamMetadata_Picture_Type_FLAC__STREAM_METADATA_PICTURE_TYPE_DURING_PERFORMANCE : FLAC__StreamMetadata_Picture_Type = 15 ;
#[doc = "< Movie/video screen capture"]
pub const FLAC__StreamMetadata_Picture_Type_FLAC__STREAM_METADATA_PICTURE_TYPE_VIDEO_SCREEN_CAPTURE : FLAC__StreamMetadata_Picture_Type = 16 ;
#[doc = "< A bright coloured fish"]
pub const FLAC__StreamMetadata_Picture_Type_FLAC__STREAM_METADATA_PICTURE_TYPE_FISH:
    FLAC__StreamMetadata_Picture_Type = 17;
#[doc = "< Illustration"]
pub const FLAC__StreamMetadata_Picture_Type_FLAC__STREAM_METADATA_PICTURE_TYPE_ILLUSTRATION:
    FLAC__StreamMetadata_Picture_Type = 18;
#[doc = "< Band/artist logotype"]
pub const FLAC__StreamMetadata_Picture_Type_FLAC__STREAM_METADATA_PICTURE_TYPE_BAND_LOGOTYPE:
    FLAC__StreamMetadata_Picture_Type = 19;
#[doc = "< Publisher/Studio logotype"]
pub const FLAC__StreamMetadata_Picture_Type_FLAC__STREAM_METADATA_PICTURE_TYPE_PUBLISHER_LOGOTYPE : FLAC__StreamMetadata_Picture_Type = 20 ;
pub const FLAC__StreamMetadata_Picture_Type_FLAC__STREAM_METADATA_PICTURE_TYPE_UNDEFINED:
    FLAC__StreamMetadata_Picture_Type = 21;
#[doc = " An enumeration of the PICTURE types (see FLAC__StreamMetadataPicture and id3 v2.4 APIC tag)."]
pub type FLAC__StreamMetadata_Picture_Type = u32;
extern "C" {
    #[link_name = "\u{1}FLAC__StreamMetadata_Picture_TypeString"]
    pub static mut FLAC__StreamMetadata_Picture_TypeString: [*const ::std::os::raw::c_char; 0usize];
}
#[doc = " FLAC PICTURE structure.  (See the"]
#[doc = " <A HREF=\"../format.html#metadata_block_picture\">format specification</A>"]
#[doc = " for the full description of each field.)"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLAC__StreamMetadata_Picture {
    pub type_: FLAC__StreamMetadata_Picture_Type,
    pub mime_type: *mut ::std::os::raw::c_char,
    pub description: *mut FLAC__byte,
    pub width: FLAC__uint32,
    pub height: FLAC__uint32,
    pub depth: FLAC__uint32,
    pub colors: FLAC__uint32,
    pub data_length: FLAC__uint32,
    pub data: *mut FLAC__byte,
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_PICTURE_TYPE_LEN"]
    pub static FLAC__STREAM_METADATA_PICTURE_TYPE_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_PICTURE_MIME_TYPE_LENGTH_LEN"]
    pub static FLAC__STREAM_METADATA_PICTURE_MIME_TYPE_LENGTH_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_PICTURE_DESCRIPTION_LENGTH_LEN"]
    pub static FLAC__STREAM_METADATA_PICTURE_DESCRIPTION_LENGTH_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_PICTURE_WIDTH_LEN"]
    pub static FLAC__STREAM_METADATA_PICTURE_WIDTH_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_PICTURE_HEIGHT_LEN"]
    pub static FLAC__STREAM_METADATA_PICTURE_HEIGHT_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_PICTURE_DEPTH_LEN"]
    pub static FLAC__STREAM_METADATA_PICTURE_DEPTH_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_PICTURE_COLORS_LEN"]
    pub static FLAC__STREAM_METADATA_PICTURE_COLORS_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_PICTURE_DATA_LENGTH_LEN"]
    pub static FLAC__STREAM_METADATA_PICTURE_DATA_LENGTH_LEN: ::std::os::raw::c_uint;
}
#[doc = " Structure that is used when a metadata block of unknown type is loaded."]
#[doc = "  The contents are opaque.  The structure is used only internally to"]
#[doc = "  correctly handle unknown metadata."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLAC__StreamMetadata_Unknown {
    pub data: *mut FLAC__byte,
}
#[doc = " FLAC metadata block structure.  (c.f. <A HREF=\"../format.html#metadata_block\">format specification</A>)"]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct FLAC__StreamMetadata {
    pub type_: FLAC__MetadataType,
    pub is_last: FLAC__bool,
    pub length: ::std::os::raw::c_uint,
    pub data: FLAC__StreamMetadata__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union FLAC__StreamMetadata__bindgen_ty_1 {
    pub stream_info: FLAC__StreamMetadata_StreamInfo,
    pub padding: FLAC__StreamMetadata_Padding,
    pub application: FLAC__StreamMetadata_Application,
    pub seek_table: FLAC__StreamMetadata_SeekTable,
    pub vorbis_comment: FLAC__StreamMetadata_VorbisComment,
    pub cue_sheet: FLAC__StreamMetadata_CueSheet,
    pub picture: FLAC__StreamMetadata_Picture,
    pub unknown: FLAC__StreamMetadata_Unknown,
    _bindgen_union_align: [u64; 20usize],
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_IS_LAST_LEN"]
    pub static FLAC__STREAM_METADATA_IS_LAST_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_TYPE_LEN"]
    pub static FLAC__STREAM_METADATA_TYPE_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}FLAC__STREAM_METADATA_LENGTH_LEN"]
    pub static FLAC__STREAM_METADATA_LENGTH_LEN: ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " Tests that a sample rate is valid for FLAC."]
    #[doc = ""]
    #[doc = " \\param sample_rate  The sample rate to test for compliance."]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c true if the given sample rate conforms to the specification, else"]
    #[doc = "    \\c false."]
    pub fn FLAC__format_sample_rate_is_valid(sample_rate: ::std::os::raw::c_uint) -> FLAC__bool;
}
extern "C" {
    #[doc = " Tests that a blocksize at the given sample rate is valid for the FLAC"]
    #[doc = "  subset."]
    #[doc = ""]
    #[doc = " \\param blocksize    The blocksize to test for compliance."]
    #[doc = " \\param sample_rate  The sample rate is needed, since the valid subset"]
    #[doc = "                     blocksize depends on the sample rate."]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c true if the given blocksize conforms to the specification for the"]
    #[doc = "    subset at the given sample rate, else \\c false."]
    pub fn FLAC__format_blocksize_is_subset(
        blocksize: ::std::os::raw::c_uint,
        sample_rate: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Tests that a sample rate is valid for the FLAC subset.  The subset rules"]
    #[doc = "  for valid sample rates are slightly more complex since the rate has to"]
    #[doc = "  be expressible completely in the frame header."]
    #[doc = ""]
    #[doc = " \\param sample_rate  The sample rate to test for compliance."]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c true if the given sample rate conforms to the specification for the"]
    #[doc = "    subset, else \\c false."]
    pub fn FLAC__format_sample_rate_is_subset(sample_rate: ::std::os::raw::c_uint) -> FLAC__bool;
}
extern "C" {
    #[doc = " Check a Vorbis comment entry name to see if it conforms to the Vorbis"]
    #[doc = "  comment specification."]
    #[doc = ""]
    #[doc = "  Vorbis comment names must be composed only of characters from"]
    #[doc = "  [0x20-0x3C,0x3E-0x7D]."]
    #[doc = ""]
    #[doc = " \\param name       A NUL-terminated string to be checked."]
    #[doc = " \\assert"]
    #[doc = "    \\code name != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if entry name is illegal, else \\c true."]
    pub fn FLAC__format_vorbiscomment_entry_name_is_legal(
        name: *const ::std::os::raw::c_char,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Check a Vorbis comment entry value to see if it conforms to the Vorbis"]
    #[doc = "  comment specification."]
    #[doc = ""]
    #[doc = "  Vorbis comment values must be valid UTF-8 sequences."]
    #[doc = ""]
    #[doc = " \\param value      A string to be checked."]
    #[doc = " \\param length     A the length of \\a value in bytes.  May be"]
    #[doc = "                   \\c (unsigned)(-1) to indicate that \\a value is a plain"]
    #[doc = "                   UTF-8 NUL-terminated string."]
    #[doc = " \\assert"]
    #[doc = "    \\code value != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if entry name is illegal, else \\c true."]
    pub fn FLAC__format_vorbiscomment_entry_value_is_legal(
        value: *const FLAC__byte,
        length: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Check a Vorbis comment entry to see if it conforms to the Vorbis"]
    #[doc = "  comment specification."]
    #[doc = ""]
    #[doc = "  Vorbis comment entries must be of the form \'name=value\', and \'name\' and"]
    #[doc = "  \'value\' must be legal according to"]
    #[doc = "  FLAC__format_vorbiscomment_entry_name_is_legal() and"]
    #[doc = "  FLAC__format_vorbiscomment_entry_value_is_legal() respectively."]
    #[doc = ""]
    #[doc = " \\param entry      An entry to be checked."]
    #[doc = " \\param length     The length of \\a entry in bytes."]
    #[doc = " \\assert"]
    #[doc = "    \\code value != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if entry name is illegal, else \\c true."]
    pub fn FLAC__format_vorbiscomment_entry_is_legal(
        entry: *const FLAC__byte,
        length: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Check a seek table to see if it conforms to the FLAC specification."]
    #[doc = "  See the format specification for limits on the contents of the"]
    #[doc = "  seek table."]
    #[doc = ""]
    #[doc = " \\param seek_table  A pointer to a seek table to be checked."]
    #[doc = " \\assert"]
    #[doc = "    \\code seek_table != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if seek table is illegal, else \\c true."]
    pub fn FLAC__format_seektable_is_legal(
        seek_table: *const FLAC__StreamMetadata_SeekTable,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Sort a seek table\'s seek points according to the format specification."]
    #[doc = "  This includes a \"unique-ification\" step to remove duplicates, i.e."]
    #[doc = "  seek points with identical \\a sample_number values.  Duplicate seek"]
    #[doc = "  points are converted into placeholder points and sorted to the end of"]
    #[doc = "  the table."]
    #[doc = ""]
    #[doc = " \\param seek_table  A pointer to a seek table to be sorted."]
    #[doc = " \\assert"]
    #[doc = "    \\code seek_table != NULL \\endcode"]
    #[doc = " \\retval unsigned"]
    #[doc = "    The number of duplicate seek points converted into placeholders."]
    pub fn FLAC__format_seektable_sort(
        seek_table: *mut FLAC__StreamMetadata_SeekTable,
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " Check a cue sheet to see if it conforms to the FLAC specification."]
    #[doc = "  See the format specification for limits on the contents of the"]
    #[doc = "  cue sheet."]
    #[doc = ""]
    #[doc = " \\param cue_sheet  A pointer to an existing cue sheet to be checked."]
    #[doc = " \\param check_cd_da_subset  If \\c true, check CUESHEET against more"]
    #[doc = "                   stringent requirements for a CD-DA (audio) disc."]
    #[doc = " \\param violation  Address of a pointer to a string.  If there is a"]
    #[doc = "                   violation, a pointer to a string explanation of the"]
    #[doc = "                   violation will be returned here. \\a violation may be"]
    #[doc = "                   \\c NULL if you don\'t need the returned string.  Do not"]
    #[doc = "                   free the returned string; it will always point to static"]
    #[doc = "                   data."]
    #[doc = " \\assert"]
    #[doc = "    \\code cue_sheet != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if cue sheet is illegal, else \\c true."]
    pub fn FLAC__format_cuesheet_is_legal(
        cue_sheet: *const FLAC__StreamMetadata_CueSheet,
        check_cd_da_subset: FLAC__bool,
        violation: *mut *const ::std::os::raw::c_char,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Check picture data to see if it conforms to the FLAC specification."]
    #[doc = "  See the format specification for limits on the contents of the"]
    #[doc = "  PICTURE block."]
    #[doc = ""]
    #[doc = " \\param picture    A pointer to existing picture data to be checked."]
    #[doc = " \\param violation  Address of a pointer to a string.  If there is a"]
    #[doc = "                   violation, a pointer to a string explanation of the"]
    #[doc = "                   violation will be returned here. \\a violation may be"]
    #[doc = "                   \\c NULL if you don\'t need the returned string.  Do not"]
    #[doc = "                   free the returned string; it will always point to static"]
    #[doc = "                   data."]
    #[doc = " \\assert"]
    #[doc = "    \\code picture != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if picture data is illegal, else \\c true."]
    pub fn FLAC__format_picture_is_legal(
        picture: *const FLAC__StreamMetadata_Picture,
        violation: *mut *const ::std::os::raw::c_char,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Read the STREAMINFO metadata block of the given FLAC file.  This function"]
    #[doc = "  will try to skip any ID3v2 tag at the head of the file."]
    #[doc = ""]
    #[doc = " \\param filename    The path to the FLAC file to read."]
    #[doc = " \\param streaminfo  A pointer to space for the STREAMINFO block.  Since"]
    #[doc = "                    FLAC__StreamMetadata is a simple structure with no"]
    #[doc = "                    memory allocation involved, you pass the address of"]
    #[doc = "                    an existing structure.  It need not be initialized."]
    #[doc = " \\assert"]
    #[doc = "    \\code filename != NULL \\endcode"]
    #[doc = "    \\code streaminfo != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c true if a valid STREAMINFO block was read from \\a filename.  Returns"]
    #[doc = "    \\c false if there was a memory allocation error, a file decoder error,"]
    #[doc = "    or the file contained no STREAMINFO block.  (A memory allocation error"]
    #[doc = "    is possible because this function must set up a file decoder.)"]
    pub fn FLAC__metadata_get_streaminfo(
        filename: *const ::std::os::raw::c_char,
        streaminfo: *mut FLAC__StreamMetadata,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Read the VORBIS_COMMENT metadata block of the given FLAC file.  This"]
    #[doc = "  function will try to skip any ID3v2 tag at the head of the file."]
    #[doc = ""]
    #[doc = " \\param filename    The path to the FLAC file to read."]
    #[doc = " \\param tags        The address where the returned pointer will be"]
    #[doc = "                    stored.  The \\a tags object must be deleted by"]
    #[doc = "                    the caller using FLAC__metadata_object_delete()."]
    #[doc = " \\assert"]
    #[doc = "    \\code filename != NULL \\endcode"]
    #[doc = "    \\code tags != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c true if a valid VORBIS_COMMENT block was read from \\a filename,"]
    #[doc = "    and \\a *tags will be set to the address of the metadata structure."]
    #[doc = "    Returns \\c false if there was a memory allocation error, a file"]
    #[doc = "    decoder error, or the file contained no VORBIS_COMMENT block, and"]
    #[doc = "    \\a *tags will be set to \\c NULL."]
    pub fn FLAC__metadata_get_tags(
        filename: *const ::std::os::raw::c_char,
        tags: *mut *mut FLAC__StreamMetadata,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Read the CUESHEET metadata block of the given FLAC file.  This"]
    #[doc = "  function will try to skip any ID3v2 tag at the head of the file."]
    #[doc = ""]
    #[doc = " \\param filename    The path to the FLAC file to read."]
    #[doc = " \\param cuesheet    The address where the returned pointer will be"]
    #[doc = "                    stored.  The \\a cuesheet object must be deleted by"]
    #[doc = "                    the caller using FLAC__metadata_object_delete()."]
    #[doc = " \\assert"]
    #[doc = "    \\code filename != NULL \\endcode"]
    #[doc = "    \\code cuesheet != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c true if a valid CUESHEET block was read from \\a filename,"]
    #[doc = "    and \\a *cuesheet will be set to the address of the metadata"]
    #[doc = "    structure.  Returns \\c false if there was a memory allocation"]
    #[doc = "    error, a file decoder error, or the file contained no CUESHEET"]
    #[doc = "    block, and \\a *cuesheet will be set to \\c NULL."]
    pub fn FLAC__metadata_get_cuesheet(
        filename: *const ::std::os::raw::c_char,
        cuesheet: *mut *mut FLAC__StreamMetadata,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Read a PICTURE metadata block of the given FLAC file.  This"]
    #[doc = "  function will try to skip any ID3v2 tag at the head of the file."]
    #[doc = "  Since there can be more than one PICTURE block in a file, this"]
    #[doc = "  function takes a number of parameters that act as constraints to"]
    #[doc = "  the search.  The PICTURE block with the largest area matching all"]
    #[doc = "  the constraints will be returned, or \\a *picture will be set to"]
    #[doc = "  \\c NULL if there was no such block."]
    #[doc = ""]
    #[doc = " \\param filename    The path to the FLAC file to read."]
    #[doc = " \\param picture     The address where the returned pointer will be"]
    #[doc = "                    stored.  The \\a picture object must be deleted by"]
    #[doc = "                    the caller using FLAC__metadata_object_delete()."]
    #[doc = " \\param type        The desired picture type.  Use \\c -1 to mean"]
    #[doc = "                    \"any type\"."]
    #[doc = " \\param mime_type   The desired MIME type, e.g. \"image/jpeg\".  The"]
    #[doc = "                    string will be matched exactly.  Use \\c NULL to"]
    #[doc = "                    mean \"any MIME type\"."]
    #[doc = " \\param description The desired description.  The string will be"]
    #[doc = "                    matched exactly.  Use \\c NULL to mean \"any"]
    #[doc = "                    description\"."]
    #[doc = " \\param max_width   The maximum width in pixels desired.  Use"]
    #[doc = "                    \\c (unsigned)(-1) to mean \"any width\"."]
    #[doc = " \\param max_height  The maximum height in pixels desired.  Use"]
    #[doc = "                    \\c (unsigned)(-1) to mean \"any height\"."]
    #[doc = " \\param max_depth   The maximum color depth in bits-per-pixel desired."]
    #[doc = "                    Use \\c (unsigned)(-1) to mean \"any depth\"."]
    #[doc = " \\param max_colors  The maximum number of colors desired.  Use"]
    #[doc = "                    \\c (unsigned)(-1) to mean \"any number of colors\"."]
    #[doc = " \\assert"]
    #[doc = "    \\code filename != NULL \\endcode"]
    #[doc = "    \\code picture != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c true if a valid PICTURE block was read from \\a filename,"]
    #[doc = "    and \\a *picture will be set to the address of the metadata"]
    #[doc = "    structure.  Returns \\c false if there was a memory allocation"]
    #[doc = "    error, a file decoder error, or the file contained no PICTURE"]
    #[doc = "    block, and \\a *picture will be set to \\c NULL."]
    pub fn FLAC__metadata_get_picture(
        filename: *const ::std::os::raw::c_char,
        picture: *mut *mut FLAC__StreamMetadata,
        type_: FLAC__StreamMetadata_Picture_Type,
        mime_type: *const ::std::os::raw::c_char,
        description: *const FLAC__byte,
        max_width: ::std::os::raw::c_uint,
        max_height: ::std::os::raw::c_uint,
        max_depth: ::std::os::raw::c_uint,
        max_colors: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
#[doc = " \\defgroup flac_metadata_level1 FLAC/metadata.h: metadata level 1 interface"]
#[doc = "  \\ingroup flac_metadata"]
#[doc = ""]
#[doc = " \\brief"]
#[doc = " The level 1 interface provides read-write access to FLAC file metadata and"]
#[doc = " operates directly on the FLAC file."]
#[doc = ""]
#[doc = " The general usage of this interface is:"]
#[doc = ""]
#[doc = " - Create an iterator using FLAC__metadata_simple_iterator_new()"]
#[doc = " - Attach it to a file using FLAC__metadata_simple_iterator_init() and check"]
#[doc = "   the exit code.  Call FLAC__metadata_simple_iterator_is_writable() to"]
#[doc = "   see if the file is writable, or only read access is allowed."]
#[doc = " - Use FLAC__metadata_simple_iterator_next() and"]
#[doc = "   FLAC__metadata_simple_iterator_prev() to traverse the blocks."]
#[doc = "   This is does not read the actual blocks themselves."]
#[doc = "   FLAC__metadata_simple_iterator_next() is relatively fast."]
#[doc = "   FLAC__metadata_simple_iterator_prev() is slower since it needs to search"]
#[doc = "   forward from the front of the file."]
#[doc = " - Use FLAC__metadata_simple_iterator_get_block_type() or"]
#[doc = "   FLAC__metadata_simple_iterator_get_block() to access the actual data at"]
#[doc = "   the current iterator position.  The returned object is yours to modify"]
#[doc = "   and free."]
#[doc = " - Use FLAC__metadata_simple_iterator_set_block() to write a modified block"]
#[doc = "   back.  You must have write permission to the original file.  Make sure to"]
#[doc = "   read the whole comment to FLAC__metadata_simple_iterator_set_block()"]
#[doc = "   below."]
#[doc = " - Use FLAC__metadata_simple_iterator_insert_block_after() to add new blocks."]
#[doc = "   Use the object creation functions from"]
#[doc = "   \\link flac_metadata_object here \\endlink to generate new objects."]
#[doc = " - Use FLAC__metadata_simple_iterator_delete_block() to remove the block"]
#[doc = "   currently referred to by the iterator, or replace it with padding."]
#[doc = " - Destroy the iterator with FLAC__metadata_simple_iterator_delete() when"]
#[doc = "   finished."]
#[doc = ""]
#[doc = " \\note"]
#[doc = " The FLAC file remains open the whole time between"]
#[doc = " FLAC__metadata_simple_iterator_init() and"]
#[doc = " FLAC__metadata_simple_iterator_delete(), so make sure you are not altering"]
#[doc = " the file during this time."]
#[doc = ""]
#[doc = " \\note"]
#[doc = " Do not modify the \\a is_last, \\a length, or \\a type fields of returned"]
#[doc = " FLAC__StreamMetadata objects.  These are managed automatically."]
#[doc = ""]
#[doc = " \\note"]
#[doc = " If any of the modification functions"]
#[doc = " (FLAC__metadata_simple_iterator_set_block(),"]
#[doc = " FLAC__metadata_simple_iterator_delete_block(),"]
#[doc = " FLAC__metadata_simple_iterator_insert_block_after(), etc.) return \\c false,"]
#[doc = " you should delete the iterator as it may no longer be valid."]
#[doc = ""]
#[doc = " \\{"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLAC__Metadata_SimpleIterator {
    _unused: [u8; 0],
}
pub const FLAC__Metadata_SimpleIteratorStatus_FLAC__METADATA_SIMPLE_ITERATOR_STATUS_OK:
    FLAC__Metadata_SimpleIteratorStatus = 0;
pub const FLAC__Metadata_SimpleIteratorStatus_FLAC__METADATA_SIMPLE_ITERATOR_STATUS_ILLEGAL_INPUT : FLAC__Metadata_SimpleIteratorStatus = 1 ;
pub const FLAC__Metadata_SimpleIteratorStatus_FLAC__METADATA_SIMPLE_ITERATOR_STATUS_ERROR_OPENING_FILE : FLAC__Metadata_SimpleIteratorStatus = 2 ;
pub const FLAC__Metadata_SimpleIteratorStatus_FLAC__METADATA_SIMPLE_ITERATOR_STATUS_NOT_A_FLAC_FILE : FLAC__Metadata_SimpleIteratorStatus = 3 ;
pub const FLAC__Metadata_SimpleIteratorStatus_FLAC__METADATA_SIMPLE_ITERATOR_STATUS_NOT_WRITABLE:
    FLAC__Metadata_SimpleIteratorStatus = 4;
pub const FLAC__Metadata_SimpleIteratorStatus_FLAC__METADATA_SIMPLE_ITERATOR_STATUS_BAD_METADATA:
    FLAC__Metadata_SimpleIteratorStatus = 5;
pub const FLAC__Metadata_SimpleIteratorStatus_FLAC__METADATA_SIMPLE_ITERATOR_STATUS_READ_ERROR:
    FLAC__Metadata_SimpleIteratorStatus = 6;
pub const FLAC__Metadata_SimpleIteratorStatus_FLAC__METADATA_SIMPLE_ITERATOR_STATUS_SEEK_ERROR:
    FLAC__Metadata_SimpleIteratorStatus = 7;
pub const FLAC__Metadata_SimpleIteratorStatus_FLAC__METADATA_SIMPLE_ITERATOR_STATUS_WRITE_ERROR:
    FLAC__Metadata_SimpleIteratorStatus = 8;
pub const FLAC__Metadata_SimpleIteratorStatus_FLAC__METADATA_SIMPLE_ITERATOR_STATUS_RENAME_ERROR:
    FLAC__Metadata_SimpleIteratorStatus = 9;
pub const FLAC__Metadata_SimpleIteratorStatus_FLAC__METADATA_SIMPLE_ITERATOR_STATUS_UNLINK_ERROR:
    FLAC__Metadata_SimpleIteratorStatus = 10;
pub const FLAC__Metadata_SimpleIteratorStatus_FLAC__METADATA_SIMPLE_ITERATOR_STATUS_MEMORY_ALLOCATION_ERROR : FLAC__Metadata_SimpleIteratorStatus = 11 ;
pub const FLAC__Metadata_SimpleIteratorStatus_FLAC__METADATA_SIMPLE_ITERATOR_STATUS_INTERNAL_ERROR : FLAC__Metadata_SimpleIteratorStatus = 12 ;
#[doc = " Status type for FLAC__Metadata_SimpleIterator."]
#[doc = ""]
#[doc = "  The iterator\'s current status can be obtained by calling FLAC__metadata_simple_iterator_status()."]
pub type FLAC__Metadata_SimpleIteratorStatus = u32;
extern "C" {
    #[link_name = "\u{1}FLAC__Metadata_SimpleIteratorStatusString"]
    pub static mut FLAC__Metadata_SimpleIteratorStatusString:
        [*const ::std::os::raw::c_char; 0usize];
}
extern "C" {
    #[doc = " Create a new iterator instance."]
    #[doc = ""]
    #[doc = " \\retval FLAC__Metadata_SimpleIterator*"]
    #[doc = "    \\c NULL if there was an error allocating memory, else the new instance."]
    pub fn FLAC__metadata_simple_iterator_new() -> *mut FLAC__Metadata_SimpleIterator;
}
extern "C" {
    #[doc = " Free an iterator instance.  Deletes the object pointed to by \\a iterator."]
    #[doc = ""]
    #[doc = " \\param iterator  A pointer to an existing iterator."]
    #[doc = " \\assert"]
    #[doc = "    \\code iterator != NULL \\endcode"]
    pub fn FLAC__metadata_simple_iterator_delete(iterator: *mut FLAC__Metadata_SimpleIterator);
}
extern "C" {
    #[doc = " Get the current status of the iterator.  Call this after a function"]
    #[doc = "  returns \\c false to get the reason for the error.  Also resets the status"]
    #[doc = "  to FLAC__METADATA_SIMPLE_ITERATOR_STATUS_OK."]
    #[doc = ""]
    #[doc = " \\param iterator  A pointer to an existing iterator."]
    #[doc = " \\assert"]
    #[doc = "    \\code iterator != NULL \\endcode"]
    #[doc = " \\retval FLAC__Metadata_SimpleIteratorStatus"]
    #[doc = "    The current status of the iterator."]
    pub fn FLAC__metadata_simple_iterator_status(
        iterator: *mut FLAC__Metadata_SimpleIterator,
    ) -> FLAC__Metadata_SimpleIteratorStatus;
}
extern "C" {
    #[doc = " Initialize the iterator to point to the first metadata block in the"]
    #[doc = "  given FLAC file."]
    #[doc = ""]
    #[doc = " \\param iterator             A pointer to an existing iterator."]
    #[doc = " \\param filename             The path to the FLAC file."]
    #[doc = " \\param read_only            If \\c true, the FLAC file will be opened"]
    #[doc = "                             in read-only mode; if \\c false, the FLAC"]
    #[doc = "                             file will be opened for edit even if no"]
    #[doc = "                             edits are performed."]
    #[doc = " \\param preserve_file_stats  If \\c true, the owner and modification"]
    #[doc = "                             time will be preserved even if the FLAC"]
    #[doc = "                             file is written to."]
    #[doc = " \\assert"]
    #[doc = "    \\code iterator != NULL \\endcode"]
    #[doc = "    \\code filename != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if a memory allocation error occurs, the file can\'t be"]
    #[doc = "    opened, or another error occurs, else \\c true."]
    pub fn FLAC__metadata_simple_iterator_init(
        iterator: *mut FLAC__Metadata_SimpleIterator,
        filename: *const ::std::os::raw::c_char,
        read_only: FLAC__bool,
        preserve_file_stats: FLAC__bool,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Returns \\c true if the FLAC file is writable.  If \\c false, calls to"]
    #[doc = "  FLAC__metadata_simple_iterator_set_block() and"]
    #[doc = "  FLAC__metadata_simple_iterator_insert_block_after() will fail."]
    #[doc = ""]
    #[doc = " \\param iterator             A pointer to an existing iterator."]
    #[doc = " \\assert"]
    #[doc = "    \\code iterator != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    See above."]
    pub fn FLAC__metadata_simple_iterator_is_writable(
        iterator: *const FLAC__Metadata_SimpleIterator,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Moves the iterator forward one metadata block, returning \\c false if"]
    #[doc = "  already at the end."]
    #[doc = ""]
    #[doc = " \\param iterator  A pointer to an existing initialized iterator."]
    #[doc = " \\assert"]
    #[doc = "    \\code iterator != NULL \\endcode"]
    #[doc = "    \\a iterator has been successfully initialized with"]
    #[doc = "    FLAC__metadata_simple_iterator_init()"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if already at the last metadata block of the chain, else"]
    #[doc = "    \\c true."]
    pub fn FLAC__metadata_simple_iterator_next(
        iterator: *mut FLAC__Metadata_SimpleIterator,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Moves the iterator backward one metadata block, returning \\c false if"]
    #[doc = "  already at the beginning."]
    #[doc = ""]
    #[doc = " \\param iterator  A pointer to an existing initialized iterator."]
    #[doc = " \\assert"]
    #[doc = "    \\code iterator != NULL \\endcode"]
    #[doc = "    \\a iterator has been successfully initialized with"]
    #[doc = "    FLAC__metadata_simple_iterator_init()"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if already at the first metadata block of the chain, else"]
    #[doc = "    \\c true."]
    pub fn FLAC__metadata_simple_iterator_prev(
        iterator: *mut FLAC__Metadata_SimpleIterator,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Returns a flag telling if the current metadata block is the last."]
    #[doc = ""]
    #[doc = " \\param iterator  A pointer to an existing initialized iterator."]
    #[doc = " \\assert"]
    #[doc = "    \\code iterator != NULL \\endcode"]
    #[doc = "    \\a iterator has been successfully initialized with"]
    #[doc = "    FLAC__metadata_simple_iterator_init()"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c true if the current metadata block is the last in the file,"]
    #[doc = "    else \\c false."]
    pub fn FLAC__metadata_simple_iterator_is_last(
        iterator: *const FLAC__Metadata_SimpleIterator,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Get the offset of the metadata block at the current position.  This"]
    #[doc = "  avoids reading the actual block data which can save time for large"]
    #[doc = "  blocks."]
    #[doc = ""]
    #[doc = " \\param iterator  A pointer to an existing initialized iterator."]
    #[doc = " \\assert"]
    #[doc = "    \\code iterator != NULL \\endcode"]
    #[doc = "    \\a iterator has been successfully initialized with"]
    #[doc = "    FLAC__metadata_simple_iterator_init()"]
    #[doc = " \\retval off_t"]
    #[doc = "    The offset of the metadata block at the current iterator position."]
    #[doc = "    This is the byte offset relative to the beginning of the file of"]
    #[doc = "    the current metadata block\'s header."]
    pub fn FLAC__metadata_simple_iterator_get_block_offset(
        iterator: *const FLAC__Metadata_SimpleIterator,
    ) -> off_t;
}
extern "C" {
    #[doc = " Get the type of the metadata block at the current position.  This"]
    #[doc = "  avoids reading the actual block data which can save time for large"]
    #[doc = "  blocks."]
    #[doc = ""]
    #[doc = " \\param iterator  A pointer to an existing initialized iterator."]
    #[doc = " \\assert"]
    #[doc = "    \\code iterator != NULL \\endcode"]
    #[doc = "    \\a iterator has been successfully initialized with"]
    #[doc = "    FLAC__metadata_simple_iterator_init()"]
    #[doc = " \\retval FLAC__MetadataType"]
    #[doc = "    The type of the metadata block at the current iterator position."]
    pub fn FLAC__metadata_simple_iterator_get_block_type(
        iterator: *const FLAC__Metadata_SimpleIterator,
    ) -> FLAC__MetadataType;
}
extern "C" {
    #[doc = " Get the length of the metadata block at the current position.  This"]
    #[doc = "  avoids reading the actual block data which can save time for large"]
    #[doc = "  blocks."]
    #[doc = ""]
    #[doc = " \\param iterator  A pointer to an existing initialized iterator."]
    #[doc = " \\assert"]
    #[doc = "    \\code iterator != NULL \\endcode"]
    #[doc = "    \\a iterator has been successfully initialized with"]
    #[doc = "    FLAC__metadata_simple_iterator_init()"]
    #[doc = " \\retval unsigned"]
    #[doc = "    The length of the metadata block at the current iterator position."]
    #[doc = "    The is same length as that in the"]
    #[doc = "    <a href=\"http://xiph.org/flac/format.html#metadata_block_header\">metadata block header</a>,"]
    #[doc = "    i.e. the length of the metadata body that follows the header."]
    pub fn FLAC__metadata_simple_iterator_get_block_length(
        iterator: *const FLAC__Metadata_SimpleIterator,
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " Get the application ID of the \\c APPLICATION block at the current"]
    #[doc = "  position.  This avoids reading the actual block data which can save"]
    #[doc = "  time for large blocks."]
    #[doc = ""]
    #[doc = " \\param iterator  A pointer to an existing initialized iterator."]
    #[doc = " \\param id        A pointer to a buffer of at least \\c 4 bytes where"]
    #[doc = "                  the ID will be stored."]
    #[doc = " \\assert"]
    #[doc = "    \\code iterator != NULL \\endcode"]
    #[doc = "    \\code id != NULL \\endcode"]
    #[doc = "    \\a iterator has been successfully initialized with"]
    #[doc = "    FLAC__metadata_simple_iterator_init()"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c true if the ID was successfully read, else \\c false, in which"]
    #[doc = "    case you should check FLAC__metadata_simple_iterator_status() to"]
    #[doc = "    find out why.  If the status is"]
    #[doc = "    \\c FLAC__METADATA_SIMPLE_ITERATOR_STATUS_ILLEGAL_INPUT, then the"]
    #[doc = "    current metadata block is not an \\c APPLICATION block.  Otherwise"]
    #[doc = "    if the status is"]
    #[doc = "    \\c FLAC__METADATA_SIMPLE_ITERATOR_STATUS_READ_ERROR or"]
    #[doc = "    \\c FLAC__METADATA_SIMPLE_ITERATOR_STATUS_SEEK_ERROR, an I/O error"]
    #[doc = "    occurred and the iterator can no longer be used."]
    pub fn FLAC__metadata_simple_iterator_get_application_id(
        iterator: *mut FLAC__Metadata_SimpleIterator,
        id: *mut FLAC__byte,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Get the metadata block at the current position.  You can modify the"]
    #[doc = "  block but must use FLAC__metadata_simple_iterator_set_block() to"]
    #[doc = "  write it back to the FLAC file."]
    #[doc = ""]
    #[doc = "  You must call FLAC__metadata_object_delete() on the returned object"]
    #[doc = "  when you are finished with it."]
    #[doc = ""]
    #[doc = " \\param iterator  A pointer to an existing initialized iterator."]
    #[doc = " \\assert"]
    #[doc = "    \\code iterator != NULL \\endcode"]
    #[doc = "    \\a iterator has been successfully initialized with"]
    #[doc = "    FLAC__metadata_simple_iterator_init()"]
    #[doc = " \\retval FLAC__StreamMetadata*"]
    #[doc = "    The current metadata block, or \\c NULL if there was a memory"]
    #[doc = "    allocation error."]
    pub fn FLAC__metadata_simple_iterator_get_block(
        iterator: *mut FLAC__Metadata_SimpleIterator,
    ) -> *mut FLAC__StreamMetadata;
}
extern "C" {
    #[doc = " Write a block back to the FLAC file.  This function tries to be"]
    #[doc = "  as efficient as possible; how the block is actually written is"]
    #[doc = "  shown by the following:"]
    #[doc = ""]
    #[doc = "  Existing block is a STREAMINFO block and the new block is a"]
    #[doc = "  STREAMINFO block: the new block is written in place.  Make sure"]
    #[doc = "  you know what you\'re doing when changing the values of a"]
    #[doc = "  STREAMINFO block."]
    #[doc = ""]
    #[doc = "  Existing block is a STREAMINFO block and the new block is a"]
    #[doc = "  not a STREAMINFO block: this is an error since the first block"]
    #[doc = "  must be a STREAMINFO block.  Returns \\c false without altering the"]
    #[doc = "  file."]
    #[doc = ""]
    #[doc = "  Existing block is not a STREAMINFO block and the new block is a"]
    #[doc = "  STREAMINFO block: this is an error since there may be only one"]
    #[doc = "  STREAMINFO block.  Returns \\c false without altering the file."]
    #[doc = ""]
    #[doc = "  Existing block and new block are the same length: the existing"]
    #[doc = "  block will be replaced by the new block, written in place."]
    #[doc = ""]
    #[doc = "  Existing block is longer than new block: if use_padding is \\c true,"]
    #[doc = "  the existing block will be overwritten in place with the new"]
    #[doc = "  block followed by a PADDING block, if possible, to make the total"]
    #[doc = "  size the same as the existing block.  Remember that a padding"]
    #[doc = "  block requires at least four bytes so if the difference in size"]
    #[doc = "  between the new block and existing block is less than that, the"]
    #[doc = "  entire file will have to be rewritten, using the new block\'s"]
    #[doc = "  exact size.  If use_padding is \\c false, the entire file will be"]
    #[doc = "  rewritten, replacing the existing block by the new block."]
    #[doc = ""]
    #[doc = "  Existing block is shorter than new block: if use_padding is \\c true,"]
    #[doc = "  the function will try and expand the new block into the following"]
    #[doc = "  PADDING block, if it exists and doing so won\'t shrink the PADDING"]
    #[doc = "  block to less than 4 bytes.  If there is no following PADDING"]
    #[doc = "  block, or it will shrink to less than 4 bytes, or use_padding is"]
    #[doc = "  \\c false, the entire file is rewritten, replacing the existing block"]
    #[doc = "  with the new block.  Note that in this case any following PADDING"]
    #[doc = "  block is preserved as is."]
    #[doc = ""]
    #[doc = "  After writing the block, the iterator will remain in the same"]
    #[doc = "  place, i.e. pointing to the new block."]
    #[doc = ""]
    #[doc = " \\param iterator     A pointer to an existing initialized iterator."]
    #[doc = " \\param block        The block to set."]
    #[doc = " \\param use_padding  See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code iterator != NULL \\endcode"]
    #[doc = "    \\a iterator has been successfully initialized with"]
    #[doc = "    FLAC__metadata_simple_iterator_init()"]
    #[doc = "    \\code block != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c true if successful, else \\c false."]
    pub fn FLAC__metadata_simple_iterator_set_block(
        iterator: *mut FLAC__Metadata_SimpleIterator,
        block: *mut FLAC__StreamMetadata,
        use_padding: FLAC__bool,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " This is similar to FLAC__metadata_simple_iterator_set_block()"]
    #[doc = "  except that instead of writing over an existing block, it appends"]
    #[doc = "  a block after the existing block.  \\a use_padding is again used to"]
    #[doc = "  tell the function to try an expand into following padding in an"]
    #[doc = "  attempt to avoid rewriting the entire file."]
    #[doc = ""]
    #[doc = "  This function will fail and return \\c false if given a STREAMINFO"]
    #[doc = "  block."]
    #[doc = ""]
    #[doc = "  After writing the block, the iterator will be pointing to the"]
    #[doc = "  new block."]
    #[doc = ""]
    #[doc = " \\param iterator     A pointer to an existing initialized iterator."]
    #[doc = " \\param block        The block to set."]
    #[doc = " \\param use_padding  See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code iterator != NULL \\endcode"]
    #[doc = "    \\a iterator has been successfully initialized with"]
    #[doc = "    FLAC__metadata_simple_iterator_init()"]
    #[doc = "    \\code block != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c true if successful, else \\c false."]
    pub fn FLAC__metadata_simple_iterator_insert_block_after(
        iterator: *mut FLAC__Metadata_SimpleIterator,
        block: *mut FLAC__StreamMetadata,
        use_padding: FLAC__bool,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Deletes the block at the current position.  This will cause the"]
    #[doc = "  entire FLAC file to be rewritten, unless \\a use_padding is \\c true,"]
    #[doc = "  in which case the block will be replaced by an equal-sized PADDING"]
    #[doc = "  block.  The iterator will be left pointing to the block before the"]
    #[doc = "  one just deleted."]
    #[doc = ""]
    #[doc = "  You may not delete the STREAMINFO block."]
    #[doc = ""]
    #[doc = " \\param iterator     A pointer to an existing initialized iterator."]
    #[doc = " \\param use_padding  See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code iterator != NULL \\endcode"]
    #[doc = "    \\a iterator has been successfully initialized with"]
    #[doc = "    FLAC__metadata_simple_iterator_init()"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c true if successful, else \\c false."]
    pub fn FLAC__metadata_simple_iterator_delete_block(
        iterator: *mut FLAC__Metadata_SimpleIterator,
        use_padding: FLAC__bool,
    ) -> FLAC__bool;
}
#[doc = " \\defgroup flac_metadata_level2 FLAC/metadata.h: metadata level 2 interface"]
#[doc = "  \\ingroup flac_metadata"]
#[doc = ""]
#[doc = " \\brief"]
#[doc = " The level 2 interface provides read-write access to FLAC file metadata;"]
#[doc = " all metadata is read into memory, operated on in memory, and then written"]
#[doc = " to file, which is more efficient than level 1 when editing multiple blocks."]
#[doc = ""]
#[doc = " Currently Ogg FLAC is supported for read only, via"]
#[doc = " FLAC__metadata_chain_read_ogg() but a subsequent"]
#[doc = " FLAC__metadata_chain_write() will fail."]
#[doc = ""]
#[doc = " The general usage of this interface is:"]
#[doc = ""]
#[doc = " - Create a new chain using FLAC__metadata_chain_new().  A chain is a"]
#[doc = "   linked list of FLAC metadata blocks."]
#[doc = " - Read all metadata into the chain from a FLAC file using"]
#[doc = "   FLAC__metadata_chain_read() or FLAC__metadata_chain_read_ogg() and"]
#[doc = "   check the status."]
#[doc = " - Optionally, consolidate the padding using"]
#[doc = "   FLAC__metadata_chain_merge_padding() or"]
#[doc = "   FLAC__metadata_chain_sort_padding()."]
#[doc = " - Create a new iterator using FLAC__metadata_iterator_new()"]
#[doc = " - Initialize the iterator to point to the first element in the chain"]
#[doc = "   using FLAC__metadata_iterator_init()"]
#[doc = " - Traverse the chain using FLAC__metadata_iterator_next and"]
#[doc = "   FLAC__metadata_iterator_prev()."]
#[doc = " - Get a block for reading or modification using"]
#[doc = "   FLAC__metadata_iterator_get_block().  The pointer to the object"]
#[doc = "   inside the chain is returned, so the block is yours to modify."]
#[doc = "   Changes will be reflected in the FLAC file when you write the"]
#[doc = "   chain.  You can also add and delete blocks (see functions below)."]
#[doc = " - When done, write out the chain using FLAC__metadata_chain_write()."]
#[doc = "   Make sure to read the whole comment to the function below."]
#[doc = " - Delete the chain using FLAC__metadata_chain_delete()."]
#[doc = ""]
#[doc = " \\note"]
#[doc = " Even though the FLAC file is not open while the chain is being"]
#[doc = " manipulated, you must not alter the file externally during"]
#[doc = " this time.  The chain assumes the FLAC file will not change"]
#[doc = " between the time of FLAC__metadata_chain_read()/FLAC__metadata_chain_read_ogg()"]
#[doc = " and FLAC__metadata_chain_write()."]
#[doc = ""]
#[doc = " \\note"]
#[doc = " Do not modify the is_last, length, or type fields of returned"]
#[doc = " FLAC__StreamMetadata objects.  These are managed automatically."]
#[doc = ""]
#[doc = " \\note"]
#[doc = " The metadata objects returned by FLAC__metadata_iterator_get_block()"]
#[doc = " are owned by the chain; do not FLAC__metadata_object_delete() them."]
#[doc = " In the same way, blocks passed to FLAC__metadata_iterator_set_block()"]
#[doc = " become owned by the chain and they will be deleted when the chain is"]
#[doc = " deleted."]
#[doc = ""]
#[doc = " \\{"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLAC__Metadata_Chain {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLAC__Metadata_Iterator {
    _unused: [u8; 0],
}
pub const FLAC__Metadata_ChainStatus_FLAC__METADATA_CHAIN_STATUS_OK: FLAC__Metadata_ChainStatus = 0;
pub const FLAC__Metadata_ChainStatus_FLAC__METADATA_CHAIN_STATUS_ILLEGAL_INPUT:
    FLAC__Metadata_ChainStatus = 1;
pub const FLAC__Metadata_ChainStatus_FLAC__METADATA_CHAIN_STATUS_ERROR_OPENING_FILE:
    FLAC__Metadata_ChainStatus = 2;
pub const FLAC__Metadata_ChainStatus_FLAC__METADATA_CHAIN_STATUS_NOT_A_FLAC_FILE:
    FLAC__Metadata_ChainStatus = 3;
pub const FLAC__Metadata_ChainStatus_FLAC__METADATA_CHAIN_STATUS_NOT_WRITABLE:
    FLAC__Metadata_ChainStatus = 4;
pub const FLAC__Metadata_ChainStatus_FLAC__METADATA_CHAIN_STATUS_BAD_METADATA:
    FLAC__Metadata_ChainStatus = 5;
pub const FLAC__Metadata_ChainStatus_FLAC__METADATA_CHAIN_STATUS_READ_ERROR:
    FLAC__Metadata_ChainStatus = 6;
pub const FLAC__Metadata_ChainStatus_FLAC__METADATA_CHAIN_STATUS_SEEK_ERROR:
    FLAC__Metadata_ChainStatus = 7;
pub const FLAC__Metadata_ChainStatus_FLAC__METADATA_CHAIN_STATUS_WRITE_ERROR:
    FLAC__Metadata_ChainStatus = 8;
pub const FLAC__Metadata_ChainStatus_FLAC__METADATA_CHAIN_STATUS_RENAME_ERROR:
    FLAC__Metadata_ChainStatus = 9;
pub const FLAC__Metadata_ChainStatus_FLAC__METADATA_CHAIN_STATUS_UNLINK_ERROR:
    FLAC__Metadata_ChainStatus = 10;
pub const FLAC__Metadata_ChainStatus_FLAC__METADATA_CHAIN_STATUS_MEMORY_ALLOCATION_ERROR:
    FLAC__Metadata_ChainStatus = 11;
pub const FLAC__Metadata_ChainStatus_FLAC__METADATA_CHAIN_STATUS_INTERNAL_ERROR:
    FLAC__Metadata_ChainStatus = 12;
pub const FLAC__Metadata_ChainStatus_FLAC__METADATA_CHAIN_STATUS_INVALID_CALLBACKS:
    FLAC__Metadata_ChainStatus = 13;
pub const FLAC__Metadata_ChainStatus_FLAC__METADATA_CHAIN_STATUS_READ_WRITE_MISMATCH:
    FLAC__Metadata_ChainStatus = 14;
pub const FLAC__Metadata_ChainStatus_FLAC__METADATA_CHAIN_STATUS_WRONG_WRITE_CALL:
    FLAC__Metadata_ChainStatus = 15;
pub type FLAC__Metadata_ChainStatus = u32;
extern "C" {
    #[link_name = "\u{1}FLAC__Metadata_ChainStatusString"]
    pub static mut FLAC__Metadata_ChainStatusString: [*const ::std::os::raw::c_char; 0usize];
}
extern "C" {
    #[doc = " Create a new chain instance."]
    #[doc = ""]
    #[doc = " \\retval FLAC__Metadata_Chain*"]
    #[doc = "    \\c NULL if there was an error allocating memory, else the new instance."]
    pub fn FLAC__metadata_chain_new() -> *mut FLAC__Metadata_Chain;
}
extern "C" {
    #[doc = " Free a chain instance.  Deletes the object pointed to by \\a chain."]
    #[doc = ""]
    #[doc = " \\param chain  A pointer to an existing chain."]
    #[doc = " \\assert"]
    #[doc = "    \\code chain != NULL \\endcode"]
    pub fn FLAC__metadata_chain_delete(chain: *mut FLAC__Metadata_Chain);
}
extern "C" {
    #[doc = " Get the current status of the chain.  Call this after a function"]
    #[doc = "  returns \\c false to get the reason for the error.  Also resets the"]
    #[doc = "  status to FLAC__METADATA_CHAIN_STATUS_OK."]
    #[doc = ""]
    #[doc = " \\param chain    A pointer to an existing chain."]
    #[doc = " \\assert"]
    #[doc = "    \\code chain != NULL \\endcode"]
    #[doc = " \\retval FLAC__Metadata_ChainStatus"]
    #[doc = "    The current status of the chain."]
    pub fn FLAC__metadata_chain_status(
        chain: *mut FLAC__Metadata_Chain,
    ) -> FLAC__Metadata_ChainStatus;
}
extern "C" {
    #[doc = " Read all metadata from a FLAC file into the chain."]
    #[doc = ""]
    #[doc = " \\param chain    A pointer to an existing chain."]
    #[doc = " \\param filename The path to the FLAC file to read."]
    #[doc = " \\assert"]
    #[doc = "    \\code chain != NULL \\endcode"]
    #[doc = "    \\code filename != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c true if a valid list of metadata blocks was read from"]
    #[doc = "    \\a filename, else \\c false.  On failure, check the status with"]
    #[doc = "    FLAC__metadata_chain_status()."]
    pub fn FLAC__metadata_chain_read(
        chain: *mut FLAC__Metadata_Chain,
        filename: *const ::std::os::raw::c_char,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Read all metadata from an Ogg FLAC file into the chain."]
    #[doc = ""]
    #[doc = " \\note Ogg FLAC metadata data writing is not supported yet and"]
    #[doc = " FLAC__metadata_chain_write() will fail."]
    #[doc = ""]
    #[doc = " \\param chain    A pointer to an existing chain."]
    #[doc = " \\param filename The path to the Ogg FLAC file to read."]
    #[doc = " \\assert"]
    #[doc = "    \\code chain != NULL \\endcode"]
    #[doc = "    \\code filename != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c true if a valid list of metadata blocks was read from"]
    #[doc = "    \\a filename, else \\c false.  On failure, check the status with"]
    #[doc = "    FLAC__metadata_chain_status()."]
    pub fn FLAC__metadata_chain_read_ogg(
        chain: *mut FLAC__Metadata_Chain,
        filename: *const ::std::os::raw::c_char,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Read all metadata from a FLAC stream into the chain via I/O callbacks."]
    #[doc = ""]
    #[doc = "  The \\a handle need only be open for reading, but must be seekable."]
    #[doc = "  The equivalent minimum stdio fopen() file mode is \\c \"r\" (or \\c \"rb\""]
    #[doc = "  for Windows)."]
    #[doc = ""]
    #[doc = " \\param chain    A pointer to an existing chain."]
    #[doc = " \\param handle   The I/O handle of the FLAC stream to read.  The"]
    #[doc = "                 handle will NOT be closed after the metadata is read;"]
    #[doc = "                 that is the duty of the caller."]
    #[doc = " \\param callbacks"]
    #[doc = "                 A set of callbacks to use for I/O.  The mandatory"]
    #[doc = "                 callbacks are \\a read, \\a seek, and \\a tell."]
    #[doc = " \\assert"]
    #[doc = "    \\code chain != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c true if a valid list of metadata blocks was read from"]
    #[doc = "    \\a handle, else \\c false.  On failure, check the status with"]
    #[doc = "    FLAC__metadata_chain_status()."]
    pub fn FLAC__metadata_chain_read_with_callbacks(
        chain: *mut FLAC__Metadata_Chain,
        handle: FLAC__IOHandle,
        callbacks: FLAC__IOCallbacks,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Read all metadata from an Ogg FLAC stream into the chain via I/O callbacks."]
    #[doc = ""]
    #[doc = "  The \\a handle need only be open for reading, but must be seekable."]
    #[doc = "  The equivalent minimum stdio fopen() file mode is \\c \"r\" (or \\c \"rb\""]
    #[doc = "  for Windows)."]
    #[doc = ""]
    #[doc = " \\note Ogg FLAC metadata data writing is not supported yet and"]
    #[doc = " FLAC__metadata_chain_write() will fail."]
    #[doc = ""]
    #[doc = " \\param chain    A pointer to an existing chain."]
    #[doc = " \\param handle   The I/O handle of the Ogg FLAC stream to read.  The"]
    #[doc = "                 handle will NOT be closed after the metadata is read;"]
    #[doc = "                 that is the duty of the caller."]
    #[doc = " \\param callbacks"]
    #[doc = "                 A set of callbacks to use for I/O.  The mandatory"]
    #[doc = "                 callbacks are \\a read, \\a seek, and \\a tell."]
    #[doc = " \\assert"]
    #[doc = "    \\code chain != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c true if a valid list of metadata blocks was read from"]
    #[doc = "    \\a handle, else \\c false.  On failure, check the status with"]
    #[doc = "    FLAC__metadata_chain_status()."]
    pub fn FLAC__metadata_chain_read_ogg_with_callbacks(
        chain: *mut FLAC__Metadata_Chain,
        handle: FLAC__IOHandle,
        callbacks: FLAC__IOCallbacks,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Checks if writing the given chain would require the use of a"]
    #[doc = "  temporary file, or if it could be written in place."]
    #[doc = ""]
    #[doc = "  Under certain conditions, padding can be utilized so that writing"]
    #[doc = "  edited metadata back to the FLAC file does not require rewriting the"]
    #[doc = "  entire file.  If rewriting is required, then a temporary workfile is"]
    #[doc = "  required.  When writing metadata using callbacks, you must check"]
    #[doc = "  this function to know whether to call"]
    #[doc = "  FLAC__metadata_chain_write_with_callbacks() or"]
    #[doc = "  FLAC__metadata_chain_write_with_callbacks_and_tempfile().  When"]
    #[doc = "  writing with FLAC__metadata_chain_write(), the temporary file is"]
    #[doc = "  handled internally."]
    #[doc = ""]
    #[doc = " \\param chain    A pointer to an existing chain."]
    #[doc = " \\param use_padding"]
    #[doc = "                 Whether or not padding will be allowed to be used"]
    #[doc = "                 during the write.  The value of \\a use_padding given"]
    #[doc = "                 here must match the value later passed to"]
    #[doc = "                 FLAC__metadata_chain_write_with_callbacks() or"]
    #[doc = "                 FLAC__metadata_chain_write_with_callbacks_with_tempfile()."]
    #[doc = " \\assert"]
    #[doc = "    \\code chain != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c true if writing the current chain would require a tempfile, or"]
    #[doc = "    \\c false if metadata can be written in place."]
    pub fn FLAC__metadata_chain_check_if_tempfile_needed(
        chain: *mut FLAC__Metadata_Chain,
        use_padding: FLAC__bool,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Write all metadata out to the FLAC file.  This function tries to be as"]
    #[doc = "  efficient as possible; how the metadata is actually written is shown by"]
    #[doc = "  the following:"]
    #[doc = ""]
    #[doc = "  If the current chain is the same size as the existing metadata, the new"]
    #[doc = "  data is written in place."]
    #[doc = ""]
    #[doc = "  If the current chain is longer than the existing metadata, and"]
    #[doc = "  \\a use_padding is \\c true, and the last block is a PADDING block of"]
    #[doc = "  sufficient length, the function will truncate the final padding block"]
    #[doc = "  so that the overall size of the metadata is the same as the existing"]
    #[doc = "  metadata, and then just rewrite the metadata.  Otherwise, if not all of"]
    #[doc = "  the above conditions are met, the entire FLAC file must be rewritten."]
    #[doc = "  If you want to use padding this way it is a good idea to call"]
    #[doc = "  FLAC__metadata_chain_sort_padding() first so that you have the maximum"]
    #[doc = "  amount of padding to work with, unless you need to preserve ordering"]
    #[doc = "  of the PADDING blocks for some reason."]
    #[doc = ""]
    #[doc = "  If the current chain is shorter than the existing metadata, and"]
    #[doc = "  \\a use_padding is \\c true, and the final block is a PADDING block, the padding"]
    #[doc = "  is extended to make the overall size the same as the existing data.  If"]
    #[doc = "  \\a use_padding is \\c true and the last block is not a PADDING block, a new"]
    #[doc = "  PADDING block is added to the end of the new data to make it the same"]
    #[doc = "  size as the existing data (if possible, see the note to"]
    #[doc = "  FLAC__metadata_simple_iterator_set_block() about the four byte limit)"]
    #[doc = "  and the new data is written in place.  If none of the above apply or"]
    #[doc = "  \\a use_padding is \\c false, the entire FLAC file is rewritten."]
    #[doc = ""]
    #[doc = "  If \\a preserve_file_stats is \\c true, the owner and modification time will"]
    #[doc = "  be preserved even if the FLAC file is written."]
    #[doc = ""]
    #[doc = "  For this write function to be used, the chain must have been read with"]
    #[doc = "  FLAC__metadata_chain_read()/FLAC__metadata_chain_read_ogg(), not"]
    #[doc = "  FLAC__metadata_chain_read_with_callbacks()/FLAC__metadata_chain_read_ogg_with_callbacks()."]
    #[doc = ""]
    #[doc = " \\param chain               A pointer to an existing chain."]
    #[doc = " \\param use_padding         See above."]
    #[doc = " \\param preserve_file_stats See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code chain != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c true if the write succeeded, else \\c false.  On failure,"]
    #[doc = "    check the status with FLAC__metadata_chain_status()."]
    pub fn FLAC__metadata_chain_write(
        chain: *mut FLAC__Metadata_Chain,
        use_padding: FLAC__bool,
        preserve_file_stats: FLAC__bool,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Write all metadata out to a FLAC stream via callbacks."]
    #[doc = ""]
    #[doc = "  (See FLAC__metadata_chain_write() for the details on how padding is"]
    #[doc = "  used to write metadata in place if possible.)"]
    #[doc = ""]
    #[doc = "  The \\a handle must be open for updating and be seekable.  The"]
    #[doc = "  equivalent minimum stdio fopen() file mode is \\c \"r+\" (or \\c \"r+b\""]
    #[doc = "  for Windows)."]
    #[doc = ""]
    #[doc = "  For this write function to be used, the chain must have been read with"]
    #[doc = "  FLAC__metadata_chain_read_with_callbacks()/FLAC__metadata_chain_read_ogg_with_callbacks(),"]
    #[doc = "  not FLAC__metadata_chain_read()/FLAC__metadata_chain_read_ogg()."]
    #[doc = "  Also, FLAC__metadata_chain_check_if_tempfile_needed() must have returned"]
    #[doc = "  \\c false."]
    #[doc = ""]
    #[doc = " \\param chain        A pointer to an existing chain."]
    #[doc = " \\param use_padding  See FLAC__metadata_chain_write()"]
    #[doc = " \\param handle       The I/O handle of the FLAC stream to write.  The"]
    #[doc = "                     handle will NOT be closed after the metadata is"]
    #[doc = "                     written; that is the duty of the caller."]
    #[doc = " \\param callbacks    A set of callbacks to use for I/O.  The mandatory"]
    #[doc = "                     callbacks are \\a write and \\a seek."]
    #[doc = " \\assert"]
    #[doc = "    \\code chain != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c true if the write succeeded, else \\c false.  On failure,"]
    #[doc = "    check the status with FLAC__metadata_chain_status()."]
    pub fn FLAC__metadata_chain_write_with_callbacks(
        chain: *mut FLAC__Metadata_Chain,
        use_padding: FLAC__bool,
        handle: FLAC__IOHandle,
        callbacks: FLAC__IOCallbacks,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Write all metadata out to a FLAC stream via callbacks."]
    #[doc = ""]
    #[doc = "  (See FLAC__metadata_chain_write() for the details on how padding is"]
    #[doc = "  used to write metadata in place if possible.)"]
    #[doc = ""]
    #[doc = "  This version of the write-with-callbacks function must be used when"]
    #[doc = "  FLAC__metadata_chain_check_if_tempfile_needed() returns true.  In"]
    #[doc = "  this function, you must supply an I/O handle corresponding to the"]
    #[doc = "  FLAC file to edit, and a temporary handle to which the new FLAC"]
    #[doc = "  file will be written.  It is the caller\'s job to move this temporary"]
    #[doc = "  FLAC file on top of the original FLAC file to complete the metadata"]
    #[doc = "  edit."]
    #[doc = ""]
    #[doc = "  The \\a handle must be open for reading and be seekable.  The"]
    #[doc = "  equivalent minimum stdio fopen() file mode is \\c \"r\" (or \\c \"rb\""]
    #[doc = "  for Windows)."]
    #[doc = ""]
    #[doc = "  The \\a temp_handle must be open for writing.  The"]
    #[doc = "  equivalent minimum stdio fopen() file mode is \\c \"w\" (or \\c \"wb\""]
    #[doc = "  for Windows).  It should be an empty stream, or at least positioned"]
    #[doc = "  at the start-of-file (in which case it is the caller\'s duty to"]
    #[doc = "  truncate it on return)."]
    #[doc = ""]
    #[doc = "  For this write function to be used, the chain must have been read with"]
    #[doc = "  FLAC__metadata_chain_read_with_callbacks()/FLAC__metadata_chain_read_ogg_with_callbacks(),"]
    #[doc = "  not FLAC__metadata_chain_read()/FLAC__metadata_chain_read_ogg()."]
    #[doc = "  Also, FLAC__metadata_chain_check_if_tempfile_needed() must have returned"]
    #[doc = "  \\c true."]
    #[doc = ""]
    #[doc = " \\param chain        A pointer to an existing chain."]
    #[doc = " \\param use_padding  See FLAC__metadata_chain_write()"]
    #[doc = " \\param handle       The I/O handle of the original FLAC stream to read."]
    #[doc = "                     The handle will NOT be closed after the metadata is"]
    #[doc = "                     written; that is the duty of the caller."]
    #[doc = " \\param callbacks    A set of callbacks to use for I/O on \\a handle."]
    #[doc = "                     The mandatory callbacks are \\a read, \\a seek, and"]
    #[doc = "                     \\a eof."]
    #[doc = " \\param temp_handle  The I/O handle of the FLAC stream to write.  The"]
    #[doc = "                     handle will NOT be closed after the metadata is"]
    #[doc = "                     written; that is the duty of the caller."]
    #[doc = " \\param temp_callbacks"]
    #[doc = "                     A set of callbacks to use for I/O on temp_handle."]
    #[doc = "                     The only mandatory callback is \\a write."]
    #[doc = " \\assert"]
    #[doc = "    \\code chain != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c true if the write succeeded, else \\c false.  On failure,"]
    #[doc = "    check the status with FLAC__metadata_chain_status()."]
    pub fn FLAC__metadata_chain_write_with_callbacks_and_tempfile(
        chain: *mut FLAC__Metadata_Chain,
        use_padding: FLAC__bool,
        handle: FLAC__IOHandle,
        callbacks: FLAC__IOCallbacks,
        temp_handle: FLAC__IOHandle,
        temp_callbacks: FLAC__IOCallbacks,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Merge adjacent PADDING blocks into a single block."]
    #[doc = ""]
    #[doc = " \\note This function does not write to the FLAC file, it only"]
    #[doc = " modifies the chain."]
    #[doc = ""]
    #[doc = " \\warning Any iterator on the current chain will become invalid after this"]
    #[doc = " call.  You should delete the iterator and get a new one."]
    #[doc = ""]
    #[doc = " \\param chain               A pointer to an existing chain."]
    #[doc = " \\assert"]
    #[doc = "    \\code chain != NULL \\endcode"]
    pub fn FLAC__metadata_chain_merge_padding(chain: *mut FLAC__Metadata_Chain);
}
extern "C" {
    #[doc = " This function will move all PADDING blocks to the end on the metadata,"]
    #[doc = "  then merge them into a single block."]
    #[doc = ""]
    #[doc = " \\note This function does not write to the FLAC file, it only"]
    #[doc = " modifies the chain."]
    #[doc = ""]
    #[doc = " \\warning Any iterator on the current chain will become invalid after this"]
    #[doc = " call.  You should delete the iterator and get a new one."]
    #[doc = ""]
    #[doc = " \\param chain  A pointer to an existing chain."]
    #[doc = " \\assert"]
    #[doc = "    \\code chain != NULL \\endcode"]
    pub fn FLAC__metadata_chain_sort_padding(chain: *mut FLAC__Metadata_Chain);
}
extern "C" {
    #[doc = " Create a new iterator instance."]
    #[doc = ""]
    #[doc = " \\retval FLAC__Metadata_Iterator*"]
    #[doc = "    \\c NULL if there was an error allocating memory, else the new instance."]
    pub fn FLAC__metadata_iterator_new() -> *mut FLAC__Metadata_Iterator;
}
extern "C" {
    #[doc = " Free an iterator instance.  Deletes the object pointed to by \\a iterator."]
    #[doc = ""]
    #[doc = " \\param iterator  A pointer to an existing iterator."]
    #[doc = " \\assert"]
    #[doc = "    \\code iterator != NULL \\endcode"]
    pub fn FLAC__metadata_iterator_delete(iterator: *mut FLAC__Metadata_Iterator);
}
extern "C" {
    #[doc = " Initialize the iterator to point to the first metadata block in the"]
    #[doc = "  given chain."]
    #[doc = ""]
    #[doc = " \\param iterator  A pointer to an existing iterator."]
    #[doc = " \\param chain     A pointer to an existing and initialized (read) chain."]
    #[doc = " \\assert"]
    #[doc = "    \\code iterator != NULL \\endcode"]
    #[doc = "    \\code chain != NULL \\endcode"]
    pub fn FLAC__metadata_iterator_init(
        iterator: *mut FLAC__Metadata_Iterator,
        chain: *mut FLAC__Metadata_Chain,
    );
}
extern "C" {
    #[doc = " Moves the iterator forward one metadata block, returning \\c false if"]
    #[doc = "  already at the end."]
    #[doc = ""]
    #[doc = " \\param iterator  A pointer to an existing initialized iterator."]
    #[doc = " \\assert"]
    #[doc = "    \\code iterator != NULL \\endcode"]
    #[doc = "    \\a iterator has been successfully initialized with"]
    #[doc = "    FLAC__metadata_iterator_init()"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if already at the last metadata block of the chain, else"]
    #[doc = "    \\c true."]
    pub fn FLAC__metadata_iterator_next(iterator: *mut FLAC__Metadata_Iterator) -> FLAC__bool;
}
extern "C" {
    #[doc = " Moves the iterator backward one metadata block, returning \\c false if"]
    #[doc = "  already at the beginning."]
    #[doc = ""]
    #[doc = " \\param iterator  A pointer to an existing initialized iterator."]
    #[doc = " \\assert"]
    #[doc = "    \\code iterator != NULL \\endcode"]
    #[doc = "    \\a iterator has been successfully initialized with"]
    #[doc = "    FLAC__metadata_iterator_init()"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if already at the first metadata block of the chain, else"]
    #[doc = "    \\c true."]
    pub fn FLAC__metadata_iterator_prev(iterator: *mut FLAC__Metadata_Iterator) -> FLAC__bool;
}
extern "C" {
    #[doc = " Get the type of the metadata block at the current position."]
    #[doc = ""]
    #[doc = " \\param iterator  A pointer to an existing initialized iterator."]
    #[doc = " \\assert"]
    #[doc = "    \\code iterator != NULL \\endcode"]
    #[doc = "    \\a iterator has been successfully initialized with"]
    #[doc = "    FLAC__metadata_iterator_init()"]
    #[doc = " \\retval FLAC__MetadataType"]
    #[doc = "    The type of the metadata block at the current iterator position."]
    pub fn FLAC__metadata_iterator_get_block_type(
        iterator: *const FLAC__Metadata_Iterator,
    ) -> FLAC__MetadataType;
}
extern "C" {
    #[doc = " Get the metadata block at the current position.  You can modify"]
    #[doc = "  the block in place but must write the chain before the changes"]
    #[doc = "  are reflected to the FLAC file.  You do not need to call"]
    #[doc = "  FLAC__metadata_iterator_set_block() to reflect the changes;"]
    #[doc = "  the pointer returned by FLAC__metadata_iterator_get_block()"]
    #[doc = "  points directly into the chain."]
    #[doc = ""]
    #[doc = " \\warning"]
    #[doc = " Do not call FLAC__metadata_object_delete() on the returned object;"]
    #[doc = " to delete a block use FLAC__metadata_iterator_delete_block()."]
    #[doc = ""]
    #[doc = " \\param iterator  A pointer to an existing initialized iterator."]
    #[doc = " \\assert"]
    #[doc = "    \\code iterator != NULL \\endcode"]
    #[doc = "    \\a iterator has been successfully initialized with"]
    #[doc = "    FLAC__metadata_iterator_init()"]
    #[doc = " \\retval FLAC__StreamMetadata*"]
    #[doc = "    The current metadata block."]
    pub fn FLAC__metadata_iterator_get_block(
        iterator: *mut FLAC__Metadata_Iterator,
    ) -> *mut FLAC__StreamMetadata;
}
extern "C" {
    #[doc = " Set the metadata block at the current position, replacing the existing"]
    #[doc = "  block.  The new block passed in becomes owned by the chain and it will be"]
    #[doc = "  deleted when the chain is deleted."]
    #[doc = ""]
    #[doc = " \\param iterator  A pointer to an existing initialized iterator."]
    #[doc = " \\param block     A pointer to a metadata block."]
    #[doc = " \\assert"]
    #[doc = "    \\code iterator != NULL \\endcode"]
    #[doc = "    \\a iterator has been successfully initialized with"]
    #[doc = "    FLAC__metadata_iterator_init()"]
    #[doc = "    \\code block != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the conditions in the above description are not met, or"]
    #[doc = "    a memory allocation error occurs, otherwise \\c true."]
    pub fn FLAC__metadata_iterator_set_block(
        iterator: *mut FLAC__Metadata_Iterator,
        block: *mut FLAC__StreamMetadata,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Removes the current block from the chain.  If \\a replace_with_padding is"]
    #[doc = "  \\c true, the block will instead be replaced with a padding block of equal"]
    #[doc = "  size.  You can not delete the STREAMINFO block.  The iterator will be"]
    #[doc = "  left pointing to the block before the one just \"deleted\", even if"]
    #[doc = "  \\a replace_with_padding is \\c true."]
    #[doc = ""]
    #[doc = " \\param iterator              A pointer to an existing initialized iterator."]
    #[doc = " \\param replace_with_padding  See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code iterator != NULL \\endcode"]
    #[doc = "    \\a iterator has been successfully initialized with"]
    #[doc = "    FLAC__metadata_iterator_init()"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the conditions in the above description are not met,"]
    #[doc = "    otherwise \\c true."]
    pub fn FLAC__metadata_iterator_delete_block(
        iterator: *mut FLAC__Metadata_Iterator,
        replace_with_padding: FLAC__bool,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Insert a new block before the current block.  You cannot insert a block"]
    #[doc = "  before the first STREAMINFO block.  You cannot insert a STREAMINFO block"]
    #[doc = "  as there can be only one, the one that already exists at the head when you"]
    #[doc = "  read in a chain.  The chain takes ownership of the new block and it will be"]
    #[doc = "  deleted when the chain is deleted.  The iterator will be left pointing to"]
    #[doc = "  the new block."]
    #[doc = ""]
    #[doc = " \\param iterator  A pointer to an existing initialized iterator."]
    #[doc = " \\param block     A pointer to a metadata block to insert."]
    #[doc = " \\assert"]
    #[doc = "    \\code iterator != NULL \\endcode"]
    #[doc = "    \\a iterator has been successfully initialized with"]
    #[doc = "    FLAC__metadata_iterator_init()"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the conditions in the above description are not met, or"]
    #[doc = "    a memory allocation error occurs, otherwise \\c true."]
    pub fn FLAC__metadata_iterator_insert_block_before(
        iterator: *mut FLAC__Metadata_Iterator,
        block: *mut FLAC__StreamMetadata,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Insert a new block after the current block.  You cannot insert a STREAMINFO"]
    #[doc = "  block as there can be only one, the one that already exists at the head when"]
    #[doc = "  you read in a chain.  The chain takes ownership of the new block and it will"]
    #[doc = "  be deleted when the chain is deleted.  The iterator will be left pointing to"]
    #[doc = "  the new block."]
    #[doc = ""]
    #[doc = " \\param iterator  A pointer to an existing initialized iterator."]
    #[doc = " \\param block     A pointer to a metadata block to insert."]
    #[doc = " \\assert"]
    #[doc = "    \\code iterator != NULL \\endcode"]
    #[doc = "    \\a iterator has been successfully initialized with"]
    #[doc = "    FLAC__metadata_iterator_init()"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the conditions in the above description are not met, or"]
    #[doc = "    a memory allocation error occurs, otherwise \\c true."]
    pub fn FLAC__metadata_iterator_insert_block_after(
        iterator: *mut FLAC__Metadata_Iterator,
        block: *mut FLAC__StreamMetadata,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Create a new metadata object instance of the given type."]
    #[doc = ""]
    #[doc = "  The object will be \"empty\"; i.e. values and data pointers will be \\c 0,"]
    #[doc = "  with the exception of FLAC__METADATA_TYPE_VORBIS_COMMENT, which will have"]
    #[doc = "  the vendor string set (but zero comments)."]
    #[doc = ""]
    #[doc = "  Do not pass in a value greater than or equal to"]
    #[doc = "  \\a FLAC__METADATA_TYPE_UNDEFINED unless you really know what you\'re"]
    #[doc = "  doing."]
    #[doc = ""]
    #[doc = " \\param type  Type of object to create"]
    #[doc = " \\retval FLAC__StreamMetadata*"]
    #[doc = "    \\c NULL if there was an error allocating memory or the type code is"]
    #[doc = "    greater than FLAC__MAX_METADATA_TYPE_CODE, else the new instance."]
    pub fn FLAC__metadata_object_new(type_: FLAC__MetadataType) -> *mut FLAC__StreamMetadata;
}
extern "C" {
    #[doc = " Create a copy of an existing metadata object."]
    #[doc = ""]
    #[doc = "  The copy is a \"deep\" copy, i.e. dynamically allocated data within the"]
    #[doc = "  object is also copied.  The caller takes ownership of the new block and"]
    #[doc = "  is responsible for freeing it with FLAC__metadata_object_delete()."]
    #[doc = ""]
    #[doc = " \\param object  Pointer to object to copy."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = " \\retval FLAC__StreamMetadata*"]
    #[doc = "    \\c NULL if there was an error allocating memory, else the new instance."]
    pub fn FLAC__metadata_object_clone(
        object: *const FLAC__StreamMetadata,
    ) -> *mut FLAC__StreamMetadata;
}
extern "C" {
    #[doc = " Free a metadata object.  Deletes the object pointed to by \\a object."]
    #[doc = ""]
    #[doc = "  The delete is a \"deep\" delete, i.e. dynamically allocated data within the"]
    #[doc = "  object is also deleted."]
    #[doc = ""]
    #[doc = " \\param object  A pointer to an existing object."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    pub fn FLAC__metadata_object_delete(object: *mut FLAC__StreamMetadata);
}
extern "C" {
    #[doc = " Compares two metadata objects."]
    #[doc = ""]
    #[doc = "  The compare is \"deep\", i.e. dynamically allocated data within the"]
    #[doc = "  object is also compared."]
    #[doc = ""]
    #[doc = " \\param block1  A pointer to an existing object."]
    #[doc = " \\param block2  A pointer to an existing object."]
    #[doc = " \\assert"]
    #[doc = "    \\code block1 != NULL \\endcode"]
    #[doc = "    \\code block2 != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c true if objects are identical, else \\c false."]
    pub fn FLAC__metadata_object_is_equal(
        block1: *const FLAC__StreamMetadata,
        block2: *const FLAC__StreamMetadata,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Sets the application data of an APPLICATION block."]
    #[doc = ""]
    #[doc = "  If \\a copy is \\c true, a copy of the data is stored; otherwise, the object"]
    #[doc = "  takes ownership of the pointer.  The existing data will be freed if this"]
    #[doc = "  function is successful, otherwise the original data will remain if \\a copy"]
    #[doc = "  is \\c true and malloc() fails."]
    #[doc = ""]
    #[doc = " \\note It is safe to pass a const pointer to \\a data if \\a copy is \\c true."]
    #[doc = ""]
    #[doc = " \\param object  A pointer to an existing APPLICATION object."]
    #[doc = " \\param data    A pointer to the data to set."]
    #[doc = " \\param length  The length of \\a data in bytes."]
    #[doc = " \\param copy    See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_APPLICATION \\endcode"]
    #[doc = "    \\code (data != NULL && length > 0) ||"]
    #[doc = " (data == NULL && length == 0 && copy == false) \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if \\a copy is \\c true and malloc() fails, else \\c true."]
    pub fn FLAC__metadata_object_application_set_data(
        object: *mut FLAC__StreamMetadata,
        data: *mut FLAC__byte,
        length: ::std::os::raw::c_uint,
        copy: FLAC__bool,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Resize the seekpoint array."]
    #[doc = ""]
    #[doc = "  If the size shrinks, elements will truncated; if it grows, new placeholder"]
    #[doc = "  points will be added to the end."]
    #[doc = ""]
    #[doc = " \\param object          A pointer to an existing SEEKTABLE object."]
    #[doc = " \\param new_num_points  The desired length of the array; may be \\c 0."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_SEEKTABLE \\endcode"]
    #[doc = "    \\code (object->data.seek_table.points == NULL && object->data.seek_table.num_points == 0) ||"]
    #[doc = " (object->data.seek_table.points != NULL && object->data.seek_table.num_points > 0) \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if memory allocation error, else \\c true."]
    pub fn FLAC__metadata_object_seektable_resize_points(
        object: *mut FLAC__StreamMetadata,
        new_num_points: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Set a seekpoint in a seektable."]
    #[doc = ""]
    #[doc = " \\param object     A pointer to an existing SEEKTABLE object."]
    #[doc = " \\param point_num  Index into seekpoint array to set."]
    #[doc = " \\param point      The point to set."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_SEEKTABLE \\endcode"]
    #[doc = "    \\code object->data.seek_table.num_points > point_num \\endcode"]
    pub fn FLAC__metadata_object_seektable_set_point(
        object: *mut FLAC__StreamMetadata,
        point_num: ::std::os::raw::c_uint,
        point: FLAC__StreamMetadata_SeekPoint,
    );
}
extern "C" {
    #[doc = " Insert a seekpoint into a seektable."]
    #[doc = ""]
    #[doc = " \\param object     A pointer to an existing SEEKTABLE object."]
    #[doc = " \\param point_num  Index into seekpoint array to set."]
    #[doc = " \\param point      The point to set."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_SEEKTABLE \\endcode"]
    #[doc = "    \\code object->data.seek_table.num_points >= point_num \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if memory allocation error, else \\c true."]
    pub fn FLAC__metadata_object_seektable_insert_point(
        object: *mut FLAC__StreamMetadata,
        point_num: ::std::os::raw::c_uint,
        point: FLAC__StreamMetadata_SeekPoint,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Delete a seekpoint from a seektable."]
    #[doc = ""]
    #[doc = " \\param object     A pointer to an existing SEEKTABLE object."]
    #[doc = " \\param point_num  Index into seekpoint array to set."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_SEEKTABLE \\endcode"]
    #[doc = "    \\code object->data.seek_table.num_points > point_num \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if memory allocation error, else \\c true."]
    pub fn FLAC__metadata_object_seektable_delete_point(
        object: *mut FLAC__StreamMetadata,
        point_num: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Check a seektable to see if it conforms to the FLAC specification."]
    #[doc = "  See the format specification for limits on the contents of the"]
    #[doc = "  seektable."]
    #[doc = ""]
    #[doc = " \\param object  A pointer to an existing SEEKTABLE object."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_SEEKTABLE \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if seek table is illegal, else \\c true."]
    pub fn FLAC__metadata_object_seektable_is_legal(
        object: *const FLAC__StreamMetadata,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Append a number of placeholder points to the end of a seek table."]
    #[doc = ""]
    #[doc = " \\note"]
    #[doc = " As with the other ..._seektable_template_... functions, you should"]
    #[doc = " call FLAC__metadata_object_seektable_template_sort() when finished"]
    #[doc = " to make the seek table legal."]
    #[doc = ""]
    #[doc = " \\param object  A pointer to an existing SEEKTABLE object."]
    #[doc = " \\param num     The number of placeholder points to append."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_SEEKTABLE \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if memory allocation fails, else \\c true."]
    pub fn FLAC__metadata_object_seektable_template_append_placeholders(
        object: *mut FLAC__StreamMetadata,
        num: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Append a specific seek point template to the end of a seek table."]
    #[doc = ""]
    #[doc = " \\note"]
    #[doc = " As with the other ..._seektable_template_... functions, you should"]
    #[doc = " call FLAC__metadata_object_seektable_template_sort() when finished"]
    #[doc = " to make the seek table legal."]
    #[doc = ""]
    #[doc = " \\param object  A pointer to an existing SEEKTABLE object."]
    #[doc = " \\param sample_number  The sample number of the seek point template."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_SEEKTABLE \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if memory allocation fails, else \\c true."]
    pub fn FLAC__metadata_object_seektable_template_append_point(
        object: *mut FLAC__StreamMetadata,
        sample_number: FLAC__uint64,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Append specific seek point templates to the end of a seek table."]
    #[doc = ""]
    #[doc = " \\note"]
    #[doc = " As with the other ..._seektable_template_... functions, you should"]
    #[doc = " call FLAC__metadata_object_seektable_template_sort() when finished"]
    #[doc = " to make the seek table legal."]
    #[doc = ""]
    #[doc = " \\param object  A pointer to an existing SEEKTABLE object."]
    #[doc = " \\param sample_numbers  An array of sample numbers for the seek points."]
    #[doc = " \\param num     The number of seek point templates to append."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_SEEKTABLE \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if memory allocation fails, else \\c true."]
    pub fn FLAC__metadata_object_seektable_template_append_points(
        object: *mut FLAC__StreamMetadata,
        sample_numbers: *mut FLAC__uint64,
        num: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Append a set of evenly-spaced seek point templates to the end of a"]
    #[doc = "  seek table."]
    #[doc = ""]
    #[doc = " \\note"]
    #[doc = " As with the other ..._seektable_template_... functions, you should"]
    #[doc = " call FLAC__metadata_object_seektable_template_sort() when finished"]
    #[doc = " to make the seek table legal."]
    #[doc = ""]
    #[doc = " \\param object  A pointer to an existing SEEKTABLE object."]
    #[doc = " \\param num     The number of placeholder points to append."]
    #[doc = " \\param total_samples  The total number of samples to be encoded;"]
    #[doc = "                       the seekpoints will be spaced approximately"]
    #[doc = "                       \\a total_samples / \\a num samples apart."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_SEEKTABLE \\endcode"]
    #[doc = "    \\code total_samples > 0 \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if memory allocation fails, else \\c true."]
    pub fn FLAC__metadata_object_seektable_template_append_spaced_points(
        object: *mut FLAC__StreamMetadata,
        num: ::std::os::raw::c_uint,
        total_samples: FLAC__uint64,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Append a set of evenly-spaced seek point templates to the end of a"]
    #[doc = "  seek table."]
    #[doc = ""]
    #[doc = " \\note"]
    #[doc = " As with the other ..._seektable_template_... functions, you should"]
    #[doc = " call FLAC__metadata_object_seektable_template_sort() when finished"]
    #[doc = " to make the seek table legal."]
    #[doc = ""]
    #[doc = " \\param object  A pointer to an existing SEEKTABLE object."]
    #[doc = " \\param samples The number of samples apart to space the placeholder"]
    #[doc = "                points.  The first point will be at sample \\c 0, the"]
    #[doc = "                second at sample \\a samples, then 2*\\a samples, and"]
    #[doc = "                so on.  As long as \\a samples and \\a total_samples"]
    #[doc = "                are greater than \\c 0, there will always be at least"]
    #[doc = "                one seekpoint at sample \\c 0."]
    #[doc = " \\param total_samples  The total number of samples to be encoded;"]
    #[doc = "                       the seekpoints will be spaced"]
    #[doc = "                       \\a samples samples apart."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_SEEKTABLE \\endcode"]
    #[doc = "    \\code samples > 0 \\endcode"]
    #[doc = "    \\code total_samples > 0 \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if memory allocation fails, else \\c true."]
    pub fn FLAC__metadata_object_seektable_template_append_spaced_points_by_samples(
        object: *mut FLAC__StreamMetadata,
        samples: ::std::os::raw::c_uint,
        total_samples: FLAC__uint64,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Sort a seek table\'s seek points according to the format specification,"]
    #[doc = "  removing duplicates."]
    #[doc = ""]
    #[doc = " \\param object   A pointer to a seek table to be sorted."]
    #[doc = " \\param compact  If \\c false, behaves like FLAC__format_seektable_sort()."]
    #[doc = "                 If \\c true, duplicates are deleted and the seek table is"]
    #[doc = "                 shrunk appropriately; the number of placeholder points"]
    #[doc = "                 present in the seek table will be the same after the call"]
    #[doc = "                 as before."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_SEEKTABLE \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if realloc() fails, else \\c true."]
    pub fn FLAC__metadata_object_seektable_template_sort(
        object: *mut FLAC__StreamMetadata,
        compact: FLAC__bool,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Sets the vendor string in a VORBIS_COMMENT block."]
    #[doc = ""]
    #[doc = "  For convenience, a trailing NUL is added to the entry if it doesn\'t have"]
    #[doc = "  one already."]
    #[doc = ""]
    #[doc = "  If \\a copy is \\c true, a copy of the entry is stored; otherwise, the object"]
    #[doc = "  takes ownership of the \\c entry.entry pointer."]
    #[doc = ""]
    #[doc = "  \\note If this function returns \\c false, the caller still owns the"]
    #[doc = "  pointer."]
    #[doc = ""]
    #[doc = " \\param object  A pointer to an existing VORBIS_COMMENT object."]
    #[doc = " \\param entry   The entry to set the vendor string to."]
    #[doc = " \\param copy    See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_VORBIS_COMMENT \\endcode"]
    #[doc = "    \\code (entry.entry != NULL && entry.length > 0) ||"]
    #[doc = " (entry.entry == NULL && entry.length == 0) \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if memory allocation fails or \\a entry does not comply with the"]
    #[doc = "    Vorbis comment specification, else \\c true."]
    pub fn FLAC__metadata_object_vorbiscomment_set_vendor_string(
        object: *mut FLAC__StreamMetadata,
        entry: FLAC__StreamMetadata_VorbisComment_Entry,
        copy: FLAC__bool,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Resize the comment array."]
    #[doc = ""]
    #[doc = "  If the size shrinks, elements will truncated; if it grows, new empty"]
    #[doc = "  fields will be added to the end."]
    #[doc = ""]
    #[doc = " \\param object            A pointer to an existing VORBIS_COMMENT object."]
    #[doc = " \\param new_num_comments  The desired length of the array; may be \\c 0."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_VORBIS_COMMENT \\endcode"]
    #[doc = "    \\code (object->data.vorbis_comment.comments == NULL && object->data.vorbis_comment.num_comments == 0) ||"]
    #[doc = " (object->data.vorbis_comment.comments != NULL && object->data.vorbis_comment.num_comments > 0) \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if memory allocation fails, else \\c true."]
    pub fn FLAC__metadata_object_vorbiscomment_resize_comments(
        object: *mut FLAC__StreamMetadata,
        new_num_comments: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Sets a comment in a VORBIS_COMMENT block."]
    #[doc = ""]
    #[doc = "  For convenience, a trailing NUL is added to the entry if it doesn\'t have"]
    #[doc = "  one already."]
    #[doc = ""]
    #[doc = "  If \\a copy is \\c true, a copy of the entry is stored; otherwise, the object"]
    #[doc = "  takes ownership of the \\c entry.entry pointer."]
    #[doc = ""]
    #[doc = "  \\note If this function returns \\c false, the caller still owns the"]
    #[doc = "  pointer."]
    #[doc = ""]
    #[doc = " \\param object       A pointer to an existing VORBIS_COMMENT object."]
    #[doc = " \\param comment_num  Index into comment array to set."]
    #[doc = " \\param entry        The entry to set the comment to."]
    #[doc = " \\param copy         See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_VORBIS_COMMENT \\endcode"]
    #[doc = "    \\code comment_num < object->data.vorbis_comment.num_comments \\endcode"]
    #[doc = "    \\code (entry.entry != NULL && entry.length > 0) ||"]
    #[doc = " (entry.entry == NULL && entry.length == 0) \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if memory allocation fails or \\a entry does not comply with the"]
    #[doc = "    Vorbis comment specification, else \\c true."]
    pub fn FLAC__metadata_object_vorbiscomment_set_comment(
        object: *mut FLAC__StreamMetadata,
        comment_num: ::std::os::raw::c_uint,
        entry: FLAC__StreamMetadata_VorbisComment_Entry,
        copy: FLAC__bool,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Insert a comment in a VORBIS_COMMENT block at the given index."]
    #[doc = ""]
    #[doc = "  For convenience, a trailing NUL is added to the entry if it doesn\'t have"]
    #[doc = "  one already."]
    #[doc = ""]
    #[doc = "  If \\a copy is \\c true, a copy of the entry is stored; otherwise, the object"]
    #[doc = "  takes ownership of the \\c entry.entry pointer."]
    #[doc = ""]
    #[doc = "  \\note If this function returns \\c false, the caller still owns the"]
    #[doc = "  pointer."]
    #[doc = ""]
    #[doc = " \\param object       A pointer to an existing VORBIS_COMMENT object."]
    #[doc = " \\param comment_num  The index at which to insert the comment.  The comments"]
    #[doc = "                     at and after \\a comment_num move right one position."]
    #[doc = "                     To append a comment to the end, set \\a comment_num to"]
    #[doc = "                     \\c object->data.vorbis_comment.num_comments ."]
    #[doc = " \\param entry        The comment to insert."]
    #[doc = " \\param copy         See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_VORBIS_COMMENT \\endcode"]
    #[doc = "    \\code object->data.vorbis_comment.num_comments >= comment_num \\endcode"]
    #[doc = "    \\code (entry.entry != NULL && entry.length > 0) ||"]
    #[doc = " (entry.entry == NULL && entry.length == 0 && copy == false) \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if memory allocation fails or \\a entry does not comply with the"]
    #[doc = "    Vorbis comment specification, else \\c true."]
    pub fn FLAC__metadata_object_vorbiscomment_insert_comment(
        object: *mut FLAC__StreamMetadata,
        comment_num: ::std::os::raw::c_uint,
        entry: FLAC__StreamMetadata_VorbisComment_Entry,
        copy: FLAC__bool,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Appends a comment to a VORBIS_COMMENT block."]
    #[doc = ""]
    #[doc = "  For convenience, a trailing NUL is added to the entry if it doesn\'t have"]
    #[doc = "  one already."]
    #[doc = ""]
    #[doc = "  If \\a copy is \\c true, a copy of the entry is stored; otherwise, the object"]
    #[doc = "  takes ownership of the \\c entry.entry pointer."]
    #[doc = ""]
    #[doc = "  \\note If this function returns \\c false, the caller still owns the"]
    #[doc = "  pointer."]
    #[doc = ""]
    #[doc = " \\param object       A pointer to an existing VORBIS_COMMENT object."]
    #[doc = " \\param entry        The comment to insert."]
    #[doc = " \\param copy         See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_VORBIS_COMMENT \\endcode"]
    #[doc = "    \\code (entry.entry != NULL && entry.length > 0) ||"]
    #[doc = " (entry.entry == NULL && entry.length == 0 && copy == false) \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if memory allocation fails or \\a entry does not comply with the"]
    #[doc = "    Vorbis comment specification, else \\c true."]
    pub fn FLAC__metadata_object_vorbiscomment_append_comment(
        object: *mut FLAC__StreamMetadata,
        entry: FLAC__StreamMetadata_VorbisComment_Entry,
        copy: FLAC__bool,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Replaces comments in a VORBIS_COMMENT block with a new one."]
    #[doc = ""]
    #[doc = "  For convenience, a trailing NUL is added to the entry if it doesn\'t have"]
    #[doc = "  one already."]
    #[doc = ""]
    #[doc = "  Depending on the value of \\a all, either all or just the first comment"]
    #[doc = "  whose field name(s) match the given entry\'s name will be replaced by the"]
    #[doc = "  given entry.  If no comments match, \\a entry will simply be appended."]
    #[doc = ""]
    #[doc = "  If \\a copy is \\c true, a copy of the entry is stored; otherwise, the object"]
    #[doc = "  takes ownership of the \\c entry.entry pointer."]
    #[doc = ""]
    #[doc = "  \\note If this function returns \\c false, the caller still owns the"]
    #[doc = "  pointer."]
    #[doc = ""]
    #[doc = " \\param object       A pointer to an existing VORBIS_COMMENT object."]
    #[doc = " \\param entry        The comment to insert."]
    #[doc = " \\param all          If \\c true, all comments whose field name matches"]
    #[doc = "                     \\a entry\'s field name will be removed, and \\a entry will"]
    #[doc = "                     be inserted at the position of the first matching"]
    #[doc = "                     comment.  If \\c false, only the first comment whose"]
    #[doc = "                     field name matches \\a entry\'s field name will be"]
    #[doc = "                     replaced with \\a entry."]
    #[doc = " \\param copy         See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_VORBIS_COMMENT \\endcode"]
    #[doc = "    \\code (entry.entry != NULL && entry.length > 0) ||"]
    #[doc = " (entry.entry == NULL && entry.length == 0 && copy == false) \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if memory allocation fails or \\a entry does not comply with the"]
    #[doc = "    Vorbis comment specification, else \\c true."]
    pub fn FLAC__metadata_object_vorbiscomment_replace_comment(
        object: *mut FLAC__StreamMetadata,
        entry: FLAC__StreamMetadata_VorbisComment_Entry,
        all: FLAC__bool,
        copy: FLAC__bool,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Delete a comment in a VORBIS_COMMENT block at the given index."]
    #[doc = ""]
    #[doc = " \\param object       A pointer to an existing VORBIS_COMMENT object."]
    #[doc = " \\param comment_num  The index of the comment to delete."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_VORBIS_COMMENT \\endcode"]
    #[doc = "    \\code object->data.vorbis_comment.num_comments > comment_num \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if realloc() fails, else \\c true."]
    pub fn FLAC__metadata_object_vorbiscomment_delete_comment(
        object: *mut FLAC__StreamMetadata,
        comment_num: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Creates a Vorbis comment entry from NUL-terminated name and value strings."]
    #[doc = ""]
    #[doc = "  On return, the filled-in \\a entry->entry pointer will point to malloc()ed"]
    #[doc = "  memory and shall be owned by the caller.  For convenience the entry will"]
    #[doc = "  have a terminating NUL."]
    #[doc = ""]
    #[doc = " \\param entry              A pointer to a Vorbis comment entry.  The entry\'s"]
    #[doc = "                           \\c entry pointer should not point to allocated"]
    #[doc = "                           memory as it will be overwritten."]
    #[doc = " \\param field_name         The field name in ASCII, \\c NUL terminated."]
    #[doc = " \\param field_value        The field value in UTF-8, \\c NUL terminated."]
    #[doc = " \\assert"]
    #[doc = "    \\code entry != NULL \\endcode"]
    #[doc = "    \\code field_name != NULL \\endcode"]
    #[doc = "    \\code field_value != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if malloc() fails, or if \\a field_name or \\a field_value does"]
    #[doc = "    not comply with the Vorbis comment specification, else \\c true."]
    pub fn FLAC__metadata_object_vorbiscomment_entry_from_name_value_pair(
        entry: *mut FLAC__StreamMetadata_VorbisComment_Entry,
        field_name: *const ::std::os::raw::c_char,
        field_value: *const ::std::os::raw::c_char,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Splits a Vorbis comment entry into NUL-terminated name and value strings."]
    #[doc = ""]
    #[doc = "  The returned pointers to name and value will be allocated by malloc()"]
    #[doc = "  and shall be owned by the caller."]
    #[doc = ""]
    #[doc = " \\param entry              An existing Vorbis comment entry."]
    #[doc = " \\param field_name         The address of where the returned pointer to the"]
    #[doc = "                           field name will be stored."]
    #[doc = " \\param field_value        The address of where the returned pointer to the"]
    #[doc = "                           field value will be stored."]
    #[doc = " \\assert"]
    #[doc = "    \\code (entry.entry != NULL && entry.length > 0) \\endcode"]
    #[doc = "    \\code memchr(entry.entry, \'=\', entry.length) != NULL \\endcode"]
    #[doc = "    \\code field_name != NULL \\endcode"]
    #[doc = "    \\code field_value != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if memory allocation fails or \\a entry does not comply with the"]
    #[doc = "    Vorbis comment specification, else \\c true."]
    pub fn FLAC__metadata_object_vorbiscomment_entry_to_name_value_pair(
        entry: FLAC__StreamMetadata_VorbisComment_Entry,
        field_name: *mut *mut ::std::os::raw::c_char,
        field_value: *mut *mut ::std::os::raw::c_char,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Check if the given Vorbis comment entry\'s field name matches the given"]
    #[doc = "  field name."]
    #[doc = ""]
    #[doc = " \\param entry              An existing Vorbis comment entry."]
    #[doc = " \\param field_name         The field name to check."]
    #[doc = " \\param field_name_length  The length of \\a field_name, not including the"]
    #[doc = "                           terminating \\c NUL."]
    #[doc = " \\assert"]
    #[doc = "    \\code (entry.entry != NULL && entry.length > 0) \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c true if the field names match, else \\c false"]
    pub fn FLAC__metadata_object_vorbiscomment_entry_matches(
        entry: FLAC__StreamMetadata_VorbisComment_Entry,
        field_name: *const ::std::os::raw::c_char,
        field_name_length: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Find a Vorbis comment with the given field name."]
    #[doc = ""]
    #[doc = "  The search begins at entry number \\a offset; use an offset of 0 to"]
    #[doc = "  search from the beginning of the comment array."]
    #[doc = ""]
    #[doc = " \\param object      A pointer to an existing VORBIS_COMMENT object."]
    #[doc = " \\param offset      The offset into the comment array from where to start"]
    #[doc = "                    the search."]
    #[doc = " \\param field_name  The field name of the comment to find."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_VORBIS_COMMENT \\endcode"]
    #[doc = "    \\code field_name != NULL \\endcode"]
    #[doc = " \\retval int"]
    #[doc = "    The offset in the comment array of the first comment whose field"]
    #[doc = "    name matches \\a field_name, or \\c -1 if no match was found."]
    pub fn FLAC__metadata_object_vorbiscomment_find_entry_from(
        object: *const FLAC__StreamMetadata,
        offset: ::std::os::raw::c_uint,
        field_name: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Remove first Vorbis comment matching the given field name."]
    #[doc = ""]
    #[doc = " \\param object      A pointer to an existing VORBIS_COMMENT object."]
    #[doc = " \\param field_name  The field name of comment to delete."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_VORBIS_COMMENT \\endcode"]
    #[doc = " \\retval int"]
    #[doc = "    \\c -1 for memory allocation error, \\c 0 for no matching entries,"]
    #[doc = "    \\c 1 for one matching entry deleted."]
    pub fn FLAC__metadata_object_vorbiscomment_remove_entry_matching(
        object: *mut FLAC__StreamMetadata,
        field_name: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Remove all Vorbis comments matching the given field name."]
    #[doc = ""]
    #[doc = " \\param object      A pointer to an existing VORBIS_COMMENT object."]
    #[doc = " \\param field_name  The field name of comments to delete."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_VORBIS_COMMENT \\endcode"]
    #[doc = " \\retval int"]
    #[doc = "    \\c -1 for memory allocation error, \\c 0 for no matching entries,"]
    #[doc = "    else the number of matching entries deleted."]
    pub fn FLAC__metadata_object_vorbiscomment_remove_entries_matching(
        object: *mut FLAC__StreamMetadata,
        field_name: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Create a new CUESHEET track instance."]
    #[doc = ""]
    #[doc = "  The object will be \"empty\"; i.e. values and data pointers will be \\c 0."]
    #[doc = ""]
    #[doc = " \\retval FLAC__StreamMetadata_CueSheet_Track*"]
    #[doc = "    \\c NULL if there was an error allocating memory, else the new instance."]
    pub fn FLAC__metadata_object_cuesheet_track_new() -> *mut FLAC__StreamMetadata_CueSheet_Track;
}
extern "C" {
    #[doc = " Create a copy of an existing CUESHEET track object."]
    #[doc = ""]
    #[doc = "  The copy is a \"deep\" copy, i.e. dynamically allocated data within the"]
    #[doc = "  object is also copied.  The caller takes ownership of the new object and"]
    #[doc = "  is responsible for freeing it with"]
    #[doc = "  FLAC__metadata_object_cuesheet_track_delete()."]
    #[doc = ""]
    #[doc = " \\param object  Pointer to object to copy."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = " \\retval FLAC__StreamMetadata_CueSheet_Track*"]
    #[doc = "    \\c NULL if there was an error allocating memory, else the new instance."]
    pub fn FLAC__metadata_object_cuesheet_track_clone(
        object: *const FLAC__StreamMetadata_CueSheet_Track,
    ) -> *mut FLAC__StreamMetadata_CueSheet_Track;
}
extern "C" {
    #[doc = " Delete a CUESHEET track object"]
    #[doc = ""]
    #[doc = " \\param object       A pointer to an existing CUESHEET track object."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    pub fn FLAC__metadata_object_cuesheet_track_delete(
        object: *mut FLAC__StreamMetadata_CueSheet_Track,
    );
}
extern "C" {
    #[doc = " Resize a track\'s index point array."]
    #[doc = ""]
    #[doc = "  If the size shrinks, elements will truncated; if it grows, new blank"]
    #[doc = "  indices will be added to the end."]
    #[doc = ""]
    #[doc = " \\param object           A pointer to an existing CUESHEET object."]
    #[doc = " \\param track_num        The index of the track to modify.  NOTE: this is not"]
    #[doc = "                         necessarily the same as the track\'s \\a number field."]
    #[doc = " \\param new_num_indices  The desired length of the array; may be \\c 0."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_CUESHEET \\endcode"]
    #[doc = "    \\code object->data.cue_sheet.num_tracks > track_num \\endcode"]
    #[doc = "    \\code (object->data.cue_sheet.tracks[track_num].indices == NULL && object->data.cue_sheet.tracks[track_num].num_indices == 0) ||"]
    #[doc = " (object->data.cue_sheet.tracks[track_num].indices != NULL && object->data.cue_sheet.tracks[track_num].num_indices > 0) \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if memory allocation error, else \\c true."]
    pub fn FLAC__metadata_object_cuesheet_track_resize_indices(
        object: *mut FLAC__StreamMetadata,
        track_num: ::std::os::raw::c_uint,
        new_num_indices: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Insert an index point in a CUESHEET track at the given index."]
    #[doc = ""]
    #[doc = " \\param object       A pointer to an existing CUESHEET object."]
    #[doc = " \\param track_num    The index of the track to modify.  NOTE: this is not"]
    #[doc = "                     necessarily the same as the track\'s \\a number field."]
    #[doc = " \\param index_num    The index into the track\'s index array at which to"]
    #[doc = "                     insert the index point.  NOTE: this is not necessarily"]
    #[doc = "                     the same as the index point\'s \\a number field.  The"]
    #[doc = "                     indices at and after \\a index_num move right one"]
    #[doc = "                     position.  To append an index point to the end, set"]
    #[doc = "                     \\a index_num to"]
    #[doc = "                     \\c object->data.cue_sheet.tracks[track_num].num_indices ."]
    #[doc = " \\param index        The index point to insert."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_CUESHEET \\endcode"]
    #[doc = "    \\code object->data.cue_sheet.num_tracks > track_num \\endcode"]
    #[doc = "    \\code object->data.cue_sheet.tracks[track_num].num_indices >= index_num \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if realloc() fails, else \\c true."]
    pub fn FLAC__metadata_object_cuesheet_track_insert_index(
        object: *mut FLAC__StreamMetadata,
        track_num: ::std::os::raw::c_uint,
        index_num: ::std::os::raw::c_uint,
        index: FLAC__StreamMetadata_CueSheet_Index,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Insert a blank index point in a CUESHEET track at the given index."]
    #[doc = ""]
    #[doc = "  A blank index point is one in which all field values are zero."]
    #[doc = ""]
    #[doc = " \\param object       A pointer to an existing CUESHEET object."]
    #[doc = " \\param track_num    The index of the track to modify.  NOTE: this is not"]
    #[doc = "                     necessarily the same as the track\'s \\a number field."]
    #[doc = " \\param index_num    The index into the track\'s index array at which to"]
    #[doc = "                     insert the index point.  NOTE: this is not necessarily"]
    #[doc = "                     the same as the index point\'s \\a number field.  The"]
    #[doc = "                     indices at and after \\a index_num move right one"]
    #[doc = "                     position.  To append an index point to the end, set"]
    #[doc = "                     \\a index_num to"]
    #[doc = "                     \\c object->data.cue_sheet.tracks[track_num].num_indices ."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_CUESHEET \\endcode"]
    #[doc = "    \\code object->data.cue_sheet.num_tracks > track_num \\endcode"]
    #[doc = "    \\code object->data.cue_sheet.tracks[track_num].num_indices >= index_num \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if realloc() fails, else \\c true."]
    pub fn FLAC__metadata_object_cuesheet_track_insert_blank_index(
        object: *mut FLAC__StreamMetadata,
        track_num: ::std::os::raw::c_uint,
        index_num: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Delete an index point in a CUESHEET track at the given index."]
    #[doc = ""]
    #[doc = " \\param object       A pointer to an existing CUESHEET object."]
    #[doc = " \\param track_num    The index into the track array of the track to"]
    #[doc = "                     modify.  NOTE: this is not necessarily the same"]
    #[doc = "                     as the track\'s \\a number field."]
    #[doc = " \\param index_num    The index into the track\'s index array of the index"]
    #[doc = "                     to delete.  NOTE: this is not necessarily the same"]
    #[doc = "                     as the index\'s \\a number field."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_CUESHEET \\endcode"]
    #[doc = "    \\code object->data.cue_sheet.num_tracks > track_num \\endcode"]
    #[doc = "    \\code object->data.cue_sheet.tracks[track_num].num_indices > index_num \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if realloc() fails, else \\c true."]
    pub fn FLAC__metadata_object_cuesheet_track_delete_index(
        object: *mut FLAC__StreamMetadata,
        track_num: ::std::os::raw::c_uint,
        index_num: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Resize the track array."]
    #[doc = ""]
    #[doc = "  If the size shrinks, elements will truncated; if it grows, new blank"]
    #[doc = "  tracks will be added to the end."]
    #[doc = ""]
    #[doc = " \\param object            A pointer to an existing CUESHEET object."]
    #[doc = " \\param new_num_tracks    The desired length of the array; may be \\c 0."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_CUESHEET \\endcode"]
    #[doc = "    \\code (object->data.cue_sheet.tracks == NULL && object->data.cue_sheet.num_tracks == 0) ||"]
    #[doc = " (object->data.cue_sheet.tracks != NULL && object->data.cue_sheet.num_tracks > 0) \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if memory allocation error, else \\c true."]
    pub fn FLAC__metadata_object_cuesheet_resize_tracks(
        object: *mut FLAC__StreamMetadata,
        new_num_tracks: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Sets a track in a CUESHEET block."]
    #[doc = ""]
    #[doc = "  If \\a copy is \\c true, a copy of the track is stored; otherwise, the object"]
    #[doc = "  takes ownership of the \\a track pointer."]
    #[doc = ""]
    #[doc = " \\param object       A pointer to an existing CUESHEET object."]
    #[doc = " \\param track_num    Index into track array to set.  NOTE: this is not"]
    #[doc = "                     necessarily the same as the track\'s \\a number field."]
    #[doc = " \\param track        The track to set the track to.  You may safely pass in"]
    #[doc = "                     a const pointer if \\a copy is \\c true."]
    #[doc = " \\param copy         See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_CUESHEET \\endcode"]
    #[doc = "    \\code track_num < object->data.cue_sheet.num_tracks \\endcode"]
    #[doc = "    \\code (track->indices != NULL && track->num_indices > 0) ||"]
    #[doc = " (track->indices == NULL && track->num_indices == 0) \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if \\a copy is \\c true and malloc() fails, else \\c true."]
    pub fn FLAC__metadata_object_cuesheet_set_track(
        object: *mut FLAC__StreamMetadata,
        track_num: ::std::os::raw::c_uint,
        track: *mut FLAC__StreamMetadata_CueSheet_Track,
        copy: FLAC__bool,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Insert a track in a CUESHEET block at the given index."]
    #[doc = ""]
    #[doc = "  If \\a copy is \\c true, a copy of the track is stored; otherwise, the object"]
    #[doc = "  takes ownership of the \\a track pointer."]
    #[doc = ""]
    #[doc = " \\param object       A pointer to an existing CUESHEET object."]
    #[doc = " \\param track_num    The index at which to insert the track.  NOTE: this"]
    #[doc = "                     is not necessarily the same as the track\'s \\a number"]
    #[doc = "                     field.  The tracks at and after \\a track_num move right"]
    #[doc = "                     one position.  To append a track to the end, set"]
    #[doc = "                     \\a track_num to \\c object->data.cue_sheet.num_tracks ."]
    #[doc = " \\param track        The track to insert.  You may safely pass in a const"]
    #[doc = "                     pointer if \\a copy is \\c true."]
    #[doc = " \\param copy         See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_CUESHEET \\endcode"]
    #[doc = "    \\code object->data.cue_sheet.num_tracks >= track_num \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if \\a copy is \\c true and malloc() fails, else \\c true."]
    pub fn FLAC__metadata_object_cuesheet_insert_track(
        object: *mut FLAC__StreamMetadata,
        track_num: ::std::os::raw::c_uint,
        track: *mut FLAC__StreamMetadata_CueSheet_Track,
        copy: FLAC__bool,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Insert a blank track in a CUESHEET block at the given index."]
    #[doc = ""]
    #[doc = "  A blank track is one in which all field values are zero."]
    #[doc = ""]
    #[doc = " \\param object       A pointer to an existing CUESHEET object."]
    #[doc = " \\param track_num    The index at which to insert the track.  NOTE: this"]
    #[doc = "                     is not necessarily the same as the track\'s \\a number"]
    #[doc = "                     field.  The tracks at and after \\a track_num move right"]
    #[doc = "                     one position.  To append a track to the end, set"]
    #[doc = "                     \\a track_num to \\c object->data.cue_sheet.num_tracks ."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_CUESHEET \\endcode"]
    #[doc = "    \\code object->data.cue_sheet.num_tracks >= track_num \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if \\a copy is \\c true and malloc() fails, else \\c true."]
    pub fn FLAC__metadata_object_cuesheet_insert_blank_track(
        object: *mut FLAC__StreamMetadata,
        track_num: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Delete a track in a CUESHEET block at the given index."]
    #[doc = ""]
    #[doc = " \\param object       A pointer to an existing CUESHEET object."]
    #[doc = " \\param track_num    The index into the track array of the track to"]
    #[doc = "                     delete.  NOTE: this is not necessarily the same"]
    #[doc = "                     as the track\'s \\a number field."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_CUESHEET \\endcode"]
    #[doc = "    \\code object->data.cue_sheet.num_tracks > track_num \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if realloc() fails, else \\c true."]
    pub fn FLAC__metadata_object_cuesheet_delete_track(
        object: *mut FLAC__StreamMetadata,
        track_num: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Check a cue sheet to see if it conforms to the FLAC specification."]
    #[doc = "  See the format specification for limits on the contents of the"]
    #[doc = "  cue sheet."]
    #[doc = ""]
    #[doc = " \\param object     A pointer to an existing CUESHEET object."]
    #[doc = " \\param check_cd_da_subset  If \\c true, check CUESHEET against more"]
    #[doc = "                   stringent requirements for a CD-DA (audio) disc."]
    #[doc = " \\param violation  Address of a pointer to a string.  If there is a"]
    #[doc = "                   violation, a pointer to a string explanation of the"]
    #[doc = "                   violation will be returned here. \\a violation may be"]
    #[doc = "                   \\c NULL if you don\'t need the returned string.  Do not"]
    #[doc = "                   free the returned string; it will always point to static"]
    #[doc = "                   data."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_CUESHEET \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if cue sheet is illegal, else \\c true."]
    pub fn FLAC__metadata_object_cuesheet_is_legal(
        object: *const FLAC__StreamMetadata,
        check_cd_da_subset: FLAC__bool,
        violation: *mut *const ::std::os::raw::c_char,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Calculate and return the CDDB/freedb ID for a cue sheet.  The function"]
    #[doc = "  assumes the cue sheet corresponds to a CD; the result is undefined"]
    #[doc = "  if the cuesheet\'s is_cd bit is not set."]
    #[doc = ""]
    #[doc = " \\param object     A pointer to an existing CUESHEET object."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_CUESHEET \\endcode"]
    #[doc = " \\retval FLAC__uint32"]
    #[doc = "    The unsigned integer representation of the CDDB/freedb ID"]
    pub fn FLAC__metadata_object_cuesheet_calculate_cddb_id(
        object: *const FLAC__StreamMetadata,
    ) -> FLAC__uint32;
}
extern "C" {
    #[doc = " Sets the MIME type of a PICTURE block."]
    #[doc = ""]
    #[doc = "  If \\a copy is \\c true, a copy of the string is stored; otherwise, the object"]
    #[doc = "  takes ownership of the pointer.  The existing string will be freed if this"]
    #[doc = "  function is successful, otherwise the original string will remain if \\a copy"]
    #[doc = "  is \\c true and malloc() fails."]
    #[doc = ""]
    #[doc = " \\note It is safe to pass a const pointer to \\a mime_type if \\a copy is \\c true."]
    #[doc = ""]
    #[doc = " \\param object      A pointer to an existing PICTURE object."]
    #[doc = " \\param mime_type   A pointer to the MIME type string.  The string must be"]
    #[doc = "                    ASCII characters 0x20-0x7e, NUL-terminated.  No validation"]
    #[doc = "                    is done."]
    #[doc = " \\param copy        See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_PICTURE \\endcode"]
    #[doc = "    \\code (mime_type != NULL) \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if \\a copy is \\c true and malloc() fails, else \\c true."]
    pub fn FLAC__metadata_object_picture_set_mime_type(
        object: *mut FLAC__StreamMetadata,
        mime_type: *mut ::std::os::raw::c_char,
        copy: FLAC__bool,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Sets the description of a PICTURE block."]
    #[doc = ""]
    #[doc = "  If \\a copy is \\c true, a copy of the string is stored; otherwise, the object"]
    #[doc = "  takes ownership of the pointer.  The existing string will be freed if this"]
    #[doc = "  function is successful, otherwise the original string will remain if \\a copy"]
    #[doc = "  is \\c true and malloc() fails."]
    #[doc = ""]
    #[doc = " \\note It is safe to pass a const pointer to \\a description if \\a copy is \\c true."]
    #[doc = ""]
    #[doc = " \\param object      A pointer to an existing PICTURE object."]
    #[doc = " \\param description A pointer to the description string.  The string must be"]
    #[doc = "                    valid UTF-8, NUL-terminated.  No validation is done."]
    #[doc = " \\param copy        See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_PICTURE \\endcode"]
    #[doc = "    \\code (description != NULL) \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if \\a copy is \\c true and malloc() fails, else \\c true."]
    pub fn FLAC__metadata_object_picture_set_description(
        object: *mut FLAC__StreamMetadata,
        description: *mut FLAC__byte,
        copy: FLAC__bool,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Sets the picture data of a PICTURE block."]
    #[doc = ""]
    #[doc = "  If \\a copy is \\c true, a copy of the data is stored; otherwise, the object"]
    #[doc = "  takes ownership of the pointer.  Also sets the \\a data_length field of the"]
    #[doc = "  metadata object to what is passed in as the \\a length parameter.  The"]
    #[doc = "  existing data will be freed if this function is successful, otherwise the"]
    #[doc = "  original data and data_length will remain if \\a copy is \\c true and"]
    #[doc = "  malloc() fails."]
    #[doc = ""]
    #[doc = " \\note It is safe to pass a const pointer to \\a data if \\a copy is \\c true."]
    #[doc = ""]
    #[doc = " \\param object  A pointer to an existing PICTURE object."]
    #[doc = " \\param data    A pointer to the data to set."]
    #[doc = " \\param length  The length of \\a data in bytes."]
    #[doc = " \\param copy    See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_PICTURE \\endcode"]
    #[doc = "    \\code (data != NULL && length > 0) ||"]
    #[doc = " (data == NULL && length == 0 && copy == false) \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if \\a copy is \\c true and malloc() fails, else \\c true."]
    pub fn FLAC__metadata_object_picture_set_data(
        object: *mut FLAC__StreamMetadata,
        data: *mut FLAC__byte,
        length: FLAC__uint32,
        copy: FLAC__bool,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Check a PICTURE block to see if it conforms to the FLAC specification."]
    #[doc = "  See the format specification for limits on the contents of the"]
    #[doc = "  PICTURE block."]
    #[doc = ""]
    #[doc = " \\param object     A pointer to existing PICTURE block to be checked."]
    #[doc = " \\param violation  Address of a pointer to a string.  If there is a"]
    #[doc = "                   violation, a pointer to a string explanation of the"]
    #[doc = "                   violation will be returned here. \\a violation may be"]
    #[doc = "                   \\c NULL if you don\'t need the returned string.  Do not"]
    #[doc = "                   free the returned string; it will always point to static"]
    #[doc = "                   data."]
    #[doc = " \\assert"]
    #[doc = "    \\code object != NULL \\endcode"]
    #[doc = "    \\code object->type == FLAC__METADATA_TYPE_PICTURE \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if PICTURE block is illegal, else \\c true."]
    pub fn FLAC__metadata_object_picture_is_legal(
        object: *const FLAC__StreamMetadata,
        violation: *mut *const ::std::os::raw::c_char,
    ) -> FLAC__bool;
}
pub type va_list = __builtin_va_list;
pub type __gnuc_va_list = __builtin_va_list;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct __mbstate_t {
    pub __count: ::std::os::raw::c_int,
    pub __value: __mbstate_t__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __mbstate_t__bindgen_ty_1 {
    pub __wch: ::std::os::raw::c_uint,
    pub __wchb: [::std::os::raw::c_char; 4usize],
    _bindgen_union_align: u32,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _G_fpos_t {
    pub __pos: __off_t,
    pub __state: __mbstate_t,
}
pub type __fpos_t = _G_fpos_t;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _G_fpos64_t {
    pub __pos: __off64_t,
    pub __state: __mbstate_t,
}
pub type __fpos64_t = _G_fpos64_t;
pub type __FILE = _IO_FILE;
pub type FILE = _IO_FILE;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_marker {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_codecvt {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_wide_data {
    _unused: [u8; 0],
}
pub type _IO_lock_t = ::std::os::raw::c_void;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_FILE {
    pub _flags: ::std::os::raw::c_int,
    pub _IO_read_ptr: *mut ::std::os::raw::c_char,
    pub _IO_read_end: *mut ::std::os::raw::c_char,
    pub _IO_read_base: *mut ::std::os::raw::c_char,
    pub _IO_write_base: *mut ::std::os::raw::c_char,
    pub _IO_write_ptr: *mut ::std::os::raw::c_char,
    pub _IO_write_end: *mut ::std::os::raw::c_char,
    pub _IO_buf_base: *mut ::std::os::raw::c_char,
    pub _IO_buf_end: *mut ::std::os::raw::c_char,
    pub _IO_save_base: *mut ::std::os::raw::c_char,
    pub _IO_backup_base: *mut ::std::os::raw::c_char,
    pub _IO_save_end: *mut ::std::os::raw::c_char,
    pub _markers: *mut _IO_marker,
    pub _chain: *mut _IO_FILE,
    pub _fileno: ::std::os::raw::c_int,
    pub _flags2: ::std::os::raw::c_int,
    pub _old_offset: __off_t,
    pub _cur_column: ::std::os::raw::c_ushort,
    pub _vtable_offset: ::std::os::raw::c_schar,
    pub _shortbuf: [::std::os::raw::c_char; 1usize],
    pub _lock: *mut _IO_lock_t,
    pub _offset: __off64_t,
    pub _codecvt: *mut _IO_codecvt,
    pub _wide_data: *mut _IO_wide_data,
    pub _freeres_list: *mut _IO_FILE,
    pub _freeres_buf: *mut ::std::os::raw::c_void,
    pub __pad5: usize,
    pub _mode: ::std::os::raw::c_int,
    pub _unused2: [::std::os::raw::c_char; 20usize],
}
pub type fpos_t = __fpos_t;
extern "C" {
    #[link_name = "\u{1}stdin"]
    pub static mut stdin: *mut FILE;
}
extern "C" {
    #[link_name = "\u{1}stdout"]
    pub static mut stdout: *mut FILE;
}
extern "C" {
    #[link_name = "\u{1}stderr"]
    pub static mut stderr: *mut FILE;
}
extern "C" {
    pub fn remove(__filename: *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 renameat(
        __oldfd: ::std::os::raw::c_int,
        __old: *const ::std::os::raw::c_char,
        __newfd: ::std::os::raw::c_int,
        __new: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn tmpfile() -> *mut FILE;
}
extern "C" {
    pub fn tmpnam(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn tmpnam_r(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn tempnam(
        __dir: *const ::std::os::raw::c_char,
        __pfx: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn fclose(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fflush(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fflush_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fopen(
        __filename: *const ::std::os::raw::c_char,
        __modes: *const ::std::os::raw::c_char,
    ) -> *mut FILE;
}
extern "C" {
    pub fn freopen(
        __filename: *const ::std::os::raw::c_char,
        __modes: *const ::std::os::raw::c_char,
        __stream: *mut FILE,
    ) -> *mut FILE;
}
extern "C" {
    pub fn fdopen(__fd: ::std::os::raw::c_int, __modes: *const ::std::os::raw::c_char)
        -> *mut FILE;
}
extern "C" {
    pub fn fmemopen(
        __s: *mut ::std::os::raw::c_void,
        __len: usize,
        __modes: *const ::std::os::raw::c_char,
    ) -> *mut FILE;
}
extern "C" {
    pub fn open_memstream(
        __bufloc: *mut *mut ::std::os::raw::c_char,
        __sizeloc: *mut usize,
    ) -> *mut FILE;
}
extern "C" {
    pub fn setbuf(__stream: *mut FILE, __buf: *mut ::std::os::raw::c_char);
}
extern "C" {
    pub fn setvbuf(
        __stream: *mut FILE,
        __buf: *mut ::std::os::raw::c_char,
        __modes: ::std::os::raw::c_int,
        __n: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn setbuffer(__stream: *mut FILE, __buf: *mut ::std::os::raw::c_char, __size: usize);
}
extern "C" {
    pub fn setlinebuf(__stream: *mut FILE);
}
extern "C" {
    pub fn fprintf(
        __stream: *mut FILE,
        __format: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn printf(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sprintf(
        __s: *mut ::std::os::raw::c_char,
        __format: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn vfprintf(
        __s: *mut FILE,
        __format: *const ::std::os::raw::c_char,
        __arg: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn vprintf(
        __format: *const ::std::os::raw::c_char,
        __arg: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn vsprintf(
        __s: *mut ::std::os::raw::c_char,
        __format: *const ::std::os::raw::c_char,
        __arg: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn snprintf(
        __s: *mut ::std::os::raw::c_char,
        __maxlen: ::std::os::raw::c_ulong,
        __format: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn vsnprintf(
        __s: *mut ::std::os::raw::c_char,
        __maxlen: ::std::os::raw::c_ulong,
        __format: *const ::std::os::raw::c_char,
        __arg: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn vdprintf(
        __fd: ::std::os::raw::c_int,
        __fmt: *const ::std::os::raw::c_char,
        __arg: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn dprintf(
        __fd: ::std::os::raw::c_int,
        __fmt: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fscanf(
        __stream: *mut FILE,
        __format: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn scanf(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sscanf(
        __s: *const ::std::os::raw::c_char,
        __format: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}__isoc99_fscanf"]
    pub fn fscanf1(
        __stream: *mut FILE,
        __format: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}__isoc99_scanf"]
    pub fn scanf1(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}__isoc99_sscanf"]
    pub fn sscanf1(
        __s: *const ::std::os::raw::c_char,
        __format: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn vfscanf(
        __s: *mut FILE,
        __format: *const ::std::os::raw::c_char,
        __arg: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn vscanf(
        __format: *const ::std::os::raw::c_char,
        __arg: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn vsscanf(
        __s: *const ::std::os::raw::c_char,
        __format: *const ::std::os::raw::c_char,
        __arg: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}__isoc99_vfscanf"]
    pub fn vfscanf1(
        __s: *mut FILE,
        __format: *const ::std::os::raw::c_char,
        __arg: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}__isoc99_vscanf"]
    pub fn vscanf1(
        __format: *const ::std::os::raw::c_char,
        __arg: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}__isoc99_vsscanf"]
    pub fn vsscanf1(
        __s: *const ::std::os::raw::c_char,
        __format: *const ::std::os::raw::c_char,
        __arg: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fgetc(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn getc(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn getchar() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn getc_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn getchar_unlocked() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fgetc_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fputc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn putc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn putchar(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fputc_unlocked(__c: ::std::os::raw::c_int, __stream: *mut FILE)
        -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn putc_unlocked(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn putchar_unlocked(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn getw(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn putw(__w: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fgets(
        __s: *mut ::std::os::raw::c_char,
        __n: ::std::os::raw::c_int,
        __stream: *mut FILE,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn __getdelim(
        __lineptr: *mut *mut ::std::os::raw::c_char,
        __n: *mut usize,
        __delimiter: ::std::os::raw::c_int,
        __stream: *mut FILE,
    ) -> __ssize_t;
}
extern "C" {
    pub fn getdelim(
        __lineptr: *mut *mut ::std::os::raw::c_char,
        __n: *mut usize,
        __delimiter: ::std::os::raw::c_int,
        __stream: *mut FILE,
    ) -> __ssize_t;
}
extern "C" {
    pub fn getline(
        __lineptr: *mut *mut ::std::os::raw::c_char,
        __n: *mut usize,
        __stream: *mut FILE,
    ) -> __ssize_t;
}
extern "C" {
    pub fn fputs(__s: *const ::std::os::raw::c_char, __stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn puts(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ungetc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fread(
        __ptr: *mut ::std::os::raw::c_void,
        __size: ::std::os::raw::c_ulong,
        __n: ::std::os::raw::c_ulong,
        __stream: *mut FILE,
    ) -> ::std::os::raw::c_ulong;
}
extern "C" {
    pub fn fwrite(
        __ptr: *const ::std::os::raw::c_void,
        __size: ::std::os::raw::c_ulong,
        __n: ::std::os::raw::c_ulong,
        __s: *mut FILE,
    ) -> ::std::os::raw::c_ulong;
}
extern "C" {
    pub fn fread_unlocked(
        __ptr: *mut ::std::os::raw::c_void,
        __size: usize,
        __n: usize,
        __stream: *mut FILE,
    ) -> usize;
}
extern "C" {
    pub fn fwrite_unlocked(
        __ptr: *const ::std::os::raw::c_void,
        __size: usize,
        __n: usize,
        __stream: *mut FILE,
    ) -> usize;
}
extern "C" {
    pub fn fseek(
        __stream: *mut FILE,
        __off: ::std::os::raw::c_long,
        __whence: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ftell(__stream: *mut FILE) -> ::std::os::raw::c_long;
}
extern "C" {
    pub fn rewind(__stream: *mut FILE);
}
extern "C" {
    pub fn fseeko(
        __stream: *mut FILE,
        __off: __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 fgetpos(__stream: *mut FILE, __pos: *mut fpos_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fsetpos(__stream: *mut FILE, __pos: *const fpos_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn clearerr(__stream: *mut FILE);
}
extern "C" {
    pub fn feof(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ferror(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn clearerr_unlocked(__stream: *mut FILE);
}
extern "C" {
    pub fn feof_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ferror_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn perror(__s: *const ::std::os::raw::c_char);
}
extern "C" {
    #[link_name = "\u{1}sys_nerr"]
    pub static mut sys_nerr: ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}sys_errlist"]
    pub static mut sys_errlist: [*const ::std::os::raw::c_char; 0usize];
}
extern "C" {
    pub fn fileno(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fileno_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn popen(
        __command: *const ::std::os::raw::c_char,
        __modes: *const ::std::os::raw::c_char,
    ) -> *mut FILE;
}
extern "C" {
    pub fn pclose(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ctermid(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn flockfile(__stream: *mut FILE);
}
extern "C" {
    pub fn ftrylockfile(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn funlockfile(__stream: *mut FILE);
}
extern "C" {
    pub fn __uflow(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn __overflow(arg1: *mut FILE, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
pub const FLAC__StreamDecoderState_FLAC__STREAM_DECODER_SEARCH_FOR_METADATA:
    FLAC__StreamDecoderState = 0;
pub const FLAC__StreamDecoderState_FLAC__STREAM_DECODER_READ_METADATA: FLAC__StreamDecoderState = 1;
pub const FLAC__StreamDecoderState_FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC:
    FLAC__StreamDecoderState = 2;
pub const FLAC__StreamDecoderState_FLAC__STREAM_DECODER_READ_FRAME: FLAC__StreamDecoderState = 3;
pub const FLAC__StreamDecoderState_FLAC__STREAM_DECODER_END_OF_STREAM: FLAC__StreamDecoderState = 4;
pub const FLAC__StreamDecoderState_FLAC__STREAM_DECODER_OGG_ERROR: FLAC__StreamDecoderState = 5;
pub const FLAC__StreamDecoderState_FLAC__STREAM_DECODER_SEEK_ERROR: FLAC__StreamDecoderState = 6;
pub const FLAC__StreamDecoderState_FLAC__STREAM_DECODER_ABORTED: FLAC__StreamDecoderState = 7;
pub const FLAC__StreamDecoderState_FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR:
    FLAC__StreamDecoderState = 8;
pub const FLAC__StreamDecoderState_FLAC__STREAM_DECODER_UNINITIALIZED: FLAC__StreamDecoderState = 9;
#[doc = " State values for a FLAC__StreamDecoder"]
#[doc = ""]
#[doc = " The decoder\'s state can be obtained by calling FLAC__stream_decoder_get_state()."]
pub type FLAC__StreamDecoderState = u32;
extern "C" {
    #[link_name = "\u{1}FLAC__StreamDecoderStateString"]
    pub static mut FLAC__StreamDecoderStateString: [*const ::std::os::raw::c_char; 0usize];
}
pub const FLAC__StreamDecoderInitStatus_FLAC__STREAM_DECODER_INIT_STATUS_OK:
    FLAC__StreamDecoderInitStatus = 0;
pub const FLAC__StreamDecoderInitStatus_FLAC__STREAM_DECODER_INIT_STATUS_UNSUPPORTED_CONTAINER:
    FLAC__StreamDecoderInitStatus = 1;
pub const FLAC__StreamDecoderInitStatus_FLAC__STREAM_DECODER_INIT_STATUS_INVALID_CALLBACKS:
    FLAC__StreamDecoderInitStatus = 2;
pub const FLAC__StreamDecoderInitStatus_FLAC__STREAM_DECODER_INIT_STATUS_MEMORY_ALLOCATION_ERROR:
    FLAC__StreamDecoderInitStatus = 3;
pub const FLAC__StreamDecoderInitStatus_FLAC__STREAM_DECODER_INIT_STATUS_ERROR_OPENING_FILE:
    FLAC__StreamDecoderInitStatus = 4;
pub const FLAC__StreamDecoderInitStatus_FLAC__STREAM_DECODER_INIT_STATUS_ALREADY_INITIALIZED:
    FLAC__StreamDecoderInitStatus = 5;
#[doc = " Possible return values for the FLAC__stream_decoder_init_*() functions."]
pub type FLAC__StreamDecoderInitStatus = u32;
extern "C" {
    #[link_name = "\u{1}FLAC__StreamDecoderInitStatusString"]
    pub static mut FLAC__StreamDecoderInitStatusString: [*const ::std::os::raw::c_char; 0usize];
}
pub const FLAC__StreamDecoderReadStatus_FLAC__STREAM_DECODER_READ_STATUS_CONTINUE:
    FLAC__StreamDecoderReadStatus = 0;
pub const FLAC__StreamDecoderReadStatus_FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM:
    FLAC__StreamDecoderReadStatus = 1;
pub const FLAC__StreamDecoderReadStatus_FLAC__STREAM_DECODER_READ_STATUS_ABORT:
    FLAC__StreamDecoderReadStatus = 2;
#[doc = " Return values for the FLAC__StreamDecoder read callback."]
pub type FLAC__StreamDecoderReadStatus = u32;
extern "C" {
    #[link_name = "\u{1}FLAC__StreamDecoderReadStatusString"]
    pub static mut FLAC__StreamDecoderReadStatusString: [*const ::std::os::raw::c_char; 0usize];
}
pub const FLAC__StreamDecoderSeekStatus_FLAC__STREAM_DECODER_SEEK_STATUS_OK:
    FLAC__StreamDecoderSeekStatus = 0;
pub const FLAC__StreamDecoderSeekStatus_FLAC__STREAM_DECODER_SEEK_STATUS_ERROR:
    FLAC__StreamDecoderSeekStatus = 1;
pub const FLAC__StreamDecoderSeekStatus_FLAC__STREAM_DECODER_SEEK_STATUS_UNSUPPORTED:
    FLAC__StreamDecoderSeekStatus = 2;
#[doc = " Return values for the FLAC__StreamDecoder seek callback."]
pub type FLAC__StreamDecoderSeekStatus = u32;
extern "C" {
    #[link_name = "\u{1}FLAC__StreamDecoderSeekStatusString"]
    pub static mut FLAC__StreamDecoderSeekStatusString: [*const ::std::os::raw::c_char; 0usize];
}
pub const FLAC__StreamDecoderTellStatus_FLAC__STREAM_DECODER_TELL_STATUS_OK:
    FLAC__StreamDecoderTellStatus = 0;
pub const FLAC__StreamDecoderTellStatus_FLAC__STREAM_DECODER_TELL_STATUS_ERROR:
    FLAC__StreamDecoderTellStatus = 1;
pub const FLAC__StreamDecoderTellStatus_FLAC__STREAM_DECODER_TELL_STATUS_UNSUPPORTED:
    FLAC__StreamDecoderTellStatus = 2;
#[doc = " Return values for the FLAC__StreamDecoder tell callback."]
pub type FLAC__StreamDecoderTellStatus = u32;
extern "C" {
    #[link_name = "\u{1}FLAC__StreamDecoderTellStatusString"]
    pub static mut FLAC__StreamDecoderTellStatusString: [*const ::std::os::raw::c_char; 0usize];
}
pub const FLAC__StreamDecoderLengthStatus_FLAC__STREAM_DECODER_LENGTH_STATUS_OK:
    FLAC__StreamDecoderLengthStatus = 0;
pub const FLAC__StreamDecoderLengthStatus_FLAC__STREAM_DECODER_LENGTH_STATUS_ERROR:
    FLAC__StreamDecoderLengthStatus = 1;
pub const FLAC__StreamDecoderLengthStatus_FLAC__STREAM_DECODER_LENGTH_STATUS_UNSUPPORTED:
    FLAC__StreamDecoderLengthStatus = 2;
#[doc = " Return values for the FLAC__StreamDecoder length callback."]
pub type FLAC__StreamDecoderLengthStatus = u32;
extern "C" {
    #[link_name = "\u{1}FLAC__StreamDecoderLengthStatusString"]
    pub static mut FLAC__StreamDecoderLengthStatusString: [*const ::std::os::raw::c_char; 0usize];
}
pub const FLAC__StreamDecoderWriteStatus_FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE:
    FLAC__StreamDecoderWriteStatus = 0;
pub const FLAC__StreamDecoderWriteStatus_FLAC__STREAM_DECODER_WRITE_STATUS_ABORT:
    FLAC__StreamDecoderWriteStatus = 1;
#[doc = " Return values for the FLAC__StreamDecoder write callback."]
pub type FLAC__StreamDecoderWriteStatus = u32;
extern "C" {
    #[link_name = "\u{1}FLAC__StreamDecoderWriteStatusString"]
    pub static mut FLAC__StreamDecoderWriteStatusString: [*const ::std::os::raw::c_char; 0usize];
}
pub const FLAC__StreamDecoderErrorStatus_FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC:
    FLAC__StreamDecoderErrorStatus = 0;
pub const FLAC__StreamDecoderErrorStatus_FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADER:
    FLAC__StreamDecoderErrorStatus = 1;
pub const FLAC__StreamDecoderErrorStatus_FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH:
    FLAC__StreamDecoderErrorStatus = 2;
pub const FLAC__StreamDecoderErrorStatus_FLAC__STREAM_DECODER_ERROR_STATUS_UNPARSEABLE_STREAM:
    FLAC__StreamDecoderErrorStatus = 3;
#[doc = " Possible values passed back to the FLAC__StreamDecoder error callback."]
#[doc = "  \\c FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC is the generic catch-"]
#[doc = "  all.  The rest could be caused by bad sync (false synchronization on"]
#[doc = "  data that is not the start of a frame) or corrupted data.  The error"]
#[doc = "  itself is the decoder\'s best guess at what happened assuming a correct"]
#[doc = "  sync.  For example \\c FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADER"]
#[doc = "  could be caused by a correct sync on the start of a frame, but some"]
#[doc = "  data in the frame header was corrupted.  Or it could be the result of"]
#[doc = "  syncing on a point the stream that looked like the starting of a frame"]
#[doc = "  but was not.  \\c FLAC__STREAM_DECODER_ERROR_STATUS_UNPARSEABLE_STREAM"]
#[doc = "  could be because the decoder encountered a valid frame made by a future"]
#[doc = "  version of the encoder which it cannot parse, or because of a false"]
#[doc = "  sync making it appear as though an encountered frame was generated by"]
#[doc = "  a future encoder."]
pub type FLAC__StreamDecoderErrorStatus = u32;
extern "C" {
    #[link_name = "\u{1}FLAC__StreamDecoderErrorStatusString"]
    pub static mut FLAC__StreamDecoderErrorStatusString: [*const ::std::os::raw::c_char; 0usize];
}
#[doc = " class FLAC__StreamDecoder"]
#[doc = ""]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLAC__StreamDecoderProtected {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLAC__StreamDecoderPrivate {
    _unused: [u8; 0],
}
#[doc = " The opaque structure definition for the stream decoder type."]
#[doc = "  See the \\link flac_stream_decoder stream decoder module \\endlink"]
#[doc = "  for a detailed description."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLAC__StreamDecoder {
    pub protected_: *mut FLAC__StreamDecoderProtected,
    pub private_: *mut FLAC__StreamDecoderPrivate,
}
#[doc = " Signature for the read callback."]
#[doc = ""]
#[doc = "  A function pointer matching this signature must be passed to"]
#[doc = "  FLAC__stream_decoder_init*_stream(). The supplied function will be"]
#[doc = "  called when the decoder needs more input data.  The address of the"]
#[doc = "  buffer to be filled is supplied, along with the number of bytes the"]
#[doc = "  buffer can hold.  The callback may choose to supply less data and"]
#[doc = "  modify the byte count but must be careful not to overflow the buffer."]
#[doc = "  The callback then returns a status code chosen from"]
#[doc = "  FLAC__StreamDecoderReadStatus."]
#[doc = ""]
#[doc = " Here is an example of a read callback for stdio streams:"]
#[doc = " \\code"]
#[doc = " FLAC__StreamDecoderReadStatus read_cb(const FLAC__StreamDecoder *decoder, FLAC__byte buffer[], size_t *bytes, void *client_data)"]
#[doc = " {"]
#[doc = "   FILE *file = ((MyClientData*)client_data)->file;"]
#[doc = "   if(*bytes > 0) {"]
#[doc = "     *bytes = fread(buffer, sizeof(FLAC__byte), *bytes, file);"]
#[doc = "     if(ferror(file))"]
#[doc = "       return FLAC__STREAM_DECODER_READ_STATUS_ABORT;"]
#[doc = "     else if(*bytes == 0)"]
#[doc = "       return FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM;"]
#[doc = "     else"]
#[doc = "       return FLAC__STREAM_DECODER_READ_STATUS_CONTINUE;"]
#[doc = "   }"]
#[doc = "   else"]
#[doc = "     return FLAC__STREAM_DECODER_READ_STATUS_ABORT;"]
#[doc = " }"]
#[doc = " \\endcode"]
#[doc = ""]
#[doc = " \\note In general, FLAC__StreamDecoder functions which change the"]
#[doc = " state should not be called on the \\a decoder while in the callback."]
#[doc = ""]
#[doc = " \\param  decoder  The decoder instance calling the callback."]
#[doc = " \\param  buffer   A pointer to a location for the callee to store"]
#[doc = "                  data to be decoded."]
#[doc = " \\param  bytes    A pointer to the size of the buffer.  On entry"]
#[doc = "                  to the callback, it contains the maximum number"]
#[doc = "                  of bytes that may be stored in \\a buffer.  The"]
#[doc = "                  callee must set it to the actual number of bytes"]
#[doc = "                  stored (0 in case of error or end-of-stream) before"]
#[doc = "                  returning."]
#[doc = " \\param  client_data  The callee\'s client data set through"]
#[doc = "                      FLAC__stream_decoder_init_*()."]
#[doc = " \\retval FLAC__StreamDecoderReadStatus"]
#[doc = "    The callee\'s return status.  Note that the callback should return"]
#[doc = "    \\c FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM if and only if"]
#[doc = "    zero bytes were read and there is no more data to be read."]
pub type FLAC__StreamDecoderReadCallback = ::std::option::Option<
    unsafe extern "C" fn(
        decoder: *const FLAC__StreamDecoder,
        buffer: *mut FLAC__byte,
        bytes: *mut usize,
        client_data: *mut ::std::os::raw::c_void,
    ) -> FLAC__StreamDecoderReadStatus,
>;
#[doc = " Signature for the seek callback."]
#[doc = ""]
#[doc = "  A function pointer matching this signature may be passed to"]
#[doc = "  FLAC__stream_decoder_init*_stream().  The supplied function will be"]
#[doc = "  called when the decoder needs to seek the input stream.  The decoder"]
#[doc = "  will pass the absolute byte offset to seek to, 0 meaning the"]
#[doc = "  beginning of the stream."]
#[doc = ""]
#[doc = " Here is an example of a seek callback for stdio streams:"]
#[doc = " \\code"]
#[doc = " FLAC__StreamDecoderSeekStatus seek_cb(const FLAC__StreamDecoder *decoder, FLAC__uint64 absolute_byte_offset, void *client_data)"]
#[doc = " {"]
#[doc = "   FILE *file = ((MyClientData*)client_data)->file;"]
#[doc = "   if(file == stdin)"]
#[doc = "     return FLAC__STREAM_DECODER_SEEK_STATUS_UNSUPPORTED;"]
#[doc = "   else if(fseeko(file, (off_t)absolute_byte_offset, SEEK_SET) < 0)"]
#[doc = "     return FLAC__STREAM_DECODER_SEEK_STATUS_ERROR;"]
#[doc = "   else"]
#[doc = "     return FLAC__STREAM_DECODER_SEEK_STATUS_OK;"]
#[doc = " }"]
#[doc = " \\endcode"]
#[doc = ""]
#[doc = " \\note In general, FLAC__StreamDecoder functions which change the"]
#[doc = " state should not be called on the \\a decoder while in the callback."]
#[doc = ""]
#[doc = " \\param  decoder  The decoder instance calling the callback."]
#[doc = " \\param  absolute_byte_offset  The offset from the beginning of the stream"]
#[doc = "                               to seek to."]
#[doc = " \\param  client_data  The callee\'s client data set through"]
#[doc = "                      FLAC__stream_decoder_init_*()."]
#[doc = " \\retval FLAC__StreamDecoderSeekStatus"]
#[doc = "    The callee\'s return status."]
pub type FLAC__StreamDecoderSeekCallback = ::std::option::Option<
    unsafe extern "C" fn(
        decoder: *const FLAC__StreamDecoder,
        absolute_byte_offset: FLAC__uint64,
        client_data: *mut ::std::os::raw::c_void,
    ) -> FLAC__StreamDecoderSeekStatus,
>;
#[doc = " Signature for the tell callback."]
#[doc = ""]
#[doc = "  A function pointer matching this signature may be passed to"]
#[doc = "  FLAC__stream_decoder_init*_stream().  The supplied function will be"]
#[doc = "  called when the decoder wants to know the current position of the"]
#[doc = "  stream.  The callback should return the byte offset from the"]
#[doc = "  beginning of the stream."]
#[doc = ""]
#[doc = " Here is an example of a tell callback for stdio streams:"]
#[doc = " \\code"]
#[doc = " FLAC__StreamDecoderTellStatus tell_cb(const FLAC__StreamDecoder *decoder, FLAC__uint64 *absolute_byte_offset, void *client_data)"]
#[doc = " {"]
#[doc = "   FILE *file = ((MyClientData*)client_data)->file;"]
#[doc = "   off_t pos;"]
#[doc = "   if(file == stdin)"]
#[doc = "     return FLAC__STREAM_DECODER_TELL_STATUS_UNSUPPORTED;"]
#[doc = "   else if((pos = ftello(file)) < 0)"]
#[doc = "     return FLAC__STREAM_DECODER_TELL_STATUS_ERROR;"]
#[doc = "   else {"]
#[doc = "     *absolute_byte_offset = (FLAC__uint64)pos;"]
#[doc = "     return FLAC__STREAM_DECODER_TELL_STATUS_OK;"]
#[doc = "   }"]
#[doc = " }"]
#[doc = " \\endcode"]
#[doc = ""]
#[doc = " \\note In general, FLAC__StreamDecoder functions which change the"]
#[doc = " state should not be called on the \\a decoder while in the callback."]
#[doc = ""]
#[doc = " \\param  decoder  The decoder instance calling the callback."]
#[doc = " \\param  absolute_byte_offset  A pointer to storage for the current offset"]
#[doc = "                               from the beginning of the stream."]
#[doc = " \\param  client_data  The callee\'s client data set through"]
#[doc = "                      FLAC__stream_decoder_init_*()."]
#[doc = " \\retval FLAC__StreamDecoderTellStatus"]
#[doc = "    The callee\'s return status."]
pub type FLAC__StreamDecoderTellCallback = ::std::option::Option<
    unsafe extern "C" fn(
        decoder: *const FLAC__StreamDecoder,
        absolute_byte_offset: *mut FLAC__uint64,
        client_data: *mut ::std::os::raw::c_void,
    ) -> FLAC__StreamDecoderTellStatus,
>;
#[doc = " Signature for the length callback."]
#[doc = ""]
#[doc = "  A function pointer matching this signature may be passed to"]
#[doc = "  FLAC__stream_decoder_init*_stream().  The supplied function will be"]
#[doc = "  called when the decoder wants to know the total length of the stream"]
#[doc = "  in bytes."]
#[doc = ""]
#[doc = " Here is an example of a length callback for stdio streams:"]
#[doc = " \\code"]
#[doc = " FLAC__StreamDecoderLengthStatus length_cb(const FLAC__StreamDecoder *decoder, FLAC__uint64 *stream_length, void *client_data)"]
#[doc = " {"]
#[doc = "   FILE *file = ((MyClientData*)client_data)->file;"]
#[doc = "   struct stat filestats;"]
#[doc = ""]
#[doc = "   if(file == stdin)"]
#[doc = "     return FLAC__STREAM_DECODER_LENGTH_STATUS_UNSUPPORTED;"]
#[doc = "   else if(fstat(fileno(file), &filestats) != 0)"]
#[doc = "     return FLAC__STREAM_DECODER_LENGTH_STATUS_ERROR;"]
#[doc = "   else {"]
#[doc = "     *stream_length = (FLAC__uint64)filestats.st_size;"]
#[doc = "     return FLAC__STREAM_DECODER_LENGTH_STATUS_OK;"]
#[doc = "   }"]
#[doc = " }"]
#[doc = " \\endcode"]
#[doc = ""]
#[doc = " \\note In general, FLAC__StreamDecoder functions which change the"]
#[doc = " state should not be called on the \\a decoder while in the callback."]
#[doc = ""]
#[doc = " \\param  decoder  The decoder instance calling the callback."]
#[doc = " \\param  stream_length  A pointer to storage for the length of the stream"]
#[doc = "                        in bytes."]
#[doc = " \\param  client_data  The callee\'s client data set through"]
#[doc = "                      FLAC__stream_decoder_init_*()."]
#[doc = " \\retval FLAC__StreamDecoderLengthStatus"]
#[doc = "    The callee\'s return status."]
pub type FLAC__StreamDecoderLengthCallback = ::std::option::Option<
    unsafe extern "C" fn(
        decoder: *const FLAC__StreamDecoder,
        stream_length: *mut FLAC__uint64,
        client_data: *mut ::std::os::raw::c_void,
    ) -> FLAC__StreamDecoderLengthStatus,
>;
#[doc = " Signature for the EOF callback."]
#[doc = ""]
#[doc = "  A function pointer matching this signature may be passed to"]
#[doc = "  FLAC__stream_decoder_init*_stream().  The supplied function will be"]
#[doc = "  called when the decoder needs to know if the end of the stream has"]
#[doc = "  been reached."]
#[doc = ""]
#[doc = " Here is an example of a EOF callback for stdio streams:"]
#[doc = " FLAC__bool eof_cb(const FLAC__StreamDecoder *decoder, void *client_data)"]
#[doc = " \\code"]
#[doc = " {"]
#[doc = "   FILE *file = ((MyClientData*)client_data)->file;"]
#[doc = "   return feof(file)? true : false;"]
#[doc = " }"]
#[doc = " \\endcode"]
#[doc = ""]
#[doc = " \\note In general, FLAC__StreamDecoder functions which change the"]
#[doc = " state should not be called on the \\a decoder while in the callback."]
#[doc = ""]
#[doc = " \\param  decoder  The decoder instance calling the callback."]
#[doc = " \\param  client_data  The callee\'s client data set through"]
#[doc = "                      FLAC__stream_decoder_init_*()."]
#[doc = " \\retval FLAC__bool"]
#[doc = "    \\c true if the currently at the end of the stream, else \\c false."]
pub type FLAC__StreamDecoderEofCallback = ::std::option::Option<
    unsafe extern "C" fn(
        decoder: *const FLAC__StreamDecoder,
        client_data: *mut ::std::os::raw::c_void,
    ) -> FLAC__bool,
>;
#[doc = " Signature for the write callback."]
#[doc = ""]
#[doc = "  A function pointer matching this signature must be passed to one of"]
#[doc = "  the FLAC__stream_decoder_init_*() functions."]
#[doc = "  The supplied function will be called when the decoder has decoded a"]
#[doc = "  single audio frame.  The decoder will pass the frame metadata as well"]
#[doc = "  as an array of pointers (one for each channel) pointing to the"]
#[doc = "  decoded audio."]
#[doc = ""]
#[doc = " \\note In general, FLAC__StreamDecoder functions which change the"]
#[doc = " state should not be called on the \\a decoder while in the callback."]
#[doc = ""]
#[doc = " \\param  decoder  The decoder instance calling the callback."]
#[doc = " \\param  frame    The description of the decoded frame.  See"]
#[doc = "                  FLAC__Frame."]
#[doc = " \\param  buffer   An array of pointers to decoded channels of data."]
#[doc = "                  Each pointer will point to an array of signed"]
#[doc = "                  samples of length \\a frame->header.blocksize."]
#[doc = "                  Channels will be ordered according to the FLAC"]
#[doc = "                  specification; see the documentation for the"]
#[doc = "                  <A HREF=\"../format.html#frame_header\">frame header</A>."]
#[doc = " \\param  client_data  The callee\'s client data set through"]
#[doc = "                      FLAC__stream_decoder_init_*()."]
#[doc = " \\retval FLAC__StreamDecoderWriteStatus"]
#[doc = "    The callee\'s return status."]
pub type FLAC__StreamDecoderWriteCallback = ::std::option::Option<
    unsafe extern "C" fn(
        decoder: *const FLAC__StreamDecoder,
        frame: *const FLAC__Frame,
        buffer: *const *const FLAC__int32,
        client_data: *mut ::std::os::raw::c_void,
    ) -> FLAC__StreamDecoderWriteStatus,
>;
#[doc = " Signature for the metadata callback."]
#[doc = ""]
#[doc = "  A function pointer matching this signature must be passed to one of"]
#[doc = "  the FLAC__stream_decoder_init_*() functions."]
#[doc = "  The supplied function will be called when the decoder has decoded a"]
#[doc = "  metadata block.  In a valid FLAC file there will always be one"]
#[doc = "  \\c STREAMINFO block, followed by zero or more other metadata blocks."]
#[doc = "  These will be supplied by the decoder in the same order as they"]
#[doc = "  appear in the stream and always before the first audio frame (i.e."]
#[doc = "  write callback).  The metadata block that is passed in must not be"]
#[doc = "  modified, and it doesn\'t live beyond the callback, so you should make"]
#[doc = "  a copy of it with FLAC__metadata_object_clone() if you will need it"]
#[doc = "  elsewhere.  Since metadata blocks can potentially be large, by"]
#[doc = "  default the decoder only calls the metadata callback for the"]
#[doc = "  \\c STREAMINFO block; you can instruct the decoder to pass or filter"]
#[doc = "  other blocks with FLAC__stream_decoder_set_metadata_*() calls."]
#[doc = ""]
#[doc = " \\note In general, FLAC__StreamDecoder functions which change the"]
#[doc = " state should not be called on the \\a decoder while in the callback."]
#[doc = ""]
#[doc = " \\param  decoder  The decoder instance calling the callback."]
#[doc = " \\param  metadata The decoded metadata block."]
#[doc = " \\param  client_data  The callee\'s client data set through"]
#[doc = "                      FLAC__stream_decoder_init_*()."]
pub type FLAC__StreamDecoderMetadataCallback = ::std::option::Option<
    unsafe extern "C" fn(
        decoder: *const FLAC__StreamDecoder,
        metadata: *const FLAC__StreamMetadata,
        client_data: *mut ::std::os::raw::c_void,
    ),
>;
#[doc = " Signature for the error callback."]
#[doc = ""]
#[doc = "  A function pointer matching this signature must be passed to one of"]
#[doc = "  the FLAC__stream_decoder_init_*() functions."]
#[doc = "  The supplied function will be called whenever an error occurs during"]
#[doc = "  decoding."]
#[doc = ""]
#[doc = " \\note In general, FLAC__StreamDecoder functions which change the"]
#[doc = " state should not be called on the \\a decoder while in the callback."]
#[doc = ""]
#[doc = " \\param  decoder  The decoder instance calling the callback."]
#[doc = " \\param  status   The error encountered by the decoder."]
#[doc = " \\param  client_data  The callee\'s client data set through"]
#[doc = "                      FLAC__stream_decoder_init_*()."]
pub type FLAC__StreamDecoderErrorCallback = ::std::option::Option<
    unsafe extern "C" fn(
        decoder: *const FLAC__StreamDecoder,
        status: FLAC__StreamDecoderErrorStatus,
        client_data: *mut ::std::os::raw::c_void,
    ),
>;
extern "C" {
    #[doc = " Create a new stream decoder instance.  The instance is created with"]
    #[doc = "  default settings; see the individual FLAC__stream_decoder_set_*()"]
    #[doc = "  functions for each setting\'s default."]
    #[doc = ""]
    #[doc = " \\retval FLAC__StreamDecoder*"]
    #[doc = "    \\c NULL if there was an error allocating memory, else the new instance."]
    pub fn FLAC__stream_decoder_new() -> *mut FLAC__StreamDecoder;
}
extern "C" {
    #[doc = " Free a decoder instance.  Deletes the object pointed to by \\a decoder."]
    #[doc = ""]
    #[doc = " \\param decoder  A pointer to an existing decoder."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    pub fn FLAC__stream_decoder_delete(decoder: *mut FLAC__StreamDecoder);
}
extern "C" {
    #[doc = " Set the serial number for the FLAC stream within the Ogg container."]
    #[doc = "  The default behavior is to use the serial number of the first Ogg"]
    #[doc = "  page.  Setting a serial number here will explicitly specify which"]
    #[doc = "  stream is to be decoded."]
    #[doc = ""]
    #[doc = " \\note"]
    #[doc = " This does not need to be set for native FLAC decoding."]
    #[doc = ""]
    #[doc = " \\default \\c use serial number of first page"]
    #[doc = " \\param  decoder        A decoder instance to set."]
    #[doc = " \\param  serial_number  See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the decoder is already initialized, else \\c true."]
    pub fn FLAC__stream_decoder_set_ogg_serial_number(
        decoder: *mut FLAC__StreamDecoder,
        serial_number: ::std::os::raw::c_long,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Set the \"MD5 signature checking\" flag.  If \\c true, the decoder will"]
    #[doc = "  compute the MD5 signature of the unencoded audio data while decoding"]
    #[doc = "  and compare it to the signature from the STREAMINFO block, if it"]
    #[doc = "  exists, during FLAC__stream_decoder_finish()."]
    #[doc = ""]
    #[doc = "  MD5 signature checking will be turned off (until the next"]
    #[doc = "  FLAC__stream_decoder_reset()) if there is no signature in the"]
    #[doc = "  STREAMINFO block or when a seek is attempted."]
    #[doc = ""]
    #[doc = "  Clients that do not use the MD5 check should leave this off to speed"]
    #[doc = "  up decoding."]
    #[doc = ""]
    #[doc = " \\default \\c false"]
    #[doc = " \\param  decoder  A decoder instance to set."]
    #[doc = " \\param  value    Flag value (see above)."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the decoder is already initialized, else \\c true."]
    pub fn FLAC__stream_decoder_set_md5_checking(
        decoder: *mut FLAC__StreamDecoder,
        value: FLAC__bool,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Direct the decoder to pass on all metadata blocks of type \\a type."]
    #[doc = ""]
    #[doc = " \\default By default, only the \\c STREAMINFO block is returned via the"]
    #[doc = "          metadata callback."]
    #[doc = " \\param  decoder  A decoder instance to set."]
    #[doc = " \\param  type     See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = "    \\a type is valid"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the decoder is already initialized, else \\c true."]
    pub fn FLAC__stream_decoder_set_metadata_respond(
        decoder: *mut FLAC__StreamDecoder,
        type_: FLAC__MetadataType,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Direct the decoder to pass on all APPLICATION metadata blocks of the"]
    #[doc = "  given \\a id."]
    #[doc = ""]
    #[doc = " \\default By default, only the \\c STREAMINFO block is returned via the"]
    #[doc = "          metadata callback."]
    #[doc = " \\param  decoder  A decoder instance to set."]
    #[doc = " \\param  id       See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = "    \\code id != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the decoder is already initialized, else \\c true."]
    pub fn FLAC__stream_decoder_set_metadata_respond_application(
        decoder: *mut FLAC__StreamDecoder,
        id: *const FLAC__byte,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Direct the decoder to pass on all metadata blocks of any type."]
    #[doc = ""]
    #[doc = " \\default By default, only the \\c STREAMINFO block is returned via the"]
    #[doc = "          metadata callback."]
    #[doc = " \\param  decoder  A decoder instance to set."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the decoder is already initialized, else \\c true."]
    pub fn FLAC__stream_decoder_set_metadata_respond_all(
        decoder: *mut FLAC__StreamDecoder,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Direct the decoder to filter out all metadata blocks of type \\a type."]
    #[doc = ""]
    #[doc = " \\default By default, only the \\c STREAMINFO block is returned via the"]
    #[doc = "          metadata callback."]
    #[doc = " \\param  decoder  A decoder instance to set."]
    #[doc = " \\param  type     See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = "    \\a type is valid"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the decoder is already initialized, else \\c true."]
    pub fn FLAC__stream_decoder_set_metadata_ignore(
        decoder: *mut FLAC__StreamDecoder,
        type_: FLAC__MetadataType,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Direct the decoder to filter out all APPLICATION metadata blocks of"]
    #[doc = "  the given \\a id."]
    #[doc = ""]
    #[doc = " \\default By default, only the \\c STREAMINFO block is returned via the"]
    #[doc = "          metadata callback."]
    #[doc = " \\param  decoder  A decoder instance to set."]
    #[doc = " \\param  id       See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = "    \\code id != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the decoder is already initialized, else \\c true."]
    pub fn FLAC__stream_decoder_set_metadata_ignore_application(
        decoder: *mut FLAC__StreamDecoder,
        id: *const FLAC__byte,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Direct the decoder to filter out all metadata blocks of any type."]
    #[doc = ""]
    #[doc = " \\default By default, only the \\c STREAMINFO block is returned via the"]
    #[doc = "          metadata callback."]
    #[doc = " \\param  decoder  A decoder instance to set."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the decoder is already initialized, else \\c true."]
    pub fn FLAC__stream_decoder_set_metadata_ignore_all(
        decoder: *mut FLAC__StreamDecoder,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Get the current decoder state."]
    #[doc = ""]
    #[doc = " \\param  decoder  A decoder instance to query."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__StreamDecoderState"]
    #[doc = "    The current decoder state."]
    pub fn FLAC__stream_decoder_get_state(
        decoder: *const FLAC__StreamDecoder,
    ) -> FLAC__StreamDecoderState;
}
extern "C" {
    #[doc = " Get the current decoder state as a C string."]
    #[doc = ""]
    #[doc = " \\param  decoder  A decoder instance to query."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = " \\retval const char *"]
    #[doc = "    The decoder state as a C string.  Do not modify the contents."]
    pub fn FLAC__stream_decoder_get_resolved_state_string(
        decoder: *const FLAC__StreamDecoder,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Get the \"MD5 signature checking\" flag."]
    #[doc = "  This is the value of the setting, not whether or not the decoder is"]
    #[doc = "  currently checking the MD5 (remember, it can be turned off automatically"]
    #[doc = "  by a seek).  When the decoder is reset the flag will be restored to the"]
    #[doc = "  value returned by this function."]
    #[doc = ""]
    #[doc = " \\param  decoder  A decoder instance to query."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    See above."]
    pub fn FLAC__stream_decoder_get_md5_checking(decoder: *const FLAC__StreamDecoder)
        -> FLAC__bool;
}
extern "C" {
    #[doc = " Get the total number of samples in the stream being decoded."]
    #[doc = "  Will only be valid after decoding has started and will contain the"]
    #[doc = "  value from the \\c STREAMINFO block.  A value of \\c 0 means \"unknown\"."]
    #[doc = ""]
    #[doc = " \\param  decoder  A decoder instance to query."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = " \\retval unsigned"]
    #[doc = "    See above."]
    pub fn FLAC__stream_decoder_get_total_samples(
        decoder: *const FLAC__StreamDecoder,
    ) -> FLAC__uint64;
}
extern "C" {
    #[doc = " Get the current number of channels in the stream being decoded."]
    #[doc = "  Will only be valid after decoding has started and will contain the"]
    #[doc = "  value from the most recently decoded frame header."]
    #[doc = ""]
    #[doc = " \\param  decoder  A decoder instance to query."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = " \\retval unsigned"]
    #[doc = "    See above."]
    pub fn FLAC__stream_decoder_get_channels(
        decoder: *const FLAC__StreamDecoder,
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " Get the current channel assignment in the stream being decoded."]
    #[doc = "  Will only be valid after decoding has started and will contain the"]
    #[doc = "  value from the most recently decoded frame header."]
    #[doc = ""]
    #[doc = " \\param  decoder  A decoder instance to query."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__ChannelAssignment"]
    #[doc = "    See above."]
    pub fn FLAC__stream_decoder_get_channel_assignment(
        decoder: *const FLAC__StreamDecoder,
    ) -> FLAC__ChannelAssignment;
}
extern "C" {
    #[doc = " Get the current sample resolution in the stream being decoded."]
    #[doc = "  Will only be valid after decoding has started and will contain the"]
    #[doc = "  value from the most recently decoded frame header."]
    #[doc = ""]
    #[doc = " \\param  decoder  A decoder instance to query."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = " \\retval unsigned"]
    #[doc = "    See above."]
    pub fn FLAC__stream_decoder_get_bits_per_sample(
        decoder: *const FLAC__StreamDecoder,
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " Get the current sample rate in Hz of the stream being decoded."]
    #[doc = "  Will only be valid after decoding has started and will contain the"]
    #[doc = "  value from the most recently decoded frame header."]
    #[doc = ""]
    #[doc = " \\param  decoder  A decoder instance to query."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = " \\retval unsigned"]
    #[doc = "    See above."]
    pub fn FLAC__stream_decoder_get_sample_rate(
        decoder: *const FLAC__StreamDecoder,
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " Get the current blocksize of the stream being decoded."]
    #[doc = "  Will only be valid after decoding has started and will contain the"]
    #[doc = "  value from the most recently decoded frame header."]
    #[doc = ""]
    #[doc = " \\param  decoder  A decoder instance to query."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = " \\retval unsigned"]
    #[doc = "    See above."]
    pub fn FLAC__stream_decoder_get_blocksize(
        decoder: *const FLAC__StreamDecoder,
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " Returns the decoder\'s current read position within the stream."]
    #[doc = "  The position is the byte offset from the start of the stream."]
    #[doc = "  Bytes before this position have been fully decoded.  Note that"]
    #[doc = "  there may still be undecoded bytes in the decoder\'s read FIFO."]
    #[doc = "  The returned position is correct even after a seek."]
    #[doc = ""]
    #[doc = "  \\warning This function currently only works for native FLAC,"]
    #[doc = "           not Ogg FLAC streams."]
    #[doc = ""]
    #[doc = " \\param  decoder   A decoder instance to query."]
    #[doc = " \\param  position  Address at which to return the desired position."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = "    \\code position != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c true if successful, \\c false if the stream is not native FLAC,"]
    #[doc = "    or there was an error from the \'tell\' callback or it returned"]
    #[doc = "    \\c FLAC__STREAM_DECODER_TELL_STATUS_UNSUPPORTED."]
    pub fn FLAC__stream_decoder_get_decode_position(
        decoder: *const FLAC__StreamDecoder,
        position: *mut FLAC__uint64,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Initialize the decoder instance to decode native FLAC streams."]
    #[doc = ""]
    #[doc = "  This flavor of initialization sets up the decoder to decode from a"]
    #[doc = "  native FLAC stream. I/O is performed via callbacks to the client."]
    #[doc = "  For decoding from a plain file via filename or open FILE*,"]
    #[doc = "  FLAC__stream_decoder_init_file() and FLAC__stream_decoder_init_FILE()"]
    #[doc = "  provide a simpler interface."]
    #[doc = ""]
    #[doc = "  This function should be called after FLAC__stream_decoder_new() and"]
    #[doc = "  FLAC__stream_decoder_set_*() but before any of the"]
    #[doc = "  FLAC__stream_decoder_process_*() functions.  Will set and return the"]
    #[doc = "  decoder state, which will be FLAC__STREAM_DECODER_SEARCH_FOR_METADATA"]
    #[doc = "  if initialization succeeded."]
    #[doc = ""]
    #[doc = " \\param  decoder            An uninitialized decoder instance."]
    #[doc = " \\param  read_callback      See FLAC__StreamDecoderReadCallback.  This"]
    #[doc = "                            pointer must not be \\c NULL."]
    #[doc = " \\param  seek_callback      See FLAC__StreamDecoderSeekCallback.  This"]
    #[doc = "                            pointer may be \\c NULL if seeking is not"]
    #[doc = "                            supported.  If \\a seek_callback is not \\c NULL then a"]
    #[doc = "                            \\a tell_callback, \\a length_callback, and \\a eof_callback must also be supplied."]
    #[doc = "                            Alternatively, a dummy seek callback that just"]
    #[doc = "                            returns \\c FLAC__STREAM_DECODER_SEEK_STATUS_UNSUPPORTED"]
    #[doc = "                            may also be supplied, all though this is slightly"]
    #[doc = "                            less efficient for the decoder."]
    #[doc = " \\param  tell_callback      See FLAC__StreamDecoderTellCallback.  This"]
    #[doc = "                            pointer may be \\c NULL if not supported by the client.  If"]
    #[doc = "                            \\a seek_callback is not \\c NULL then a"]
    #[doc = "                            \\a tell_callback must also be supplied."]
    #[doc = "                            Alternatively, a dummy tell callback that just"]
    #[doc = "                            returns \\c FLAC__STREAM_DECODER_TELL_STATUS_UNSUPPORTED"]
    #[doc = "                            may also be supplied, all though this is slightly"]
    #[doc = "                            less efficient for the decoder."]
    #[doc = " \\param  length_callback    See FLAC__StreamDecoderLengthCallback.  This"]
    #[doc = "                            pointer may be \\c NULL if not supported by the client.  If"]
    #[doc = "                            \\a seek_callback is not \\c NULL then a"]
    #[doc = "                            \\a length_callback must also be supplied."]
    #[doc = "                            Alternatively, a dummy length callback that just"]
    #[doc = "                            returns \\c FLAC__STREAM_DECODER_LENGTH_STATUS_UNSUPPORTED"]
    #[doc = "                            may also be supplied, all though this is slightly"]
    #[doc = "                            less efficient for the decoder."]
    #[doc = " \\param  eof_callback       See FLAC__StreamDecoderEofCallback.  This"]
    #[doc = "                            pointer may be \\c NULL if not supported by the client.  If"]
    #[doc = "                            \\a seek_callback is not \\c NULL then a"]
    #[doc = "                            \\a eof_callback must also be supplied."]
    #[doc = "                            Alternatively, a dummy length callback that just"]
    #[doc = "                            returns \\c false"]
    #[doc = "                            may also be supplied, all though this is slightly"]
    #[doc = "                            less efficient for the decoder."]
    #[doc = " \\param  write_callback     See FLAC__StreamDecoderWriteCallback.  This"]
    #[doc = "                            pointer must not be \\c NULL."]
    #[doc = " \\param  metadata_callback  See FLAC__StreamDecoderMetadataCallback.  This"]
    #[doc = "                            pointer may be \\c NULL if the callback is not"]
    #[doc = "                            desired."]
    #[doc = " \\param  error_callback     See FLAC__StreamDecoderErrorCallback.  This"]
    #[doc = "                            pointer must not be \\c NULL."]
    #[doc = " \\param  client_data        This value will be supplied to callbacks in their"]
    #[doc = "                            \\a client_data argument."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__StreamDecoderInitStatus"]
    #[doc = "    \\c FLAC__STREAM_DECODER_INIT_STATUS_OK if initialization was successful;"]
    #[doc = "    see FLAC__StreamDecoderInitStatus for the meanings of other return values."]
    pub fn FLAC__stream_decoder_init_stream(
        decoder: *mut FLAC__StreamDecoder,
        read_callback: FLAC__StreamDecoderReadCallback,
        seek_callback: FLAC__StreamDecoderSeekCallback,
        tell_callback: FLAC__StreamDecoderTellCallback,
        length_callback: FLAC__StreamDecoderLengthCallback,
        eof_callback: FLAC__StreamDecoderEofCallback,
        write_callback: FLAC__StreamDecoderWriteCallback,
        metadata_callback: FLAC__StreamDecoderMetadataCallback,
        error_callback: FLAC__StreamDecoderErrorCallback,
        client_data: *mut ::std::os::raw::c_void,
    ) -> FLAC__StreamDecoderInitStatus;
}
extern "C" {
    #[doc = " Initialize the decoder instance to decode Ogg FLAC streams."]
    #[doc = ""]
    #[doc = "  This flavor of initialization sets up the decoder to decode from a"]
    #[doc = "  FLAC stream in an Ogg container. I/O is performed via callbacks to the"]
    #[doc = "  client.  For decoding from a plain file via filename or open FILE*,"]
    #[doc = "  FLAC__stream_decoder_init_ogg_file() and FLAC__stream_decoder_init_ogg_FILE()"]
    #[doc = "  provide a simpler interface."]
    #[doc = ""]
    #[doc = "  This function should be called after FLAC__stream_decoder_new() and"]
    #[doc = "  FLAC__stream_decoder_set_*() but before any of the"]
    #[doc = "  FLAC__stream_decoder_process_*() functions.  Will set and return the"]
    #[doc = "  decoder state, which will be FLAC__STREAM_DECODER_SEARCH_FOR_METADATA"]
    #[doc = "  if initialization succeeded."]
    #[doc = ""]
    #[doc = "  \\note Support for Ogg FLAC in the library is optional.  If this"]
    #[doc = "  library has been built without support for Ogg FLAC, this function"]
    #[doc = "  will return \\c FLAC__STREAM_DECODER_INIT_STATUS_UNSUPPORTED_CONTAINER."]
    #[doc = ""]
    #[doc = " \\param  decoder            An uninitialized decoder instance."]
    #[doc = " \\param  read_callback      See FLAC__StreamDecoderReadCallback.  This"]
    #[doc = "                            pointer must not be \\c NULL."]
    #[doc = " \\param  seek_callback      See FLAC__StreamDecoderSeekCallback.  This"]
    #[doc = "                            pointer may be \\c NULL if seeking is not"]
    #[doc = "                            supported.  If \\a seek_callback is not \\c NULL then a"]
    #[doc = "                            \\a tell_callback, \\a length_callback, and \\a eof_callback must also be supplied."]
    #[doc = "                            Alternatively, a dummy seek callback that just"]
    #[doc = "                            returns \\c FLAC__STREAM_DECODER_SEEK_STATUS_UNSUPPORTED"]
    #[doc = "                            may also be supplied, all though this is slightly"]
    #[doc = "                            less efficient for the decoder."]
    #[doc = " \\param  tell_callback      See FLAC__StreamDecoderTellCallback.  This"]
    #[doc = "                            pointer may be \\c NULL if not supported by the client.  If"]
    #[doc = "                            \\a seek_callback is not \\c NULL then a"]
    #[doc = "                            \\a tell_callback must also be supplied."]
    #[doc = "                            Alternatively, a dummy tell callback that just"]
    #[doc = "                            returns \\c FLAC__STREAM_DECODER_TELL_STATUS_UNSUPPORTED"]
    #[doc = "                            may also be supplied, all though this is slightly"]
    #[doc = "                            less efficient for the decoder."]
    #[doc = " \\param  length_callback    See FLAC__StreamDecoderLengthCallback.  This"]
    #[doc = "                            pointer may be \\c NULL if not supported by the client.  If"]
    #[doc = "                            \\a seek_callback is not \\c NULL then a"]
    #[doc = "                            \\a length_callback must also be supplied."]
    #[doc = "                            Alternatively, a dummy length callback that just"]
    #[doc = "                            returns \\c FLAC__STREAM_DECODER_LENGTH_STATUS_UNSUPPORTED"]
    #[doc = "                            may also be supplied, all though this is slightly"]
    #[doc = "                            less efficient for the decoder."]
    #[doc = " \\param  eof_callback       See FLAC__StreamDecoderEofCallback.  This"]
    #[doc = "                            pointer may be \\c NULL if not supported by the client.  If"]
    #[doc = "                            \\a seek_callback is not \\c NULL then a"]
    #[doc = "                            \\a eof_callback must also be supplied."]
    #[doc = "                            Alternatively, a dummy length callback that just"]
    #[doc = "                            returns \\c false"]
    #[doc = "                            may also be supplied, all though this is slightly"]
    #[doc = "                            less efficient for the decoder."]
    #[doc = " \\param  write_callback     See FLAC__StreamDecoderWriteCallback.  This"]
    #[doc = "                            pointer must not be \\c NULL."]
    #[doc = " \\param  metadata_callback  See FLAC__StreamDecoderMetadataCallback.  This"]
    #[doc = "                            pointer may be \\c NULL if the callback is not"]
    #[doc = "                            desired."]
    #[doc = " \\param  error_callback     See FLAC__StreamDecoderErrorCallback.  This"]
    #[doc = "                            pointer must not be \\c NULL."]
    #[doc = " \\param  client_data        This value will be supplied to callbacks in their"]
    #[doc = "                            \\a client_data argument."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__StreamDecoderInitStatus"]
    #[doc = "    \\c FLAC__STREAM_DECODER_INIT_STATUS_OK if initialization was successful;"]
    #[doc = "    see FLAC__StreamDecoderInitStatus for the meanings of other return values."]
    pub fn FLAC__stream_decoder_init_ogg_stream(
        decoder: *mut FLAC__StreamDecoder,
        read_callback: FLAC__StreamDecoderReadCallback,
        seek_callback: FLAC__StreamDecoderSeekCallback,
        tell_callback: FLAC__StreamDecoderTellCallback,
        length_callback: FLAC__StreamDecoderLengthCallback,
        eof_callback: FLAC__StreamDecoderEofCallback,
        write_callback: FLAC__StreamDecoderWriteCallback,
        metadata_callback: FLAC__StreamDecoderMetadataCallback,
        error_callback: FLAC__StreamDecoderErrorCallback,
        client_data: *mut ::std::os::raw::c_void,
    ) -> FLAC__StreamDecoderInitStatus;
}
extern "C" {
    #[doc = " Initialize the decoder instance to decode native FLAC files."]
    #[doc = ""]
    #[doc = "  This flavor of initialization sets up the decoder to decode from a"]
    #[doc = "  plain native FLAC file.  For non-stdio streams, you must use"]
    #[doc = "  FLAC__stream_decoder_init_stream() and provide callbacks for the I/O."]
    #[doc = ""]
    #[doc = "  This function should be called after FLAC__stream_decoder_new() and"]
    #[doc = "  FLAC__stream_decoder_set_*() but before any of the"]
    #[doc = "  FLAC__stream_decoder_process_*() functions.  Will set and return the"]
    #[doc = "  decoder state, which will be FLAC__STREAM_DECODER_SEARCH_FOR_METADATA"]
    #[doc = "  if initialization succeeded."]
    #[doc = ""]
    #[doc = " \\param  decoder            An uninitialized decoder instance."]
    #[doc = " \\param  file               An open FLAC file.  The file should have been"]
    #[doc = "                            opened with mode \\c \"rb\" and rewound.  The file"]
    #[doc = "                            becomes owned by the decoder and should not be"]
    #[doc = "                            manipulated by the client while decoding."]
    #[doc = "                            Unless \\a file is \\c stdin, it will be closed"]
    #[doc = "                            when FLAC__stream_decoder_finish() is called."]
    #[doc = "                            Note however that seeking will not work when"]
    #[doc = "                            decoding from \\c stdout since it is not seekable."]
    #[doc = " \\param  write_callback     See FLAC__StreamDecoderWriteCallback.  This"]
    #[doc = "                            pointer must not be \\c NULL."]
    #[doc = " \\param  metadata_callback  See FLAC__StreamDecoderMetadataCallback.  This"]
    #[doc = "                            pointer may be \\c NULL if the callback is not"]
    #[doc = "                            desired."]
    #[doc = " \\param  error_callback     See FLAC__StreamDecoderErrorCallback.  This"]
    #[doc = "                            pointer must not be \\c NULL."]
    #[doc = " \\param  client_data        This value will be supplied to callbacks in their"]
    #[doc = "                            \\a client_data argument."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = "    \\code file != NULL \\endcode"]
    #[doc = " \\retval FLAC__StreamDecoderInitStatus"]
    #[doc = "    \\c FLAC__STREAM_DECODER_INIT_STATUS_OK if initialization was successful;"]
    #[doc = "    see FLAC__StreamDecoderInitStatus for the meanings of other return values."]
    pub fn FLAC__stream_decoder_init_FILE(
        decoder: *mut FLAC__StreamDecoder,
        file: *mut FILE,
        write_callback: FLAC__StreamDecoderWriteCallback,
        metadata_callback: FLAC__StreamDecoderMetadataCallback,
        error_callback: FLAC__StreamDecoderErrorCallback,
        client_data: *mut ::std::os::raw::c_void,
    ) -> FLAC__StreamDecoderInitStatus;
}
extern "C" {
    #[doc = " Initialize the decoder instance to decode Ogg FLAC files."]
    #[doc = ""]
    #[doc = "  This flavor of initialization sets up the decoder to decode from a"]
    #[doc = "  plain Ogg FLAC file.  For non-stdio streams, you must use"]
    #[doc = "  FLAC__stream_decoder_init_ogg_stream() and provide callbacks for the I/O."]
    #[doc = ""]
    #[doc = "  This function should be called after FLAC__stream_decoder_new() and"]
    #[doc = "  FLAC__stream_decoder_set_*() but before any of the"]
    #[doc = "  FLAC__stream_decoder_process_*() functions.  Will set and return the"]
    #[doc = "  decoder state, which will be FLAC__STREAM_DECODER_SEARCH_FOR_METADATA"]
    #[doc = "  if initialization succeeded."]
    #[doc = ""]
    #[doc = "  \\note Support for Ogg FLAC in the library is optional.  If this"]
    #[doc = "  library has been built without support for Ogg FLAC, this function"]
    #[doc = "  will return \\c FLAC__STREAM_DECODER_INIT_STATUS_UNSUPPORTED_CONTAINER."]
    #[doc = ""]
    #[doc = " \\param  decoder            An uninitialized decoder instance."]
    #[doc = " \\param  file               An open FLAC file.  The file should have been"]
    #[doc = "                            opened with mode \\c \"rb\" and rewound.  The file"]
    #[doc = "                            becomes owned by the decoder and should not be"]
    #[doc = "                            manipulated by the client while decoding."]
    #[doc = "                            Unless \\a file is \\c stdin, it will be closed"]
    #[doc = "                            when FLAC__stream_decoder_finish() is called."]
    #[doc = "                            Note however that seeking will not work when"]
    #[doc = "                            decoding from \\c stdout since it is not seekable."]
    #[doc = " \\param  write_callback     See FLAC__StreamDecoderWriteCallback.  This"]
    #[doc = "                            pointer must not be \\c NULL."]
    #[doc = " \\param  metadata_callback  See FLAC__StreamDecoderMetadataCallback.  This"]
    #[doc = "                            pointer may be \\c NULL if the callback is not"]
    #[doc = "                            desired."]
    #[doc = " \\param  error_callback     See FLAC__StreamDecoderErrorCallback.  This"]
    #[doc = "                            pointer must not be \\c NULL."]
    #[doc = " \\param  client_data        This value will be supplied to callbacks in their"]
    #[doc = "                            \\a client_data argument."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = "    \\code file != NULL \\endcode"]
    #[doc = " \\retval FLAC__StreamDecoderInitStatus"]
    #[doc = "    \\c FLAC__STREAM_DECODER_INIT_STATUS_OK if initialization was successful;"]
    #[doc = "    see FLAC__StreamDecoderInitStatus for the meanings of other return values."]
    pub fn FLAC__stream_decoder_init_ogg_FILE(
        decoder: *mut FLAC__StreamDecoder,
        file: *mut FILE,
        write_callback: FLAC__StreamDecoderWriteCallback,
        metadata_callback: FLAC__StreamDecoderMetadataCallback,
        error_callback: FLAC__StreamDecoderErrorCallback,
        client_data: *mut ::std::os::raw::c_void,
    ) -> FLAC__StreamDecoderInitStatus;
}
extern "C" {
    #[doc = " Initialize the decoder instance to decode native FLAC files."]
    #[doc = ""]
    #[doc = "  This flavor of initialization sets up the decoder to decode from a plain"]
    #[doc = "  native FLAC file.  If POSIX fopen() semantics are not sufficient, (for"]
    #[doc = "  example, with Unicode filenames on Windows), you must use"]
    #[doc = "  FLAC__stream_decoder_init_FILE(), or FLAC__stream_decoder_init_stream()"]
    #[doc = "  and provide callbacks for the I/O."]
    #[doc = ""]
    #[doc = "  This function should be called after FLAC__stream_decoder_new() and"]
    #[doc = "  FLAC__stream_decoder_set_*() but before any of the"]
    #[doc = "  FLAC__stream_decoder_process_*() functions.  Will set and return the"]
    #[doc = "  decoder state, which will be FLAC__STREAM_DECODER_SEARCH_FOR_METADATA"]
    #[doc = "  if initialization succeeded."]
    #[doc = ""]
    #[doc = " \\param  decoder            An uninitialized decoder instance."]
    #[doc = " \\param  filename           The name of the file to decode from.  The file will"]
    #[doc = "                            be opened with fopen().  Use \\c NULL to decode from"]
    #[doc = "                            \\c stdin.  Note that \\c stdin is not seekable."]
    #[doc = " \\param  write_callback     See FLAC__StreamDecoderWriteCallback.  This"]
    #[doc = "                            pointer must not be \\c NULL."]
    #[doc = " \\param  metadata_callback  See FLAC__StreamDecoderMetadataCallback.  This"]
    #[doc = "                            pointer may be \\c NULL if the callback is not"]
    #[doc = "                            desired."]
    #[doc = " \\param  error_callback     See FLAC__StreamDecoderErrorCallback.  This"]
    #[doc = "                            pointer must not be \\c NULL."]
    #[doc = " \\param  client_data        This value will be supplied to callbacks in their"]
    #[doc = "                            \\a client_data argument."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__StreamDecoderInitStatus"]
    #[doc = "    \\c FLAC__STREAM_DECODER_INIT_STATUS_OK if initialization was successful;"]
    #[doc = "    see FLAC__StreamDecoderInitStatus for the meanings of other return values."]
    pub fn FLAC__stream_decoder_init_file(
        decoder: *mut FLAC__StreamDecoder,
        filename: *const ::std::os::raw::c_char,
        write_callback: FLAC__StreamDecoderWriteCallback,
        metadata_callback: FLAC__StreamDecoderMetadataCallback,
        error_callback: FLAC__StreamDecoderErrorCallback,
        client_data: *mut ::std::os::raw::c_void,
    ) -> FLAC__StreamDecoderInitStatus;
}
extern "C" {
    #[doc = " Initialize the decoder instance to decode Ogg FLAC files."]
    #[doc = ""]
    #[doc = "  This flavor of initialization sets up the decoder to decode from a plain"]
    #[doc = "  Ogg FLAC file.  If POSIX fopen() semantics are not sufficient, (for"]
    #[doc = "  example, with Unicode filenames on Windows), you must use"]
    #[doc = "  FLAC__stream_decoder_init_ogg_FILE(), or FLAC__stream_decoder_init_ogg_stream()"]
    #[doc = "  and provide callbacks for the I/O."]
    #[doc = ""]
    #[doc = "  This function should be called after FLAC__stream_decoder_new() and"]
    #[doc = "  FLAC__stream_decoder_set_*() but before any of the"]
    #[doc = "  FLAC__stream_decoder_process_*() functions.  Will set and return the"]
    #[doc = "  decoder state, which will be FLAC__STREAM_DECODER_SEARCH_FOR_METADATA"]
    #[doc = "  if initialization succeeded."]
    #[doc = ""]
    #[doc = "  \\note Support for Ogg FLAC in the library is optional.  If this"]
    #[doc = "  library has been built without support for Ogg FLAC, this function"]
    #[doc = "  will return \\c FLAC__STREAM_DECODER_INIT_STATUS_UNSUPPORTED_CONTAINER."]
    #[doc = ""]
    #[doc = " \\param  decoder            An uninitialized decoder instance."]
    #[doc = " \\param  filename           The name of the file to decode from.  The file will"]
    #[doc = "                            be opened with fopen().  Use \\c NULL to decode from"]
    #[doc = "                            \\c stdin.  Note that \\c stdin is not seekable."]
    #[doc = " \\param  write_callback     See FLAC__StreamDecoderWriteCallback.  This"]
    #[doc = "                            pointer must not be \\c NULL."]
    #[doc = " \\param  metadata_callback  See FLAC__StreamDecoderMetadataCallback.  This"]
    #[doc = "                            pointer may be \\c NULL if the callback is not"]
    #[doc = "                            desired."]
    #[doc = " \\param  error_callback     See FLAC__StreamDecoderErrorCallback.  This"]
    #[doc = "                            pointer must not be \\c NULL."]
    #[doc = " \\param  client_data        This value will be supplied to callbacks in their"]
    #[doc = "                            \\a client_data argument."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__StreamDecoderInitStatus"]
    #[doc = "    \\c FLAC__STREAM_DECODER_INIT_STATUS_OK if initialization was successful;"]
    #[doc = "    see FLAC__StreamDecoderInitStatus for the meanings of other return values."]
    pub fn FLAC__stream_decoder_init_ogg_file(
        decoder: *mut FLAC__StreamDecoder,
        filename: *const ::std::os::raw::c_char,
        write_callback: FLAC__StreamDecoderWriteCallback,
        metadata_callback: FLAC__StreamDecoderMetadataCallback,
        error_callback: FLAC__StreamDecoderErrorCallback,
        client_data: *mut ::std::os::raw::c_void,
    ) -> FLAC__StreamDecoderInitStatus;
}
extern "C" {
    #[doc = " Finish the decoding process."]
    #[doc = "  Flushes the decoding buffer, releases resources, resets the decoder"]
    #[doc = "  settings to their defaults, and returns the decoder state to"]
    #[doc = "  FLAC__STREAM_DECODER_UNINITIALIZED."]
    #[doc = ""]
    #[doc = "  In the event of a prematurely-terminated decode, it is not strictly"]
    #[doc = "  necessary to call this immediately before FLAC__stream_decoder_delete()"]
    #[doc = "  but it is good practice to match every FLAC__stream_decoder_init_*()"]
    #[doc = "  with a FLAC__stream_decoder_finish()."]
    #[doc = ""]
    #[doc = " \\param  decoder  An uninitialized decoder instance."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if MD5 checking is on AND a STREAMINFO block was available"]
    #[doc = "    AND the MD5 signature in the STREAMINFO block was non-zero AND the"]
    #[doc = "    signature does not match the one computed by the decoder; else"]
    #[doc = "    \\c true."]
    pub fn FLAC__stream_decoder_finish(decoder: *mut FLAC__StreamDecoder) -> FLAC__bool;
}
extern "C" {
    #[doc = " Flush the stream input."]
    #[doc = "  The decoder\'s input buffer will be cleared and the state set to"]
    #[doc = "  \\c FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.  This will also turn"]
    #[doc = "  off MD5 checking."]
    #[doc = ""]
    #[doc = " \\param  decoder  A decoder instance."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c true if successful, else \\c false if a memory allocation"]
    #[doc = "    error occurs (in which case the state will be set to"]
    #[doc = "    \\c FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR)."]
    pub fn FLAC__stream_decoder_flush(decoder: *mut FLAC__StreamDecoder) -> FLAC__bool;
}
extern "C" {
    #[doc = " Reset the decoding process."]
    #[doc = "  The decoder\'s input buffer will be cleared and the state set to"]
    #[doc = "  \\c FLAC__STREAM_DECODER_SEARCH_FOR_METADATA.  This is similar to"]
    #[doc = "  FLAC__stream_decoder_finish() except that the settings are"]
    #[doc = "  preserved; there is no need to call FLAC__stream_decoder_init_*()"]
    #[doc = "  before decoding again.  MD5 checking will be restored to its original"]
    #[doc = "  setting."]
    #[doc = ""]
    #[doc = "  If the decoder is seekable, or was initialized with"]
    #[doc = "  FLAC__stream_decoder_init*_FILE() or FLAC__stream_decoder_init*_file(),"]
    #[doc = "  the decoder will also attempt to seek to the beginning of the file."]
    #[doc = "  If this rewind fails, this function will return \\c false.  It follows"]
    #[doc = "  that FLAC__stream_decoder_reset() cannot be used when decoding from"]
    #[doc = "  \\c stdin."]
    #[doc = ""]
    #[doc = "  If the decoder was initialized with FLAC__stream_encoder_init*_stream()"]
    #[doc = "  and is not seekable (i.e. no seek callback was provided or the seek"]
    #[doc = "  callback returns \\c FLAC__STREAM_DECODER_SEEK_STATUS_UNSUPPORTED), it"]
    #[doc = "  is the duty of the client to start feeding data from the beginning of"]
    #[doc = "  the stream on the next FLAC__stream_decoder_process() or"]
    #[doc = "  FLAC__stream_decoder_process_interleaved() call."]
    #[doc = ""]
    #[doc = " \\param  decoder  A decoder instance."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c true if successful, else \\c false if a memory allocation occurs"]
    #[doc = "    (in which case the state will be set to"]
    #[doc = "    \\c FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR) or a seek error"]
    #[doc = "    occurs (the state will be unchanged)."]
    pub fn FLAC__stream_decoder_reset(decoder: *mut FLAC__StreamDecoder) -> FLAC__bool;
}
extern "C" {
    #[doc = " Decode one metadata block or audio frame."]
    #[doc = "  This version instructs the decoder to decode a either a single metadata"]
    #[doc = "  block or a single frame and stop, unless the callbacks return a fatal"]
    #[doc = "  error or the read callback returns"]
    #[doc = "  \\c FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM."]
    #[doc = ""]
    #[doc = "  As the decoder needs more input it will call the read callback."]
    #[doc = "  Depending on what was decoded, the metadata or write callback will be"]
    #[doc = "  called with the decoded metadata block or audio frame."]
    #[doc = ""]
    #[doc = "  Unless there is a fatal read error or end of stream, this function"]
    #[doc = "  will return once one whole frame is decoded.  In other words, if the"]
    #[doc = "  stream is not synchronized or points to a corrupt frame header, the"]
    #[doc = "  decoder will continue to try and resync until it gets to a valid"]
    #[doc = "  frame, then decode one frame, then return.  If the decoder points to"]
    #[doc = "  a frame whose frame CRC in the frame footer does not match the"]
    #[doc = "  computed frame CRC, this function will issue a"]
    #[doc = "  FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH error to the"]
    #[doc = "  error callback, and return, having decoded one complete, although"]
    #[doc = "  corrupt, frame.  (Such corrupted frames are sent as silence of the"]
    #[doc = "  correct length to the write callback.)"]
    #[doc = ""]
    #[doc = " \\param  decoder  An initialized decoder instance."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if any fatal read, write, or memory allocation error"]
    #[doc = "    occurred (meaning decoding must stop), else \\c true; for more"]
    #[doc = "    information about the decoder, check the decoder state with"]
    #[doc = "    FLAC__stream_decoder_get_state()."]
    pub fn FLAC__stream_decoder_process_single(decoder: *mut FLAC__StreamDecoder) -> FLAC__bool;
}
extern "C" {
    #[doc = " Decode until the end of the metadata."]
    #[doc = "  This version instructs the decoder to decode from the current position"]
    #[doc = "  and continue until all the metadata has been read, or until the"]
    #[doc = "  callbacks return a fatal error or the read callback returns"]
    #[doc = "  \\c FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM."]
    #[doc = ""]
    #[doc = "  As the decoder needs more input it will call the read callback."]
    #[doc = "  As each metadata block is decoded, the metadata callback will be called"]
    #[doc = "  with the decoded metadata."]
    #[doc = ""]
    #[doc = " \\param  decoder  An initialized decoder instance."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if any fatal read, write, or memory allocation error"]
    #[doc = "    occurred (meaning decoding must stop), else \\c true; for more"]
    #[doc = "    information about the decoder, check the decoder state with"]
    #[doc = "    FLAC__stream_decoder_get_state()."]
    pub fn FLAC__stream_decoder_process_until_end_of_metadata(
        decoder: *mut FLAC__StreamDecoder,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Decode until the end of the stream."]
    #[doc = "  This version instructs the decoder to decode from the current position"]
    #[doc = "  and continue until the end of stream (the read callback returns"]
    #[doc = "  \\c FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM), or until the"]
    #[doc = "  callbacks return a fatal error."]
    #[doc = ""]
    #[doc = "  As the decoder needs more input it will call the read callback."]
    #[doc = "  As each metadata block and frame is decoded, the metadata or write"]
    #[doc = "  callback will be called with the decoded metadata or frame."]
    #[doc = ""]
    #[doc = " \\param  decoder  An initialized decoder instance."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if any fatal read, write, or memory allocation error"]
    #[doc = "    occurred (meaning decoding must stop), else \\c true; for more"]
    #[doc = "    information about the decoder, check the decoder state with"]
    #[doc = "    FLAC__stream_decoder_get_state()."]
    pub fn FLAC__stream_decoder_process_until_end_of_stream(
        decoder: *mut FLAC__StreamDecoder,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Skip one audio frame."]
    #[doc = "  This version instructs the decoder to \'skip\' a single frame and stop,"]
    #[doc = "  unless the callbacks return a fatal error or the read callback returns"]
    #[doc = "  \\c FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM."]
    #[doc = ""]
    #[doc = "  The decoding flow is the same as what occurs when"]
    #[doc = "  FLAC__stream_decoder_process_single() is called to process an audio"]
    #[doc = "  frame, except that this function does not decode the parsed data into"]
    #[doc = "  PCM or call the write callback.  The integrity of the frame is still"]
    #[doc = "  checked the same way as in the other process functions."]
    #[doc = ""]
    #[doc = "  This function will return once one whole frame is skipped, in the"]
    #[doc = "  same way that FLAC__stream_decoder_process_single() will return once"]
    #[doc = "  one whole frame is decoded."]
    #[doc = ""]
    #[doc = "  This function can be used in more quickly determining FLAC frame"]
    #[doc = "  boundaries when decoding of the actual data is not needed, for"]
    #[doc = "  example when an application is separating a FLAC stream into frames"]
    #[doc = "  for editing or storing in a container.  To do this, the application"]
    #[doc = "  can use FLAC__stream_decoder_skip_single_frame() to quickly advance"]
    #[doc = "  to the next frame, then use"]
    #[doc = "  FLAC__stream_decoder_get_decode_position() to find the new frame"]
    #[doc = "  boundary."]
    #[doc = ""]
    #[doc = "  This function should only be called when the stream has advanced"]
    #[doc = "  past all the metadata, otherwise it will return \\c false."]
    #[doc = ""]
    #[doc = " \\param  decoder  An initialized decoder instance not in a metadata"]
    #[doc = "                  state."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if any fatal read, write, or memory allocation error"]
    #[doc = "    occurred (meaning decoding must stop), or if the decoder"]
    #[doc = "    is in the FLAC__STREAM_DECODER_SEARCH_FOR_METADATA or"]
    #[doc = "    FLAC__STREAM_DECODER_READ_METADATA state, else \\c true; for more"]
    #[doc = "    information about the decoder, check the decoder state with"]
    #[doc = "    FLAC__stream_decoder_get_state()."]
    pub fn FLAC__stream_decoder_skip_single_frame(decoder: *mut FLAC__StreamDecoder) -> FLAC__bool;
}
extern "C" {
    #[doc = " Flush the input and seek to an absolute sample."]
    #[doc = "  Decoding will resume at the given sample.  Note that because of"]
    #[doc = "  this, the next write callback may contain a partial block.  The"]
    #[doc = "  client must support seeking the input or this function will fail"]
    #[doc = "  and return \\c false.  Furthermore, if the decoder state is"]
    #[doc = "  \\c FLAC__STREAM_DECODER_SEEK_ERROR, then the decoder must be flushed"]
    #[doc = "  with FLAC__stream_decoder_flush() or reset with"]
    #[doc = "  FLAC__stream_decoder_reset() before decoding can continue."]
    #[doc = ""]
    #[doc = " \\param  decoder  A decoder instance."]
    #[doc = " \\param  sample   The target sample number to seek to."]
    #[doc = " \\assert"]
    #[doc = "    \\code decoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c true if successful, else \\c false."]
    pub fn FLAC__stream_decoder_seek_absolute(
        decoder: *mut FLAC__StreamDecoder,
        sample: FLAC__uint64,
    ) -> FLAC__bool;
}
pub const FLAC__StreamEncoderState_FLAC__STREAM_ENCODER_OK: FLAC__StreamEncoderState = 0;
pub const FLAC__StreamEncoderState_FLAC__STREAM_ENCODER_UNINITIALIZED: FLAC__StreamEncoderState = 1;
pub const FLAC__StreamEncoderState_FLAC__STREAM_ENCODER_OGG_ERROR: FLAC__StreamEncoderState = 2;
pub const FLAC__StreamEncoderState_FLAC__STREAM_ENCODER_VERIFY_DECODER_ERROR:
    FLAC__StreamEncoderState = 3;
pub const FLAC__StreamEncoderState_FLAC__STREAM_ENCODER_VERIFY_MISMATCH_IN_AUDIO_DATA:
    FLAC__StreamEncoderState = 4;
pub const FLAC__StreamEncoderState_FLAC__STREAM_ENCODER_CLIENT_ERROR: FLAC__StreamEncoderState = 5;
pub const FLAC__StreamEncoderState_FLAC__STREAM_ENCODER_IO_ERROR: FLAC__StreamEncoderState = 6;
pub const FLAC__StreamEncoderState_FLAC__STREAM_ENCODER_FRAMING_ERROR: FLAC__StreamEncoderState = 7;
pub const FLAC__StreamEncoderState_FLAC__STREAM_ENCODER_MEMORY_ALLOCATION_ERROR:
    FLAC__StreamEncoderState = 8;
#[doc = " State values for a FLAC__StreamEncoder."]
#[doc = ""]
#[doc = " The encoder\'s state can be obtained by calling FLAC__stream_encoder_get_state()."]
#[doc = ""]
#[doc = " If the encoder gets into any other state besides \\c FLAC__STREAM_ENCODER_OK"]
#[doc = " or \\c FLAC__STREAM_ENCODER_UNINITIALIZED, it becomes invalid for encoding and"]
#[doc = " must be deleted with FLAC__stream_encoder_delete()."]
pub type FLAC__StreamEncoderState = u32;
extern "C" {
    #[link_name = "\u{1}FLAC__StreamEncoderStateString"]
    pub static mut FLAC__StreamEncoderStateString: [*const ::std::os::raw::c_char; 0usize];
}
pub const FLAC__StreamEncoderInitStatus_FLAC__STREAM_ENCODER_INIT_STATUS_OK:
    FLAC__StreamEncoderInitStatus = 0;
pub const FLAC__StreamEncoderInitStatus_FLAC__STREAM_ENCODER_INIT_STATUS_ENCODER_ERROR:
    FLAC__StreamEncoderInitStatus = 1;
pub const FLAC__StreamEncoderInitStatus_FLAC__STREAM_ENCODER_INIT_STATUS_UNSUPPORTED_CONTAINER:
    FLAC__StreamEncoderInitStatus = 2;
pub const FLAC__StreamEncoderInitStatus_FLAC__STREAM_ENCODER_INIT_STATUS_INVALID_CALLBACKS:
    FLAC__StreamEncoderInitStatus = 3;
pub const FLAC__StreamEncoderInitStatus_FLAC__STREAM_ENCODER_INIT_STATUS_INVALID_NUMBER_OF_CHANNELS : FLAC__StreamEncoderInitStatus = 4 ;
pub const FLAC__StreamEncoderInitStatus_FLAC__STREAM_ENCODER_INIT_STATUS_INVALID_BITS_PER_SAMPLE:
    FLAC__StreamEncoderInitStatus = 5;
pub const FLAC__StreamEncoderInitStatus_FLAC__STREAM_ENCODER_INIT_STATUS_INVALID_SAMPLE_RATE:
    FLAC__StreamEncoderInitStatus = 6;
pub const FLAC__StreamEncoderInitStatus_FLAC__STREAM_ENCODER_INIT_STATUS_INVALID_BLOCK_SIZE:
    FLAC__StreamEncoderInitStatus = 7;
pub const FLAC__StreamEncoderInitStatus_FLAC__STREAM_ENCODER_INIT_STATUS_INVALID_MAX_LPC_ORDER:
    FLAC__StreamEncoderInitStatus = 8;
pub const FLAC__StreamEncoderInitStatus_FLAC__STREAM_ENCODER_INIT_STATUS_INVALID_QLP_COEFF_PRECISION : FLAC__StreamEncoderInitStatus = 9 ;
pub const FLAC__StreamEncoderInitStatus_FLAC__STREAM_ENCODER_INIT_STATUS_BLOCK_SIZE_TOO_SMALL_FOR_LPC_ORDER : FLAC__StreamEncoderInitStatus = 10 ;
pub const FLAC__StreamEncoderInitStatus_FLAC__STREAM_ENCODER_INIT_STATUS_NOT_STREAMABLE:
    FLAC__StreamEncoderInitStatus = 11;
pub const FLAC__StreamEncoderInitStatus_FLAC__STREAM_ENCODER_INIT_STATUS_INVALID_METADATA:
    FLAC__StreamEncoderInitStatus = 12;
pub const FLAC__StreamEncoderInitStatus_FLAC__STREAM_ENCODER_INIT_STATUS_ALREADY_INITIALIZED:
    FLAC__StreamEncoderInitStatus = 13;
#[doc = " Possible return values for the FLAC__stream_encoder_init_*() functions."]
pub type FLAC__StreamEncoderInitStatus = u32;
extern "C" {
    #[link_name = "\u{1}FLAC__StreamEncoderInitStatusString"]
    pub static mut FLAC__StreamEncoderInitStatusString: [*const ::std::os::raw::c_char; 0usize];
}
pub const FLAC__StreamEncoderReadStatus_FLAC__STREAM_ENCODER_READ_STATUS_CONTINUE:
    FLAC__StreamEncoderReadStatus = 0;
pub const FLAC__StreamEncoderReadStatus_FLAC__STREAM_ENCODER_READ_STATUS_END_OF_STREAM:
    FLAC__StreamEncoderReadStatus = 1;
pub const FLAC__StreamEncoderReadStatus_FLAC__STREAM_ENCODER_READ_STATUS_ABORT:
    FLAC__StreamEncoderReadStatus = 2;
pub const FLAC__StreamEncoderReadStatus_FLAC__STREAM_ENCODER_READ_STATUS_UNSUPPORTED:
    FLAC__StreamEncoderReadStatus = 3;
#[doc = " Return values for the FLAC__StreamEncoder read callback."]
pub type FLAC__StreamEncoderReadStatus = u32;
extern "C" {
    #[link_name = "\u{1}FLAC__StreamEncoderReadStatusString"]
    pub static mut FLAC__StreamEncoderReadStatusString: [*const ::std::os::raw::c_char; 0usize];
}
pub const FLAC__StreamEncoderWriteStatus_FLAC__STREAM_ENCODER_WRITE_STATUS_OK:
    FLAC__StreamEncoderWriteStatus = 0;
pub const FLAC__StreamEncoderWriteStatus_FLAC__STREAM_ENCODER_WRITE_STATUS_FATAL_ERROR:
    FLAC__StreamEncoderWriteStatus = 1;
#[doc = " Return values for the FLAC__StreamEncoder write callback."]
pub type FLAC__StreamEncoderWriteStatus = u32;
extern "C" {
    #[link_name = "\u{1}FLAC__StreamEncoderWriteStatusString"]
    pub static mut FLAC__StreamEncoderWriteStatusString: [*const ::std::os::raw::c_char; 0usize];
}
pub const FLAC__StreamEncoderSeekStatus_FLAC__STREAM_ENCODER_SEEK_STATUS_OK:
    FLAC__StreamEncoderSeekStatus = 0;
pub const FLAC__StreamEncoderSeekStatus_FLAC__STREAM_ENCODER_SEEK_STATUS_ERROR:
    FLAC__StreamEncoderSeekStatus = 1;
pub const FLAC__StreamEncoderSeekStatus_FLAC__STREAM_ENCODER_SEEK_STATUS_UNSUPPORTED:
    FLAC__StreamEncoderSeekStatus = 2;
#[doc = " Return values for the FLAC__StreamEncoder seek callback."]
pub type FLAC__StreamEncoderSeekStatus = u32;
extern "C" {
    #[link_name = "\u{1}FLAC__StreamEncoderSeekStatusString"]
    pub static mut FLAC__StreamEncoderSeekStatusString: [*const ::std::os::raw::c_char; 0usize];
}
pub const FLAC__StreamEncoderTellStatus_FLAC__STREAM_ENCODER_TELL_STATUS_OK:
    FLAC__StreamEncoderTellStatus = 0;
pub const FLAC__StreamEncoderTellStatus_FLAC__STREAM_ENCODER_TELL_STATUS_ERROR:
    FLAC__StreamEncoderTellStatus = 1;
pub const FLAC__StreamEncoderTellStatus_FLAC__STREAM_ENCODER_TELL_STATUS_UNSUPPORTED:
    FLAC__StreamEncoderTellStatus = 2;
#[doc = " Return values for the FLAC__StreamEncoder tell callback."]
pub type FLAC__StreamEncoderTellStatus = u32;
extern "C" {
    #[link_name = "\u{1}FLAC__StreamEncoderTellStatusString"]
    pub static mut FLAC__StreamEncoderTellStatusString: [*const ::std::os::raw::c_char; 0usize];
}
#[doc = " class FLAC__StreamEncoder"]
#[doc = ""]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLAC__StreamEncoderProtected {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLAC__StreamEncoderPrivate {
    _unused: [u8; 0],
}
#[doc = " The opaque structure definition for the stream encoder type."]
#[doc = "  See the \\link flac_stream_encoder stream encoder module \\endlink"]
#[doc = "  for a detailed description."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLAC__StreamEncoder {
    pub protected_: *mut FLAC__StreamEncoderProtected,
    pub private_: *mut FLAC__StreamEncoderPrivate,
}
#[doc = " Signature for the read callback."]
#[doc = ""]
#[doc = "  A function pointer matching this signature must be passed to"]
#[doc = "  FLAC__stream_encoder_init_ogg_stream() if seeking is supported."]
#[doc = "  The supplied function will be called when the encoder needs to read back"]
#[doc = "  encoded data.  This happens during the metadata callback, when the encoder"]
#[doc = "  has to read, modify, and rewrite the metadata (e.g. seekpoints) gathered"]
#[doc = "  while encoding.  The address of the buffer to be filled is supplied, along"]
#[doc = "  with the number of bytes the buffer can hold.  The callback may choose to"]
#[doc = "  supply less data and modify the byte count but must be careful not to"]
#[doc = "  overflow the buffer.  The callback then returns a status code chosen from"]
#[doc = "  FLAC__StreamEncoderReadStatus."]
#[doc = ""]
#[doc = " Here is an example of a read callback for stdio streams:"]
#[doc = " \\code"]
#[doc = " FLAC__StreamEncoderReadStatus read_cb(const FLAC__StreamEncoder *encoder, FLAC__byte buffer[], size_t *bytes, void *client_data)"]
#[doc = " {"]
#[doc = "   FILE *file = ((MyClientData*)client_data)->file;"]
#[doc = "   if(*bytes > 0) {"]
#[doc = "     *bytes = fread(buffer, sizeof(FLAC__byte), *bytes, file);"]
#[doc = "     if(ferror(file))"]
#[doc = "       return FLAC__STREAM_ENCODER_READ_STATUS_ABORT;"]
#[doc = "     else if(*bytes == 0)"]
#[doc = "       return FLAC__STREAM_ENCODER_READ_STATUS_END_OF_STREAM;"]
#[doc = "     else"]
#[doc = "       return FLAC__STREAM_ENCODER_READ_STATUS_CONTINUE;"]
#[doc = "   }"]
#[doc = "   else"]
#[doc = "     return FLAC__STREAM_ENCODER_READ_STATUS_ABORT;"]
#[doc = " }"]
#[doc = " \\endcode"]
#[doc = ""]
#[doc = " \\note In general, FLAC__StreamEncoder functions which change the"]
#[doc = " state should not be called on the \\a encoder while in the callback."]
#[doc = ""]
#[doc = " \\param  encoder  The encoder instance calling the callback."]
#[doc = " \\param  buffer   A pointer to a location for the callee to store"]
#[doc = "                  data to be encoded."]
#[doc = " \\param  bytes    A pointer to the size of the buffer.  On entry"]
#[doc = "                  to the callback, it contains the maximum number"]
#[doc = "                  of bytes that may be stored in \\a buffer.  The"]
#[doc = "                  callee must set it to the actual number of bytes"]
#[doc = "                  stored (0 in case of error or end-of-stream) before"]
#[doc = "                  returning."]
#[doc = " \\param  client_data  The callee\'s client data set through"]
#[doc = "                      FLAC__stream_encoder_set_client_data()."]
#[doc = " \\retval FLAC__StreamEncoderReadStatus"]
#[doc = "    The callee\'s return status."]
pub type FLAC__StreamEncoderReadCallback = ::std::option::Option<
    unsafe extern "C" fn(
        encoder: *const FLAC__StreamEncoder,
        buffer: *mut FLAC__byte,
        bytes: *mut usize,
        client_data: *mut ::std::os::raw::c_void,
    ) -> FLAC__StreamEncoderReadStatus,
>;
#[doc = " Signature for the write callback."]
#[doc = ""]
#[doc = "  A function pointer matching this signature must be passed to"]
#[doc = "  FLAC__stream_encoder_init*_stream().  The supplied function will be called"]
#[doc = "  by the encoder anytime there is raw encoded data ready to write.  It may"]
#[doc = "  include metadata mixed with encoded audio frames and the data is not"]
#[doc = "  guaranteed to be aligned on frame or metadata block boundaries."]
#[doc = ""]
#[doc = "  The only duty of the callback is to write out the \\a bytes worth of data"]
#[doc = "  in \\a buffer to the current position in the output stream.  The arguments"]
#[doc = "  \\a samples and \\a current_frame are purely informational.  If \\a samples"]
#[doc = "  is greater than \\c 0, then \\a current_frame will hold the current frame"]
#[doc = "  number that is being written; otherwise it indicates that the write"]
#[doc = "  callback is being called to write metadata."]
#[doc = ""]
#[doc = " \\note"]
#[doc = " Unlike when writing to native FLAC, when writing to Ogg FLAC the"]
#[doc = " write callback will be called twice when writing each audio"]
#[doc = " frame; once for the page header, and once for the page body."]
#[doc = " When writing the page header, the \\a samples argument to the"]
#[doc = " write callback will be \\c 0."]
#[doc = ""]
#[doc = " \\note In general, FLAC__StreamEncoder functions which change the"]
#[doc = " state should not be called on the \\a encoder while in the callback."]
#[doc = ""]
#[doc = " \\param  encoder  The encoder instance calling the callback."]
#[doc = " \\param  buffer   An array of encoded data of length \\a bytes."]
#[doc = " \\param  bytes    The byte length of \\a buffer."]
#[doc = " \\param  samples  The number of samples encoded by \\a buffer."]
#[doc = "                  \\c 0 has a special meaning; see above."]
#[doc = " \\param  current_frame  The number of the current frame being encoded."]
#[doc = " \\param  client_data  The callee\'s client data set through"]
#[doc = "                      FLAC__stream_encoder_init_*()."]
#[doc = " \\retval FLAC__StreamEncoderWriteStatus"]
#[doc = "    The callee\'s return status."]
pub type FLAC__StreamEncoderWriteCallback = ::std::option::Option<
    unsafe extern "C" fn(
        encoder: *const FLAC__StreamEncoder,
        buffer: *const FLAC__byte,
        bytes: usize,
        samples: ::std::os::raw::c_uint,
        current_frame: ::std::os::raw::c_uint,
        client_data: *mut ::std::os::raw::c_void,
    ) -> FLAC__StreamEncoderWriteStatus,
>;
#[doc = " Signature for the seek callback."]
#[doc = ""]
#[doc = "  A function pointer matching this signature may be passed to"]
#[doc = "  FLAC__stream_encoder_init*_stream().  The supplied function will be called"]
#[doc = "  when the encoder needs to seek the output stream.  The encoder will pass"]
#[doc = "  the absolute byte offset to seek to, 0 meaning the beginning of the stream."]
#[doc = ""]
#[doc = " Here is an example of a seek callback for stdio streams:"]
#[doc = " \\code"]
#[doc = " FLAC__StreamEncoderSeekStatus seek_cb(const FLAC__StreamEncoder *encoder, FLAC__uint64 absolute_byte_offset, void *client_data)"]
#[doc = " {"]
#[doc = "   FILE *file = ((MyClientData*)client_data)->file;"]
#[doc = "   if(file == stdin)"]
#[doc = "     return FLAC__STREAM_ENCODER_SEEK_STATUS_UNSUPPORTED;"]
#[doc = "   else if(fseeko(file, (off_t)absolute_byte_offset, SEEK_SET) < 0)"]
#[doc = "     return FLAC__STREAM_ENCODER_SEEK_STATUS_ERROR;"]
#[doc = "   else"]
#[doc = "     return FLAC__STREAM_ENCODER_SEEK_STATUS_OK;"]
#[doc = " }"]
#[doc = " \\endcode"]
#[doc = ""]
#[doc = " \\note In general, FLAC__StreamEncoder functions which change the"]
#[doc = " state should not be called on the \\a encoder while in the callback."]
#[doc = ""]
#[doc = " \\param  encoder  The encoder instance calling the callback."]
#[doc = " \\param  absolute_byte_offset  The offset from the beginning of the stream"]
#[doc = "                               to seek to."]
#[doc = " \\param  client_data  The callee\'s client data set through"]
#[doc = "                      FLAC__stream_encoder_init_*()."]
#[doc = " \\retval FLAC__StreamEncoderSeekStatus"]
#[doc = "    The callee\'s return status."]
pub type FLAC__StreamEncoderSeekCallback = ::std::option::Option<
    unsafe extern "C" fn(
        encoder: *const FLAC__StreamEncoder,
        absolute_byte_offset: FLAC__uint64,
        client_data: *mut ::std::os::raw::c_void,
    ) -> FLAC__StreamEncoderSeekStatus,
>;
#[doc = " Signature for the tell callback."]
#[doc = ""]
#[doc = "  A function pointer matching this signature may be passed to"]
#[doc = "  FLAC__stream_encoder_init*_stream().  The supplied function will be called"]
#[doc = "  when the encoder needs to know the current position of the output stream."]
#[doc = ""]
#[doc = " \\warning"]
#[doc = " The callback must return the true current byte offset of the output to"]
#[doc = " which the encoder is writing.  If you are buffering the output, make"]
#[doc = " sure and take this into account.  If you are writing directly to a"]
#[doc = " FILE* from your write callback, ftell() is sufficient.  If you are"]
#[doc = " writing directly to a file descriptor from your write callback, you"]
#[doc = " can use lseek(fd, SEEK_CUR, 0).  The encoder may later seek back to"]
#[doc = " these points to rewrite metadata after encoding."]
#[doc = ""]
#[doc = " Here is an example of a tell callback for stdio streams:"]
#[doc = " \\code"]
#[doc = " FLAC__StreamEncoderTellStatus tell_cb(const FLAC__StreamEncoder *encoder, FLAC__uint64 *absolute_byte_offset, void *client_data)"]
#[doc = " {"]
#[doc = "   FILE *file = ((MyClientData*)client_data)->file;"]
#[doc = "   off_t pos;"]
#[doc = "   if(file == stdin)"]
#[doc = "     return FLAC__STREAM_ENCODER_TELL_STATUS_UNSUPPORTED;"]
#[doc = "   else if((pos = ftello(file)) < 0)"]
#[doc = "     return FLAC__STREAM_ENCODER_TELL_STATUS_ERROR;"]
#[doc = "   else {"]
#[doc = "     *absolute_byte_offset = (FLAC__uint64)pos;"]
#[doc = "     return FLAC__STREAM_ENCODER_TELL_STATUS_OK;"]
#[doc = "   }"]
#[doc = " }"]
#[doc = " \\endcode"]
#[doc = ""]
#[doc = " \\note In general, FLAC__StreamEncoder functions which change the"]
#[doc = " state should not be called on the \\a encoder while in the callback."]
#[doc = ""]
#[doc = " \\param  encoder  The encoder instance calling the callback."]
#[doc = " \\param  absolute_byte_offset  The address at which to store the current"]
#[doc = "                               position of the output."]
#[doc = " \\param  client_data  The callee\'s client data set through"]
#[doc = "                      FLAC__stream_encoder_init_*()."]
#[doc = " \\retval FLAC__StreamEncoderTellStatus"]
#[doc = "    The callee\'s return status."]
pub type FLAC__StreamEncoderTellCallback = ::std::option::Option<
    unsafe extern "C" fn(
        encoder: *const FLAC__StreamEncoder,
        absolute_byte_offset: *mut FLAC__uint64,
        client_data: *mut ::std::os::raw::c_void,
    ) -> FLAC__StreamEncoderTellStatus,
>;
#[doc = " Signature for the metadata callback."]
#[doc = ""]
#[doc = "  A function pointer matching this signature may be passed to"]
#[doc = "  FLAC__stream_encoder_init*_stream().  The supplied function will be called"]
#[doc = "  once at the end of encoding with the populated STREAMINFO structure.  This"]
#[doc = "  is so the client can seek back to the beginning of the file and write the"]
#[doc = "  STREAMINFO block with the correct statistics after encoding (like"]
#[doc = "  minimum/maximum frame size and total samples)."]
#[doc = ""]
#[doc = " \\note In general, FLAC__StreamEncoder functions which change the"]
#[doc = " state should not be called on the \\a encoder while in the callback."]
#[doc = ""]
#[doc = " \\param  encoder      The encoder instance calling the callback."]
#[doc = " \\param  metadata     The final populated STREAMINFO block."]
#[doc = " \\param  client_data  The callee\'s client data set through"]
#[doc = "                      FLAC__stream_encoder_init_*()."]
pub type FLAC__StreamEncoderMetadataCallback = ::std::option::Option<
    unsafe extern "C" fn(
        encoder: *const FLAC__StreamEncoder,
        metadata: *const FLAC__StreamMetadata,
        client_data: *mut ::std::os::raw::c_void,
    ),
>;
#[doc = " Signature for the progress callback."]
#[doc = ""]
#[doc = "  A function pointer matching this signature may be passed to"]
#[doc = "  FLAC__stream_encoder_init*_file() or FLAC__stream_encoder_init*_FILE()."]
#[doc = "  The supplied function will be called when the encoder has finished"]
#[doc = "  writing a frame.  The \\c total_frames_estimate argument to the"]
#[doc = "  callback will be based on the value from"]
#[doc = "  FLAC__stream_encoder_set_total_samples_estimate()."]
#[doc = ""]
#[doc = " \\note In general, FLAC__StreamEncoder functions which change the"]
#[doc = " state should not be called on the \\a encoder while in the callback."]
#[doc = ""]
#[doc = " \\param  encoder          The encoder instance calling the callback."]
#[doc = " \\param  bytes_written    Bytes written so far."]
#[doc = " \\param  samples_written  Samples written so far."]
#[doc = " \\param  frames_written   Frames written so far."]
#[doc = " \\param  total_frames_estimate  The estimate of the total number of"]
#[doc = "                                frames to be written."]
#[doc = " \\param  client_data      The callee\'s client data set through"]
#[doc = "                          FLAC__stream_encoder_init_*()."]
pub type FLAC__StreamEncoderProgressCallback = ::std::option::Option<
    unsafe extern "C" fn(
        encoder: *const FLAC__StreamEncoder,
        bytes_written: FLAC__uint64,
        samples_written: FLAC__uint64,
        frames_written: ::std::os::raw::c_uint,
        total_frames_estimate: ::std::os::raw::c_uint,
        client_data: *mut ::std::os::raw::c_void,
    ),
>;
extern "C" {
    #[doc = " Create a new stream encoder instance.  The instance is created with"]
    #[doc = "  default settings; see the individual FLAC__stream_encoder_set_*()"]
    #[doc = "  functions for each setting\'s default."]
    #[doc = ""]
    #[doc = " \\retval FLAC__StreamEncoder*"]
    #[doc = "    \\c NULL if there was an error allocating memory, else the new instance."]
    pub fn FLAC__stream_encoder_new() -> *mut FLAC__StreamEncoder;
}
extern "C" {
    #[doc = " Free an encoder instance.  Deletes the object pointed to by \\a encoder."]
    #[doc = ""]
    #[doc = " \\param encoder  A pointer to an existing encoder."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    pub fn FLAC__stream_encoder_delete(encoder: *mut FLAC__StreamEncoder);
}
extern "C" {
    #[doc = " Set the serial number for the FLAC stream to use in the Ogg container."]
    #[doc = ""]
    #[doc = " \\note"]
    #[doc = " This does not need to be set for native FLAC encoding."]
    #[doc = ""]
    #[doc = " \\note"]
    #[doc = " It is recommended to set a serial number explicitly as the default of \'0\'"]
    #[doc = " may collide with other streams."]
    #[doc = ""]
    #[doc = " \\default \\c 0"]
    #[doc = " \\param  encoder        An encoder instance to set."]
    #[doc = " \\param  serial_number  See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the encoder is already initialized, else \\c true."]
    pub fn FLAC__stream_encoder_set_ogg_serial_number(
        encoder: *mut FLAC__StreamEncoder,
        serial_number: ::std::os::raw::c_long,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Set the \"verify\" flag.  If \\c true, the encoder will verify it\'s own"]
    #[doc = "  encoded output by feeding it through an internal decoder and comparing"]
    #[doc = "  the original signal against the decoded signal.  If a mismatch occurs,"]
    #[doc = "  the process call will return \\c false.  Note that this will slow the"]
    #[doc = "  encoding process by the extra time required for decoding and comparison."]
    #[doc = ""]
    #[doc = " \\default \\c false"]
    #[doc = " \\param  encoder  An encoder instance to set."]
    #[doc = " \\param  value    Flag value (see above)."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the encoder is already initialized, else \\c true."]
    pub fn FLAC__stream_encoder_set_verify(
        encoder: *mut FLAC__StreamEncoder,
        value: FLAC__bool,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Set the <A HREF=\"../format.html#subset\">Subset</A> flag.  If \\c true,"]
    #[doc = "  the encoder will comply with the Subset and will check the"]
    #[doc = "  settings during FLAC__stream_encoder_init_*() to see if all settings"]
    #[doc = "  comply.  If \\c false, the settings may take advantage of the full"]
    #[doc = "  range that the format allows."]
    #[doc = ""]
    #[doc = "  Make sure you know what it entails before setting this to \\c false."]
    #[doc = ""]
    #[doc = " \\default \\c true"]
    #[doc = " \\param  encoder  An encoder instance to set."]
    #[doc = " \\param  value    Flag value (see above)."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the encoder is already initialized, else \\c true."]
    pub fn FLAC__stream_encoder_set_streamable_subset(
        encoder: *mut FLAC__StreamEncoder,
        value: FLAC__bool,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Set the number of channels to be encoded."]
    #[doc = ""]
    #[doc = " \\default \\c 2"]
    #[doc = " \\param  encoder  An encoder instance to set."]
    #[doc = " \\param  value    See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the encoder is already initialized, else \\c true."]
    pub fn FLAC__stream_encoder_set_channels(
        encoder: *mut FLAC__StreamEncoder,
        value: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Set the sample resolution of the input to be encoded."]
    #[doc = ""]
    #[doc = " \\warning"]
    #[doc = " Do not feed the encoder data that is wider than the value you"]
    #[doc = " set here or you will generate an invalid stream."]
    #[doc = ""]
    #[doc = " \\default \\c 16"]
    #[doc = " \\param  encoder  An encoder instance to set."]
    #[doc = " \\param  value    See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the encoder is already initialized, else \\c true."]
    pub fn FLAC__stream_encoder_set_bits_per_sample(
        encoder: *mut FLAC__StreamEncoder,
        value: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Set the sample rate (in Hz) of the input to be encoded."]
    #[doc = ""]
    #[doc = " \\default \\c 44100"]
    #[doc = " \\param  encoder  An encoder instance to set."]
    #[doc = " \\param  value    See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the encoder is already initialized, else \\c true."]
    pub fn FLAC__stream_encoder_set_sample_rate(
        encoder: *mut FLAC__StreamEncoder,
        value: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Set the compression level"]
    #[doc = ""]
    #[doc = " The compression level is roughly proportional to the amount of effort"]
    #[doc = " the encoder expends to compress the file.  A higher level usually"]
    #[doc = " means more computation but higher compression.  The default level is"]
    #[doc = " suitable for most applications."]
    #[doc = ""]
    #[doc = " Currently the levels range from \\c 0 (fastest, least compression) to"]
    #[doc = " \\c 8 (slowest, most compression).  A value larger than \\c 8 will be"]
    #[doc = " treated as \\c 8."]
    #[doc = ""]
    #[doc = " This function automatically calls the following other \\c _set_"]
    #[doc = " functions with appropriate values, so the client does not need to"]
    #[doc = " unless it specifically wants to override them:"]
    #[doc = " - FLAC__stream_encoder_set_do_mid_side_stereo()"]
    #[doc = " - FLAC__stream_encoder_set_loose_mid_side_stereo()"]
    #[doc = " - FLAC__stream_encoder_set_apodization()"]
    #[doc = " - FLAC__stream_encoder_set_max_lpc_order()"]
    #[doc = " - FLAC__stream_encoder_set_qlp_coeff_precision()"]
    #[doc = " - FLAC__stream_encoder_set_do_qlp_coeff_prec_search()"]
    #[doc = " - FLAC__stream_encoder_set_do_escape_coding()"]
    #[doc = " - FLAC__stream_encoder_set_do_exhaustive_model_search()"]
    #[doc = " - FLAC__stream_encoder_set_min_residual_partition_order()"]
    #[doc = " - FLAC__stream_encoder_set_max_residual_partition_order()"]
    #[doc = " - FLAC__stream_encoder_set_rice_parameter_search_dist()"]
    #[doc = ""]
    #[doc = " The actual values set for each level are:"]
    #[doc = " <table>"]
    #[doc = " <tr>"]
    #[doc = "  <td><b>level</b></td>"]
    #[doc = "  <td>do mid-side stereo</td>"]
    #[doc = "  <td>loose mid-side stereo</td>"]
    #[doc = "  <td>apodization</td>"]
    #[doc = "  <td>max lpc order</td>"]
    #[doc = "  <td>qlp coeff precision</td>"]
    #[doc = "  <td>qlp coeff prec search</td>"]
    #[doc = "  <td>escape coding</td>"]
    #[doc = "  <td>exhaustive model search</td>"]
    #[doc = "  <td>min residual partition order</td>"]
    #[doc = "  <td>max residual partition order</td>"]
    #[doc = "  <td>rice parameter search dist</td>"]
    #[doc = " </tr>"]
    #[doc = " <tr>  <td><b>0</b></td> <td>false</td> <td>false</td> <td>tukey(0.5)<td>                                     <td>0</td>  <td>0</td> <td>false</td> <td>false</td> <td>false</td> <td>0</td> <td>3</td> <td>0</td> </tr>"]
    #[doc = " <tr>  <td><b>1</b></td> <td>true</td>  <td>true</td>  <td>tukey(0.5)<td>                                     <td>0</td>  <td>0</td> <td>false</td> <td>false</td> <td>false</td> <td>0</td> <td>3</td> <td>0</td> </tr>"]
    #[doc = " <tr>  <td><b>2</b></td> <td>true</td>  <td>false</td> <td>tukey(0.5)<td>                                     <td>0</td>  <td>0</td> <td>false</td> <td>false</td> <td>false</td> <td>0</td> <td>3</td> <td>0</td> </tr>"]
    #[doc = " <tr>  <td><b>3</b></td> <td>false</td> <td>false</td> <td>tukey(0.5)<td>                                     <td>6</td>  <td>0</td> <td>false</td> <td>false</td> <td>false</td> <td>0</td> <td>4</td> <td>0</td> </tr>"]
    #[doc = " <tr>  <td><b>4</b></td> <td>true</td>  <td>true</td>  <td>tukey(0.5)<td>                                     <td>8</td>  <td>0</td> <td>false</td> <td>false</td> <td>false</td> <td>0</td> <td>4</td> <td>0</td> </tr>"]
    #[doc = " <tr>  <td><b>5</b></td> <td>true</td>  <td>false</td> <td>tukey(0.5)<td>                                     <td>8</td>  <td>0</td> <td>false</td> <td>false</td> <td>false</td> <td>0</td> <td>5</td> <td>0</td> </tr>"]
    #[doc = " <tr>  <td><b>6</b></td> <td>true</td>  <td>false</td> <td>tukey(0.5);partial_tukey(2)<td>                    <td>8</td>  <td>0</td> <td>false</td> <td>false</td> <td>false</td> <td>0</td> <td>6</td> <td>0</td> </tr>"]
    #[doc = " <tr>  <td><b>7</b></td> <td>true</td>  <td>false</td> <td>tukey(0.5);partial_tukey(2)<td>                    <td>12</td> <td>0</td> <td>false</td> <td>false</td> <td>false</td> <td>0</td> <td>6</td> <td>0</td> </tr>"]
    #[doc = " <tr>  <td><b>8</b></td> <td>true</td>  <td>false</td> <td>tukey(0.5);partial_tukey(2);punchout_tukey(3)</td> <td>12</td> <td>0</td> <td>false</td> <td>false</td> <td>false</td> <td>0</td> <td>6</td> <td>0</td> </tr>"]
    #[doc = " </table>"]
    #[doc = ""]
    #[doc = " \\default \\c 5"]
    #[doc = " \\param  encoder  An encoder instance to set."]
    #[doc = " \\param  value    See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the encoder is already initialized, else \\c true."]
    pub fn FLAC__stream_encoder_set_compression_level(
        encoder: *mut FLAC__StreamEncoder,
        value: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Set the blocksize to use while encoding."]
    #[doc = ""]
    #[doc = " The number of samples to use per frame.  Use \\c 0 to let the encoder"]
    #[doc = " estimate a blocksize; this is usually best."]
    #[doc = ""]
    #[doc = " \\default \\c 0"]
    #[doc = " \\param  encoder  An encoder instance to set."]
    #[doc = " \\param  value    See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the encoder is already initialized, else \\c true."]
    pub fn FLAC__stream_encoder_set_blocksize(
        encoder: *mut FLAC__StreamEncoder,
        value: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Set to \\c true to enable mid-side encoding on stereo input.  The"]
    #[doc = "  number of channels must be 2 for this to have any effect.  Set to"]
    #[doc = "  \\c false to use only independent channel coding."]
    #[doc = ""]
    #[doc = " \\default \\c false"]
    #[doc = " \\param  encoder  An encoder instance to set."]
    #[doc = " \\param  value    Flag value (see above)."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the encoder is already initialized, else \\c true."]
    pub fn FLAC__stream_encoder_set_do_mid_side_stereo(
        encoder: *mut FLAC__StreamEncoder,
        value: FLAC__bool,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Set to \\c true to enable adaptive switching between mid-side and"]
    #[doc = "  left-right encoding on stereo input.  Set to \\c false to use"]
    #[doc = "  exhaustive searching.  Setting this to \\c true requires"]
    #[doc = "  FLAC__stream_encoder_set_do_mid_side_stereo() to also be set to"]
    #[doc = "  \\c true in order to have any effect."]
    #[doc = ""]
    #[doc = " \\default \\c false"]
    #[doc = " \\param  encoder  An encoder instance to set."]
    #[doc = " \\param  value    Flag value (see above)."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the encoder is already initialized, else \\c true."]
    pub fn FLAC__stream_encoder_set_loose_mid_side_stereo(
        encoder: *mut FLAC__StreamEncoder,
        value: FLAC__bool,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Sets the apodization function(s) the encoder will use when windowing"]
    #[doc = "  audio data for LPC analysis."]
    #[doc = ""]
    #[doc = " The \\a specification is a plain ASCII string which specifies exactly"]
    #[doc = " which functions to use.  There may be more than one (up to 32),"]
    #[doc = " separated by \\c \';\' characters.  Some functions take one or more"]
    #[doc = " comma-separated arguments in parentheses."]
    #[doc = ""]
    #[doc = " The available functions are \\c bartlett, \\c bartlett_hann,"]
    #[doc = " \\c blackman, \\c blackman_harris_4term_92db, \\c connes, \\c flattop,"]
    #[doc = " \\c gauss(STDDEV), \\c hamming, \\c hann, \\c kaiser_bessel, \\c nuttall,"]
    #[doc = " \\c rectangle, \\c triangle, \\c tukey(P), \\c partial_tukey(n[/ov[/P]]),"]
    #[doc = " \\c punchout_tukey(n[/ov[/P]]), \\c welch."]
    #[doc = ""]
    #[doc = " For \\c gauss(STDDEV), STDDEV specifies the standard deviation"]
    #[doc = " (0<STDDEV<=0.5)."]
    #[doc = ""]
    #[doc = " For \\c tukey(P), P specifies the fraction of the window that is"]
    #[doc = " tapered (0<=P<=1).  P=0 corresponds to \\c rectangle and P=1"]
    #[doc = " corresponds to \\c hann."]
    #[doc = ""]
    #[doc = " Specifying \\c partial_tukey or \\c punchout_tukey works a little"]
    #[doc = " different. These do not specify a single apodization function, but"]
    #[doc = " a series of them with some overlap. partial_tukey specifies a series"]
    #[doc = " of small windows (all treated separately) while punchout_tukey"]
    #[doc = " specifies a series of windows that have a hole in them. In this way,"]
    #[doc = " the predictor is constructed with only a part of the block, which"]
    #[doc = " helps in case a block consists of dissimilar parts."]
    #[doc = ""]
    #[doc = " The three parameters that can be specified for the functions are"]
    #[doc = " n, ov and P. n is the number of functions to add, ov is the overlap"]
    #[doc = " of the windows in case of partial_tukey and the overlap in the gaps"]
    #[doc = " in case of punchout_tukey. P is the fraction of the window that is"]
    #[doc = " tapered, like with a regular tukey window. The function can be"]
    #[doc = " specified with only a number, a number and an overlap, or a number"]
    #[doc = " an overlap and a P, for example, partial_tukey(3), partial_tukey(3/0.3)"]
    #[doc = " and partial_tukey(3/0.3/0.5) are all valid. ov should be smaller than 1"]
    #[doc = " and can be negative."]
    #[doc = ""]
    #[doc = " Example specifications are \\c \"blackman\" or"]
    #[doc = " \\c \"hann;triangle;tukey(0.5);tukey(0.25);tukey(0.125)\""]
    #[doc = ""]
    #[doc = " Any function that is specified erroneously is silently dropped.  Up"]
    #[doc = " to 32 functions are kept, the rest are dropped.  If the specification"]
    #[doc = " is empty the encoder defaults to \\c \"tukey(0.5)\"."]
    #[doc = ""]
    #[doc = " When more than one function is specified, then for every subframe the"]
    #[doc = " encoder will try each of them separately and choose the window that"]
    #[doc = " results in the smallest compressed subframe."]
    #[doc = ""]
    #[doc = " Note that each function specified causes the encoder to occupy a"]
    #[doc = " floating point array in which to store the window. Also note that the"]
    #[doc = " values of P, STDDEV and ov are locale-specific, so if the comma"]
    #[doc = " separator specified by the locale is a comma, a comma should be used."]
    #[doc = ""]
    #[doc = " \\default \\c \"tukey(0.5)\""]
    #[doc = " \\param  encoder        An encoder instance to set."]
    #[doc = " \\param  specification  See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = "    \\code specification != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the encoder is already initialized, else \\c true."]
    pub fn FLAC__stream_encoder_set_apodization(
        encoder: *mut FLAC__StreamEncoder,
        specification: *const ::std::os::raw::c_char,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Set the maximum LPC order, or \\c 0 to use only the fixed predictors."]
    #[doc = ""]
    #[doc = " \\default \\c 0"]
    #[doc = " \\param  encoder  An encoder instance to set."]
    #[doc = " \\param  value    See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the encoder is already initialized, else \\c true."]
    pub fn FLAC__stream_encoder_set_max_lpc_order(
        encoder: *mut FLAC__StreamEncoder,
        value: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Set the precision, in bits, of the quantized linear predictor"]
    #[doc = "  coefficients, or \\c 0 to let the encoder select it based on the"]
    #[doc = "  blocksize."]
    #[doc = ""]
    #[doc = " \\note"]
    #[doc = " In the current implementation, qlp_coeff_precision + bits_per_sample must"]
    #[doc = " be less than 32."]
    #[doc = ""]
    #[doc = " \\default \\c 0"]
    #[doc = " \\param  encoder  An encoder instance to set."]
    #[doc = " \\param  value    See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the encoder is already initialized, else \\c true."]
    pub fn FLAC__stream_encoder_set_qlp_coeff_precision(
        encoder: *mut FLAC__StreamEncoder,
        value: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Set to \\c false to use only the specified quantized linear predictor"]
    #[doc = "  coefficient precision, or \\c true to search neighboring precision"]
    #[doc = "  values and use the best one."]
    #[doc = ""]
    #[doc = " \\default \\c false"]
    #[doc = " \\param  encoder  An encoder instance to set."]
    #[doc = " \\param  value    See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the encoder is already initialized, else \\c true."]
    pub fn FLAC__stream_encoder_set_do_qlp_coeff_prec_search(
        encoder: *mut FLAC__StreamEncoder,
        value: FLAC__bool,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Deprecated.  Setting this value has no effect."]
    #[doc = ""]
    #[doc = " \\default \\c false"]
    #[doc = " \\param  encoder  An encoder instance to set."]
    #[doc = " \\param  value    See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the encoder is already initialized, else \\c true."]
    pub fn FLAC__stream_encoder_set_do_escape_coding(
        encoder: *mut FLAC__StreamEncoder,
        value: FLAC__bool,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Set to \\c false to let the encoder estimate the best model order"]
    #[doc = "  based on the residual signal energy, or \\c true to force the"]
    #[doc = "  encoder to evaluate all order models and select the best."]
    #[doc = ""]
    #[doc = " \\default \\c false"]
    #[doc = " \\param  encoder  An encoder instance to set."]
    #[doc = " \\param  value    See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the encoder is already initialized, else \\c true."]
    pub fn FLAC__stream_encoder_set_do_exhaustive_model_search(
        encoder: *mut FLAC__StreamEncoder,
        value: FLAC__bool,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Set the minimum partition order to search when coding the residual."]
    #[doc = "  This is used in tandem with"]
    #[doc = "  FLAC__stream_encoder_set_max_residual_partition_order()."]
    #[doc = ""]
    #[doc = "  The partition order determines the context size in the residual."]
    #[doc = "  The context size will be approximately <tt>blocksize / (2 ^ order)</tt>."]
    #[doc = ""]
    #[doc = "  Set both min and max values to \\c 0 to force a single context,"]
    #[doc = "  whose Rice parameter is based on the residual signal variance."]
    #[doc = "  Otherwise, set a min and max order, and the encoder will search"]
    #[doc = "  all orders, using the mean of each context for its Rice parameter,"]
    #[doc = "  and use the best."]
    #[doc = ""]
    #[doc = " \\default \\c 0"]
    #[doc = " \\param  encoder  An encoder instance to set."]
    #[doc = " \\param  value    See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the encoder is already initialized, else \\c true."]
    pub fn FLAC__stream_encoder_set_min_residual_partition_order(
        encoder: *mut FLAC__StreamEncoder,
        value: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Set the maximum partition order to search when coding the residual."]
    #[doc = "  This is used in tandem with"]
    #[doc = "  FLAC__stream_encoder_set_min_residual_partition_order()."]
    #[doc = ""]
    #[doc = "  The partition order determines the context size in the residual."]
    #[doc = "  The context size will be approximately <tt>blocksize / (2 ^ order)</tt>."]
    #[doc = ""]
    #[doc = "  Set both min and max values to \\c 0 to force a single context,"]
    #[doc = "  whose Rice parameter is based on the residual signal variance."]
    #[doc = "  Otherwise, set a min and max order, and the encoder will search"]
    #[doc = "  all orders, using the mean of each context for its Rice parameter,"]
    #[doc = "  and use the best."]
    #[doc = ""]
    #[doc = " \\default \\c 0"]
    #[doc = " \\param  encoder  An encoder instance to set."]
    #[doc = " \\param  value    See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the encoder is already initialized, else \\c true."]
    pub fn FLAC__stream_encoder_set_max_residual_partition_order(
        encoder: *mut FLAC__StreamEncoder,
        value: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Deprecated.  Setting this value has no effect."]
    #[doc = ""]
    #[doc = " \\default \\c 0"]
    #[doc = " \\param  encoder  An encoder instance to set."]
    #[doc = " \\param  value    See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the encoder is already initialized, else \\c true."]
    pub fn FLAC__stream_encoder_set_rice_parameter_search_dist(
        encoder: *mut FLAC__StreamEncoder,
        value: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Set an estimate of the total samples that will be encoded."]
    #[doc = "  This is merely an estimate and may be set to \\c 0 if unknown."]
    #[doc = "  This value will be written to the STREAMINFO block before encoding,"]
    #[doc = "  and can remove the need for the caller to rewrite the value later"]
    #[doc = "  if the value is known before encoding."]
    #[doc = ""]
    #[doc = " \\default \\c 0"]
    #[doc = " \\param  encoder  An encoder instance to set."]
    #[doc = " \\param  value    See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the encoder is already initialized, else \\c true."]
    pub fn FLAC__stream_encoder_set_total_samples_estimate(
        encoder: *mut FLAC__StreamEncoder,
        value: FLAC__uint64,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Set the metadata blocks to be emitted to the stream before encoding."]
    #[doc = "  A value of \\c NULL, \\c 0 implies no metadata; otherwise, supply an"]
    #[doc = "  array of pointers to metadata blocks.  The array is non-const since"]
    #[doc = "  the encoder may need to change the \\a is_last flag inside them, and"]
    #[doc = "  in some cases update seek point offsets.  Otherwise, the encoder will"]
    #[doc = "  not modify or free the blocks.  It is up to the caller to free the"]
    #[doc = "  metadata blocks after encoding finishes."]
    #[doc = ""]
    #[doc = " \\note"]
    #[doc = " The encoder stores only copies of the pointers in the \\a metadata array;"]
    #[doc = " the metadata blocks themselves must survive at least until after"]
    #[doc = " FLAC__stream_encoder_finish() returns.  Do not free the blocks until then."]
    #[doc = ""]
    #[doc = " \\note"]
    #[doc = " The STREAMINFO block is always written and no STREAMINFO block may"]
    #[doc = " occur in the supplied array."]
    #[doc = ""]
    #[doc = " \\note"]
    #[doc = " By default the encoder does not create a SEEKTABLE.  If one is supplied"]
    #[doc = " in the \\a metadata array, but the client has specified that it does not"]
    #[doc = " support seeking, then the SEEKTABLE will be written verbatim.  However"]
    #[doc = " by itself this is not very useful as the client will not know the stream"]
    #[doc = " offsets for the seekpoints ahead of time.  In order to get a proper"]
    #[doc = " seektable the client must support seeking.  See next note."]
    #[doc = ""]
    #[doc = " \\note"]
    #[doc = " SEEKTABLE blocks are handled specially.  Since you will not know"]
    #[doc = " the values for the seek point stream offsets, you should pass in"]
    #[doc = " a SEEKTABLE \'template\', that is, a SEEKTABLE object with the"]
    #[doc = " required sample numbers (or placeholder points), with \\c 0 for the"]
    #[doc = " \\a frame_samples and \\a stream_offset fields for each point.  If the"]
    #[doc = " client has specified that it supports seeking by providing a seek"]
    #[doc = " callback to FLAC__stream_encoder_init_stream() or both seek AND read"]
    #[doc = " callback to FLAC__stream_encoder_init_ogg_stream() (or by using"]
    #[doc = " FLAC__stream_encoder_init*_file() or FLAC__stream_encoder_init*_FILE()),"]
    #[doc = " then while it is encoding the encoder will fill the stream offsets in"]
    #[doc = " for you and when encoding is finished, it will seek back and write the"]
    #[doc = " real values into the SEEKTABLE block in the stream.  There are helper"]
    #[doc = " routines for manipulating seektable template blocks; see metadata.h:"]
    #[doc = " FLAC__metadata_object_seektable_template_*().  If the client does"]
    #[doc = " not support seeking, the SEEKTABLE will have inaccurate offsets which"]
    #[doc = " will slow down or remove the ability to seek in the FLAC stream."]
    #[doc = ""]
    #[doc = " \\note"]
    #[doc = " The encoder instance \\b will modify the first \\c SEEKTABLE block"]
    #[doc = " as it transforms the template to a valid seektable while encoding,"]
    #[doc = " but it is still up to the caller to free all metadata blocks after"]
    #[doc = " encoding."]
    #[doc = ""]
    #[doc = " \\note"]
    #[doc = " A VORBIS_COMMENT block may be supplied.  The vendor string in it"]
    #[doc = " will be ignored.  libFLAC will use it\'s own vendor string. libFLAC"]
    #[doc = " will not modify the passed-in VORBIS_COMMENT\'s vendor string, it"]
    #[doc = " will simply write it\'s own into the stream.  If no VORBIS_COMMENT"]
    #[doc = " block is present in the \\a metadata array, libFLAC will write an"]
    #[doc = " empty one, containing only the vendor string."]
    #[doc = ""]
    #[doc = " \\note The Ogg FLAC mapping requires that the VORBIS_COMMENT block be"]
    #[doc = " the second metadata block of the stream.  The encoder already supplies"]
    #[doc = " the STREAMINFO block automatically.  If \\a metadata does not contain a"]
    #[doc = " VORBIS_COMMENT block, the encoder will supply that too.  Otherwise, if"]
    #[doc = " \\a metadata does contain a VORBIS_COMMENT block and it is not the"]
    #[doc = " first, the init function will reorder \\a metadata by moving the"]
    #[doc = " VORBIS_COMMENT block to the front; the relative ordering of the other"]
    #[doc = " blocks will remain as they were."]
    #[doc = ""]
    #[doc = " \\note The Ogg FLAC mapping limits the number of metadata blocks per"]
    #[doc = " stream to \\c 65535.  If \\a num_blocks exceeds this the function will"]
    #[doc = " return \\c false."]
    #[doc = ""]
    #[doc = " \\default \\c NULL, 0"]
    #[doc = " \\param  encoder     An encoder instance to set."]
    #[doc = " \\param  metadata    See above."]
    #[doc = " \\param  num_blocks  See above."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if the encoder is already initialized, else \\c true."]
    #[doc = "    \\c false if the encoder is already initialized, or if"]
    #[doc = "    \\a num_blocks > 65535 if encoding to Ogg FLAC, else \\c true."]
    pub fn FLAC__stream_encoder_set_metadata(
        encoder: *mut FLAC__StreamEncoder,
        metadata: *mut *mut FLAC__StreamMetadata,
        num_blocks: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Get the current encoder state."]
    #[doc = ""]
    #[doc = " \\param  encoder  An encoder instance to query."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__StreamEncoderState"]
    #[doc = "    The current encoder state."]
    pub fn FLAC__stream_encoder_get_state(
        encoder: *const FLAC__StreamEncoder,
    ) -> FLAC__StreamEncoderState;
}
extern "C" {
    #[doc = " Get the state of the verify stream decoder."]
    #[doc = "  Useful when the stream encoder state is"]
    #[doc = "  \\c FLAC__STREAM_ENCODER_VERIFY_DECODER_ERROR."]
    #[doc = ""]
    #[doc = " \\param  encoder  An encoder instance to query."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__StreamDecoderState"]
    #[doc = "    The verify stream decoder state."]
    pub fn FLAC__stream_encoder_get_verify_decoder_state(
        encoder: *const FLAC__StreamEncoder,
    ) -> FLAC__StreamDecoderState;
}
extern "C" {
    #[doc = " Get the current encoder state as a C string."]
    #[doc = "  This version automatically resolves"]
    #[doc = "  \\c FLAC__STREAM_ENCODER_VERIFY_DECODER_ERROR by getting the"]
    #[doc = "  verify decoder\'s state."]
    #[doc = ""]
    #[doc = " \\param  encoder  A encoder instance to query."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval const char *"]
    #[doc = "    The encoder state as a C string.  Do not modify the contents."]
    pub fn FLAC__stream_encoder_get_resolved_state_string(
        encoder: *const FLAC__StreamEncoder,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Get relevant values about the nature of a verify decoder error."]
    #[doc = "  Useful when the stream encoder state is"]
    #[doc = "  \\c FLAC__STREAM_ENCODER_VERIFY_DECODER_ERROR.  The arguments should"]
    #[doc = "  be addresses in which the stats will be returned, or NULL if value"]
    #[doc = "  is not desired."]
    #[doc = ""]
    #[doc = " \\param  encoder  An encoder instance to query."]
    #[doc = " \\param  absolute_sample  The absolute sample number of the mismatch."]
    #[doc = " \\param  frame_number  The number of the frame in which the mismatch occurred."]
    #[doc = " \\param  channel       The channel in which the mismatch occurred."]
    #[doc = " \\param  sample        The number of the sample (relative to the frame) in"]
    #[doc = "                       which the mismatch occurred."]
    #[doc = " \\param  expected      The expected value for the sample in question."]
    #[doc = " \\param  got           The actual value returned by the decoder."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    pub fn FLAC__stream_encoder_get_verify_decoder_error_stats(
        encoder: *const FLAC__StreamEncoder,
        absolute_sample: *mut FLAC__uint64,
        frame_number: *mut ::std::os::raw::c_uint,
        channel: *mut ::std::os::raw::c_uint,
        sample: *mut ::std::os::raw::c_uint,
        expected: *mut FLAC__int32,
        got: *mut FLAC__int32,
    );
}
extern "C" {
    #[doc = " Get the \"verify\" flag."]
    #[doc = ""]
    #[doc = " \\param  encoder  An encoder instance to query."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    See FLAC__stream_encoder_set_verify()."]
    pub fn FLAC__stream_encoder_get_verify(encoder: *const FLAC__StreamEncoder) -> FLAC__bool;
}
extern "C" {
    #[doc = " Get the <A HREF=\"../format.html#subset>Subset</A> flag."]
    #[doc = ""]
    #[doc = " \\param  encoder  An encoder instance to query."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    See FLAC__stream_encoder_set_streamable_subset()."]
    pub fn FLAC__stream_encoder_get_streamable_subset(
        encoder: *const FLAC__StreamEncoder,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Get the number of input channels being processed."]
    #[doc = ""]
    #[doc = " \\param  encoder  An encoder instance to query."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval unsigned"]
    #[doc = "    See FLAC__stream_encoder_set_channels()."]
    pub fn FLAC__stream_encoder_get_channels(
        encoder: *const FLAC__StreamEncoder,
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " Get the input sample resolution setting."]
    #[doc = ""]
    #[doc = " \\param  encoder  An encoder instance to query."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval unsigned"]
    #[doc = "    See FLAC__stream_encoder_set_bits_per_sample()."]
    pub fn FLAC__stream_encoder_get_bits_per_sample(
        encoder: *const FLAC__StreamEncoder,
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " Get the input sample rate setting."]
    #[doc = ""]
    #[doc = " \\param  encoder  An encoder instance to query."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval unsigned"]
    #[doc = "    See FLAC__stream_encoder_set_sample_rate()."]
    pub fn FLAC__stream_encoder_get_sample_rate(
        encoder: *const FLAC__StreamEncoder,
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " Get the blocksize setting."]
    #[doc = ""]
    #[doc = " \\param  encoder  An encoder instance to query."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval unsigned"]
    #[doc = "    See FLAC__stream_encoder_set_blocksize()."]
    pub fn FLAC__stream_encoder_get_blocksize(
        encoder: *const FLAC__StreamEncoder,
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " Get the \"mid/side stereo coding\" flag."]
    #[doc = ""]
    #[doc = " \\param  encoder  An encoder instance to query."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    See FLAC__stream_encoder_get_do_mid_side_stereo()."]
    pub fn FLAC__stream_encoder_get_do_mid_side_stereo(
        encoder: *const FLAC__StreamEncoder,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Get the \"adaptive mid/side switching\" flag."]
    #[doc = ""]
    #[doc = " \\param  encoder  An encoder instance to query."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    See FLAC__stream_encoder_set_loose_mid_side_stereo()."]
    pub fn FLAC__stream_encoder_get_loose_mid_side_stereo(
        encoder: *const FLAC__StreamEncoder,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Get the maximum LPC order setting."]
    #[doc = ""]
    #[doc = " \\param  encoder  An encoder instance to query."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval unsigned"]
    #[doc = "    See FLAC__stream_encoder_set_max_lpc_order()."]
    pub fn FLAC__stream_encoder_get_max_lpc_order(
        encoder: *const FLAC__StreamEncoder,
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " Get the quantized linear predictor coefficient precision setting."]
    #[doc = ""]
    #[doc = " \\param  encoder  An encoder instance to query."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval unsigned"]
    #[doc = "    See FLAC__stream_encoder_set_qlp_coeff_precision()."]
    pub fn FLAC__stream_encoder_get_qlp_coeff_precision(
        encoder: *const FLAC__StreamEncoder,
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " Get the qlp coefficient precision search flag."]
    #[doc = ""]
    #[doc = " \\param  encoder  An encoder instance to query."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    See FLAC__stream_encoder_set_do_qlp_coeff_prec_search()."]
    pub fn FLAC__stream_encoder_get_do_qlp_coeff_prec_search(
        encoder: *const FLAC__StreamEncoder,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Get the \"escape coding\" flag."]
    #[doc = ""]
    #[doc = " \\param  encoder  An encoder instance to query."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    See FLAC__stream_encoder_set_do_escape_coding()."]
    pub fn FLAC__stream_encoder_get_do_escape_coding(
        encoder: *const FLAC__StreamEncoder,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Get the exhaustive model search flag."]
    #[doc = ""]
    #[doc = " \\param  encoder  An encoder instance to query."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    See FLAC__stream_encoder_set_do_exhaustive_model_search()."]
    pub fn FLAC__stream_encoder_get_do_exhaustive_model_search(
        encoder: *const FLAC__StreamEncoder,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Get the minimum residual partition order setting."]
    #[doc = ""]
    #[doc = " \\param  encoder  An encoder instance to query."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval unsigned"]
    #[doc = "    See FLAC__stream_encoder_set_min_residual_partition_order()."]
    pub fn FLAC__stream_encoder_get_min_residual_partition_order(
        encoder: *const FLAC__StreamEncoder,
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " Get maximum residual partition order setting."]
    #[doc = ""]
    #[doc = " \\param  encoder  An encoder instance to query."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval unsigned"]
    #[doc = "    See FLAC__stream_encoder_set_max_residual_partition_order()."]
    pub fn FLAC__stream_encoder_get_max_residual_partition_order(
        encoder: *const FLAC__StreamEncoder,
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " Get the Rice parameter search distance setting."]
    #[doc = ""]
    #[doc = " \\param  encoder  An encoder instance to query."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval unsigned"]
    #[doc = "    See FLAC__stream_encoder_set_rice_parameter_search_dist()."]
    pub fn FLAC__stream_encoder_get_rice_parameter_search_dist(
        encoder: *const FLAC__StreamEncoder,
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " Get the previously set estimate of the total samples to be encoded."]
    #[doc = "  The encoder merely mimics back the value given to"]
    #[doc = "  FLAC__stream_encoder_set_total_samples_estimate() since it has no"]
    #[doc = "  other way of knowing how many samples the client will encode."]
    #[doc = ""]
    #[doc = " \\param  encoder  An encoder instance to set."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__uint64"]
    #[doc = "    See FLAC__stream_encoder_get_total_samples_estimate()."]
    pub fn FLAC__stream_encoder_get_total_samples_estimate(
        encoder: *const FLAC__StreamEncoder,
    ) -> FLAC__uint64;
}
extern "C" {
    #[doc = " Initialize the encoder instance to encode native FLAC streams."]
    #[doc = ""]
    #[doc = "  This flavor of initialization sets up the encoder to encode to a"]
    #[doc = "  native FLAC stream. I/O is performed via callbacks to the client."]
    #[doc = "  For encoding to a plain file via filename or open \\c FILE*,"]
    #[doc = "  FLAC__stream_encoder_init_file() and FLAC__stream_encoder_init_FILE()"]
    #[doc = "  provide a simpler interface."]
    #[doc = ""]
    #[doc = "  This function should be called after FLAC__stream_encoder_new() and"]
    #[doc = "  FLAC__stream_encoder_set_*() but before FLAC__stream_encoder_process()"]
    #[doc = "  or FLAC__stream_encoder_process_interleaved()."]
    #[doc = "  initialization succeeded."]
    #[doc = ""]
    #[doc = "  The call to FLAC__stream_encoder_init_stream() currently will also"]
    #[doc = "  immediately call the write callback several times, once with the \\c fLaC"]
    #[doc = "  signature, and once for each encoded metadata block."]
    #[doc = ""]
    #[doc = " \\param  encoder            An uninitialized encoder instance."]
    #[doc = " \\param  write_callback     See FLAC__StreamEncoderWriteCallback.  This"]
    #[doc = "                            pointer must not be \\c NULL."]
    #[doc = " \\param  seek_callback      See FLAC__StreamEncoderSeekCallback.  This"]
    #[doc = "                            pointer may be \\c NULL if seeking is not"]
    #[doc = "                            supported.  The encoder uses seeking to go back"]
    #[doc = "                            and write some some stream statistics to the"]
    #[doc = "                            STREAMINFO block; this is recommended but not"]
    #[doc = "                            necessary to create a valid FLAC stream.  If"]
    #[doc = "                            \\a seek_callback is not \\c NULL then a"]
    #[doc = "                            \\a tell_callback must also be supplied."]
    #[doc = "                            Alternatively, a dummy seek callback that just"]
    #[doc = "                            returns \\c FLAC__STREAM_ENCODER_SEEK_STATUS_UNSUPPORTED"]
    #[doc = "                            may also be supplied, all though this is slightly"]
    #[doc = "                            less efficient for the encoder."]
    #[doc = " \\param  tell_callback      See FLAC__StreamEncoderTellCallback.  This"]
    #[doc = "                            pointer may be \\c NULL if seeking is not"]
    #[doc = "                            supported.  If \\a seek_callback is \\c NULL then"]
    #[doc = "                            this argument will be ignored.  If"]
    #[doc = "                            \\a seek_callback is not \\c NULL then a"]
    #[doc = "                            \\a tell_callback must also be supplied."]
    #[doc = "                            Alternatively, a dummy tell callback that just"]
    #[doc = "                            returns \\c FLAC__STREAM_ENCODER_TELL_STATUS_UNSUPPORTED"]
    #[doc = "                            may also be supplied, all though this is slightly"]
    #[doc = "                            less efficient for the encoder."]
    #[doc = " \\param  metadata_callback  See FLAC__StreamEncoderMetadataCallback.  This"]
    #[doc = "                            pointer may be \\c NULL if the callback is not"]
    #[doc = "                            desired.  If the client provides a seek callback,"]
    #[doc = "                            this function is not necessary as the encoder"]
    #[doc = "                            will automatically seek back and update the"]
    #[doc = "                            STREAMINFO block.  It may also be \\c NULL if the"]
    #[doc = "                            client does not support seeking, since it will"]
    #[doc = "                            have no way of going back to update the"]
    #[doc = "                            STREAMINFO.  However the client can still supply"]
    #[doc = "                            a callback if it would like to know the details"]
    #[doc = "                            from the STREAMINFO."]
    #[doc = " \\param  client_data        This value will be supplied to callbacks in their"]
    #[doc = "                            \\a client_data argument."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__StreamEncoderInitStatus"]
    #[doc = "    \\c FLAC__STREAM_ENCODER_INIT_STATUS_OK if initialization was successful;"]
    #[doc = "    see FLAC__StreamEncoderInitStatus for the meanings of other return values."]
    pub fn FLAC__stream_encoder_init_stream(
        encoder: *mut FLAC__StreamEncoder,
        write_callback: FLAC__StreamEncoderWriteCallback,
        seek_callback: FLAC__StreamEncoderSeekCallback,
        tell_callback: FLAC__StreamEncoderTellCallback,
        metadata_callback: FLAC__StreamEncoderMetadataCallback,
        client_data: *mut ::std::os::raw::c_void,
    ) -> FLAC__StreamEncoderInitStatus;
}
extern "C" {
    #[doc = " Initialize the encoder instance to encode Ogg FLAC streams."]
    #[doc = ""]
    #[doc = "  This flavor of initialization sets up the encoder to encode to a FLAC"]
    #[doc = "  stream in an Ogg container.  I/O is performed via callbacks to the"]
    #[doc = "  client.  For encoding to a plain file via filename or open \\c FILE*,"]
    #[doc = "  FLAC__stream_encoder_init_ogg_file() and FLAC__stream_encoder_init_ogg_FILE()"]
    #[doc = "  provide a simpler interface."]
    #[doc = ""]
    #[doc = "  This function should be called after FLAC__stream_encoder_new() and"]
    #[doc = "  FLAC__stream_encoder_set_*() but before FLAC__stream_encoder_process()"]
    #[doc = "  or FLAC__stream_encoder_process_interleaved()."]
    #[doc = "  initialization succeeded."]
    #[doc = ""]
    #[doc = "  The call to FLAC__stream_encoder_init_ogg_stream() currently will also"]
    #[doc = "  immediately call the write callback several times to write the metadata"]
    #[doc = "  packets."]
    #[doc = ""]
    #[doc = " \\param  encoder            An uninitialized encoder instance."]
    #[doc = " \\param  read_callback      See FLAC__StreamEncoderReadCallback.  This"]
    #[doc = "                            pointer must not be \\c NULL if \\a seek_callback"]
    #[doc = "                            is non-NULL since they are both needed to be"]
    #[doc = "                            able to write data back to the Ogg FLAC stream"]
    #[doc = "                            in the post-encode phase."]
    #[doc = " \\param  write_callback     See FLAC__StreamEncoderWriteCallback.  This"]
    #[doc = "                            pointer must not be \\c NULL."]
    #[doc = " \\param  seek_callback      See FLAC__StreamEncoderSeekCallback.  This"]
    #[doc = "                            pointer may be \\c NULL if seeking is not"]
    #[doc = "                            supported.  The encoder uses seeking to go back"]
    #[doc = "                            and write some some stream statistics to the"]
    #[doc = "                            STREAMINFO block; this is recommended but not"]
    #[doc = "                            necessary to create a valid FLAC stream.  If"]
    #[doc = "                            \\a seek_callback is not \\c NULL then a"]
    #[doc = "                            \\a tell_callback must also be supplied."]
    #[doc = "                            Alternatively, a dummy seek callback that just"]
    #[doc = "                            returns \\c FLAC__STREAM_ENCODER_SEEK_STATUS_UNSUPPORTED"]
    #[doc = "                            may also be supplied, all though this is slightly"]
    #[doc = "                            less efficient for the encoder."]
    #[doc = " \\param  tell_callback      See FLAC__StreamEncoderTellCallback.  This"]
    #[doc = "                            pointer may be \\c NULL if seeking is not"]
    #[doc = "                            supported.  If \\a seek_callback is \\c NULL then"]
    #[doc = "                            this argument will be ignored.  If"]
    #[doc = "                            \\a seek_callback is not \\c NULL then a"]
    #[doc = "                            \\a tell_callback must also be supplied."]
    #[doc = "                            Alternatively, a dummy tell callback that just"]
    #[doc = "                            returns \\c FLAC__STREAM_ENCODER_TELL_STATUS_UNSUPPORTED"]
    #[doc = "                            may also be supplied, all though this is slightly"]
    #[doc = "                            less efficient for the encoder."]
    #[doc = " \\param  metadata_callback  See FLAC__StreamEncoderMetadataCallback.  This"]
    #[doc = "                            pointer may be \\c NULL if the callback is not"]
    #[doc = "                            desired.  If the client provides a seek callback,"]
    #[doc = "                            this function is not necessary as the encoder"]
    #[doc = "                            will automatically seek back and update the"]
    #[doc = "                            STREAMINFO block.  It may also be \\c NULL if the"]
    #[doc = "                            client does not support seeking, since it will"]
    #[doc = "                            have no way of going back to update the"]
    #[doc = "                            STREAMINFO.  However the client can still supply"]
    #[doc = "                            a callback if it would like to know the details"]
    #[doc = "                            from the STREAMINFO."]
    #[doc = " \\param  client_data        This value will be supplied to callbacks in their"]
    #[doc = "                            \\a client_data argument."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__StreamEncoderInitStatus"]
    #[doc = "    \\c FLAC__STREAM_ENCODER_INIT_STATUS_OK if initialization was successful;"]
    #[doc = "    see FLAC__StreamEncoderInitStatus for the meanings of other return values."]
    pub fn FLAC__stream_encoder_init_ogg_stream(
        encoder: *mut FLAC__StreamEncoder,
        read_callback: FLAC__StreamEncoderReadCallback,
        write_callback: FLAC__StreamEncoderWriteCallback,
        seek_callback: FLAC__StreamEncoderSeekCallback,
        tell_callback: FLAC__StreamEncoderTellCallback,
        metadata_callback: FLAC__StreamEncoderMetadataCallback,
        client_data: *mut ::std::os::raw::c_void,
    ) -> FLAC__StreamEncoderInitStatus;
}
extern "C" {
    #[doc = " Initialize the encoder instance to encode native FLAC files."]
    #[doc = ""]
    #[doc = "  This flavor of initialization sets up the encoder to encode to a"]
    #[doc = "  plain native FLAC file.  For non-stdio streams, you must use"]
    #[doc = "  FLAC__stream_encoder_init_stream() and provide callbacks for the I/O."]
    #[doc = ""]
    #[doc = "  This function should be called after FLAC__stream_encoder_new() and"]
    #[doc = "  FLAC__stream_encoder_set_*() but before FLAC__stream_encoder_process()"]
    #[doc = "  or FLAC__stream_encoder_process_interleaved()."]
    #[doc = "  initialization succeeded."]
    #[doc = ""]
    #[doc = " \\param  encoder            An uninitialized encoder instance."]
    #[doc = " \\param  file               An open file.  The file should have been opened"]
    #[doc = "                            with mode \\c \"w+b\" and rewound.  The file"]
    #[doc = "                            becomes owned by the encoder and should not be"]
    #[doc = "                            manipulated by the client while encoding."]
    #[doc = "                            Unless \\a file is \\c stdout, it will be closed"]
    #[doc = "                            when FLAC__stream_encoder_finish() is called."]
    #[doc = "                            Note however that a proper SEEKTABLE cannot be"]
    #[doc = "                            created when encoding to \\c stdout since it is"]
    #[doc = "                            not seekable."]
    #[doc = " \\param  progress_callback  See FLAC__StreamEncoderProgressCallback.  This"]
    #[doc = "                            pointer may be \\c NULL if the callback is not"]
    #[doc = "                            desired."]
    #[doc = " \\param  client_data        This value will be supplied to callbacks in their"]
    #[doc = "                            \\a client_data argument."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = "    \\code file != NULL \\endcode"]
    #[doc = " \\retval FLAC__StreamEncoderInitStatus"]
    #[doc = "    \\c FLAC__STREAM_ENCODER_INIT_STATUS_OK if initialization was successful;"]
    #[doc = "    see FLAC__StreamEncoderInitStatus for the meanings of other return values."]
    pub fn FLAC__stream_encoder_init_FILE(
        encoder: *mut FLAC__StreamEncoder,
        file: *mut FILE,
        progress_callback: FLAC__StreamEncoderProgressCallback,
        client_data: *mut ::std::os::raw::c_void,
    ) -> FLAC__StreamEncoderInitStatus;
}
extern "C" {
    #[doc = " Initialize the encoder instance to encode Ogg FLAC files."]
    #[doc = ""]
    #[doc = "  This flavor of initialization sets up the encoder to encode to a"]
    #[doc = "  plain Ogg FLAC file.  For non-stdio streams, you must use"]
    #[doc = "  FLAC__stream_encoder_init_ogg_stream() and provide callbacks for the I/O."]
    #[doc = ""]
    #[doc = "  This function should be called after FLAC__stream_encoder_new() and"]
    #[doc = "  FLAC__stream_encoder_set_*() but before FLAC__stream_encoder_process()"]
    #[doc = "  or FLAC__stream_encoder_process_interleaved()."]
    #[doc = "  initialization succeeded."]
    #[doc = ""]
    #[doc = " \\param  encoder            An uninitialized encoder instance."]
    #[doc = " \\param  file               An open file.  The file should have been opened"]
    #[doc = "                            with mode \\c \"w+b\" and rewound.  The file"]
    #[doc = "                            becomes owned by the encoder and should not be"]
    #[doc = "                            manipulated by the client while encoding."]
    #[doc = "                            Unless \\a file is \\c stdout, it will be closed"]
    #[doc = "                            when FLAC__stream_encoder_finish() is called."]
    #[doc = "                            Note however that a proper SEEKTABLE cannot be"]
    #[doc = "                            created when encoding to \\c stdout since it is"]
    #[doc = "                            not seekable."]
    #[doc = " \\param  progress_callback  See FLAC__StreamEncoderProgressCallback.  This"]
    #[doc = "                            pointer may be \\c NULL if the callback is not"]
    #[doc = "                            desired."]
    #[doc = " \\param  client_data        This value will be supplied to callbacks in their"]
    #[doc = "                            \\a client_data argument."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = "    \\code file != NULL \\endcode"]
    #[doc = " \\retval FLAC__StreamEncoderInitStatus"]
    #[doc = "    \\c FLAC__STREAM_ENCODER_INIT_STATUS_OK if initialization was successful;"]
    #[doc = "    see FLAC__StreamEncoderInitStatus for the meanings of other return values."]
    pub fn FLAC__stream_encoder_init_ogg_FILE(
        encoder: *mut FLAC__StreamEncoder,
        file: *mut FILE,
        progress_callback: FLAC__StreamEncoderProgressCallback,
        client_data: *mut ::std::os::raw::c_void,
    ) -> FLAC__StreamEncoderInitStatus;
}
extern "C" {
    #[doc = " Initialize the encoder instance to encode native FLAC files."]
    #[doc = ""]
    #[doc = "  This flavor of initialization sets up the encoder to encode to a plain"]
    #[doc = "  FLAC file.  If POSIX fopen() semantics are not sufficient (for example,"]
    #[doc = "  with Unicode filenames on Windows), you must use"]
    #[doc = "  FLAC__stream_encoder_init_FILE(), or FLAC__stream_encoder_init_stream()"]
    #[doc = "  and provide callbacks for the I/O."]
    #[doc = ""]
    #[doc = "  This function should be called after FLAC__stream_encoder_new() and"]
    #[doc = "  FLAC__stream_encoder_set_*() but before FLAC__stream_encoder_process()"]
    #[doc = "  or FLAC__stream_encoder_process_interleaved()."]
    #[doc = "  initialization succeeded."]
    #[doc = ""]
    #[doc = " \\param  encoder            An uninitialized encoder instance."]
    #[doc = " \\param  filename           The name of the file to encode to.  The file will"]
    #[doc = "                            be opened with fopen().  Use \\c NULL to encode to"]
    #[doc = "                            \\c stdout.  Note however that a proper SEEKTABLE"]
    #[doc = "                            cannot be created when encoding to \\c stdout since"]
    #[doc = "                            it is not seekable."]
    #[doc = " \\param  progress_callback  See FLAC__StreamEncoderProgressCallback.  This"]
    #[doc = "                            pointer may be \\c NULL if the callback is not"]
    #[doc = "                            desired."]
    #[doc = " \\param  client_data        This value will be supplied to callbacks in their"]
    #[doc = "                            \\a client_data argument."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__StreamEncoderInitStatus"]
    #[doc = "    \\c FLAC__STREAM_ENCODER_INIT_STATUS_OK if initialization was successful;"]
    #[doc = "    see FLAC__StreamEncoderInitStatus for the meanings of other return values."]
    pub fn FLAC__stream_encoder_init_file(
        encoder: *mut FLAC__StreamEncoder,
        filename: *const ::std::os::raw::c_char,
        progress_callback: FLAC__StreamEncoderProgressCallback,
        client_data: *mut ::std::os::raw::c_void,
    ) -> FLAC__StreamEncoderInitStatus;
}
extern "C" {
    #[doc = " Initialize the encoder instance to encode Ogg FLAC files."]
    #[doc = ""]
    #[doc = "  This flavor of initialization sets up the encoder to encode to a plain"]
    #[doc = "  Ogg FLAC file.  If POSIX fopen() semantics are not sufficient (for example,"]
    #[doc = "  with Unicode filenames on Windows), you must use"]
    #[doc = "  FLAC__stream_encoder_init_ogg_FILE(), or FLAC__stream_encoder_init_ogg_stream()"]
    #[doc = "  and provide callbacks for the I/O."]
    #[doc = ""]
    #[doc = "  This function should be called after FLAC__stream_encoder_new() and"]
    #[doc = "  FLAC__stream_encoder_set_*() but before FLAC__stream_encoder_process()"]
    #[doc = "  or FLAC__stream_encoder_process_interleaved()."]
    #[doc = "  initialization succeeded."]
    #[doc = ""]
    #[doc = " \\param  encoder            An uninitialized encoder instance."]
    #[doc = " \\param  filename           The name of the file to encode to.  The file will"]
    #[doc = "                            be opened with fopen().  Use \\c NULL to encode to"]
    #[doc = "                            \\c stdout.  Note however that a proper SEEKTABLE"]
    #[doc = "                            cannot be created when encoding to \\c stdout since"]
    #[doc = "                            it is not seekable."]
    #[doc = " \\param  progress_callback  See FLAC__StreamEncoderProgressCallback.  This"]
    #[doc = "                            pointer may be \\c NULL if the callback is not"]
    #[doc = "                            desired."]
    #[doc = " \\param  client_data        This value will be supplied to callbacks in their"]
    #[doc = "                            \\a client_data argument."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__StreamEncoderInitStatus"]
    #[doc = "    \\c FLAC__STREAM_ENCODER_INIT_STATUS_OK if initialization was successful;"]
    #[doc = "    see FLAC__StreamEncoderInitStatus for the meanings of other return values."]
    pub fn FLAC__stream_encoder_init_ogg_file(
        encoder: *mut FLAC__StreamEncoder,
        filename: *const ::std::os::raw::c_char,
        progress_callback: FLAC__StreamEncoderProgressCallback,
        client_data: *mut ::std::os::raw::c_void,
    ) -> FLAC__StreamEncoderInitStatus;
}
extern "C" {
    #[doc = " Finish the encoding process."]
    #[doc = "  Flushes the encoding buffer, releases resources, resets the encoder"]
    #[doc = "  settings to their defaults, and returns the encoder state to"]
    #[doc = "  FLAC__STREAM_ENCODER_UNINITIALIZED.  Note that this can generate"]
    #[doc = "  one or more write callbacks before returning, and will generate"]
    #[doc = "  a metadata callback."]
    #[doc = ""]
    #[doc = "  Note that in the course of processing the last frame, errors can"]
    #[doc = "  occur, so the caller should be sure to check the return value to"]
    #[doc = "  ensure the file was encoded properly."]
    #[doc = ""]
    #[doc = "  In the event of a prematurely-terminated encode, it is not strictly"]
    #[doc = "  necessary to call this immediately before FLAC__stream_encoder_delete()"]
    #[doc = "  but it is good practice to match every FLAC__stream_encoder_init_*()"]
    #[doc = "  with a FLAC__stream_encoder_finish()."]
    #[doc = ""]
    #[doc = " \\param  encoder  An uninitialized encoder instance."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c false if an error occurred processing the last frame; or if verify"]
    #[doc = "    mode is set (see FLAC__stream_encoder_set_verify()), there was a"]
    #[doc = "    verify mismatch; else \\c true.  If \\c false, caller should check the"]
    #[doc = "    state with FLAC__stream_encoder_get_state() for more information"]
    #[doc = "    about the error."]
    pub fn FLAC__stream_encoder_finish(encoder: *mut FLAC__StreamEncoder) -> FLAC__bool;
}
extern "C" {
    #[doc = " Submit data for encoding."]
    #[doc = "  This version allows you to supply the input data via an array of"]
    #[doc = "  pointers, each pointer pointing to an array of \\a samples samples"]
    #[doc = "  representing one channel.  The samples need not be block-aligned,"]
    #[doc = "  but each channel should have the same number of samples.  Each sample"]
    #[doc = "  should be a signed integer, right-justified to the resolution set by"]
    #[doc = "  FLAC__stream_encoder_set_bits_per_sample().  For example, if the"]
    #[doc = "  resolution is 16 bits per sample, the samples should all be in the"]
    #[doc = "  range [-32768,32767]."]
    #[doc = ""]
    #[doc = "  For applications where channel order is important, channels must"]
    #[doc = "  follow the order as described in the"]
    #[doc = "  <A HREF=\"../format.html#frame_header\">frame header</A>."]
    #[doc = ""]
    #[doc = " \\param  encoder  An initialized encoder instance in the OK state."]
    #[doc = " \\param  buffer   An array of pointers to each channel\'s signal."]
    #[doc = " \\param  samples  The number of samples in one channel."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = "    \\code FLAC__stream_encoder_get_state(encoder) == FLAC__STREAM_ENCODER_OK \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c true if successful, else \\c false; in this case, check the"]
    #[doc = "    encoder state with FLAC__stream_encoder_get_state() to see what"]
    #[doc = "    went wrong."]
    pub fn FLAC__stream_encoder_process(
        encoder: *mut FLAC__StreamEncoder,
        buffer: *const *const FLAC__int32,
        samples: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
extern "C" {
    #[doc = " Submit data for encoding."]
    #[doc = "  This version allows you to supply the input data where the channels"]
    #[doc = "  are interleaved into a single array (i.e. channel0_sample0,"]
    #[doc = "  channel1_sample0, ... , channelN_sample0, channel0_sample1, ...)."]
    #[doc = "  The samples need not be block-aligned but they must be"]
    #[doc = "  sample-aligned, i.e. the first value should be channel0_sample0"]
    #[doc = "  and the last value channelN_sampleM.  Each sample should be a signed"]
    #[doc = "  integer, right-justified to the resolution set by"]
    #[doc = "  FLAC__stream_encoder_set_bits_per_sample().  For example, if the"]
    #[doc = "  resolution is 16 bits per sample, the samples should all be in the"]
    #[doc = "  range [-32768,32767]."]
    #[doc = ""]
    #[doc = "  For applications where channel order is important, channels must"]
    #[doc = "  follow the order as described in the"]
    #[doc = "  <A HREF=\"../format.html#frame_header\">frame header</A>."]
    #[doc = ""]
    #[doc = " \\param  encoder  An initialized encoder instance in the OK state."]
    #[doc = " \\param  buffer   An array of channel-interleaved data (see above)."]
    #[doc = " \\param  samples  The number of samples in one channel, the same as for"]
    #[doc = "                  FLAC__stream_encoder_process().  For example, if"]
    #[doc = "                  encoding two channels, \\c 1000 \\a samples corresponds"]
    #[doc = "                  to a \\a buffer of 2000 values."]
    #[doc = " \\assert"]
    #[doc = "    \\code encoder != NULL \\endcode"]
    #[doc = "    \\code FLAC__stream_encoder_get_state(encoder) == FLAC__STREAM_ENCODER_OK \\endcode"]
    #[doc = " \\retval FLAC__bool"]
    #[doc = "    \\c true if successful, else \\c false; in this case, check the"]
    #[doc = "    encoder state with FLAC__stream_encoder_get_state() to see what"]
    #[doc = "    went wrong."]
    pub fn FLAC__stream_encoder_process_interleaved(
        encoder: *mut FLAC__StreamEncoder,
        buffer: *const FLAC__int32,
        samples: ::std::os::raw::c_uint,
    ) -> FLAC__bool;
}
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,
}