orbbec-sdk 0.1.0

High-level bindings to Orbbec SDK v2
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
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
/* automatically generated by rust-bindgen 0.71.1 */

pub const __bool_true_false_are_defined: u32 = 1;
pub const false_: u32 = 0;
pub const true_: u32 = 1;
pub const _VCRT_COMPILER_PREPROCESSOR: u32 = 1;
pub const _SAL_VERSION: u32 = 20;
pub const __SAL_H_VERSION: u32 = 180000000;
pub const _USE_DECLSPECS_FOR_SAL: u32 = 0;
pub const _USE_ATTRIBUTES_FOR_SAL: u32 = 0;
pub const _CRT_PACKING: u32 = 8;
pub const _HAS_EXCEPTIONS: u32 = 1;
pub const _STL_LANG: u32 = 0;
pub const _HAS_CXX17: u32 = 0;
pub const _HAS_CXX20: u32 = 0;
pub const _HAS_CXX23: u32 = 0;
pub const _HAS_CXX26: u32 = 0;
pub const _HAS_NODISCARD: u32 = 0;
pub const WCHAR_MIN: u32 = 0;
pub const WCHAR_MAX: u32 = 65535;
pub const WINT_MIN: u32 = 0;
pub const WINT_MAX: u32 = 65535;
pub const OB_WIDTH_ANY: u32 = 0;
pub const OB_HEIGHT_ANY: u32 = 0;
pub const OB_FPS_ANY: u32 = 0;
pub const OB_PROFILE_DEFAULT: u32 = 0;
pub const OB_DEFAULT_STRIDE_BYTES: u32 = 0;
pub const OB_PATH_MAX: u32 = 1024;
pub type va_list = *mut ::std::os::raw::c_char;
unsafe extern "C" {
    pub fn __va_start(arg1: *mut *mut ::std::os::raw::c_char, ...);
}
pub type __vcrt_bool = bool;
pub type wchar_t = ::std::os::raw::c_ushort;
unsafe extern "C" {
    pub fn __security_init_cookie();
}
unsafe extern "C" {
    pub fn __security_check_cookie(_StackCookie: usize);
}
unsafe extern "C" {
    pub fn __report_gsfailure(_StackCookie: usize) -> !;
}
unsafe extern "C" {
    pub static mut __security_cookie: usize;
}
pub type int_least8_t = ::std::os::raw::c_schar;
pub type int_least16_t = ::std::os::raw::c_short;
pub type int_least32_t = ::std::os::raw::c_int;
pub type int_least64_t = ::std::os::raw::c_longlong;
pub type uint_least8_t = ::std::os::raw::c_uchar;
pub type uint_least16_t = ::std::os::raw::c_ushort;
pub type uint_least32_t = ::std::os::raw::c_uint;
pub type uint_least64_t = ::std::os::raw::c_ulonglong;
pub type int_fast8_t = ::std::os::raw::c_schar;
pub type int_fast16_t = ::std::os::raw::c_int;
pub type int_fast32_t = ::std::os::raw::c_int;
pub type int_fast64_t = ::std::os::raw::c_longlong;
pub type uint_fast8_t = ::std::os::raw::c_uchar;
pub type uint_fast16_t = ::std::os::raw::c_uint;
pub type uint_fast32_t = ::std::os::raw::c_uint;
pub type uint_fast64_t = ::std::os::raw::c_ulonglong;
pub type intmax_t = ::std::os::raw::c_longlong;
pub type uintmax_t = ::std::os::raw::c_ulonglong;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ob_context_t {
    _unused: [u8; 0],
}
pub type ob_context = ob_context_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ob_device_t {
    _unused: [u8; 0],
}
pub type ob_device = ob_device_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ob_device_info_t {
    _unused: [u8; 0],
}
pub type ob_device_info = ob_device_info_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ob_device_list_t {
    _unused: [u8; 0],
}
pub type ob_device_list = ob_device_list_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ob_record_device_t {
    _unused: [u8; 0],
}
pub type ob_record_device = ob_record_device_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ob_playback_device_t {
    _unused: [u8; 0],
}
pub type ob_playback_device = ob_playback_device_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ob_camera_param_list_t {
    _unused: [u8; 0],
}
pub type ob_camera_param_list = ob_camera_param_list_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ob_sensor_t {
    _unused: [u8; 0],
}
pub type ob_sensor = ob_sensor_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ob_sensor_list_t {
    _unused: [u8; 0],
}
pub type ob_sensor_list = ob_sensor_list_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ob_stream_profile_t {
    _unused: [u8; 0],
}
pub type ob_stream_profile = ob_stream_profile_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ob_stream_profile_list_t {
    _unused: [u8; 0],
}
pub type ob_stream_profile_list = ob_stream_profile_list_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ob_frame_t {
    _unused: [u8; 0],
}
pub type ob_frame = ob_frame_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ob_filter_t {
    _unused: [u8; 0],
}
pub type ob_filter = ob_filter_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ob_filter_list_t {
    _unused: [u8; 0],
}
pub type ob_filter_list = ob_filter_list_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ob_pipeline_t {
    _unused: [u8; 0],
}
pub type ob_pipeline = ob_pipeline_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ob_config_t {
    _unused: [u8; 0],
}
pub type ob_config = ob_config_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ob_depth_work_mode_list_t {
    _unused: [u8; 0],
}
pub type ob_depth_work_mode_list = ob_depth_work_mode_list_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ob_device_preset_list_t {
    _unused: [u8; 0],
}
pub type ob_device_preset_list = ob_device_preset_list_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ob_filter_config_schema_list_t {
    _unused: [u8; 0],
}
pub type ob_filter_config_schema_list = ob_filter_config_schema_list_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ob_device_frame_interleave_list_t {
    _unused: [u8; 0],
}
pub type ob_device_frame_interleave_list = ob_device_frame_interleave_list_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ob_preset_resolution_config_list_t {
    _unused: [u8; 0],
}
pub type ob_preset_resolution_config_list = ob_preset_resolution_config_list_t;
#[doc = "< no permission"]
pub const OBPermissionType_OB_PERMISSION_DENY: OBPermissionType = 0;
#[doc = "< can read"]
pub const OBPermissionType_OB_PERMISSION_READ: OBPermissionType = 1;
#[doc = "< can write"]
pub const OBPermissionType_OB_PERMISSION_WRITE: OBPermissionType = 2;
#[doc = "< can read and write"]
pub const OBPermissionType_OB_PERMISSION_READ_WRITE: OBPermissionType = 3;
#[doc = "< any situation above"]
pub const OBPermissionType_OB_PERMISSION_ANY: OBPermissionType = 255;
#[doc = " @brief the permission type of api or property"]
pub type OBPermissionType = i32;
#[doc = " @brief the permission type of api or property"]
pub use self::OBPermissionType as ob_permission_type;
#[doc = "< status ok"]
pub const OBStatus_OB_STATUS_OK: OBStatus = 0;
#[doc = "< status error"]
pub const OBStatus_OB_STATUS_ERROR: OBStatus = 1;
#[doc = " @brief error code"]
pub type OBStatus = i32;
#[doc = " @brief error code"]
pub use self::OBStatus as ob_status;
#[doc = "< debug"]
pub const OBLogSeverity_OB_LOG_SEVERITY_DEBUG: OBLogSeverity = 0;
#[doc = "< information"]
pub const OBLogSeverity_OB_LOG_SEVERITY_INFO: OBLogSeverity = 1;
#[doc = "< warning"]
pub const OBLogSeverity_OB_LOG_SEVERITY_WARN: OBLogSeverity = 2;
#[doc = "< error"]
pub const OBLogSeverity_OB_LOG_SEVERITY_ERROR: OBLogSeverity = 3;
#[doc = "< fatal error"]
pub const OBLogSeverity_OB_LOG_SEVERITY_FATAL: OBLogSeverity = 4;
#[doc = "< off (close LOG)"]
pub const OBLogSeverity_OB_LOG_SEVERITY_OFF: OBLogSeverity = 5;
#[doc = " @brief log level, the higher the level, the stronger the log filter"]
pub type OBLogSeverity = i32;
#[doc = " @brief log level, the higher the level, the stronger the log filter"]
pub use self::OBLogSeverity as ob_log_severity;
#[doc = " @brief log level, the higher the level, the stronger the log filter"]
pub use self::OBLogSeverity as DEVICE_LOG_SEVERITY_LEVEL;
#[doc = " @brief log level, the higher the level, the stronger the log filter"]
pub use self::OBLogSeverity as OBDeviceLogSeverityLevel;
#[doc = " @brief log level, the higher the level, the stronger the log filter"]
pub use self::OBLogSeverity as ob_device_log_severity_level;
#[doc = "< Unknown error, an error not clearly defined by the SDK"]
pub const OBExceptionType_OB_EXCEPTION_TYPE_UNKNOWN: OBExceptionType = 0;
pub const OBExceptionType_OB_EXCEPTION_STD_EXCEPTION: OBExceptionType = 1;
#[doc = "< Camera/Device has been disconnected, the camera/device is not available"]
pub const OBExceptionType_OB_EXCEPTION_TYPE_CAMERA_DISCONNECTED: OBExceptionType = 2;
#[doc = "< An error in the SDK adaptation platform layer, which means an error in the implementation of a specific system\nplatform"]
pub const OBExceptionType_OB_EXCEPTION_TYPE_PLATFORM: OBExceptionType = 3;
#[doc = "< Invalid parameter type exception, need to check input parameter"]
pub const OBExceptionType_OB_EXCEPTION_TYPE_INVALID_VALUE: OBExceptionType = 4;
#[doc = "< Wrong API call sequence, the API is called in the wrong order or the wrong parameter is passed"]
pub const OBExceptionType_OB_EXCEPTION_TYPE_WRONG_API_CALL_SEQUENCE: OBExceptionType = 5;
#[doc = "< SDK and firmware have not yet implemented this function or feature"]
pub const OBExceptionType_OB_EXCEPTION_TYPE_NOT_IMPLEMENTED: OBExceptionType = 6;
#[doc = "< SDK access IO exception error"]
pub const OBExceptionType_OB_EXCEPTION_TYPE_IO: OBExceptionType = 7;
#[doc = "< SDK access and use memory errors. For example, the frame fails to allocate memory"]
pub const OBExceptionType_OB_EXCEPTION_TYPE_MEMORY: OBExceptionType = 8;
#[doc = "< Unsupported operation type error by SDK or device"]
pub const OBExceptionType_OB_EXCEPTION_TYPE_UNSUPPORTED_OPERATION: OBExceptionType = 9;
#[doc = " @brief The exception types in the SDK, through the exception type, you can easily determine the specific type of error.\n For detailed error API interface functions and error logs, please refer to the information of ob_error"]
pub type OBExceptionType = i32;
#[doc = " @brief The exception types in the SDK, through the exception type, you can easily determine the specific type of error.\n For detailed error API interface functions and error logs, please refer to the information of ob_error"]
pub use self::OBExceptionType as ob_exception_type;
#[doc = " @brief The error class exposed by the SDK, users can get detailed error information according to the error"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct ob_error {
    #[doc = "< Describe the status code of the error, as compatible with previous customer status code requirements"]
    pub status: ob_status,
    #[doc = "< Describe the detailed error log"]
    pub message: [::std::os::raw::c_char; 256usize],
    #[doc = "< Describe the name of the function where the error occurred"]
    pub function: [::std::os::raw::c_char; 256usize],
    #[doc = "< Describes the parameters passed to the function when an error occurs. Used to check whether the parameter is wrong"]
    pub args: [::std::os::raw::c_char; 256usize],
    #[doc = "< The description is the specific error type of the SDK"]
    pub exception_type: ob_exception_type,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of ob_error"][::std::mem::size_of::<ob_error>() - 776usize];
    ["Alignment of ob_error"][::std::mem::align_of::<ob_error>() - 1usize];
    ["Offset of field: ob_error::status"][::std::mem::offset_of!(ob_error, status) - 0usize];
    ["Offset of field: ob_error::message"][::std::mem::offset_of!(ob_error, message) - 4usize];
    ["Offset of field: ob_error::function"][::std::mem::offset_of!(ob_error, function) - 260usize];
    ["Offset of field: ob_error::args"][::std::mem::offset_of!(ob_error, args) - 516usize];
    ["Offset of field: ob_error::exception_type"]
        [::std::mem::offset_of!(ob_error, exception_type) - 772usize];
};
#[doc = "< Unknown type sensor"]
pub const OBSensorType_OB_SENSOR_UNKNOWN: OBSensorType = 0;
#[doc = "< IR"]
pub const OBSensorType_OB_SENSOR_IR: OBSensorType = 1;
#[doc = "< Color"]
pub const OBSensorType_OB_SENSOR_COLOR: OBSensorType = 2;
#[doc = "< Depth"]
pub const OBSensorType_OB_SENSOR_DEPTH: OBSensorType = 3;
#[doc = "< Accel"]
pub const OBSensorType_OB_SENSOR_ACCEL: OBSensorType = 4;
#[doc = "< Gyro"]
pub const OBSensorType_OB_SENSOR_GYRO: OBSensorType = 5;
#[doc = "< left IR for stereo camera"]
pub const OBSensorType_OB_SENSOR_IR_LEFT: OBSensorType = 6;
#[doc = "< Right IR for stereo camera"]
pub const OBSensorType_OB_SENSOR_IR_RIGHT: OBSensorType = 7;
#[doc = "< Raw Phase"]
pub const OBSensorType_OB_SENSOR_RAW_PHASE: OBSensorType = 8;
#[doc = "< Confidence"]
pub const OBSensorType_OB_SENSOR_CONFIDENCE: OBSensorType = 9;
pub const OBSensorType_OB_SENSOR_TYPE_COUNT: OBSensorType = 10;
#[doc = " @brief Enumeration value describing the sensor type"]
pub type OBSensorType = i32;
#[doc = " @brief Enumeration value describing the sensor type"]
pub use self::OBSensorType as ob_sensor_type;
#[doc = "< Unknown type stream"]
pub const OBStreamType_OB_STREAM_UNKNOWN: OBStreamType = -1;
#[doc = "< Video stream (infrared, color, depth streams are all video streams)"]
pub const OBStreamType_OB_STREAM_VIDEO: OBStreamType = 0;
#[doc = "< IR stream"]
pub const OBStreamType_OB_STREAM_IR: OBStreamType = 1;
#[doc = "< color stream"]
pub const OBStreamType_OB_STREAM_COLOR: OBStreamType = 2;
#[doc = "< depth stream"]
pub const OBStreamType_OB_STREAM_DEPTH: OBStreamType = 3;
#[doc = "< Accelerometer data stream"]
pub const OBStreamType_OB_STREAM_ACCEL: OBStreamType = 4;
#[doc = "< Gyroscope data stream"]
pub const OBStreamType_OB_STREAM_GYRO: OBStreamType = 5;
#[doc = "< Left IR stream for stereo camera"]
pub const OBStreamType_OB_STREAM_IR_LEFT: OBStreamType = 6;
#[doc = "< Right IR stream for stereo camera"]
pub const OBStreamType_OB_STREAM_IR_RIGHT: OBStreamType = 7;
#[doc = "< RawPhase Stream"]
pub const OBStreamType_OB_STREAM_RAW_PHASE: OBStreamType = 8;
#[doc = "< Confidence Stream"]
pub const OBStreamType_OB_STREAM_CONFIDENCE: OBStreamType = 9;
#[doc = "< The total number of stream type,is not a valid stream type"]
pub const OBStreamType_OB_STREAM_TYPE_COUNT: OBStreamType = 10;
#[doc = " @brief Enumeration value describing the type of data stream"]
pub type OBStreamType = i32;
#[doc = " @brief Enumeration value describing the type of data stream"]
pub use self::OBStreamType as ob_stream_type;
#[doc = "< Unknown frame type"]
pub const OBFrameType_OB_FRAME_UNKNOWN: OBFrameType = -1;
#[doc = "< Video frame"]
pub const OBFrameType_OB_FRAME_VIDEO: OBFrameType = 0;
#[doc = "< IR frame"]
pub const OBFrameType_OB_FRAME_IR: OBFrameType = 1;
#[doc = "< Color frame"]
pub const OBFrameType_OB_FRAME_COLOR: OBFrameType = 2;
#[doc = "< Depth frame"]
pub const OBFrameType_OB_FRAME_DEPTH: OBFrameType = 3;
#[doc = "< Accelerometer data frame"]
pub const OBFrameType_OB_FRAME_ACCEL: OBFrameType = 4;
#[doc = "< Frame collection (internally contains a variety of data frames)"]
pub const OBFrameType_OB_FRAME_SET: OBFrameType = 5;
#[doc = "< Point cloud frame"]
pub const OBFrameType_OB_FRAME_POINTS: OBFrameType = 6;
#[doc = "< Gyroscope data frame"]
pub const OBFrameType_OB_FRAME_GYRO: OBFrameType = 7;
#[doc = "< Left IR frame for stereo camera"]
pub const OBFrameType_OB_FRAME_IR_LEFT: OBFrameType = 8;
#[doc = "< Right IR frame for stereo camera"]
pub const OBFrameType_OB_FRAME_IR_RIGHT: OBFrameType = 9;
#[doc = "< Raw Phase frame"]
pub const OBFrameType_OB_FRAME_RAW_PHASE: OBFrameType = 10;
#[doc = "< Confidence frame"]
pub const OBFrameType_OB_FRAME_CONFIDENCE: OBFrameType = 11;
#[doc = "< The total number of frame types, is not a valid frame type"]
pub const OBFrameType_OB_FRAME_TYPE_COUNT: OBFrameType = 12;
#[doc = " @brief Enumeration value describing the type of frame"]
pub type OBFrameType = i32;
#[doc = " @brief Enumeration value describing the type of frame"]
pub use self::OBFrameType as ob_frame_type;
pub const OBPixelType_OB_PIXEL_UNKNOWN: OBPixelType = -1;
pub const OBPixelType_OB_PIXEL_DEPTH: OBPixelType = 0;
pub const OBPixelType_OB_PIXEL_DISPARITY: OBPixelType = 2;
pub const OBPixelType_OB_PIXEL_RAW_PHASE: OBPixelType = 3;
pub const OBPixelType_OB_PIXEL_TOF_DEPTH: OBPixelType = 4;
#[doc = " @brief Enumeration value describing the pixel type of frame (usually used for depth frame)\n"]
pub type OBPixelType = i32;
#[doc = " @brief Enumeration value describing the pixel type of frame (usually used for depth frame)\n"]
pub use self::OBPixelType as ob_pixel_type;
#[doc = "< unknown format"]
pub const OBFormat_OB_FORMAT_UNKNOWN: OBFormat = -1;
#[doc = "< YUYV format"]
pub const OBFormat_OB_FORMAT_YUYV: OBFormat = 0;
#[doc = "< YUY2 format (the actual format is the same as YUYV)"]
pub const OBFormat_OB_FORMAT_YUY2: OBFormat = 1;
#[doc = "< UYVY format"]
pub const OBFormat_OB_FORMAT_UYVY: OBFormat = 2;
#[doc = "< NV12 format"]
pub const OBFormat_OB_FORMAT_NV12: OBFormat = 3;
#[doc = "< NV21 format"]
pub const OBFormat_OB_FORMAT_NV21: OBFormat = 4;
#[doc = "< MJPEG encoding format"]
pub const OBFormat_OB_FORMAT_MJPG: OBFormat = 5;
#[doc = "< H.264 encoding format"]
pub const OBFormat_OB_FORMAT_H264: OBFormat = 6;
#[doc = "< H.265 encoding format"]
pub const OBFormat_OB_FORMAT_H265: OBFormat = 7;
#[doc = "< Y16 format, 16-bit per pixel, single-channel"]
pub const OBFormat_OB_FORMAT_Y16: OBFormat = 8;
#[doc = "< Y8 format, 8-bit per pixel, single-channel"]
pub const OBFormat_OB_FORMAT_Y8: OBFormat = 9;
#[doc = "< Y10 format, 10-bit per pixel, single-channel(SDK will unpack into Y16 by default)"]
pub const OBFormat_OB_FORMAT_Y10: OBFormat = 10;
#[doc = "< Y11 format, 11-bit per pixel, single-channel (SDK will unpack into Y16 by default)"]
pub const OBFormat_OB_FORMAT_Y11: OBFormat = 11;
#[doc = "< Y12 format, 12-bit per pixel, single-channel(SDK will unpack into Y16 by default)"]
pub const OBFormat_OB_FORMAT_Y12: OBFormat = 12;
#[doc = "< GRAY (the actual format is the same as YUYV)"]
pub const OBFormat_OB_FORMAT_GRAY: OBFormat = 13;
#[doc = "< HEVC encoding format (the actual format is the same as H265)"]
pub const OBFormat_OB_FORMAT_HEVC: OBFormat = 14;
#[doc = "< I420 format"]
pub const OBFormat_OB_FORMAT_I420: OBFormat = 15;
#[doc = "< Acceleration data format"]
pub const OBFormat_OB_FORMAT_ACCEL: OBFormat = 16;
#[doc = "< Gyroscope data format"]
pub const OBFormat_OB_FORMAT_GYRO: OBFormat = 17;
#[doc = "< XYZ 3D coordinate point format, @ref OBPoint"]
pub const OBFormat_OB_FORMAT_POINT: OBFormat = 19;
#[doc = "< XYZ 3D coordinate point format with RGB information, @ref OBColorPoint"]
pub const OBFormat_OB_FORMAT_RGB_POINT: OBFormat = 20;
#[doc = "< RLE pressure test format (SDK will be unpacked into Y16 by default)"]
pub const OBFormat_OB_FORMAT_RLE: OBFormat = 21;
#[doc = "< RGB format (actual RGB888)"]
pub const OBFormat_OB_FORMAT_RGB: OBFormat = 22;
#[doc = "< BGR format (actual BGR888)"]
pub const OBFormat_OB_FORMAT_BGR: OBFormat = 23;
#[doc = "< Y14 format, 14-bit per pixel, single-channel (SDK will unpack into Y16 by default)"]
pub const OBFormat_OB_FORMAT_Y14: OBFormat = 24;
#[doc = "< BGRA format"]
pub const OBFormat_OB_FORMAT_BGRA: OBFormat = 25;
#[doc = "< Compression format"]
pub const OBFormat_OB_FORMAT_COMPRESSED: OBFormat = 26;
#[doc = "< RVL pressure test format (SDK will be unpacked into Y16 by default)"]
pub const OBFormat_OB_FORMAT_RVL: OBFormat = 27;
#[doc = "< Is same as Y16"]
pub const OBFormat_OB_FORMAT_Z16: OBFormat = 28;
#[doc = "< Is same as Y12, using for right ir stream"]
pub const OBFormat_OB_FORMAT_YV12: OBFormat = 29;
#[doc = "< Is same as Y8, using for right ir stream"]
pub const OBFormat_OB_FORMAT_BA81: OBFormat = 30;
#[doc = "< RGBA format"]
pub const OBFormat_OB_FORMAT_RGBA: OBFormat = 31;
#[doc = "< byr2 format"]
pub const OBFormat_OB_FORMAT_BYR2: OBFormat = 32;
#[doc = "< RAW16 format"]
pub const OBFormat_OB_FORMAT_RW16: OBFormat = 33;
#[doc = "<  Y12C4 format"]
pub const OBFormat_OB_FORMAT_Y12C4: OBFormat = 34;
#[doc = " @brief Enumeration value describing the pixel format"]
pub type OBFormat = i32;
#[doc = " @brief Enumeration value describing the pixel format"]
pub use self::OBFormat as ob_format;
#[doc = "< update completed, but some files were duplicated and ignored"]
pub const OBUpgradeState_STAT_DONE_WITH_DUPLICATES: OBUpgradeState = 6;
#[doc = "< Image file verifify success"]
pub const OBUpgradeState_STAT_VERIFY_SUCCESS: OBUpgradeState = 5;
#[doc = "< file transfer"]
pub const OBUpgradeState_STAT_FILE_TRANSFER: OBUpgradeState = 4;
#[doc = "< update completed"]
pub const OBUpgradeState_STAT_DONE: OBUpgradeState = 3;
#[doc = "< upgrade in process"]
pub const OBUpgradeState_STAT_IN_PROGRESS: OBUpgradeState = 2;
#[doc = "< start the upgrade"]
pub const OBUpgradeState_STAT_START: OBUpgradeState = 1;
#[doc = "< Image file verification"]
pub const OBUpgradeState_STAT_VERIFY_IMAGE: OBUpgradeState = 0;
#[doc = "< Verification failed"]
pub const OBUpgradeState_ERR_VERIFY: OBUpgradeState = -1;
#[doc = "< Program execution failed"]
pub const OBUpgradeState_ERR_PROGRAM: OBUpgradeState = -2;
#[doc = "< Flash parameter failed"]
pub const OBUpgradeState_ERR_ERASE: OBUpgradeState = -3;
#[doc = "< Flash type error"]
pub const OBUpgradeState_ERR_FLASH_TYPE: OBUpgradeState = -4;
#[doc = "< Image file size error"]
pub const OBUpgradeState_ERR_IMAGE_SIZE: OBUpgradeState = -5;
#[doc = "< other errors"]
pub const OBUpgradeState_ERR_OTHER: OBUpgradeState = -6;
#[doc = "< DDR access error"]
pub const OBUpgradeState_ERR_DDR: OBUpgradeState = -7;
#[doc = "< timeout error"]
pub const OBUpgradeState_ERR_TIMEOUT: OBUpgradeState = -8;
#[doc = "< Mismatch firmware error"]
pub const OBUpgradeState_ERR_MISMATCH: OBUpgradeState = -9;
#[doc = "< Unsupported device error"]
pub const OBUpgradeState_ERR_UNSUPPORT_DEV: OBUpgradeState = -10;
#[doc = "< invalid firmware/preset count"]
pub const OBUpgradeState_ERR_INVALID_COUNT: OBUpgradeState = -11;
#[doc = " @brief Enumeration value describing the firmware upgrade status"]
pub type OBUpgradeState = i32;
#[doc = " @brief Enumeration value describing the firmware upgrade status"]
pub use self::OBUpgradeState as OBFwUpdateState;
#[doc = " @brief Enumeration value describing the firmware upgrade status"]
pub use self::OBUpgradeState as ob_upgrade_state;
#[doc = " @brief Enumeration value describing the firmware upgrade status"]
pub use self::OBUpgradeState as ob_fw_update_state;
#[doc = "< File transfer"]
pub const OBFileTranState_FILE_TRAN_STAT_TRANSFER: OBFileTranState = 2;
#[doc = "< File transfer succeeded"]
pub const OBFileTranState_FILE_TRAN_STAT_DONE: OBFileTranState = 1;
#[doc = "< Preparing"]
pub const OBFileTranState_FILE_TRAN_STAT_PREPAR: OBFileTranState = 0;
#[doc = "< DDR access failed"]
pub const OBFileTranState_FILE_TRAN_ERR_DDR: OBFileTranState = -1;
#[doc = "< Insufficient target space error"]
pub const OBFileTranState_FILE_TRAN_ERR_NOT_ENOUGH_SPACE: OBFileTranState = -2;
#[doc = "< Destination path is not writable"]
pub const OBFileTranState_FILE_TRAN_ERR_PATH_NOT_WRITABLE: OBFileTranState = -3;
#[doc = "< MD5 checksum error"]
pub const OBFileTranState_FILE_TRAN_ERR_MD5_ERROR: OBFileTranState = -4;
#[doc = "< Write flash error"]
pub const OBFileTranState_FILE_TRAN_ERR_WRITE_FLASH_ERROR: OBFileTranState = -5;
#[doc = "< Timeout error"]
pub const OBFileTranState_FILE_TRAN_ERR_TIMEOUT: OBFileTranState = -6;
#[doc = " @brief Enumeration value describing the file transfer status"]
pub type OBFileTranState = i32;
#[doc = " @brief Enumeration value describing the file transfer status"]
pub use self::OBFileTranState as ob_file_tran_state;
#[doc = "< data verify done"]
pub const OBDataTranState_DATA_TRAN_STAT_VERIFY_DONE: OBDataTranState = 4;
#[doc = "< data transfer stoped"]
pub const OBDataTranState_DATA_TRAN_STAT_STOPPED: OBDataTranState = 3;
#[doc = "< data transfer completed"]
pub const OBDataTranState_DATA_TRAN_STAT_DONE: OBDataTranState = 2;
#[doc = "< data verifying"]
pub const OBDataTranState_DATA_TRAN_STAT_VERIFYING: OBDataTranState = 1;
#[doc = "< data transferring"]
pub const OBDataTranState_DATA_TRAN_STAT_TRANSFERRING: OBDataTranState = 0;
#[doc = "< Transmission is busy"]
pub const OBDataTranState_DATA_TRAN_ERR_BUSY: OBDataTranState = -1;
#[doc = "< Not supported"]
pub const OBDataTranState_DATA_TRAN_ERR_UNSUPPORTED: OBDataTranState = -2;
#[doc = "< Transfer failed"]
pub const OBDataTranState_DATA_TRAN_ERR_TRAN_FAILED: OBDataTranState = -3;
#[doc = "< Test failed"]
pub const OBDataTranState_DATA_TRAN_ERR_VERIFY_FAILED: OBDataTranState = -4;
#[doc = "< Other errors"]
pub const OBDataTranState_DATA_TRAN_ERR_OTHER: OBDataTranState = -5;
#[doc = " @brief Enumeration value describing the data transfer status"]
pub type OBDataTranState = i32;
#[doc = " @brief Enumeration value describing the data transfer status"]
pub use self::OBDataTranState as ob_data_tran_state;
#[doc = " @brief Structure for transmitting data blocks"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBDataChunk {
    #[doc = "< Pointer to current block data"]
    pub data: *mut u8,
    #[doc = "< Length of current block data"]
    pub size: u32,
    #[doc = "< Offset of current data block relative to complete data"]
    pub offset: u32,
    #[doc = "< Size of full data"]
    pub fullDataSize: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBDataChunk"][::std::mem::size_of::<OBDataChunk>() - 20usize];
    ["Alignment of OBDataChunk"][::std::mem::align_of::<OBDataChunk>() - 1usize];
    ["Offset of field: OBDataChunk::data"][::std::mem::offset_of!(OBDataChunk, data) - 0usize];
    ["Offset of field: OBDataChunk::size"][::std::mem::offset_of!(OBDataChunk, size) - 8usize];
    ["Offset of field: OBDataChunk::offset"][::std::mem::offset_of!(OBDataChunk, offset) - 12usize];
    ["Offset of field: OBDataChunk::fullDataSize"]
        [::std::mem::offset_of!(OBDataChunk, fullDataSize) - 16usize];
};
#[doc = " @brief Structure for transmitting data blocks"]
pub type ob_data_chunk = OBDataChunk;
#[doc = " @brief Structure for integer range"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBIntPropertyRange {
    #[doc = "< Current value"]
    pub cur: i32,
    #[doc = "< Maximum value"]
    pub max: i32,
    #[doc = "< Minimum value"]
    pub min: i32,
    #[doc = "< Step value"]
    pub step: i32,
    #[doc = "< Default value"]
    pub def: i32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBIntPropertyRange"][::std::mem::size_of::<OBIntPropertyRange>() - 20usize];
    ["Alignment of OBIntPropertyRange"][::std::mem::align_of::<OBIntPropertyRange>() - 1usize];
    ["Offset of field: OBIntPropertyRange::cur"]
        [::std::mem::offset_of!(OBIntPropertyRange, cur) - 0usize];
    ["Offset of field: OBIntPropertyRange::max"]
        [::std::mem::offset_of!(OBIntPropertyRange, max) - 4usize];
    ["Offset of field: OBIntPropertyRange::min"]
        [::std::mem::offset_of!(OBIntPropertyRange, min) - 8usize];
    ["Offset of field: OBIntPropertyRange::step"]
        [::std::mem::offset_of!(OBIntPropertyRange, step) - 12usize];
    ["Offset of field: OBIntPropertyRange::def"]
        [::std::mem::offset_of!(OBIntPropertyRange, def) - 16usize];
};
#[doc = " @brief Structure for integer range"]
pub type ob_int_property_range = OBIntPropertyRange;
#[doc = " @brief Structure for float range"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBFloatPropertyRange {
    #[doc = "< Current value"]
    pub cur: f32,
    #[doc = "< Maximum value"]
    pub max: f32,
    #[doc = "< Minimum value"]
    pub min: f32,
    #[doc = "< Step value"]
    pub step: f32,
    #[doc = "< Default value"]
    pub def: f32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBFloatPropertyRange"][::std::mem::size_of::<OBFloatPropertyRange>() - 20usize];
    ["Alignment of OBFloatPropertyRange"][::std::mem::align_of::<OBFloatPropertyRange>() - 1usize];
    ["Offset of field: OBFloatPropertyRange::cur"]
        [::std::mem::offset_of!(OBFloatPropertyRange, cur) - 0usize];
    ["Offset of field: OBFloatPropertyRange::max"]
        [::std::mem::offset_of!(OBFloatPropertyRange, max) - 4usize];
    ["Offset of field: OBFloatPropertyRange::min"]
        [::std::mem::offset_of!(OBFloatPropertyRange, min) - 8usize];
    ["Offset of field: OBFloatPropertyRange::step"]
        [::std::mem::offset_of!(OBFloatPropertyRange, step) - 12usize];
    ["Offset of field: OBFloatPropertyRange::def"]
        [::std::mem::offset_of!(OBFloatPropertyRange, def) - 16usize];
};
#[doc = " @brief Structure for float range"]
pub type ob_float_property_range = OBFloatPropertyRange;
#[doc = " @brief Structure for float range"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBUint16PropertyRange {
    #[doc = "< Current value"]
    pub cur: u16,
    #[doc = "< Maximum value"]
    pub max: u16,
    #[doc = "< Minimum value"]
    pub min: u16,
    #[doc = "< Step value"]
    pub step: u16,
    #[doc = "< Default value"]
    pub def: u16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBUint16PropertyRange"][::std::mem::size_of::<OBUint16PropertyRange>() - 10usize];
    ["Alignment of OBUint16PropertyRange"]
        [::std::mem::align_of::<OBUint16PropertyRange>() - 1usize];
    ["Offset of field: OBUint16PropertyRange::cur"]
        [::std::mem::offset_of!(OBUint16PropertyRange, cur) - 0usize];
    ["Offset of field: OBUint16PropertyRange::max"]
        [::std::mem::offset_of!(OBUint16PropertyRange, max) - 2usize];
    ["Offset of field: OBUint16PropertyRange::min"]
        [::std::mem::offset_of!(OBUint16PropertyRange, min) - 4usize];
    ["Offset of field: OBUint16PropertyRange::step"]
        [::std::mem::offset_of!(OBUint16PropertyRange, step) - 6usize];
    ["Offset of field: OBUint16PropertyRange::def"]
        [::std::mem::offset_of!(OBUint16PropertyRange, def) - 8usize];
};
#[doc = " @brief Structure for float range"]
pub type ob_uint16_property_range = OBUint16PropertyRange;
#[doc = " @brief Structure for float range"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OBUint8PropertyRange {
    #[doc = "< Current value"]
    pub cur: u8,
    #[doc = "< Maximum value"]
    pub max: u8,
    #[doc = "< Minimum value"]
    pub min: u8,
    #[doc = "< Step value"]
    pub step: u8,
    #[doc = "< Default value"]
    pub def: u8,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBUint8PropertyRange"][::std::mem::size_of::<OBUint8PropertyRange>() - 5usize];
    ["Alignment of OBUint8PropertyRange"][::std::mem::align_of::<OBUint8PropertyRange>() - 1usize];
    ["Offset of field: OBUint8PropertyRange::cur"]
        [::std::mem::offset_of!(OBUint8PropertyRange, cur) - 0usize];
    ["Offset of field: OBUint8PropertyRange::max"]
        [::std::mem::offset_of!(OBUint8PropertyRange, max) - 1usize];
    ["Offset of field: OBUint8PropertyRange::min"]
        [::std::mem::offset_of!(OBUint8PropertyRange, min) - 2usize];
    ["Offset of field: OBUint8PropertyRange::step"]
        [::std::mem::offset_of!(OBUint8PropertyRange, step) - 3usize];
    ["Offset of field: OBUint8PropertyRange::def"]
        [::std::mem::offset_of!(OBUint8PropertyRange, def) - 4usize];
};
#[doc = " @brief Structure for float range"]
pub type ob_uint8_property_range = OBUint8PropertyRange;
#[doc = " @brief Structure for boolean range"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OBBoolPropertyRange {
    #[doc = "< Current value"]
    pub cur: bool,
    #[doc = "< Maximum value"]
    pub max: bool,
    #[doc = "< Minimum value"]
    pub min: bool,
    #[doc = "< Step value"]
    pub step: bool,
    #[doc = "< Default value"]
    pub def: bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBBoolPropertyRange"][::std::mem::size_of::<OBBoolPropertyRange>() - 5usize];
    ["Alignment of OBBoolPropertyRange"][::std::mem::align_of::<OBBoolPropertyRange>() - 1usize];
    ["Offset of field: OBBoolPropertyRange::cur"]
        [::std::mem::offset_of!(OBBoolPropertyRange, cur) - 0usize];
    ["Offset of field: OBBoolPropertyRange::max"]
        [::std::mem::offset_of!(OBBoolPropertyRange, max) - 1usize];
    ["Offset of field: OBBoolPropertyRange::min"]
        [::std::mem::offset_of!(OBBoolPropertyRange, min) - 2usize];
    ["Offset of field: OBBoolPropertyRange::step"]
        [::std::mem::offset_of!(OBBoolPropertyRange, step) - 3usize];
    ["Offset of field: OBBoolPropertyRange::def"]
        [::std::mem::offset_of!(OBBoolPropertyRange, def) - 4usize];
};
#[doc = " @brief Structure for boolean range"]
pub type ob_bool_property_range = OBBoolPropertyRange;
#[doc = "< Rectilinear images. No distortion compensation required."]
pub const OBCameraDistortionModel_OB_DISTORTION_NONE: OBCameraDistortionModel = 0;
#[doc = "< Equivalent to Brown-Conrady distortion, except that tangential distortion is applied to radially distorted points"]
pub const OBCameraDistortionModel_OB_DISTORTION_MODIFIED_BROWN_CONRADY: OBCameraDistortionModel = 1;
#[doc = "< Equivalent to Brown-Conrady distortion, except undistorts image instead of distorting it"]
pub const OBCameraDistortionModel_OB_DISTORTION_INVERSE_BROWN_CONRADY: OBCameraDistortionModel = 2;
#[doc = "< Unmodified Brown-Conrady distortion model"]
pub const OBCameraDistortionModel_OB_DISTORTION_BROWN_CONRADY: OBCameraDistortionModel = 3;
#[doc = "< Unmodified Brown-Conrady distortion model with k6 supported"]
pub const OBCameraDistortionModel_OB_DISTORTION_BROWN_CONRADY_K6: OBCameraDistortionModel = 4;
#[doc = "< Kannala-Brandt distortion model"]
pub const OBCameraDistortionModel_OB_DISTORTION_KANNALA_BRANDT4: OBCameraDistortionModel = 5;
#[doc = " \\brief Distortion model: defines how pixel coordinates should be mapped to sensor coordinates."]
pub type OBCameraDistortionModel = i32;
#[doc = " \\brief Distortion model: defines how pixel coordinates should be mapped to sensor coordinates."]
pub use self::OBCameraDistortionModel as ob_camera_distortion_model;
#[doc = " @brief Structure for camera intrinsic parameters"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBCameraIntrinsic {
    #[doc = "< Focal length in x direction"]
    pub fx: f32,
    #[doc = "< Focal length in y direction"]
    pub fy: f32,
    #[doc = "< Optical center abscissa"]
    pub cx: f32,
    #[doc = "< Optical center ordinate"]
    pub cy: f32,
    #[doc = "< Image width"]
    pub width: i16,
    #[doc = "< Image height"]
    pub height: i16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBCameraIntrinsic"][::std::mem::size_of::<OBCameraIntrinsic>() - 20usize];
    ["Alignment of OBCameraIntrinsic"][::std::mem::align_of::<OBCameraIntrinsic>() - 1usize];
    ["Offset of field: OBCameraIntrinsic::fx"]
        [::std::mem::offset_of!(OBCameraIntrinsic, fx) - 0usize];
    ["Offset of field: OBCameraIntrinsic::fy"]
        [::std::mem::offset_of!(OBCameraIntrinsic, fy) - 4usize];
    ["Offset of field: OBCameraIntrinsic::cx"]
        [::std::mem::offset_of!(OBCameraIntrinsic, cx) - 8usize];
    ["Offset of field: OBCameraIntrinsic::cy"]
        [::std::mem::offset_of!(OBCameraIntrinsic, cy) - 12usize];
    ["Offset of field: OBCameraIntrinsic::width"]
        [::std::mem::offset_of!(OBCameraIntrinsic, width) - 16usize];
    ["Offset of field: OBCameraIntrinsic::height"]
        [::std::mem::offset_of!(OBCameraIntrinsic, height) - 18usize];
};
#[doc = " @brief Structure for camera intrinsic parameters"]
pub type ob_camera_intrinsic = OBCameraIntrinsic;
#[doc = " @brief Structure for accelerometer intrinsic parameters"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBAccelIntrinsic {
    #[doc = "< In-run bias instability"]
    pub noiseDensity: f64,
    #[doc = "< random walk"]
    pub randomWalk: f64,
    #[doc = "< reference temperature"]
    pub referenceTemp: f64,
    #[doc = "< bias for x, y, z axis"]
    pub bias: [f64; 3usize],
    #[doc = "< gravity direction for x, y, z axis"]
    pub gravity: [f64; 3usize],
    #[doc = "< scale factor and three-axis non-orthogonal error"]
    pub scaleMisalignment: [f64; 9usize],
    #[doc = "< linear temperature drift coefficient"]
    pub tempSlope: [f64; 9usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBAccelIntrinsic"][::std::mem::size_of::<OBAccelIntrinsic>() - 216usize];
    ["Alignment of OBAccelIntrinsic"][::std::mem::align_of::<OBAccelIntrinsic>() - 1usize];
    ["Offset of field: OBAccelIntrinsic::noiseDensity"]
        [::std::mem::offset_of!(OBAccelIntrinsic, noiseDensity) - 0usize];
    ["Offset of field: OBAccelIntrinsic::randomWalk"]
        [::std::mem::offset_of!(OBAccelIntrinsic, randomWalk) - 8usize];
    ["Offset of field: OBAccelIntrinsic::referenceTemp"]
        [::std::mem::offset_of!(OBAccelIntrinsic, referenceTemp) - 16usize];
    ["Offset of field: OBAccelIntrinsic::bias"]
        [::std::mem::offset_of!(OBAccelIntrinsic, bias) - 24usize];
    ["Offset of field: OBAccelIntrinsic::gravity"]
        [::std::mem::offset_of!(OBAccelIntrinsic, gravity) - 48usize];
    ["Offset of field: OBAccelIntrinsic::scaleMisalignment"]
        [::std::mem::offset_of!(OBAccelIntrinsic, scaleMisalignment) - 72usize];
    ["Offset of field: OBAccelIntrinsic::tempSlope"]
        [::std::mem::offset_of!(OBAccelIntrinsic, tempSlope) - 144usize];
};
#[doc = " @brief Structure for accelerometer intrinsic parameters"]
pub type ob_accel_intrinsic = OBAccelIntrinsic;
#[doc = " @brief Structure for gyroscope intrinsic parameters"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBGyroIntrinsic {
    #[doc = "< In-run bias instability"]
    pub noiseDensity: f64,
    #[doc = "< random walk"]
    pub randomWalk: f64,
    #[doc = "< reference temperature"]
    pub referenceTemp: f64,
    #[doc = "< bias for x, y, z axis"]
    pub bias: [f64; 3usize],
    #[doc = "< scale factor and three-axis non-orthogonal error"]
    pub scaleMisalignment: [f64; 9usize],
    #[doc = "< linear temperature drift coefficient"]
    pub tempSlope: [f64; 9usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBGyroIntrinsic"][::std::mem::size_of::<OBGyroIntrinsic>() - 192usize];
    ["Alignment of OBGyroIntrinsic"][::std::mem::align_of::<OBGyroIntrinsic>() - 1usize];
    ["Offset of field: OBGyroIntrinsic::noiseDensity"]
        [::std::mem::offset_of!(OBGyroIntrinsic, noiseDensity) - 0usize];
    ["Offset of field: OBGyroIntrinsic::randomWalk"]
        [::std::mem::offset_of!(OBGyroIntrinsic, randomWalk) - 8usize];
    ["Offset of field: OBGyroIntrinsic::referenceTemp"]
        [::std::mem::offset_of!(OBGyroIntrinsic, referenceTemp) - 16usize];
    ["Offset of field: OBGyroIntrinsic::bias"]
        [::std::mem::offset_of!(OBGyroIntrinsic, bias) - 24usize];
    ["Offset of field: OBGyroIntrinsic::scaleMisalignment"]
        [::std::mem::offset_of!(OBGyroIntrinsic, scaleMisalignment) - 48usize];
    ["Offset of field: OBGyroIntrinsic::tempSlope"]
        [::std::mem::offset_of!(OBGyroIntrinsic, tempSlope) - 120usize];
};
#[doc = " @brief Structure for gyroscope intrinsic parameters"]
pub type ob_gyro_intrinsic = OBGyroIntrinsic;
#[doc = " @brief Structure for distortion parameters"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBCameraDistortion {
    #[doc = "< Radial distortion factor 1"]
    pub k1: f32,
    #[doc = "< Radial distortion factor 2"]
    pub k2: f32,
    #[doc = "< Radial distortion factor 3"]
    pub k3: f32,
    #[doc = "< Radial distortion factor 4"]
    pub k4: f32,
    #[doc = "< Radial distortion factor 5"]
    pub k5: f32,
    #[doc = "< Radial distortion factor 6"]
    pub k6: f32,
    #[doc = "< Tangential distortion factor 1"]
    pub p1: f32,
    #[doc = "< Tangential distortion factor 2"]
    pub p2: f32,
    pub model: OBCameraDistortionModel,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBCameraDistortion"][::std::mem::size_of::<OBCameraDistortion>() - 36usize];
    ["Alignment of OBCameraDistortion"][::std::mem::align_of::<OBCameraDistortion>() - 1usize];
    ["Offset of field: OBCameraDistortion::k1"]
        [::std::mem::offset_of!(OBCameraDistortion, k1) - 0usize];
    ["Offset of field: OBCameraDistortion::k2"]
        [::std::mem::offset_of!(OBCameraDistortion, k2) - 4usize];
    ["Offset of field: OBCameraDistortion::k3"]
        [::std::mem::offset_of!(OBCameraDistortion, k3) - 8usize];
    ["Offset of field: OBCameraDistortion::k4"]
        [::std::mem::offset_of!(OBCameraDistortion, k4) - 12usize];
    ["Offset of field: OBCameraDistortion::k5"]
        [::std::mem::offset_of!(OBCameraDistortion, k5) - 16usize];
    ["Offset of field: OBCameraDistortion::k6"]
        [::std::mem::offset_of!(OBCameraDistortion, k6) - 20usize];
    ["Offset of field: OBCameraDistortion::p1"]
        [::std::mem::offset_of!(OBCameraDistortion, p1) - 24usize];
    ["Offset of field: OBCameraDistortion::p2"]
        [::std::mem::offset_of!(OBCameraDistortion, p2) - 28usize];
    ["Offset of field: OBCameraDistortion::model"]
        [::std::mem::offset_of!(OBCameraDistortion, model) - 32usize];
};
#[doc = " @brief Structure for distortion parameters"]
pub type ob_camera_distortion = OBCameraDistortion;
#[doc = " @brief Structure for rotation/transformation"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBD2CTransform {
    #[doc = "< Rotation matrix"]
    pub rot: [f32; 9usize],
    #[doc = "< Transformation matrix in millimeters"]
    pub trans: [f32; 3usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBD2CTransform"][::std::mem::size_of::<OBD2CTransform>() - 48usize];
    ["Alignment of OBD2CTransform"][::std::mem::align_of::<OBD2CTransform>() - 1usize];
    ["Offset of field: OBD2CTransform::rot"][::std::mem::offset_of!(OBD2CTransform, rot) - 0usize];
    ["Offset of field: OBD2CTransform::trans"]
        [::std::mem::offset_of!(OBD2CTransform, trans) - 36usize];
};
#[doc = " @brief Structure for rotation/transformation"]
pub type ob_d2c_transform = OBD2CTransform;
#[doc = " @brief Structure for rotation/transformation"]
pub type OBTransform = OBD2CTransform;
#[doc = " @brief Structure for rotation/transformation"]
pub type ob_transform = OBD2CTransform;
#[doc = " @brief Structure for rotation/transformation"]
pub type OBExtrinsic = OBD2CTransform;
#[doc = " @brief Structure for rotation/transformation"]
pub type ob_extrinsic = OBD2CTransform;
#[doc = " @brief Structure for camera parameters"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OBCameraParam {
    #[doc = "< Depth camera internal parameters"]
    pub depthIntrinsic: OBCameraIntrinsic,
    #[doc = "< Color camera internal parameters"]
    pub rgbIntrinsic: OBCameraIntrinsic,
    #[doc = "< Depth camera distortion parameters"]
    pub depthDistortion: OBCameraDistortion,
    #[doc = "< Color camera distortion parameters"]
    pub rgbDistortion: OBCameraDistortion,
    #[doc = "< Rotation/transformation matrix"]
    pub transform: OBD2CTransform,
    #[doc = "< Whether the image frame corresponding to this group of parameters is mirrored"]
    pub isMirrored: bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBCameraParam"][::std::mem::size_of::<OBCameraParam>() - 161usize];
    ["Alignment of OBCameraParam"][::std::mem::align_of::<OBCameraParam>() - 1usize];
    ["Offset of field: OBCameraParam::depthIntrinsic"]
        [::std::mem::offset_of!(OBCameraParam, depthIntrinsic) - 0usize];
    ["Offset of field: OBCameraParam::rgbIntrinsic"]
        [::std::mem::offset_of!(OBCameraParam, rgbIntrinsic) - 20usize];
    ["Offset of field: OBCameraParam::depthDistortion"]
        [::std::mem::offset_of!(OBCameraParam, depthDistortion) - 40usize];
    ["Offset of field: OBCameraParam::rgbDistortion"]
        [::std::mem::offset_of!(OBCameraParam, rgbDistortion) - 76usize];
    ["Offset of field: OBCameraParam::transform"]
        [::std::mem::offset_of!(OBCameraParam, transform) - 112usize];
    ["Offset of field: OBCameraParam::isMirrored"]
        [::std::mem::offset_of!(OBCameraParam, isMirrored) - 160usize];
};
#[doc = " @brief Structure for camera parameters"]
pub type ob_camera_param = OBCameraParam;
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBPresetResolutionConfig {
    #[doc = "< width"]
    pub width: i16,
    #[doc = "< height"]
    pub height: i16,
    #[doc = "< ir decimation factor"]
    pub irDecimationFactor: ::std::os::raw::c_int,
    #[doc = "< depth decimation factor"]
    pub depthDecimationFactor: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBPresetResolutionConfig"]
        [::std::mem::size_of::<OBPresetResolutionConfig>() - 12usize];
    ["Alignment of OBPresetResolutionConfig"]
        [::std::mem::align_of::<OBPresetResolutionConfig>() - 1usize];
    ["Offset of field: OBPresetResolutionConfig::width"]
        [::std::mem::offset_of!(OBPresetResolutionConfig, width) - 0usize];
    ["Offset of field: OBPresetResolutionConfig::height"]
        [::std::mem::offset_of!(OBPresetResolutionConfig, height) - 2usize];
    ["Offset of field: OBPresetResolutionConfig::irDecimationFactor"]
        [::std::mem::offset_of!(OBPresetResolutionConfig, irDecimationFactor) - 4usize];
    ["Offset of field: OBPresetResolutionConfig::depthDecimationFactor"]
        [::std::mem::offset_of!(OBPresetResolutionConfig, depthDecimationFactor) - 8usize];
};
pub type ob_preset_resolution_ratio_config = OBPresetResolutionConfig;
#[doc = " @brief calibration parameters"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OBCalibrationParam {
    #[doc = "< Sensor internal parameters"]
    pub intrinsics: [OBCameraIntrinsic; 10usize],
    #[doc = "< Sensor distortion"]
    pub distortion: [OBCameraDistortion; 10usize],
    pub extrinsics: [[OBExtrinsic; 10usize]; 10usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBCalibrationParam"][::std::mem::size_of::<OBCalibrationParam>() - 5360usize];
    ["Alignment of OBCalibrationParam"][::std::mem::align_of::<OBCalibrationParam>() - 1usize];
    ["Offset of field: OBCalibrationParam::intrinsics"]
        [::std::mem::offset_of!(OBCalibrationParam, intrinsics) - 0usize];
    ["Offset of field: OBCalibrationParam::distortion"]
        [::std::mem::offset_of!(OBCalibrationParam, distortion) - 200usize];
    ["Offset of field: OBCalibrationParam::extrinsics"]
        [::std::mem::offset_of!(OBCalibrationParam, extrinsics) - 560usize];
};
#[doc = " @brief calibration parameters"]
pub type ob_calibration_param = OBCalibrationParam;
#[doc = " @brief Configuration for depth margin filter"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct ob_margin_filter_config {
    #[doc = "< Horizontal threshold settings"]
    pub margin_x_th: ::std::os::raw::c_int,
    #[doc = "< Vertical threshold settings"]
    pub margin_y_th: ::std::os::raw::c_int,
    #[doc = "< Maximum horizontal threshold"]
    pub limit_x_th: ::std::os::raw::c_int,
    #[doc = "< Maximum vertical threshold"]
    pub limit_y_th: ::std::os::raw::c_int,
    #[doc = "< Image width"]
    pub width: u32,
    #[doc = "< Image height"]
    pub height: u32,
    #[doc = "< Set to true for horizontal and vertical, false for horizontal only"]
    pub enable_direction: bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of ob_margin_filter_config"][::std::mem::size_of::<ob_margin_filter_config>() - 25usize];
    ["Alignment of ob_margin_filter_config"]
        [::std::mem::align_of::<ob_margin_filter_config>() - 1usize];
    ["Offset of field: ob_margin_filter_config::margin_x_th"]
        [::std::mem::offset_of!(ob_margin_filter_config, margin_x_th) - 0usize];
    ["Offset of field: ob_margin_filter_config::margin_y_th"]
        [::std::mem::offset_of!(ob_margin_filter_config, margin_y_th) - 4usize];
    ["Offset of field: ob_margin_filter_config::limit_x_th"]
        [::std::mem::offset_of!(ob_margin_filter_config, limit_x_th) - 8usize];
    ["Offset of field: ob_margin_filter_config::limit_y_th"]
        [::std::mem::offset_of!(ob_margin_filter_config, limit_y_th) - 12usize];
    ["Offset of field: ob_margin_filter_config::width"]
        [::std::mem::offset_of!(ob_margin_filter_config, width) - 16usize];
    ["Offset of field: ob_margin_filter_config::height"]
        [::std::mem::offset_of!(ob_margin_filter_config, height) - 20usize];
    ["Offset of field: ob_margin_filter_config::enable_direction"]
        [::std::mem::offset_of!(ob_margin_filter_config, enable_direction) - 24usize];
};
#[doc = " @brief Configuration for depth margin filter"]
pub type OBMarginFilterConfig = ob_margin_filter_config;
#[doc = " @brief Configuration for mgc filter"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBMGCFilterConfig {
    pub width: u32,
    pub height: u32,
    pub max_width_left: ::std::os::raw::c_int,
    pub max_width_right: ::std::os::raw::c_int,
    pub max_radius: ::std::os::raw::c_int,
    pub margin_x_th: ::std::os::raw::c_int,
    pub margin_y_th: ::std::os::raw::c_int,
    pub limit_x_th: ::std::os::raw::c_int,
    pub limit_y_th: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBMGCFilterConfig"][::std::mem::size_of::<OBMGCFilterConfig>() - 36usize];
    ["Alignment of OBMGCFilterConfig"][::std::mem::align_of::<OBMGCFilterConfig>() - 1usize];
    ["Offset of field: OBMGCFilterConfig::width"]
        [::std::mem::offset_of!(OBMGCFilterConfig, width) - 0usize];
    ["Offset of field: OBMGCFilterConfig::height"]
        [::std::mem::offset_of!(OBMGCFilterConfig, height) - 4usize];
    ["Offset of field: OBMGCFilterConfig::max_width_left"]
        [::std::mem::offset_of!(OBMGCFilterConfig, max_width_left) - 8usize];
    ["Offset of field: OBMGCFilterConfig::max_width_right"]
        [::std::mem::offset_of!(OBMGCFilterConfig, max_width_right) - 12usize];
    ["Offset of field: OBMGCFilterConfig::max_radius"]
        [::std::mem::offset_of!(OBMGCFilterConfig, max_radius) - 16usize];
    ["Offset of field: OBMGCFilterConfig::margin_x_th"]
        [::std::mem::offset_of!(OBMGCFilterConfig, margin_x_th) - 20usize];
    ["Offset of field: OBMGCFilterConfig::margin_y_th"]
        [::std::mem::offset_of!(OBMGCFilterConfig, margin_y_th) - 24usize];
    ["Offset of field: OBMGCFilterConfig::limit_x_th"]
        [::std::mem::offset_of!(OBMGCFilterConfig, limit_x_th) - 28usize];
    ["Offset of field: OBMGCFilterConfig::limit_y_th"]
        [::std::mem::offset_of!(OBMGCFilterConfig, limit_y_th) - 32usize];
};
#[doc = " @brief Configuration for mgc filter"]
pub type ob_mgc_filter_config = OBMGCFilterConfig;
#[doc = "< Turn off alignment"]
pub const OBAlignMode_ALIGN_DISABLE: OBAlignMode = 0;
#[doc = "< Hardware D2C alignment mode"]
pub const OBAlignMode_ALIGN_D2C_HW_MODE: OBAlignMode = 1;
#[doc = "< Software D2C alignment mode"]
pub const OBAlignMode_ALIGN_D2C_SW_MODE: OBAlignMode = 2;
#[doc = " @brief Alignment mode"]
pub type OBAlignMode = i32;
#[doc = " @brief Alignment mode"]
pub use self::OBAlignMode as ob_align_mode;
#[doc = "< Camera adaptive mode"]
pub const OBCameraPerformanceMode_ADAPTIVE_PERFORMANCE_MODE: OBCameraPerformanceMode = 0;
#[doc = "< High Performance Mode"]
pub const OBCameraPerformanceMode_HIGH_PERFORMANCE_MODE: OBCameraPerformanceMode = 1;
#[doc = " @brief Camera performance mode"]
pub type OBCameraPerformanceMode = i32;
#[doc = " @brief Camera performance mode"]
pub use self::OBCameraPerformanceMode as ob_camera_performance_mode;
#[doc = " @brief Rectangle"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBRect {
    #[doc = "< Origin coordinate x"]
    pub x: u32,
    #[doc = "< Origin coordinate y"]
    pub y: u32,
    #[doc = "< Rectangle width"]
    pub width: u32,
    #[doc = "< Rectangle height"]
    pub height: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBRect"][::std::mem::size_of::<OBRect>() - 16usize];
    ["Alignment of OBRect"][::std::mem::align_of::<OBRect>() - 1usize];
    ["Offset of field: OBRect::x"][::std::mem::offset_of!(OBRect, x) - 0usize];
    ["Offset of field: OBRect::y"][::std::mem::offset_of!(OBRect, y) - 4usize];
    ["Offset of field: OBRect::width"][::std::mem::offset_of!(OBRect, width) - 8usize];
    ["Offset of field: OBRect::height"][::std::mem::offset_of!(OBRect, height) - 12usize];
};
#[doc = " @brief Rectangle"]
pub type ob_rect = OBRect;
#[doc = "< YUYV to RGB"]
pub const OBConvertFormat_FORMAT_YUYV_TO_RGB: OBConvertFormat = 0;
#[doc = "< I420 to RGB"]
pub const OBConvertFormat_FORMAT_I420_TO_RGB: OBConvertFormat = 1;
#[doc = "< NV21 to RGB"]
pub const OBConvertFormat_FORMAT_NV21_TO_RGB: OBConvertFormat = 2;
#[doc = "< NV12 to RGB"]
pub const OBConvertFormat_FORMAT_NV12_TO_RGB: OBConvertFormat = 3;
#[doc = "< MJPG to I420"]
pub const OBConvertFormat_FORMAT_MJPG_TO_I420: OBConvertFormat = 4;
#[doc = "< RGB888 to BGR"]
pub const OBConvertFormat_FORMAT_RGB_TO_BGR: OBConvertFormat = 5;
#[doc = "< MJPG to NV21"]
pub const OBConvertFormat_FORMAT_MJPG_TO_NV21: OBConvertFormat = 6;
#[doc = "< MJPG to RGB"]
pub const OBConvertFormat_FORMAT_MJPG_TO_RGB: OBConvertFormat = 7;
#[doc = "< MJPG to BGR"]
pub const OBConvertFormat_FORMAT_MJPG_TO_BGR: OBConvertFormat = 8;
#[doc = "< MJPG to BGRA"]
pub const OBConvertFormat_FORMAT_MJPG_TO_BGRA: OBConvertFormat = 9;
#[doc = "< UYVY to RGB"]
pub const OBConvertFormat_FORMAT_UYVY_TO_RGB: OBConvertFormat = 10;
#[doc = "< BGR to RGB"]
pub const OBConvertFormat_FORMAT_BGR_TO_RGB: OBConvertFormat = 11;
#[doc = "< MJPG to NV12"]
pub const OBConvertFormat_FORMAT_MJPG_TO_NV12: OBConvertFormat = 12;
#[doc = "< YUYV to BGR"]
pub const OBConvertFormat_FORMAT_YUYV_TO_BGR: OBConvertFormat = 13;
#[doc = "< YUYV to RGBA"]
pub const OBConvertFormat_FORMAT_YUYV_TO_RGBA: OBConvertFormat = 14;
#[doc = "< YUYV to BGRA"]
pub const OBConvertFormat_FORMAT_YUYV_TO_BGRA: OBConvertFormat = 15;
#[doc = "< YUYV to Y16"]
pub const OBConvertFormat_FORMAT_YUYV_TO_Y16: OBConvertFormat = 16;
#[doc = "< YUYV to Y8"]
pub const OBConvertFormat_FORMAT_YUYV_TO_Y8: OBConvertFormat = 17;
#[doc = "< RGBA to RGB"]
pub const OBConvertFormat_FORMAT_RGBA_TO_RGB: OBConvertFormat = 18;
#[doc = "< BGRA to BGR"]
pub const OBConvertFormat_FORMAT_BGRA_TO_BGR: OBConvertFormat = 19;
#[doc = "< Y16 to RGB"]
pub const OBConvertFormat_FORMAT_Y16_TO_RGB: OBConvertFormat = 20;
#[doc = "< Y8 to RGB"]
pub const OBConvertFormat_FORMAT_Y8_TO_RGB: OBConvertFormat = 21;
#[doc = " @brief Enumeration of format conversion types"]
pub type OBConvertFormat = i32;
#[doc = " @brief Enumeration of format conversion types"]
pub use self::OBConvertFormat as ob_convert_format;
pub const OBIMUSampleRate_OB_SAMPLE_RATE_UNKNOWN: OBIMUSampleRate = 0;
#[doc = "< 1.5625Hz"]
pub const OBIMUSampleRate_OB_SAMPLE_RATE_1_5625_HZ: OBIMUSampleRate = 1;
#[doc = "< 3.125Hz"]
pub const OBIMUSampleRate_OB_SAMPLE_RATE_3_125_HZ: OBIMUSampleRate = 2;
#[doc = "< 6.25Hz"]
pub const OBIMUSampleRate_OB_SAMPLE_RATE_6_25_HZ: OBIMUSampleRate = 3;
#[doc = "< 12.5Hz"]
pub const OBIMUSampleRate_OB_SAMPLE_RATE_12_5_HZ: OBIMUSampleRate = 4;
#[doc = "< 25Hz"]
pub const OBIMUSampleRate_OB_SAMPLE_RATE_25_HZ: OBIMUSampleRate = 5;
#[doc = "< 50Hz"]
pub const OBIMUSampleRate_OB_SAMPLE_RATE_50_HZ: OBIMUSampleRate = 6;
#[doc = "< 100Hz"]
pub const OBIMUSampleRate_OB_SAMPLE_RATE_100_HZ: OBIMUSampleRate = 7;
#[doc = "< 200Hz"]
pub const OBIMUSampleRate_OB_SAMPLE_RATE_200_HZ: OBIMUSampleRate = 8;
#[doc = "< 500Hz"]
pub const OBIMUSampleRate_OB_SAMPLE_RATE_500_HZ: OBIMUSampleRate = 9;
#[doc = "< 1KHz"]
pub const OBIMUSampleRate_OB_SAMPLE_RATE_1_KHZ: OBIMUSampleRate = 10;
#[doc = "< 2KHz"]
pub const OBIMUSampleRate_OB_SAMPLE_RATE_2_KHZ: OBIMUSampleRate = 11;
#[doc = "< 4KHz"]
pub const OBIMUSampleRate_OB_SAMPLE_RATE_4_KHZ: OBIMUSampleRate = 12;
#[doc = "< 8KHz"]
pub const OBIMUSampleRate_OB_SAMPLE_RATE_8_KHZ: OBIMUSampleRate = 13;
#[doc = "< 16KHz"]
pub const OBIMUSampleRate_OB_SAMPLE_RATE_16_KHZ: OBIMUSampleRate = 14;
#[doc = "< 32Hz"]
pub const OBIMUSampleRate_OB_SAMPLE_RATE_32_KHZ: OBIMUSampleRate = 15;
#[doc = "< 400Hz"]
pub const OBIMUSampleRate_OB_SAMPLE_RATE_400_HZ: OBIMUSampleRate = 16;
#[doc = "< 800Hz"]
pub const OBIMUSampleRate_OB_SAMPLE_RATE_800_HZ: OBIMUSampleRate = 17;
#[doc = " @brief Enumeration of IMU sample rate values (gyroscope or accelerometer)"]
pub type OBIMUSampleRate = i32;
#[doc = " @brief Enumeration of IMU sample rate values (gyroscope or accelerometer)"]
pub use self::OBIMUSampleRate as OBGyroSampleRate;
#[doc = " @brief Enumeration of IMU sample rate values (gyroscope or accelerometer)"]
pub use self::OBIMUSampleRate as ob_gyro_sample_rate;
#[doc = " @brief Enumeration of IMU sample rate values (gyroscope or accelerometer)"]
pub use self::OBIMUSampleRate as OBAccelSampleRate;
#[doc = " @brief Enumeration of IMU sample rate values (gyroscope or accelerometer)"]
pub use self::OBIMUSampleRate as ob_accel_sample_rate;
#[doc = " @brief Enumeration of IMU sample rate values (gyroscope or accelerometer)"]
pub use self::OBIMUSampleRate as OB_SAMPLE_RATE;
pub const OBGyroFullScaleRange_OB_GYRO_FS_UNKNOWN: OBGyroFullScaleRange = -1;
#[doc = "< 16 degrees per second"]
pub const OBGyroFullScaleRange_OB_GYRO_FS_16dps: OBGyroFullScaleRange = 1;
#[doc = "< 31 degrees per second"]
pub const OBGyroFullScaleRange_OB_GYRO_FS_31dps: OBGyroFullScaleRange = 2;
#[doc = "< 62 degrees per second"]
pub const OBGyroFullScaleRange_OB_GYRO_FS_62dps: OBGyroFullScaleRange = 3;
#[doc = "< 125 degrees per second"]
pub const OBGyroFullScaleRange_OB_GYRO_FS_125dps: OBGyroFullScaleRange = 4;
#[doc = "< 250 degrees per second"]
pub const OBGyroFullScaleRange_OB_GYRO_FS_250dps: OBGyroFullScaleRange = 5;
#[doc = "< 500 degrees per second"]
pub const OBGyroFullScaleRange_OB_GYRO_FS_500dps: OBGyroFullScaleRange = 6;
#[doc = "< 1000 degrees per second"]
pub const OBGyroFullScaleRange_OB_GYRO_FS_1000dps: OBGyroFullScaleRange = 7;
#[doc = "< 2000 degrees per second"]
pub const OBGyroFullScaleRange_OB_GYRO_FS_2000dps: OBGyroFullScaleRange = 8;
#[doc = "< 400 degrees per second"]
pub const OBGyroFullScaleRange_OB_GYRO_FS_400dps: OBGyroFullScaleRange = 9;
#[doc = "< 800 degrees per second"]
pub const OBGyroFullScaleRange_OB_GYRO_FS_800dps: OBGyroFullScaleRange = 10;
#[doc = " @brief Enumeration of gyroscope ranges"]
pub type OBGyroFullScaleRange = i32;
#[doc = " @brief Enumeration of gyroscope ranges"]
pub use self::OBGyroFullScaleRange as ob_gyro_full_scale_range;
#[doc = " @brief Enumeration of gyroscope ranges"]
pub use self::OBGyroFullScaleRange as OB_GYRO_FULL_SCALE_RANGE;
pub const OBAccelFullScaleRange_OB_ACCEL_FS_UNKNOWN: OBAccelFullScaleRange = -1;
#[doc = "< 1x the acceleration of gravity"]
pub const OBAccelFullScaleRange_OB_ACCEL_FS_2g: OBAccelFullScaleRange = 1;
#[doc = "< 4x the acceleration of gravity"]
pub const OBAccelFullScaleRange_OB_ACCEL_FS_4g: OBAccelFullScaleRange = 2;
#[doc = "< 8x the acceleration of gravity"]
pub const OBAccelFullScaleRange_OB_ACCEL_FS_8g: OBAccelFullScaleRange = 3;
#[doc = "< 16x the acceleration of gravity"]
pub const OBAccelFullScaleRange_OB_ACCEL_FS_16g: OBAccelFullScaleRange = 4;
#[doc = "< 3x the acceleration of gravity"]
pub const OBAccelFullScaleRange_OB_ACCEL_FS_3g: OBAccelFullScaleRange = 5;
#[doc = "< 6x the acceleration of gravity"]
pub const OBAccelFullScaleRange_OB_ACCEL_FS_6g: OBAccelFullScaleRange = 6;
#[doc = "< 12x the acceleration of gravity"]
pub const OBAccelFullScaleRange_OB_ACCEL_FS_12g: OBAccelFullScaleRange = 7;
#[doc = "< 24x the acceleration of gravity"]
pub const OBAccelFullScaleRange_OB_ACCEL_FS_24g: OBAccelFullScaleRange = 8;
#[doc = " @brief Enumeration of accelerometer ranges"]
pub type OBAccelFullScaleRange = i32;
#[doc = " @brief Enumeration of accelerometer ranges"]
pub use self::OBAccelFullScaleRange as ob_accel_full_scale_range;
#[doc = " @brief Enumeration of accelerometer ranges"]
pub use self::OBAccelFullScaleRange as OB_ACCEL_FULL_SCALE_RANGE;
#[doc = " @brief Data structures for accelerometers and gyroscopes"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBAccelValue {
    #[doc = "< X-direction component"]
    pub x: f32,
    #[doc = "< Y-direction component"]
    pub y: f32,
    #[doc = "< Z-direction component"]
    pub z: f32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBAccelValue"][::std::mem::size_of::<OBAccelValue>() - 12usize];
    ["Alignment of OBAccelValue"][::std::mem::align_of::<OBAccelValue>() - 1usize];
    ["Offset of field: OBAccelValue::x"][::std::mem::offset_of!(OBAccelValue, x) - 0usize];
    ["Offset of field: OBAccelValue::y"][::std::mem::offset_of!(OBAccelValue, y) - 4usize];
    ["Offset of field: OBAccelValue::z"][::std::mem::offset_of!(OBAccelValue, z) - 8usize];
};
#[doc = " @brief Data structures for accelerometers and gyroscopes"]
pub type OBGyroValue = OBAccelValue;
#[doc = " @brief Data structures for accelerometers and gyroscopes"]
pub type OBFloat3D = OBAccelValue;
#[doc = " @brief Data structures for accelerometers and gyroscopes"]
pub type ob_accel_value = OBAccelValue;
#[doc = " @brief Data structures for accelerometers and gyroscopes"]
pub type ob_gyro_value = OBAccelValue;
#[doc = " @brief Data structures for accelerometers and gyroscopes"]
pub type ob_float_3d = OBAccelValue;
#[doc = " @brief Device state"]
pub type OBDeviceState = u64;
#[doc = " @brief Device state"]
pub type ob_device_state = u64;
#[doc = " @brief Temperature parameters of the device (unit: Celsius)"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBDeviceTemperature {
    #[doc = "< CPU temperature"]
    pub cpuTemp: f32,
    #[doc = "< IR temperature"]
    pub irTemp: f32,
    #[doc = "< Laser temperature"]
    pub ldmTemp: f32,
    #[doc = "< Motherboard temperature"]
    pub mainBoardTemp: f32,
    #[doc = "< TEC temperature"]
    pub tecTemp: f32,
    #[doc = "< IMU temperature"]
    pub imuTemp: f32,
    #[doc = "< RGB temperature"]
    pub rgbTemp: f32,
    #[doc = "< Left IR temperature"]
    pub irLeftTemp: f32,
    #[doc = "< Right IR temperature"]
    pub irRightTemp: f32,
    #[doc = "< MX6600 top temperature"]
    pub chipTopTemp: f32,
    #[doc = "< MX6600 bottom temperature"]
    pub chipBottomTemp: f32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBDeviceTemperature"][::std::mem::size_of::<OBDeviceTemperature>() - 44usize];
    ["Alignment of OBDeviceTemperature"][::std::mem::align_of::<OBDeviceTemperature>() - 1usize];
    ["Offset of field: OBDeviceTemperature::cpuTemp"]
        [::std::mem::offset_of!(OBDeviceTemperature, cpuTemp) - 0usize];
    ["Offset of field: OBDeviceTemperature::irTemp"]
        [::std::mem::offset_of!(OBDeviceTemperature, irTemp) - 4usize];
    ["Offset of field: OBDeviceTemperature::ldmTemp"]
        [::std::mem::offset_of!(OBDeviceTemperature, ldmTemp) - 8usize];
    ["Offset of field: OBDeviceTemperature::mainBoardTemp"]
        [::std::mem::offset_of!(OBDeviceTemperature, mainBoardTemp) - 12usize];
    ["Offset of field: OBDeviceTemperature::tecTemp"]
        [::std::mem::offset_of!(OBDeviceTemperature, tecTemp) - 16usize];
    ["Offset of field: OBDeviceTemperature::imuTemp"]
        [::std::mem::offset_of!(OBDeviceTemperature, imuTemp) - 20usize];
    ["Offset of field: OBDeviceTemperature::rgbTemp"]
        [::std::mem::offset_of!(OBDeviceTemperature, rgbTemp) - 24usize];
    ["Offset of field: OBDeviceTemperature::irLeftTemp"]
        [::std::mem::offset_of!(OBDeviceTemperature, irLeftTemp) - 28usize];
    ["Offset of field: OBDeviceTemperature::irRightTemp"]
        [::std::mem::offset_of!(OBDeviceTemperature, irRightTemp) - 32usize];
    ["Offset of field: OBDeviceTemperature::chipTopTemp"]
        [::std::mem::offset_of!(OBDeviceTemperature, chipTopTemp) - 36usize];
    ["Offset of field: OBDeviceTemperature::chipBottomTemp"]
        [::std::mem::offset_of!(OBDeviceTemperature, chipBottomTemp) - 40usize];
};
#[doc = " @brief Temperature parameters of the device (unit: Celsius)"]
pub type ob_device_temperature = OBDeviceTemperature;
#[doc = " @brief Temperature parameters of the device (unit: Celsius)"]
pub type DEVICE_TEMPERATURE = OBDeviceTemperature;
#[doc = "< Automatic mode"]
pub const OBDepthCroppingMode_DEPTH_CROPPING_MODE_AUTO: OBDepthCroppingMode = 0;
#[doc = "< Close crop"]
pub const OBDepthCroppingMode_DEPTH_CROPPING_MODE_CLOSE: OBDepthCroppingMode = 1;
#[doc = "< Open crop"]
pub const OBDepthCroppingMode_DEPTH_CROPPING_MODE_OPEN: OBDepthCroppingMode = 2;
#[doc = " @brief Enumeration for depth crop modes"]
pub type OBDepthCroppingMode = i32;
#[doc = " @brief Enumeration for depth crop modes"]
pub use self::OBDepthCroppingMode as ob_depth_cropping_mode;
#[doc = " @brief Enumeration for depth crop modes"]
pub use self::OBDepthCroppingMode as OB_DEPTH_CROPPING_MODE;
#[doc = "< Unknown device type"]
pub const OBDeviceType_OB_DEVICE_TYPE_UNKNOWN: OBDeviceType = -1;
#[doc = "< Monocular structured light camera"]
pub const OBDeviceType_OB_STRUCTURED_LIGHT_MONOCULAR_CAMERA: OBDeviceType = 0;
#[doc = "< Binocular structured light camera"]
pub const OBDeviceType_OB_STRUCTURED_LIGHT_BINOCULAR_CAMERA: OBDeviceType = 1;
#[doc = "< Time-of-flight camera"]
pub const OBDeviceType_OB_TOF_CAMERA: OBDeviceType = 2;
#[doc = " @brief Enumeration for device types"]
pub type OBDeviceType = i32;
#[doc = " @brief Enumeration for device types"]
pub use self::OBDeviceType as ob_device_type;
#[doc = " @brief Enumeration for device types"]
pub use self::OBDeviceType as OB_DEVICE_TYPE;
#[doc = "< Color stream"]
pub const OBMediaType_OB_MEDIA_COLOR_STREAM: OBMediaType = 1;
#[doc = "< Depth stream"]
pub const OBMediaType_OB_MEDIA_DEPTH_STREAM: OBMediaType = 2;
#[doc = "< Infrared stream"]
pub const OBMediaType_OB_MEDIA_IR_STREAM: OBMediaType = 4;
#[doc = "< Gyroscope stream"]
pub const OBMediaType_OB_MEDIA_GYRO_STREAM: OBMediaType = 8;
#[doc = "< Accelerometer stream"]
pub const OBMediaType_OB_MEDIA_ACCEL_STREAM: OBMediaType = 16;
#[doc = "< Camera parameter"]
pub const OBMediaType_OB_MEDIA_CAMERA_PARAM: OBMediaType = 32;
#[doc = "< Device information"]
pub const OBMediaType_OB_MEDIA_DEVICE_INFO: OBMediaType = 64;
#[doc = "< Stream information"]
pub const OBMediaType_OB_MEDIA_STREAM_INFO: OBMediaType = 128;
#[doc = "< Left infrared stream"]
pub const OBMediaType_OB_MEDIA_IR_LEFT_STREAM: OBMediaType = 256;
#[doc = "< Right infrared stream"]
pub const OBMediaType_OB_MEDIA_IR_RIGHT_STREAM: OBMediaType = 512;
pub const OBMediaType_OB_MEDIA_ALL: OBMediaType = 1023;
#[doc = " @brief Enumeration for types of media to record or playback"]
pub type OBMediaType = i32;
#[doc = " @brief Enumeration for types of media to record or playback"]
pub use self::OBMediaType as ob_media_type;
#[doc = " @brief Enumeration for types of media to record or playback"]
pub use self::OBMediaType as OB_MEDIA_TYPE;
#[doc = "< Begin"]
pub const OBMediaState_OB_MEDIA_BEGIN: OBMediaState = 0;
#[doc = "< Pause"]
pub const OBMediaState_OB_MEDIA_PAUSE: OBMediaState = 1;
#[doc = "< Resume"]
pub const OBMediaState_OB_MEDIA_RESUME: OBMediaState = 2;
#[doc = "< End"]
pub const OBMediaState_OB_MEDIA_END: OBMediaState = 3;
#[doc = " @brief Enumeration for record playback status"]
pub type OBMediaState = i32;
#[doc = " @brief Enumeration for record playback status"]
pub use self::OBMediaState as ob_media_state;
#[doc = " @brief Enumeration for record playback status"]
pub use self::OBMediaState as OB_MEDIA_STATE_EM;
#[doc = "< 1mm"]
pub const OBDepthPrecisionLevel_OB_PRECISION_1MM: OBDepthPrecisionLevel = 0;
#[doc = "< 0.8mm"]
pub const OBDepthPrecisionLevel_OB_PRECISION_0MM8: OBDepthPrecisionLevel = 1;
#[doc = "< 0.4mm"]
pub const OBDepthPrecisionLevel_OB_PRECISION_0MM4: OBDepthPrecisionLevel = 2;
#[doc = "< 0.1mm"]
pub const OBDepthPrecisionLevel_OB_PRECISION_0MM1: OBDepthPrecisionLevel = 3;
#[doc = "< 0.2mm"]
pub const OBDepthPrecisionLevel_OB_PRECISION_0MM2: OBDepthPrecisionLevel = 4;
#[doc = "< 0.5mm"]
pub const OBDepthPrecisionLevel_OB_PRECISION_0MM5: OBDepthPrecisionLevel = 5;
#[doc = "< 0.05mm"]
pub const OBDepthPrecisionLevel_OB_PRECISION_0MM05: OBDepthPrecisionLevel = 6;
pub const OBDepthPrecisionLevel_OB_PRECISION_UNKNOWN: OBDepthPrecisionLevel = 7;
pub const OBDepthPrecisionLevel_OB_PRECISION_COUNT: OBDepthPrecisionLevel = 8;
#[doc = " @brief Enumeration for depth precision levels\n @attention The depth precision level does not completely determine the depth unit and real precision, and the influence of the data packaging format needs to\n be considered. The specific unit can be obtained through getValueScale() of DepthFrame"]
pub type OBDepthPrecisionLevel = i32;
#[doc = " @brief Enumeration for depth precision levels\n @attention The depth precision level does not completely determine the depth unit and real precision, and the influence of the data packaging format needs to\n be considered. The specific unit can be obtained through getValueScale() of DepthFrame"]
pub use self::OBDepthPrecisionLevel as ob_depth_precision_level;
#[doc = " @brief Enumeration for depth precision levels\n @attention The depth precision level does not completely determine the depth unit and real precision, and the influence of the data packaging format needs to\n be considered. The specific unit can be obtained through getValueScale() of DepthFrame"]
pub use self::OBDepthPrecisionLevel as OB_DEPTH_PRECISION_LEVEL;
#[doc = " @brief Enumeration for depth precision levels\n @attention The depth precision level does not completely determine the depth unit and real precision, and the influence of the data packaging format needs to\n be considered. The specific unit can be obtained through getValueScale() of DepthFrame"]
pub use self::OBDepthPrecisionLevel as OBDepthUnit;
#[doc = " @brief Enumeration for depth precision levels\n @attention The depth precision level does not completely determine the depth unit and real precision, and the influence of the data packaging format needs to\n be considered. The specific unit can be obtained through getValueScale() of DepthFrame"]
pub use self::OBDepthPrecisionLevel as ob_depth_unit;
#[doc = " @brief disparity parameters for disparity based camera\n"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBDisparityParam {
    pub zpd: f64,
    pub zpps: f64,
    pub baseline: f32,
    pub fx: f64,
    pub bitSize: u8,
    pub unit: f32,
    pub minDisparity: f32,
    pub packMode: u8,
    pub dispOffset: f32,
    pub invalidDisp: i32,
    pub dispIntPlace: i32,
    pub isDualCamera: u8,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBDisparityParam"][::std::mem::size_of::<OBDisparityParam>() - 51usize];
    ["Alignment of OBDisparityParam"][::std::mem::align_of::<OBDisparityParam>() - 1usize];
    ["Offset of field: OBDisparityParam::zpd"]
        [::std::mem::offset_of!(OBDisparityParam, zpd) - 0usize];
    ["Offset of field: OBDisparityParam::zpps"]
        [::std::mem::offset_of!(OBDisparityParam, zpps) - 8usize];
    ["Offset of field: OBDisparityParam::baseline"]
        [::std::mem::offset_of!(OBDisparityParam, baseline) - 16usize];
    ["Offset of field: OBDisparityParam::fx"]
        [::std::mem::offset_of!(OBDisparityParam, fx) - 20usize];
    ["Offset of field: OBDisparityParam::bitSize"]
        [::std::mem::offset_of!(OBDisparityParam, bitSize) - 28usize];
    ["Offset of field: OBDisparityParam::unit"]
        [::std::mem::offset_of!(OBDisparityParam, unit) - 29usize];
    ["Offset of field: OBDisparityParam::minDisparity"]
        [::std::mem::offset_of!(OBDisparityParam, minDisparity) - 33usize];
    ["Offset of field: OBDisparityParam::packMode"]
        [::std::mem::offset_of!(OBDisparityParam, packMode) - 37usize];
    ["Offset of field: OBDisparityParam::dispOffset"]
        [::std::mem::offset_of!(OBDisparityParam, dispOffset) - 38usize];
    ["Offset of field: OBDisparityParam::invalidDisp"]
        [::std::mem::offset_of!(OBDisparityParam, invalidDisp) - 42usize];
    ["Offset of field: OBDisparityParam::dispIntPlace"]
        [::std::mem::offset_of!(OBDisparityParam, dispIntPlace) - 46usize];
    ["Offset of field: OBDisparityParam::isDualCamera"]
        [::std::mem::offset_of!(OBDisparityParam, isDualCamera) - 50usize];
};
#[doc = " @brief disparity parameters for disparity based camera\n"]
pub type ob_disparity_param = OBDisparityParam;
#[doc = "< Close range"]
pub const OBTofFilterRange_OB_TOF_FILTER_RANGE_CLOSE: OBTofFilterRange = 0;
#[doc = "< Middle range"]
pub const OBTofFilterRange_OB_TOF_FILTER_RANGE_MIDDLE: OBTofFilterRange = 1;
#[doc = "< Long range"]
pub const OBTofFilterRange_OB_TOF_FILTER_RANGE_LONG: OBTofFilterRange = 2;
#[doc = "< Debug range"]
pub const OBTofFilterRange_OB_TOF_FILTER_RANGE_DEBUG: OBTofFilterRange = 100;
#[doc = " @brief Enumeration for TOF filter scene ranges"]
pub type OBTofFilterRange = i32;
#[doc = " @brief Enumeration for TOF filter scene ranges"]
pub use self::OBTofFilterRange as ob_tof_filter_range;
#[doc = " @brief Enumeration for TOF filter scene ranges"]
pub use self::OBTofFilterRange as TOF_FILTER_RANGE;
#[doc = " @brief 3D point structure in the SDK"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBPoint {
    #[doc = "< X coordinate"]
    pub x: f32,
    #[doc = "< Y coordinate"]
    pub y: f32,
    #[doc = "< Z coordinate"]
    pub z: f32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBPoint"][::std::mem::size_of::<OBPoint>() - 12usize];
    ["Alignment of OBPoint"][::std::mem::align_of::<OBPoint>() - 1usize];
    ["Offset of field: OBPoint::x"][::std::mem::offset_of!(OBPoint, x) - 0usize];
    ["Offset of field: OBPoint::y"][::std::mem::offset_of!(OBPoint, y) - 4usize];
    ["Offset of field: OBPoint::z"][::std::mem::offset_of!(OBPoint, z) - 8usize];
};
#[doc = " @brief 3D point structure in the SDK"]
pub type ob_point = OBPoint;
#[doc = " @brief 3D point structure in the SDK"]
pub type OBPoint3f = OBPoint;
#[doc = " @brief 3D point structure in the SDK"]
pub type ob_point3f = OBPoint;
#[doc = " @brief 2D point structure in the SDK"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBPoint2f {
    #[doc = "< X coordinate"]
    pub x: f32,
    #[doc = "< Y coordinate"]
    pub y: f32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBPoint2f"][::std::mem::size_of::<OBPoint2f>() - 8usize];
    ["Alignment of OBPoint2f"][::std::mem::align_of::<OBPoint2f>() - 1usize];
    ["Offset of field: OBPoint2f::x"][::std::mem::offset_of!(OBPoint2f, x) - 0usize];
    ["Offset of field: OBPoint2f::y"][::std::mem::offset_of!(OBPoint2f, y) - 4usize];
};
#[doc = " @brief 2D point structure in the SDK"]
pub type ob_point2f = OBPoint2f;
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBXYTables {
    #[doc = "< table used to compute X coordinate"]
    pub xTable: *mut f32,
    #[doc = "< table used to compute Y coordinate"]
    pub yTable: *mut f32,
    #[doc = "< width of x and y tables"]
    pub width: ::std::os::raw::c_int,
    #[doc = "< height of x and y tables"]
    pub height: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBXYTables"][::std::mem::size_of::<OBXYTables>() - 24usize];
    ["Alignment of OBXYTables"][::std::mem::align_of::<OBXYTables>() - 1usize];
    ["Offset of field: OBXYTables::xTable"][::std::mem::offset_of!(OBXYTables, xTable) - 0usize];
    ["Offset of field: OBXYTables::yTable"][::std::mem::offset_of!(OBXYTables, yTable) - 8usize];
    ["Offset of field: OBXYTables::width"][::std::mem::offset_of!(OBXYTables, width) - 16usize];
    ["Offset of field: OBXYTables::height"][::std::mem::offset_of!(OBXYTables, height) - 20usize];
};
pub type ob_xy_tables = OBXYTables;
#[doc = " @brief 3D point structure with color information"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBColorPoint {
    #[doc = "< X coordinate"]
    pub x: f32,
    #[doc = "< Y coordinate"]
    pub y: f32,
    #[doc = "< Z coordinate"]
    pub z: f32,
    #[doc = "< Red channel component"]
    pub r: f32,
    #[doc = "< Green channel component"]
    pub g: f32,
    #[doc = "< Blue channel component"]
    pub b: f32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBColorPoint"][::std::mem::size_of::<OBColorPoint>() - 24usize];
    ["Alignment of OBColorPoint"][::std::mem::align_of::<OBColorPoint>() - 1usize];
    ["Offset of field: OBColorPoint::x"][::std::mem::offset_of!(OBColorPoint, x) - 0usize];
    ["Offset of field: OBColorPoint::y"][::std::mem::offset_of!(OBColorPoint, y) - 4usize];
    ["Offset of field: OBColorPoint::z"][::std::mem::offset_of!(OBColorPoint, z) - 8usize];
    ["Offset of field: OBColorPoint::r"][::std::mem::offset_of!(OBColorPoint, r) - 12usize];
    ["Offset of field: OBColorPoint::g"][::std::mem::offset_of!(OBColorPoint, g) - 16usize];
    ["Offset of field: OBColorPoint::b"][::std::mem::offset_of!(OBColorPoint, b) - 20usize];
};
#[doc = " @brief 3D point structure with color information"]
pub type ob_color_point = OBColorPoint;
#[doc = "< Lossless compression mode"]
pub const OBCompressionMode_OB_COMPRESSION_LOSSLESS: OBCompressionMode = 0;
#[doc = "< Lossy compression mode"]
pub const OBCompressionMode_OB_COMPRESSION_LOSSY: OBCompressionMode = 1;
#[doc = " @brief Compression mode"]
pub type OBCompressionMode = i32;
#[doc = " @brief Compression mode"]
pub use self::OBCompressionMode as ob_compression_mode;
#[doc = " @brief Compression mode"]
pub use self::OBCompressionMode as OB_COMPRESSION_MODE;
#[doc = " Compression Params"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBCompressionParams {
    #[doc = " Lossy compression threshold, range [0~255], recommended value is 9, the higher the threshold, the higher the compression ratio."]
    pub threshold: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBCompressionParams"][::std::mem::size_of::<OBCompressionParams>() - 4usize];
    ["Alignment of OBCompressionParams"][::std::mem::align_of::<OBCompressionParams>() - 1usize];
    ["Offset of field: OBCompressionParams::threshold"]
        [::std::mem::offset_of!(OBCompressionParams, threshold) - 0usize];
};
#[doc = " Compression Params"]
pub type ob_compression_params = OBCompressionParams;
#[doc = " Compression Params"]
pub type OB_COMPRESSION_PARAMS = OBCompressionParams;
#[doc = " @brief TOF Exposure Threshold"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBTofExposureThresholdControl {
    #[doc = "< Upper threshold, unit: ms"]
    pub upper: i32,
    #[doc = "< Lower threshold, unit: ms"]
    pub lower: i32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBTofExposureThresholdControl"]
        [::std::mem::size_of::<OBTofExposureThresholdControl>() - 8usize];
    ["Alignment of OBTofExposureThresholdControl"]
        [::std::mem::align_of::<OBTofExposureThresholdControl>() - 1usize];
    ["Offset of field: OBTofExposureThresholdControl::upper"]
        [::std::mem::offset_of!(OBTofExposureThresholdControl, upper) - 0usize];
    ["Offset of field: OBTofExposureThresholdControl::lower"]
        [::std::mem::offset_of!(OBTofExposureThresholdControl, lower) - 4usize];
};
#[doc = " @brief TOF Exposure Threshold"]
pub type ob_tof_exposure_threshold_control = OBTofExposureThresholdControl;
#[doc = " @brief TOF Exposure Threshold"]
pub type TOF_EXPOSURE_THRESHOLD_CONTROL = OBTofExposureThresholdControl;
#[doc = " @brief Close synchronize mode\n @brief Single device, neither process input trigger signal nor output trigger signal\n @brief Each Sensor in a single device automatically triggers"]
pub const OBSyncMode_OB_SYNC_MODE_CLOSE: OBSyncMode = 0;
#[doc = " @brief Standalone synchronize mode\n @brief Single device, neither process input trigger signal nor output trigger signal\n @brief Inside single device, RGB as Major sensor: RGB -> IR/Depth/TOF"]
pub const OBSyncMode_OB_SYNC_MODE_STANDALONE: OBSyncMode = 1;
#[doc = " @brief Primary synchronize mode\n @brief Primary device. Ignore process input trigger signal, only output trigger signal to secondary devices.\n @brief Inside single device, RGB as Major sensor: RGB -> IR/Depth/TOF"]
pub const OBSyncMode_OB_SYNC_MODE_PRIMARY: OBSyncMode = 2;
#[doc = " @brief Secondary synchronize mode\n @brief Secondary device. Both process input trigger signal and output trigger signal to other devices.\n @brief Different sensors in a single devices receive trigger signals respectively: ext trigger -> RGB && ext trigger -> IR/Depth/TOF\n\n @attention With the current Gemini 2 device set to this mode, each Sensor receives the first external trigger signal\n     after the stream is turned on and starts timing self-triggering at the set frame rate until the stream is turned off"]
pub const OBSyncMode_OB_SYNC_MODE_SECONDARY: OBSyncMode = 3;
#[doc = " @brief MCU Primary synchronize mode\n @brief Primary device. Ignore process input trigger signal, only output trigger signal to secondary devices.\n @brief Inside device, MCU is the primary signal source:  MCU -> RGB && MCU -> IR/Depth/TOF"]
pub const OBSyncMode_OB_SYNC_MODE_PRIMARY_MCU_TRIGGER: OBSyncMode = 4;
#[doc = " @brief IR Primary synchronize mode\n @brief Primary device. Ignore process input trigger signal, only output trigger signal to secondary devices.\n @brief Inside device, IR is the primary signal source: IR/Depth/TOF -> RGB"]
pub const OBSyncMode_OB_SYNC_MODE_PRIMARY_IR_TRIGGER: OBSyncMode = 5;
#[doc = " @brief Software trigger synchronize mode\n @brief Host, triggered by software control (receive the upper computer command trigger), at the same time to the trunk output trigger signal\n @brief Different sensors in a single machine receive trigger signals respectively: soft trigger -> RGB && soft trigger -> IR/Depth/TOF\n\n @attention Support product: Gemini2"]
pub const OBSyncMode_OB_SYNC_MODE_PRIMARY_SOFT_TRIGGER: OBSyncMode = 6;
#[doc = " @brief Software trigger synchronize mode as secondary device\n @brief The slave receives the external trigger signal (the external trigger signal comes from the soft trigger host) and outputs the trigger signal to\n the external relay.\n @brief Different sensors in a single machine receive trigger signals respectively: ext trigger -> RGB && ext  trigger -> IR/Depth/TOF"]
pub const OBSyncMode_OB_SYNC_MODE_SECONDARY_SOFT_TRIGGER: OBSyncMode = 7;
#[doc = " @brief IR and IMU sync signal"]
pub const OBSyncMode_OB_SYNC_MODE_IR_IMU_SYNC: OBSyncMode = 8;
#[doc = " @brief Unknown type"]
pub const OBSyncMode_OB_SYNC_MODE_UNKNOWN: OBSyncMode = 255;
#[doc = " @brief Sync mode\n @deprecated This define is deprecated, please use @ref ob_multi_device_sync_mode instead"]
pub type OBSyncMode = i32;
#[doc = " @brief Sync mode\n @deprecated This define is deprecated, please use @ref ob_multi_device_sync_mode instead"]
pub use self::OBSyncMode as ob_sync_mode;
#[doc = " @brief Sync mode\n @deprecated This define is deprecated, please use @ref ob_multi_device_sync_mode instead"]
pub use self::OBSyncMode as OB_SYNC_MODE;
#[doc = " @brief Device synchronization configuration\n @deprecated This structure is deprecated, please use @ref ob_multi_device_sync_config instead"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBDeviceSyncConfig {
    #[doc = " @brief Device synchronize mode"]
    pub syncMode: OBSyncMode,
    #[doc = " @brief IR Trigger signal input delay: Used to configure the delay between the IR/Depth/TOF Sensor receiving the trigger signal and starting exposure,\n Unit: microsecond\n\n @attention This parameter is invalid when the synchronization MODE is set to @ref OB_SYNC_MODE_PRIMARY_IR_TRIGGER"]
    pub irTriggerSignalInDelay: u16,
    #[doc = " @brief RGB trigger signal input delay is used to configure the delay from the time when an RGB Sensor receives the trigger signal to the time when the\n exposure starts. Unit: microsecond\n\n @attention This parameter is invalid when the synchronization MODE is set to @ref OB_SYNC_MODE_PRIMARY"]
    pub rgbTriggerSignalInDelay: u16,
    #[doc = " @brief Device trigger signal output delay, used to control the delay configuration of the host device to output trigger signals or the slave device to\n output trigger signals. Unit: microsecond\n\n @attention This parameter is invalid when the synchronization MODE is set to @ref OB_SYNC_MODE_CLOSE or @ref OB_SYNC_MODE_STANDALONE"]
    pub deviceTriggerSignalOutDelay: u16,
    #[doc = " @brief The device trigger signal output polarity is used to control the polarity configuration of the trigger signal output from the host device or the\n trigger signal output from the slave device\n @brief 0: forward pulse; 1: negative pulse\n\n @attention This parameter is invalid when the synchronization MODE is set to @ref OB_SYNC_MODE_CLOSE or @ref OB_SYNC_MODE_STANDALONE"]
    pub deviceTriggerSignalOutPolarity: u16,
    #[doc = " @brief MCU trigger frequency, used to configure the output frequency of MCU trigger signal in MCU master mode, unit: Hz\n @brief This configuration will directly affect the image output frame rate of the Sensor. Unit: FPS (frames per second)\n\n @attention This parameter is invalid only when the synchronization MODE is set to @ref OB_SYNC_MODE_PRIMARY_MCU_TRIGGER"]
    pub mcuTriggerFrequency: u16,
    #[doc = " @brief Device number. Users can mark the device with this number"]
    pub deviceId: u16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBDeviceSyncConfig"][::std::mem::size_of::<OBDeviceSyncConfig>() - 16usize];
    ["Alignment of OBDeviceSyncConfig"][::std::mem::align_of::<OBDeviceSyncConfig>() - 1usize];
    ["Offset of field: OBDeviceSyncConfig::syncMode"]
        [::std::mem::offset_of!(OBDeviceSyncConfig, syncMode) - 0usize];
    ["Offset of field: OBDeviceSyncConfig::irTriggerSignalInDelay"]
        [::std::mem::offset_of!(OBDeviceSyncConfig, irTriggerSignalInDelay) - 4usize];
    ["Offset of field: OBDeviceSyncConfig::rgbTriggerSignalInDelay"]
        [::std::mem::offset_of!(OBDeviceSyncConfig, rgbTriggerSignalInDelay) - 6usize];
    ["Offset of field: OBDeviceSyncConfig::deviceTriggerSignalOutDelay"]
        [::std::mem::offset_of!(OBDeviceSyncConfig, deviceTriggerSignalOutDelay) - 8usize];
    ["Offset of field: OBDeviceSyncConfig::deviceTriggerSignalOutPolarity"]
        [::std::mem::offset_of!(OBDeviceSyncConfig, deviceTriggerSignalOutPolarity) - 10usize];
    ["Offset of field: OBDeviceSyncConfig::mcuTriggerFrequency"]
        [::std::mem::offset_of!(OBDeviceSyncConfig, mcuTriggerFrequency) - 12usize];
    ["Offset of field: OBDeviceSyncConfig::deviceId"]
        [::std::mem::offset_of!(OBDeviceSyncConfig, deviceId) - 14usize];
};
#[doc = " @brief Device synchronization configuration\n @deprecated This structure is deprecated, please use @ref ob_multi_device_sync_config instead"]
pub type ob_device_sync_config = OBDeviceSyncConfig;
#[doc = " @brief Device synchronization configuration\n @deprecated This structure is deprecated, please use @ref ob_multi_device_sync_config instead"]
pub type OB_DEVICE_SYNC_CONFIG = OBDeviceSyncConfig;
pub const OBDepthWorkModeTag_OB_DEVICE_DEPTH_WORK_MODE: OBDepthWorkModeTag = 0;
pub const OBDepthWorkModeTag_OB_CUSTOM_DEPTH_WORK_MODE: OBDepthWorkModeTag = 1;
#[doc = " @brief Preset tag"]
pub type OBDepthWorkModeTag = i32;
#[doc = " @brief Preset tag"]
pub use self::OBDepthWorkModeTag as ob_depth_work_mode_tag;
#[doc = " @brief Depth work mode"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBDepthWorkMode {
    #[doc = " @brief Checksum of work mode"]
    pub checksum: [u8; 16usize],
    #[doc = " @brief Name of work mode"]
    pub name: [::std::os::raw::c_char; 32usize],
    #[doc = " @brief Preset tag"]
    pub tag: OBDepthWorkModeTag,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBDepthWorkMode"][::std::mem::size_of::<OBDepthWorkMode>() - 52usize];
    ["Alignment of OBDepthWorkMode"][::std::mem::align_of::<OBDepthWorkMode>() - 1usize];
    ["Offset of field: OBDepthWorkMode::checksum"]
        [::std::mem::offset_of!(OBDepthWorkMode, checksum) - 0usize];
    ["Offset of field: OBDepthWorkMode::name"]
        [::std::mem::offset_of!(OBDepthWorkMode, name) - 16usize];
    ["Offset of field: OBDepthWorkMode::tag"]
        [::std::mem::offset_of!(OBDepthWorkMode, tag) - 48usize];
};
#[doc = " @brief Depth work mode"]
pub type ob_depth_work_mode = OBDepthWorkMode;
#[doc = " @brief SequenceId fliter list item"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBSequenceIdItem {
    pub sequenceSelectId: ::std::os::raw::c_int,
    pub name: [::std::os::raw::c_char; 8usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBSequenceIdItem"][::std::mem::size_of::<OBSequenceIdItem>() - 12usize];
    ["Alignment of OBSequenceIdItem"][::std::mem::align_of::<OBSequenceIdItem>() - 1usize];
    ["Offset of field: OBSequenceIdItem::sequenceSelectId"]
        [::std::mem::offset_of!(OBSequenceIdItem, sequenceSelectId) - 0usize];
    ["Offset of field: OBSequenceIdItem::name"]
        [::std::mem::offset_of!(OBSequenceIdItem, name) - 4usize];
};
#[doc = " @brief SequenceId fliter list item"]
pub type ob_sequence_id_item = OBSequenceIdItem;
pub const OBHoleFillingMode_OB_HOLE_FILL_TOP: OBHoleFillingMode = 0;
pub const OBHoleFillingMode_OB_HOLE_FILL_NEAREST: OBHoleFillingMode = 1;
pub const OBHoleFillingMode_OB_HOLE_FILL_FAREST: OBHoleFillingMode = 2;
#[doc = " @brief Hole fillig mode"]
pub type OBHoleFillingMode = i32;
#[doc = " @brief Hole fillig mode"]
pub use self::OBHoleFillingMode as ob_hole_filling_mode;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OBSpatialFastFilterParams {
    pub radius: u8,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBSpatialFastFilterParams"]
        [::std::mem::size_of::<OBSpatialFastFilterParams>() - 1usize];
    ["Alignment of OBSpatialFastFilterParams"]
        [::std::mem::align_of::<OBSpatialFastFilterParams>() - 1usize];
    ["Offset of field: OBSpatialFastFilterParams::radius"]
        [::std::mem::offset_of!(OBSpatialFastFilterParams, radius) - 0usize];
};
pub type ob_spatial_fast_filter_params = OBSpatialFastFilterParams;
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBSpatialModerateFilterParams {
    pub radius: u8,
    pub magnitude: u8,
    pub disp_diff: u16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBSpatialModerateFilterParams"]
        [::std::mem::size_of::<OBSpatialModerateFilterParams>() - 4usize];
    ["Alignment of OBSpatialModerateFilterParams"]
        [::std::mem::align_of::<OBSpatialModerateFilterParams>() - 1usize];
    ["Offset of field: OBSpatialModerateFilterParams::radius"]
        [::std::mem::offset_of!(OBSpatialModerateFilterParams, radius) - 0usize];
    ["Offset of field: OBSpatialModerateFilterParams::magnitude"]
        [::std::mem::offset_of!(OBSpatialModerateFilterParams, magnitude) - 1usize];
    ["Offset of field: OBSpatialModerateFilterParams::disp_diff"]
        [::std::mem::offset_of!(OBSpatialModerateFilterParams, disp_diff) - 2usize];
};
pub type ob_spatial_moderate_filter_params = OBSpatialModerateFilterParams;
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBSpatialAdvancedFilterParams {
    pub magnitude: u8,
    pub alpha: f32,
    pub disp_diff: u16,
    pub radius: u16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBSpatialAdvancedFilterParams"]
        [::std::mem::size_of::<OBSpatialAdvancedFilterParams>() - 9usize];
    ["Alignment of OBSpatialAdvancedFilterParams"]
        [::std::mem::align_of::<OBSpatialAdvancedFilterParams>() - 1usize];
    ["Offset of field: OBSpatialAdvancedFilterParams::magnitude"]
        [::std::mem::offset_of!(OBSpatialAdvancedFilterParams, magnitude) - 0usize];
    ["Offset of field: OBSpatialAdvancedFilterParams::alpha"]
        [::std::mem::offset_of!(OBSpatialAdvancedFilterParams, alpha) - 1usize];
    ["Offset of field: OBSpatialAdvancedFilterParams::disp_diff"]
        [::std::mem::offset_of!(OBSpatialAdvancedFilterParams, disp_diff) - 5usize];
    ["Offset of field: OBSpatialAdvancedFilterParams::radius"]
        [::std::mem::offset_of!(OBSpatialAdvancedFilterParams, radius) - 7usize];
};
pub type ob_spatial_advanced_filter_params = OBSpatialAdvancedFilterParams;
pub const OB_EDGE_NOISE_REMOVAL_TYPE_OB_MG_FILTER: OB_EDGE_NOISE_REMOVAL_TYPE = 0;
pub const OB_EDGE_NOISE_REMOVAL_TYPE_OB_MGH_FILTER: OB_EDGE_NOISE_REMOVAL_TYPE = 1;
pub const OB_EDGE_NOISE_REMOVAL_TYPE_OB_MGA_FILTER: OB_EDGE_NOISE_REMOVAL_TYPE = 2;
pub const OB_EDGE_NOISE_REMOVAL_TYPE_OB_MGC_FILTER: OB_EDGE_NOISE_REMOVAL_TYPE = 3;
pub type OB_EDGE_NOISE_REMOVAL_TYPE = i32;
pub use self::OB_EDGE_NOISE_REMOVAL_TYPE as OBEdgeNoiseRemovalType;
pub use self::OB_EDGE_NOISE_REMOVAL_TYPE as ob_edge_noise_removal_type;
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBEdgeNoiseRemovalFilterParams {
    pub type_: OBEdgeNoiseRemovalType,
    pub marginLeftTh: u16,
    pub marginRightTh: u16,
    pub marginTopTh: u16,
    pub marginBottomTh: u16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBEdgeNoiseRemovalFilterParams"]
        [::std::mem::size_of::<OBEdgeNoiseRemovalFilterParams>() - 12usize];
    ["Alignment of OBEdgeNoiseRemovalFilterParams"]
        [::std::mem::align_of::<OBEdgeNoiseRemovalFilterParams>() - 1usize];
    ["Offset of field: OBEdgeNoiseRemovalFilterParams::type_"]
        [::std::mem::offset_of!(OBEdgeNoiseRemovalFilterParams, type_) - 0usize];
    ["Offset of field: OBEdgeNoiseRemovalFilterParams::marginLeftTh"]
        [::std::mem::offset_of!(OBEdgeNoiseRemovalFilterParams, marginLeftTh) - 4usize];
    ["Offset of field: OBEdgeNoiseRemovalFilterParams::marginRightTh"]
        [::std::mem::offset_of!(OBEdgeNoiseRemovalFilterParams, marginRightTh) - 6usize];
    ["Offset of field: OBEdgeNoiseRemovalFilterParams::marginTopTh"]
        [::std::mem::offset_of!(OBEdgeNoiseRemovalFilterParams, marginTopTh) - 8usize];
    ["Offset of field: OBEdgeNoiseRemovalFilterParams::marginBottomTh"]
        [::std::mem::offset_of!(OBEdgeNoiseRemovalFilterParams, marginBottomTh) - 10usize];
};
pub type ob_edge_noise_removal_filter_params = OBEdgeNoiseRemovalFilterParams;
pub const OB_DDO_NOISE_REMOVAL_TYPE_OB_NR_LUT: OB_DDO_NOISE_REMOVAL_TYPE = 0;
pub const OB_DDO_NOISE_REMOVAL_TYPE_OB_NR_OVERALL: OB_DDO_NOISE_REMOVAL_TYPE = 1;
#[doc = " @brief Denoising method"]
pub type OB_DDO_NOISE_REMOVAL_TYPE = i32;
#[doc = " @brief Denoising method"]
pub use self::OB_DDO_NOISE_REMOVAL_TYPE as OBDDONoiseRemovalType;
#[doc = " @brief Denoising method"]
pub use self::OB_DDO_NOISE_REMOVAL_TYPE as ob_ddo_noise_removal_type;
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBNoiseRemovalFilterParams {
    pub max_size: u16,
    pub disp_diff: u16,
    pub type_: OBDDONoiseRemovalType,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBNoiseRemovalFilterParams"]
        [::std::mem::size_of::<OBNoiseRemovalFilterParams>() - 8usize];
    ["Alignment of OBNoiseRemovalFilterParams"]
        [::std::mem::align_of::<OBNoiseRemovalFilterParams>() - 1usize];
    ["Offset of field: OBNoiseRemovalFilterParams::max_size"]
        [::std::mem::offset_of!(OBNoiseRemovalFilterParams, max_size) - 0usize];
    ["Offset of field: OBNoiseRemovalFilterParams::disp_diff"]
        [::std::mem::offset_of!(OBNoiseRemovalFilterParams, disp_diff) - 2usize];
    ["Offset of field: OBNoiseRemovalFilterParams::type_"]
        [::std::mem::offset_of!(OBNoiseRemovalFilterParams, type_) - 4usize];
};
pub type ob_noise_removal_filter_params = OBNoiseRemovalFilterParams;
#[doc = " @brief Control command protocol version number"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OBProtocolVersion {
    #[doc = " @brief Major version number"]
    pub major: u8,
    #[doc = " @brief Minor version number"]
    pub minor: u8,
    #[doc = " @brief Patch version number"]
    pub patch: u8,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBProtocolVersion"][::std::mem::size_of::<OBProtocolVersion>() - 3usize];
    ["Alignment of OBProtocolVersion"][::std::mem::align_of::<OBProtocolVersion>() - 1usize];
    ["Offset of field: OBProtocolVersion::major"]
        [::std::mem::offset_of!(OBProtocolVersion, major) - 0usize];
    ["Offset of field: OBProtocolVersion::minor"]
        [::std::mem::offset_of!(OBProtocolVersion, minor) - 1usize];
    ["Offset of field: OBProtocolVersion::patch"]
        [::std::mem::offset_of!(OBProtocolVersion, patch) - 2usize];
};
#[doc = " @brief Control command protocol version number"]
pub type ob_protocol_version = OBProtocolVersion;
#[doc = "< Version 1.0"]
pub const OB_CMD_VERSION_OB_CMD_VERSION_V0: OB_CMD_VERSION = 0;
#[doc = "< Version 2.0"]
pub const OB_CMD_VERSION_OB_CMD_VERSION_V1: OB_CMD_VERSION = 1;
#[doc = "< Version 3.0"]
pub const OB_CMD_VERSION_OB_CMD_VERSION_V2: OB_CMD_VERSION = 2;
#[doc = "< Version 4.0"]
pub const OB_CMD_VERSION_OB_CMD_VERSION_V3: OB_CMD_VERSION = 3;
pub const OB_CMD_VERSION_OB_CMD_VERSION_NOVERSION: OB_CMD_VERSION = 65534;
#[doc = "< Invalid version"]
pub const OB_CMD_VERSION_OB_CMD_VERSION_INVALID: OB_CMD_VERSION = 65535;
#[doc = " @brief Command version associated with property id"]
pub type OB_CMD_VERSION = i32;
#[doc = " @brief Command version associated with property id"]
pub use self::OB_CMD_VERSION as OBCmdVersion;
#[doc = " @brief Command version associated with property id"]
pub use self::OB_CMD_VERSION as ob_cmd_version;
#[doc = " @brief IP address configuration for network devices (IPv4)"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBNetIpConfig {
    #[doc = " @brief DHCP status\n\n @note 0: static IP; 1: DHCP"]
    pub dhcp: u16,
    #[doc = " @brief IP address (IPv4, big endian: 192.168.1.10, address[0] = 192, address[1] = 168, address[2] = 1, address[3] = 10)"]
    pub address: [u8; 4usize],
    #[doc = " @brief Subnet mask (big endian)"]
    pub mask: [u8; 4usize],
    #[doc = " @brief Gateway (big endian)"]
    pub gateway: [u8; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBNetIpConfig"][::std::mem::size_of::<OBNetIpConfig>() - 14usize];
    ["Alignment of OBNetIpConfig"][::std::mem::align_of::<OBNetIpConfig>() - 1usize];
    ["Offset of field: OBNetIpConfig::dhcp"][::std::mem::offset_of!(OBNetIpConfig, dhcp) - 0usize];
    ["Offset of field: OBNetIpConfig::address"]
        [::std::mem::offset_of!(OBNetIpConfig, address) - 2usize];
    ["Offset of field: OBNetIpConfig::mask"][::std::mem::offset_of!(OBNetIpConfig, mask) - 6usize];
    ["Offset of field: OBNetIpConfig::gateway"]
        [::std::mem::offset_of!(OBNetIpConfig, gateway) - 10usize];
};
#[doc = " @brief IP address configuration for network devices (IPv4)"]
pub type ob_net_ip_config = OBNetIpConfig;
#[doc = " @brief IP address configuration for network devices (IPv4)"]
pub type DEVICE_IP_ADDR_CONFIG = OBNetIpConfig;
#[doc = "< USB"]
pub const OBCommunicationType_OB_COMM_USB: OBCommunicationType = 0;
#[doc = "< Ethernet"]
pub const OBCommunicationType_OB_COMM_NET: OBCommunicationType = 1;
#[doc = " @brief Device communication mode"]
pub type OBCommunicationType = i32;
#[doc = " @brief Device communication mode"]
pub use self::OBCommunicationType as ob_communication_type;
#[doc = " @brief Device communication mode"]
pub use self::OBCommunicationType as OB_COMMUNICATION_TYPE;
#[doc = "< No plugin"]
pub const OBUSBPowerState_OB_USB_POWER_NO_PLUGIN: OBUSBPowerState = 0;
#[doc = "< 5V/0.9A"]
pub const OBUSBPowerState_OB_USB_POWER_5V_0A9: OBUSBPowerState = 1;
#[doc = "< 5V/1.5A"]
pub const OBUSBPowerState_OB_USB_POWER_5V_1A5: OBUSBPowerState = 2;
#[doc = "< 5V/3.0A"]
pub const OBUSBPowerState_OB_USB_POWER_5V_3A0: OBUSBPowerState = 3;
#[doc = " @brief USB power status"]
pub type OBUSBPowerState = i32;
#[doc = " @brief USB power status"]
pub use self::OBUSBPowerState as ob_usb_power_state;
#[doc = "< No plugin"]
pub const OBDCPowerState_OB_DC_POWER_NO_PLUGIN: OBDCPowerState = 0;
#[doc = "< Plugin"]
pub const OBDCPowerState_OB_DC_POWER_PLUGIN: OBDCPowerState = 1;
#[doc = " @brief DC power status"]
pub type OBDCPowerState = i32;
#[doc = " @brief DC power status"]
pub use self::OBDCPowerState as ob_dc_power_state;
#[doc = "< Rotate 0"]
pub const ob_rotate_degree_type_OB_ROTATE_DEGREE_0: ob_rotate_degree_type = 0;
#[doc = "< Rotate 90"]
pub const ob_rotate_degree_type_OB_ROTATE_DEGREE_90: ob_rotate_degree_type = 90;
#[doc = "< Rotate 180"]
pub const ob_rotate_degree_type_OB_ROTATE_DEGREE_180: ob_rotate_degree_type = 180;
#[doc = "< Rotate 270"]
pub const ob_rotate_degree_type_OB_ROTATE_DEGREE_270: ob_rotate_degree_type = 270;
#[doc = " @brief Rotate degree"]
pub type ob_rotate_degree_type = i32;
#[doc = " @brief Rotate degree"]
pub use self::ob_rotate_degree_type as OBRotateDegreeType;
#[doc = "< Close"]
pub const ob_power_line_freq_mode_OB_POWER_LINE_FREQ_MODE_CLOSE: ob_power_line_freq_mode = 0;
#[doc = "< 50Hz"]
pub const ob_power_line_freq_mode_OB_POWER_LINE_FREQ_MODE_50HZ: ob_power_line_freq_mode = 1;
#[doc = "< 60Hz"]
pub const ob_power_line_freq_mode_OB_POWER_LINE_FREQ_MODE_60HZ: ob_power_line_freq_mode = 2;
#[doc = " @brief Power line frequency mode, for color camera anti-flicker configuration"]
pub type ob_power_line_freq_mode = i32;
#[doc = " @brief Power line frequency mode, for color camera anti-flicker configuration"]
pub use self::ob_power_line_freq_mode as OBPowerLineFreqMode;
#[doc = " @brief Only FrameSet that contains all types of data frames will be output"]
pub const OB_FRAME_AGGREGATE_OUTPUT_MODE_OB_FRAME_AGGREGATE_OUTPUT_ALL_TYPE_FRAME_REQUIRE:
    OB_FRAME_AGGREGATE_OUTPUT_MODE = 0;
#[doc = " @brief Color Frame Require output mode\n @brief Suitable for Color using H264, H265 and other inter-frame encoding format open stream\n\n @attention In this mode, the user may return null when getting a non-Color type data frame from the acquired FrameSet"]
pub const OB_FRAME_AGGREGATE_OUTPUT_MODE_OB_FRAME_AGGREGATE_OUTPUT_COLOR_FRAME_REQUIRE:
    OB_FRAME_AGGREGATE_OUTPUT_MODE = 1;
#[doc = " @brief FrameSet for any case will be output\n\n @attention In this mode, the user may return null when getting the specified type of data frame from the acquired FrameSet"]
pub const OB_FRAME_AGGREGATE_OUTPUT_MODE_OB_FRAME_AGGREGATE_OUTPUT_ANY_SITUATION:
    OB_FRAME_AGGREGATE_OUTPUT_MODE = 2;
#[doc = " @brief Disable Frame Aggreate\n\n @attention In this mode, All types of data frames will output independently."]
pub const OB_FRAME_AGGREGATE_OUTPUT_MODE_OB_FRAME_AGGREGATE_OUTPUT_DISABLE:
    OB_FRAME_AGGREGATE_OUTPUT_MODE = 3;
#[doc = " @brief Frame aggregate output mode"]
pub type OB_FRAME_AGGREGATE_OUTPUT_MODE = i32;
#[doc = " @brief Frame aggregate output mode"]
pub use self::OB_FRAME_AGGREGATE_OUTPUT_MODE as OBFrameAggregateOutputMode;
#[doc = " @brief Frame aggregate output mode"]
pub use self::OB_FRAME_AGGREGATE_OUTPUT_MODE as ob_frame_aggregate_output_mode;
pub const OB_COORDINATE_SYSTEM_TYPE_OB_LEFT_HAND_COORDINATE_SYSTEM: OB_COORDINATE_SYSTEM_TYPE = 0;
pub const OB_COORDINATE_SYSTEM_TYPE_OB_RIGHT_HAND_COORDINATE_SYSTEM: OB_COORDINATE_SYSTEM_TYPE = 1;
#[doc = " @brief Enumeration of point cloud coordinate system types"]
pub type OB_COORDINATE_SYSTEM_TYPE = i32;
#[doc = " @brief Enumeration of point cloud coordinate system types"]
pub use self::OB_COORDINATE_SYSTEM_TYPE as OBCoordinateSystemType;
#[doc = " @brief Enumeration of point cloud coordinate system types"]
pub use self::OB_COORDINATE_SYSTEM_TYPE as ob_coordinate_system_type;
#[doc = " @brief User mode (default mode), which provides full camera device functionality"]
pub const OB_DEVICE_DEVELOPMENT_MODE_OB_USER_MODE: OB_DEVICE_DEVELOPMENT_MODE = 0;
#[doc = " @brief Developer mode, which allows developers to access the operating system and software/hardware resources on the device directly"]
pub const OB_DEVICE_DEVELOPMENT_MODE_OB_DEVELOPER_MODE: OB_DEVICE_DEVELOPMENT_MODE = 1;
#[doc = " @brief Enumeration of device development modes"]
pub type OB_DEVICE_DEVELOPMENT_MODE = i32;
#[doc = " @brief Enumeration of device development modes"]
pub use self::OB_DEVICE_DEVELOPMENT_MODE as OBDeviceDevelopmentMode;
#[doc = " @brief Enumeration of device development modes"]
pub use self::OB_DEVICE_DEVELOPMENT_MODE as ob_device_development_mode;
#[doc = " @brief free run mode\n @brief The device does not synchronize with other devices,\n @brief The Color and Depth can be set to different frame rates."]
pub const ob_multi_device_sync_mode_OB_MULTI_DEVICE_SYNC_MODE_FREE_RUN: ob_multi_device_sync_mode =
    1;
#[doc = " @brief standalone mode\n @brief The device does not synchronize with other devices.\n @brief The Color and Depth should be set to same frame rates, the Color and Depth will be synchronized."]
pub const ob_multi_device_sync_mode_OB_MULTI_DEVICE_SYNC_MODE_STANDALONE:
    ob_multi_device_sync_mode = 2;
#[doc = " @brief primary mode\n @brief The device is the primary device in the multi-device system, it will output the trigger signal via VSYNC_OUT pin on synchronization port by\n default.\n @brief The Color and Depth should be set to same frame rates, the Color and Depth will be synchronized and can be adjusted by @ref colorDelayUs, @ref\n depthDelayUs or @ref trigger2ImageDelayUs."]
pub const ob_multi_device_sync_mode_OB_MULTI_DEVICE_SYNC_MODE_PRIMARY: ob_multi_device_sync_mode =
    4;
#[doc = " @brief secondary mode\n @brief The device is the secondary device in the multi-device system, it will receive the trigger signal via VSYNC_IN pin on synchronization port. It\n will out the trigger signal via VSYNC_OUT pin on synchronization port by default.\n @brief The Color and Depth should be set to same frame rates, the Color and Depth will be synchronized and can be adjusted by @ref colorDelayUs, @ref\n depthDelayUs or @ref trigger2ImageDelayUs.\n @brief After starting the stream, the device will wait for the trigger signal to start capturing images, and will stop capturing images when the trigger\n signal is stopped.\n\n @attention The frequency of the trigger signal should be same as the frame rate of the stream profile which is set when starting the stream."]
pub const ob_multi_device_sync_mode_OB_MULTI_DEVICE_SYNC_MODE_SECONDARY: ob_multi_device_sync_mode =
    8;
#[doc = " @brief secondary synced mode\n @brief The device is the secondary device in the multi-device system, it will receive the trigger signal via VSYNC_IN pin on synchronization port. It\n will out the trigger signal via VSYNC_OUT pin on synchronization port by default.\n @brief The Color and Depth should be set to same frame rates, the Color and Depth will be synchronized and can be adjusted by @ref colorDelayUs, @ref\n depthDelayUs or @ref trigger2ImageDelayUs.\n @brief After starting the stream, the device will be immediately start capturing images, and will adjust the capture time when the trigger signal is\n received to synchronize with the primary device. If the trigger signal is stopped, the device will still capture images.\n\n @attention The frequency of the trigger signal should be same as the frame rate of the stream profile which is set when starting the stream."]
pub const ob_multi_device_sync_mode_OB_MULTI_DEVICE_SYNC_MODE_SECONDARY_SYNCED:
    ob_multi_device_sync_mode = 16;
#[doc = " @brief software triggering mode\n @brief The device will start one time image capture after receiving the capture command and will output the trigger signal via VSYNC_OUT pin by default.\n The capture command can be sent form host by call @ref ob_device_trigger_capture. The number of images captured each time can be set by @ref\n framesPerTrigger.\n @brief The Color and Depth should be set to same frame rates, the Color and Depth will be synchronized and can be adjusted by @ref colorDelayUs, @ref\n depthDelayUs or @ref trigger2ImageDelayUs.\n\n @brief The frequency of the user call @ref ob_device_trigger_capture to send the capture command multiplied by the number of frames per trigger should be\n less than the frame rate of the stream profile which is set when starting the stream."]
pub const ob_multi_device_sync_mode_OB_MULTI_DEVICE_SYNC_MODE_SOFTWARE_TRIGGERING:
    ob_multi_device_sync_mode = 32;
#[doc = " @brief hardware triggering mode\n @brief The device will start one time image capture after receiving the trigger signal via VSYNC_IN pin on synchronization port and will output the\n trigger signal via VSYNC_OUT pin by default. The number of images captured each time can be set by @ref framesPerTrigger.\n @brief The Color and Depth should be set to same frame rates, the Color and Depth will be synchronized and can be adjusted by @ref colorDelayUs, @ref\n depthDelayUs or @ref trigger2ImageDelayUs.\n\n @attention The frequency of the trigger signal multiplied by the number of frames per trigger should be less than the frame rate of the stream profile\n which is set when starting the stream.\n @attention The trigger signal input via VSYNC_IN pin on synchronization port should be ouput by other device via VSYNC_OUT pin in hardware triggering\n mode or software triggering mode.\n @attention Due to different models may have different signal input requirements, please do not use different models to output trigger\n signal as input-trigger signal."]
pub const ob_multi_device_sync_mode_OB_MULTI_DEVICE_SYNC_MODE_HARDWARE_TRIGGERING:
    ob_multi_device_sync_mode = 64;
#[doc = " @brief IR and IMU sync mode"]
pub const ob_multi_device_sync_mode_OB_MULTI_DEVICE_SYNC_MODE_IR_IMU_SYNC:
    ob_multi_device_sync_mode = 128;
#[doc = " @brief The synchronization mode of the device."]
pub type ob_multi_device_sync_mode = i32;
#[doc = " @brief The synchronization mode of the device."]
pub use self::ob_multi_device_sync_mode as OBMultiDeviceSyncMode;
#[doc = " @brief The synchronization configuration of the device."]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct ob_multi_device_sync_config {
    #[doc = " @brief The sync mode of the device."]
    pub syncMode: OBMultiDeviceSyncMode,
    #[doc = " @brief The delay time of the depth image capture after receiving the capture command or trigger signal in microseconds.\n\n @attention This parameter is only valid for some models, please refer to the product manual for details."]
    pub depthDelayUs: ::std::os::raw::c_int,
    #[doc = " @brief The delay time of the color image capture after receiving the capture command or trigger signal in microseconds.\n\n @attention This parameter is only valid for some models, please refer to the product manual for details."]
    pub colorDelayUs: ::std::os::raw::c_int,
    #[doc = " @brief The delay time of the image capture after receiving the capture command or trigger signal in microseconds.\n @brief The depth and color images are captured synchronously as the product design and can not change the delay between the depth and color images.\n\n @attention For Orbbec Astra 2 device, this parameter is valid only when the @ref triggerOutDelayUs is set to 0.\n @attention This parameter is only valid for some models to replace @ref depthDelayUs and @ref colorDelayUs, please refer to the product manual for\n details."]
    pub trigger2ImageDelayUs: ::std::os::raw::c_int,
    #[doc = " @brief Trigger signal output enable flag.\n @brief After the trigger signal output is enabled, the trigger signal will be output when the capture command or trigger signal is received. User can\n adjust the delay time of the trigger signal output by @ref triggerOutDelayUs.\n\n @attention For some models, the trigger signal output is always enabled and cannot be disabled.\n @attention If device is in the @ref OB_MULTI_DEVICE_SYNC_MODE_FREE_RUN or @ref OB_MULTI_DEVICE_SYNC_MODE_STANDALONE mode, the trigger signal output is\n always disabled. Set this parameter to true will not take effect."]
    pub triggerOutEnable: bool,
    #[doc = " @brief The delay time of the trigger signal output after receiving the capture command or trigger signal in microseconds.\n\n @attention For Orbbec Astra 2 device, only supported -1 and 0. -1 means the trigger signal output delay is automatically adjusted by the device, 0 means\n the trigger signal output is disabled."]
    pub triggerOutDelayUs: ::std::os::raw::c_int,
    #[doc = " @brief The frame number of each stream after each trigger in triggering mode.\n\n @attention This parameter is only valid when the triggering mode is set to @ref OB_MULTI_DEVICE_SYNC_MODE_HARDWARE_TRIGGERING or @ref\n OB_MULTI_DEVICE_SYNC_MODE_SOFTWARE_TRIGGERING.\n @attention The trigger frequency multiplied by the number of frames per trigger cannot exceed the maximum frame rate of the stream profile which is set\n when starting the stream."]
    pub framesPerTrigger: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of ob_multi_device_sync_config"]
        [::std::mem::size_of::<ob_multi_device_sync_config>() - 25usize];
    ["Alignment of ob_multi_device_sync_config"]
        [::std::mem::align_of::<ob_multi_device_sync_config>() - 1usize];
    ["Offset of field: ob_multi_device_sync_config::syncMode"]
        [::std::mem::offset_of!(ob_multi_device_sync_config, syncMode) - 0usize];
    ["Offset of field: ob_multi_device_sync_config::depthDelayUs"]
        [::std::mem::offset_of!(ob_multi_device_sync_config, depthDelayUs) - 4usize];
    ["Offset of field: ob_multi_device_sync_config::colorDelayUs"]
        [::std::mem::offset_of!(ob_multi_device_sync_config, colorDelayUs) - 8usize];
    ["Offset of field: ob_multi_device_sync_config::trigger2ImageDelayUs"]
        [::std::mem::offset_of!(ob_multi_device_sync_config, trigger2ImageDelayUs) - 12usize];
    ["Offset of field: ob_multi_device_sync_config::triggerOutEnable"]
        [::std::mem::offset_of!(ob_multi_device_sync_config, triggerOutEnable) - 16usize];
    ["Offset of field: ob_multi_device_sync_config::triggerOutDelayUs"]
        [::std::mem::offset_of!(ob_multi_device_sync_config, triggerOutDelayUs) - 17usize];
    ["Offset of field: ob_multi_device_sync_config::framesPerTrigger"]
        [::std::mem::offset_of!(ob_multi_device_sync_config, framesPerTrigger) - 21usize];
};
#[doc = " @brief The synchronization configuration of the device."]
pub type OBMultiDeviceSyncConfig = ob_multi_device_sync_config;
#[doc = " @brief The timestamp reset configuration of the device.\n"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct ob_device_timestamp_reset_config {
    #[doc = " @brief Whether to enable the timestamp reset function.\n @brief If the timestamp reset function is enabled, the timer for calculating the timestamp for output frames will be reset to 0 when the timestamp reset\n command or timestamp reset signal is received, and one timestamp reset signal will be output via TIMER_SYNC_OUT pin on synchronization port by default.\n The timestamp reset signal is input via TIMER_SYNC_IN pin on the synchronization port.\n\n @attention For some models, the timestamp reset function is always enabled and cannot be disabled."]
    pub enable: bool,
    #[doc = " @brief The delay time of executing the timestamp reset function after receiving the command or signal in microseconds."]
    pub timestamp_reset_delay_us: ::std::os::raw::c_int,
    #[doc = " @brief the timestamp reset signal output enable flag.\n\n @attention For some models, the timestamp reset signal output is always enabled and cannot be disabled."]
    pub timestamp_reset_signal_output_enable: bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of ob_device_timestamp_reset_config"]
        [::std::mem::size_of::<ob_device_timestamp_reset_config>() - 6usize];
    ["Alignment of ob_device_timestamp_reset_config"]
        [::std::mem::align_of::<ob_device_timestamp_reset_config>() - 1usize];
    ["Offset of field: ob_device_timestamp_reset_config::enable"]
        [::std::mem::offset_of!(ob_device_timestamp_reset_config, enable) - 0usize];
    ["Offset of field: ob_device_timestamp_reset_config::timestamp_reset_delay_us"][::std::mem::offset_of!(
        ob_device_timestamp_reset_config,
        timestamp_reset_delay_us
    ) - 1usize];
    ["Offset of field: ob_device_timestamp_reset_config::timestamp_reset_signal_output_enable"][::std::mem::offset_of!(
        ob_device_timestamp_reset_config,
        timestamp_reset_signal_output_enable
    )
        - 5usize];
};
#[doc = " @brief The timestamp reset configuration of the device.\n"]
pub type OBDeviceTimestampResetConfig = ob_device_timestamp_reset_config;
#[doc = " @brief Baseline calibration parameters"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct BASELINE_CALIBRATION_PARAM {
    #[doc = " @brief Baseline length"]
    pub baseline: f32,
    #[doc = " @brief Calibration distance"]
    pub zpd: f32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of BASELINE_CALIBRATION_PARAM"]
        [::std::mem::size_of::<BASELINE_CALIBRATION_PARAM>() - 8usize];
    ["Alignment of BASELINE_CALIBRATION_PARAM"]
        [::std::mem::align_of::<BASELINE_CALIBRATION_PARAM>() - 1usize];
    ["Offset of field: BASELINE_CALIBRATION_PARAM::baseline"]
        [::std::mem::offset_of!(BASELINE_CALIBRATION_PARAM, baseline) - 0usize];
    ["Offset of field: BASELINE_CALIBRATION_PARAM::zpd"]
        [::std::mem::offset_of!(BASELINE_CALIBRATION_PARAM, zpd) - 4usize];
};
#[doc = " @brief Baseline calibration parameters"]
pub type ob_baseline_calibration_param = BASELINE_CALIBRATION_PARAM;
#[doc = " @brief Baseline calibration parameters"]
pub type OBBaselineCalibrationParam = BASELINE_CALIBRATION_PARAM;
#[doc = " @brief HDR Configuration"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct HDR_CONFIG {
    #[doc = " @brief Enable/disable HDR, after enabling HDR, the exposure_1 and gain_1 will be used as the first exposure and gain, and the exposure_2 and gain_2 will\n be used as the second exposure and gain. The output image will be alternately exposed and gain between the first and second\n exposure and gain.\n\n @attention After enabling HDR, the auto exposure will be disabled."]
    pub enable: u8,
    #[doc = "< Sequence name"]
    pub sequence_name: u8,
    #[doc = "< Exposure time 1"]
    pub exposure_1: u32,
    #[doc = "< Gain 1"]
    pub gain_1: u32,
    #[doc = "< Exposure time 2"]
    pub exposure_2: u32,
    #[doc = "< Gain 2"]
    pub gain_2: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of HDR_CONFIG"][::std::mem::size_of::<HDR_CONFIG>() - 18usize];
    ["Alignment of HDR_CONFIG"][::std::mem::align_of::<HDR_CONFIG>() - 1usize];
    ["Offset of field: HDR_CONFIG::enable"][::std::mem::offset_of!(HDR_CONFIG, enable) - 0usize];
    ["Offset of field: HDR_CONFIG::sequence_name"]
        [::std::mem::offset_of!(HDR_CONFIG, sequence_name) - 1usize];
    ["Offset of field: HDR_CONFIG::exposure_1"]
        [::std::mem::offset_of!(HDR_CONFIG, exposure_1) - 2usize];
    ["Offset of field: HDR_CONFIG::gain_1"][::std::mem::offset_of!(HDR_CONFIG, gain_1) - 6usize];
    ["Offset of field: HDR_CONFIG::exposure_2"]
        [::std::mem::offset_of!(HDR_CONFIG, exposure_2) - 10usize];
    ["Offset of field: HDR_CONFIG::gain_2"][::std::mem::offset_of!(HDR_CONFIG, gain_2) - 14usize];
};
#[doc = " @brief HDR Configuration"]
pub type ob_hdr_config = HDR_CONFIG;
#[doc = " @brief HDR Configuration"]
pub type OBHdrConfig = HDR_CONFIG;
#[doc = " @brief The rect of the region of interest"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct AE_ROI {
    pub x0_left: i16,
    pub y0_top: i16,
    pub x1_right: i16,
    pub y1_bottom: i16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of AE_ROI"][::std::mem::size_of::<AE_ROI>() - 8usize];
    ["Alignment of AE_ROI"][::std::mem::align_of::<AE_ROI>() - 1usize];
    ["Offset of field: AE_ROI::x0_left"][::std::mem::offset_of!(AE_ROI, x0_left) - 0usize];
    ["Offset of field: AE_ROI::y0_top"][::std::mem::offset_of!(AE_ROI, y0_top) - 2usize];
    ["Offset of field: AE_ROI::x1_right"][::std::mem::offset_of!(AE_ROI, x1_right) - 4usize];
    ["Offset of field: AE_ROI::y1_bottom"][::std::mem::offset_of!(AE_ROI, y1_bottom) - 6usize];
};
#[doc = " @brief The rect of the region of interest"]
pub type ob_region_of_interest = AE_ROI;
#[doc = " @brief The rect of the region of interest"]
pub type OBRegionOfInterest = AE_ROI;
pub const OBFilterConfigValueType_OB_FILTER_CONFIG_VALUE_TYPE_INVALID: OBFilterConfigValueType = -1;
pub const OBFilterConfigValueType_OB_FILTER_CONFIG_VALUE_TYPE_INT: OBFilterConfigValueType = 0;
pub const OBFilterConfigValueType_OB_FILTER_CONFIG_VALUE_TYPE_FLOAT: OBFilterConfigValueType = 1;
pub const OBFilterConfigValueType_OB_FILTER_CONFIG_VALUE_TYPE_BOOLEAN: OBFilterConfigValueType = 2;
pub type OBFilterConfigValueType = i32;
pub use self::OBFilterConfigValueType as ob_filter_config_value_type;
#[doc = " @brief  Configuration Item for the filter"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct OBFilterConfigSchemaItem {
    #[doc = "< Name of the configuration item"]
    pub name: *const ::std::os::raw::c_char,
    #[doc = "< Value type of the configuration item"]
    pub type_: OBFilterConfigValueType,
    #[doc = "< Minimum value casted to double"]
    pub min: f64,
    #[doc = "< Maximum value casted to double"]
    pub max: f64,
    #[doc = "< Step value casted to double"]
    pub step: f64,
    #[doc = "< Default value casted to double"]
    pub def: f64,
    #[doc = "< Description of the configuration item"]
    pub desc: *const ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBFilterConfigSchemaItem"]
        [::std::mem::size_of::<OBFilterConfigSchemaItem>() - 52usize];
    ["Alignment of OBFilterConfigSchemaItem"]
        [::std::mem::align_of::<OBFilterConfigSchemaItem>() - 1usize];
    ["Offset of field: OBFilterConfigSchemaItem::name"]
        [::std::mem::offset_of!(OBFilterConfigSchemaItem, name) - 0usize];
    ["Offset of field: OBFilterConfigSchemaItem::type_"]
        [::std::mem::offset_of!(OBFilterConfigSchemaItem, type_) - 8usize];
    ["Offset of field: OBFilterConfigSchemaItem::min"]
        [::std::mem::offset_of!(OBFilterConfigSchemaItem, min) - 12usize];
    ["Offset of field: OBFilterConfigSchemaItem::max"]
        [::std::mem::offset_of!(OBFilterConfigSchemaItem, max) - 20usize];
    ["Offset of field: OBFilterConfigSchemaItem::step"]
        [::std::mem::offset_of!(OBFilterConfigSchemaItem, step) - 28usize];
    ["Offset of field: OBFilterConfigSchemaItem::def"]
        [::std::mem::offset_of!(OBFilterConfigSchemaItem, def) - 36usize];
    ["Offset of field: OBFilterConfigSchemaItem::desc"]
        [::std::mem::offset_of!(OBFilterConfigSchemaItem, desc) - 44usize];
};
#[doc = " @brief  Configuration Item for the filter"]
pub type ob_filter_config_schema_item = OBFilterConfigSchemaItem;
#[doc = " @brief struct of serial number"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OBDeviceSerialNumber {
    pub numberStr: [::std::os::raw::c_char; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBDeviceSerialNumber"][::std::mem::size_of::<OBDeviceSerialNumber>() - 16usize];
    ["Alignment of OBDeviceSerialNumber"][::std::mem::align_of::<OBDeviceSerialNumber>() - 1usize];
    ["Offset of field: OBDeviceSerialNumber::numberStr"]
        [::std::mem::offset_of!(OBDeviceSerialNumber, numberStr) - 0usize];
};
#[doc = " @brief struct of serial number"]
pub type ob_device_serial_number = OBDeviceSerialNumber;
#[doc = " @brief struct of serial number"]
pub type OBSerialNumber = OBDeviceSerialNumber;
#[doc = " @brief struct of serial number"]
pub type ob_serial_number = OBDeviceSerialNumber;
#[doc = " @brief Disparity offset interleaving configuration"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OBDispOffsetConfig {
    pub enable: u8,
    pub offset0: u8,
    pub offset1: u8,
    pub reserved: u8,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBDispOffsetConfig"][::std::mem::size_of::<OBDispOffsetConfig>() - 4usize];
    ["Alignment of OBDispOffsetConfig"][::std::mem::align_of::<OBDispOffsetConfig>() - 1usize];
    ["Offset of field: OBDispOffsetConfig::enable"]
        [::std::mem::offset_of!(OBDispOffsetConfig, enable) - 0usize];
    ["Offset of field: OBDispOffsetConfig::offset0"]
        [::std::mem::offset_of!(OBDispOffsetConfig, offset0) - 1usize];
    ["Offset of field: OBDispOffsetConfig::offset1"]
        [::std::mem::offset_of!(OBDispOffsetConfig, offset1) - 2usize];
    ["Offset of field: OBDispOffsetConfig::reserved"]
        [::std::mem::offset_of!(OBDispOffsetConfig, reserved) - 3usize];
};
#[doc = " @brief Disparity offset interleaving configuration"]
pub type ob_disp_offset_config = OBDispOffsetConfig;
#[doc = " @brief Timestamp when the frame is captured.\n @attention Different device models may have different units. It is recommended to use the timestamp related functions to get the timestamp in the\n correct units."]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_TIMESTAMP: ob_frame_metadata_type = 0;
#[doc = " @brief Timestamp in the middle of the capture.\n @brief Usually is the middle of the exposure time.\n\n @attention Different device models may have different units."]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_SENSOR_TIMESTAMP: ob_frame_metadata_type =
    1;
#[doc = " @brief The number of current frame."]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_FRAME_NUMBER: ob_frame_metadata_type = 2;
#[doc = " @brief Auto exposure status\n @brief If the value is 0, it means the auto exposure is disabled. Otherwise, it means the auto exposure is enabled."]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_AUTO_EXPOSURE: ob_frame_metadata_type = 3;
#[doc = " @brief Exposure time\n\n @attention Different sensor may have different units. Usually, it is 100us for color sensor and 1us for depth/infrared sensor."]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_EXPOSURE: ob_frame_metadata_type = 4;
#[doc = " @brief Gain\n\n @attention For some device models, the gain value represents the gain level, not the multiplier."]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_GAIN: ob_frame_metadata_type = 5;
#[doc = " @brief Auto white balance status\n @brief If the value is 0, it means the auto white balance is disabled. Otherwise, it means the auto white balance is enabled."]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_AUTO_WHITE_BALANCE: ob_frame_metadata_type =
    6;
#[doc = " @brief White balance"]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_WHITE_BALANCE: ob_frame_metadata_type = 7;
#[doc = " @brief Brightness"]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_BRIGHTNESS: ob_frame_metadata_type = 8;
#[doc = " @brief Contrast"]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_CONTRAST: ob_frame_metadata_type = 9;
#[doc = " @brief Saturation"]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_SATURATION: ob_frame_metadata_type = 10;
#[doc = " @brief Sharpness"]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_SHARPNESS: ob_frame_metadata_type = 11;
#[doc = " @brief Backlight compensation"]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_BACKLIGHT_COMPENSATION:
    ob_frame_metadata_type = 12;
#[doc = " @brief Hue"]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_HUE: ob_frame_metadata_type = 13;
#[doc = " @brief Gamma"]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_GAMMA: ob_frame_metadata_type = 14;
#[doc = " @brief Power line frequency\n @brief For anti-flickering, 0: Close, 1: 50Hz, 2: 60Hz, 3: Auto"]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_POWER_LINE_FREQUENCY:
    ob_frame_metadata_type = 15;
#[doc = " @brief Low light compensation\n\n @attention The low light compensation is a feature inside the device, and can not manually control it."]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_LOW_LIGHT_COMPENSATION:
    ob_frame_metadata_type = 16;
#[doc = " @brief Manual white balance setting"]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_MANUAL_WHITE_BALANCE:
    ob_frame_metadata_type = 17;
#[doc = " @brief Actual frame rate\n @brief The actual frame rate will be calculated according to the exposure time and other parameters."]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_ACTUAL_FRAME_RATE: ob_frame_metadata_type =
    18;
#[doc = " @brief Frame rate"]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_FRAME_RATE: ob_frame_metadata_type = 19;
#[doc = " @brief Left region of interest for the auto exposure Algorithm."]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_AE_ROI_LEFT: ob_frame_metadata_type = 20;
#[doc = " @brief Top region of interest for the auto exposure Algorithm."]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_AE_ROI_TOP: ob_frame_metadata_type = 21;
#[doc = " @brief Right region of interest for the auto exposure Algorithm."]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_AE_ROI_RIGHT: ob_frame_metadata_type = 22;
#[doc = " @brief Bottom region of interest for the auto exposure Algorithm."]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_AE_ROI_BOTTOM: ob_frame_metadata_type = 23;
#[doc = " @brief Exposure priority"]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_EXPOSURE_PRIORITY: ob_frame_metadata_type =
    24;
#[doc = " @brief HDR sequence name"]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_HDR_SEQUENCE_NAME: ob_frame_metadata_type =
    25;
#[doc = " @brief HDR sequence size"]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_HDR_SEQUENCE_SIZE: ob_frame_metadata_type =
    26;
#[doc = " @brief HDR sequence index"]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_HDR_SEQUENCE_INDEX: ob_frame_metadata_type =
    27;
#[doc = " @brief Laser power value in mW\n\n @attention The laser power value is an approximate estimation."]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_LASER_POWER: ob_frame_metadata_type = 28;
#[doc = " @brief Laser power level"]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_LASER_POWER_LEVEL: ob_frame_metadata_type =
    29;
#[doc = " @brief Laser status\n @brief 0: Laser off, 1: Laser on"]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_LASER_STATUS: ob_frame_metadata_type = 30;
#[doc = " @brief GPIO input data"]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_GPIO_INPUT_DATA: ob_frame_metadata_type =
    31;
#[doc = " @brief disparity search offset value"]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_DISPARITY_SEARCH_OFFSET:
    ob_frame_metadata_type = 32;
#[doc = " @brief disparity search range"]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_DISPARITY_SEARCH_RANGE:
    ob_frame_metadata_type = 33;
#[doc = " @brief The number of frame metadata types, using for types iterating\n @attention It is not a valid frame metadata type"]
pub const ob_frame_metadata_type_OB_FRAME_METADATA_TYPE_COUNT: ob_frame_metadata_type = 34;
#[doc = " @brief Frame metadata types\n @brief The frame metadata is a set of meta info generated by the device for current individual frame."]
pub type ob_frame_metadata_type = i32;
#[doc = " @brief Frame metadata types\n @brief The frame metadata is a set of meta info generated by the device for current individual frame."]
pub use self::ob_frame_metadata_type as OBFrameMetadataType;
#[doc = " @brief Auto detect system capabilities and device hint to select backend\n"]
pub const ob_uvc_backend_type_OB_UVC_BACKEND_TYPE_AUTO: ob_uvc_backend_type = 0;
#[doc = " @brief Use libuvc backend to access the UVC device\n"]
pub const ob_uvc_backend_type_OB_UVC_BACKEND_TYPE_LIBUVC: ob_uvc_backend_type = 1;
#[doc = " @brief Use v4l2 backend to access the UVC device\n"]
pub const ob_uvc_backend_type_OB_UVC_BACKEND_TYPE_V4L2: ob_uvc_backend_type = 2;
#[doc = " @brief Use MSMF backend to access the UVC device"]
pub const ob_uvc_backend_type_OB_UVC_BACKEND_TYPE_MSMF: ob_uvc_backend_type = 3;
#[doc = " @brief For Linux, there are two ways to access the UVC device, libuvc and v4l2. The backend type is used to select the backend to access the device.\n"]
pub type ob_uvc_backend_type = i32;
#[doc = " @brief For Linux, there are two ways to access the UVC device, libuvc and v4l2. The backend type is used to select the backend to access the device.\n"]
pub use self::ob_uvc_backend_type as OBUvcBackendType;
pub const ob_playback_status_OB_PLAYBACK_UNKNOWN: ob_playback_status = 0;
#[doc = "< The media is playing"]
pub const ob_playback_status_OB_PLAYBACK_PLAYING: ob_playback_status = 1;
#[doc = "< The media is paused"]
pub const ob_playback_status_OB_PLAYBACK_PAUSED: ob_playback_status = 2;
#[doc = "< The media is stopped"]
pub const ob_playback_status_OB_PLAYBACK_STOPPED: ob_playback_status = 3;
pub const ob_playback_status_OB_PLAYBACK_COUNT: ob_playback_status = 4;
#[doc = " @brief The playback status of the media"]
pub type ob_playback_status = i32;
#[doc = " @brief The playback status of the media"]
pub use self::ob_playback_status as OBPlaybackStatus;
#[doc = " @brief Callback for file transfer\n\n @param state Transmission status\n @param message Transfer status information\n @param percent Transfer progress percentage\n @param user_data User-defined data"]
pub type ob_file_send_callback = ::std::option::Option<
    unsafe extern "C" fn(
        state: ob_file_tran_state,
        message: *const ::std::os::raw::c_char,
        percent: u8,
        user_data: *mut ::std::os::raw::c_void,
    ),
>;
#[doc = " @brief Callback for firmware upgrade\n\n @param state Upgrade status\n @param message Upgrade status information\n @param percent Upgrade progress percentage\n @param user_data User-defined data"]
pub type ob_device_fw_update_callback = ::std::option::Option<
    unsafe extern "C" fn(
        state: ob_fw_update_state,
        message: *const ::std::os::raw::c_char,
        percent: u8,
        user_data: *mut ::std::os::raw::c_void,
    ),
>;
#[doc = " @brief Callback for device status\n\n @param state Device status\n @param message Device status information\n @param user_data User-defined data"]
pub type ob_device_state_callback = ::std::option::Option<
    unsafe extern "C" fn(
        state: ob_device_state,
        message: *const ::std::os::raw::c_char,
        user_data: *mut ::std::os::raw::c_void,
    ),
>;
#[doc = " @brief Callback for writing data\n\n @param state Write data status\n @param percent Write data percentage\n @param user_data User-defined data"]
pub type ob_set_data_callback = ::std::option::Option<
    unsafe extern "C" fn(
        state: ob_data_tran_state,
        percent: u8,
        user_data: *mut ::std::os::raw::c_void,
    ),
>;
#[doc = " @brief Callback for reading data\n\n @param state Read data status\n @param dataChunk Read the returned data block\n @param user_data User-defined data"]
pub type ob_get_data_callback = ::std::option::Option<
    unsafe extern "C" fn(
        state: ob_data_tran_state,
        dataChunk: *mut ob_data_chunk,
        user_data: *mut ::std::os::raw::c_void,
    ),
>;
#[doc = " @brief Callback for media status (recording and playback)\n\n @param state Condition\n @param user_data User-defined data"]
pub type ob_media_state_callback = ::std::option::Option<
    unsafe extern "C" fn(state: ob_media_state, user_data: *mut ::std::os::raw::c_void),
>;
#[doc = " @brief Callback for device change\n\n @param removed List of deleted (dropped) devices\n @param added List of added (online) devices\n @param user_data User-defined data"]
pub type ob_device_changed_callback = ::std::option::Option<
    unsafe extern "C" fn(
        removed: *mut ob_device_list,
        added: *mut ob_device_list,
        user_data: *mut ::std::os::raw::c_void,
    ),
>;
#[doc = " @brief Callback for frame\n\n @param frame Frame object\n @param user_data User-defined data"]
pub type ob_frame_callback = ::std::option::Option<
    unsafe extern "C" fn(frame: *mut ob_frame, user_data: *mut ::std::os::raw::c_void),
>;
#[doc = " @brief Callback for frameset\n\n @param frameset Frameset object\n @param user_data User-defined data"]
pub type ob_frameset_callback = ::std::option::Option<
    unsafe extern "C" fn(frameset: *mut ob_frame, user_data: *mut ::std::os::raw::c_void),
>;
#[doc = " @brief Customize the delete callback\n\n @param buffer Data that needs to be deleted\n @param user_data User-defined data"]
pub type ob_frame_destroy_callback = ::std::option::Option<
    unsafe extern "C" fn(buffer: *mut u8, user_data: *mut ::std::os::raw::c_void),
>;
#[doc = " @brief Callback for receiving log\n\n @param severity Current log level\n @param message Log message\n @param user_data User-defined data"]
pub type ob_log_callback = ::std::option::Option<
    unsafe extern "C" fn(
        severity: ob_log_severity,
        message: *const ::std::os::raw::c_char,
        user_data: *mut ::std::os::raw::c_void,
    ),
>;
pub type ob_playback_status_changed_callback = ::std::option::Option<
    unsafe extern "C" fn(status: ob_playback_status, user_data: *mut ::std::os::raw::c_void),
>;
unsafe extern "C" {
    #[doc = " @brief Create a context object with the default configuration file\n\n @param[out] error Pointer to an error object that will be populated if an error occurs during context creation\n @return Pointer to the created context object"]
    pub fn ob_create_context(error: *mut *mut ob_error) -> *mut ob_context;
}
unsafe extern "C" {
    #[doc = " @brief Create a context object with a specified configuration file\n\n @param[in] config_file_path Path to the configuration file. If NULL, the default configuration file will be used.\n @param[out] error Pointer to an error object that will be populated if an error occurs during context creation\n @return Pointer to the created context object"]
    pub fn ob_create_context_with_config(
        config_file_path: *const ::std::os::raw::c_char,
        error: *mut *mut ob_error,
    ) -> *mut ob_context;
}
unsafe extern "C" {
    #[doc = " @brief Delete a context object\n\n @param[in] context Pointer to the context object to be deleted\n @param[out] error Pointer to an error object that will be populated if an error occurs during context deletion"]
    pub fn ob_delete_context(context: *mut ob_context, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Get a list of enumerated devices\n\n @param[in] context Pointer to the context object\n @param[out] error Pointer to an error object that will be populated if an error occurs during device enumeration\n @return Pointer to the device list object"]
    pub fn ob_query_device_list(
        context: *mut ob_context,
        error: *mut *mut ob_error,
    ) -> *mut ob_device_list;
}
unsafe extern "C" {
    #[doc = " @brief Enable or disable network device enumeration\n @brief After enabling, the network device will be automatically discovered and can be retrieved through @ref ob_query_device_list. The default state can be\n set in the configuration file.\n\n @attention Network device enumeration is performed through the GVCP protocol. If the device is not in the same subnet as the host, it will be discovered but\n cannot be connected.\n\n @param[in] context Pointer to the context object\n @param[in] enable true to enable, false to disable\n @param[out] error Pointer to an error object that will be populated if an error occurs."]
    pub fn ob_enable_net_device_enumeration(
        context: *mut ob_context,
        enable: bool,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Create a network device object\n\n @param[in] context Pointer to the context object\n @param[in] address IP address of the device\n @param[in] port Port number of the device\n @param[out] error Pointer to an error object that will be populated if an error occurs during device creation\n @return Pointer to the created device object"]
    pub fn ob_create_net_device(
        context: *mut ob_context,
        address: *const ::std::os::raw::c_char,
        port: u16,
        error: *mut *mut ob_error,
    ) -> *mut ob_device;
}
unsafe extern "C" {
    #[doc = " @brief Set a device plug-in callback function\n @attention The added and removed device lists returned through the callback interface need to be released manually\n @attention This function supports multiple callbacks. Each call to this function adds a new callback to an internal list.\n\n @param[in] context Pointer to the context object\n @param[in] callback Pointer to the callback function triggered when a device is plugged or unplugged\n @param[in] user_data Pointer to user data that can be passed to and retrieved from the callback function\n @param[out] error Pointer to an error object that will be populated if an error occurs during callback function setting"]
    pub fn ob_set_device_changed_callback(
        context: *mut ob_context,
        callback: ob_device_changed_callback,
        user_data: *mut ::std::os::raw::c_void,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Activates device clock synchronization to synchronize the clock of the host and all created devices (if supported).\n\n @param[in] context Pointer to the context object\n @param[in] repeat_interval_msec The interval for auto-repeated synchronization, in milliseconds. If the value is 0, synchronization is performed only once.\n @param[out] error Pointer to an error object that will be populated if an error occurs during execution"]
    pub fn ob_enable_device_clock_sync(
        context: *mut ob_context,
        repeat_interval_msec: u64,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Free idle memory from the internal frame memory pool\n\n @param[in] context Pointer to the context object\n @param[out] error Pointer to an error object that will be populated if an error occurs during memory freeing"]
    pub fn ob_free_idle_memory(context: *mut ob_context, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief For linux, there are two ways to enable the UVC backend: libuvc and v4l2. This function is used to set the backend type.\n @brief It is effective when the new device is created.\n\n @attention This interface is only available for Linux.\n\n @param[in] context Pointer to the context object\n @param[in] backend_type The backend type to be used.\n @param[out] error Pointer to an error object that will be populated if an error occurs during backend type setting"]
    pub fn ob_set_uvc_backend_type(
        context: *mut ob_context,
        backend_type: ob_uvc_backend_type,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Set the global log level\n\n @attention This interface setting will affect the output level of all logs (terminal, file, callback)\n\n @param[in] severity Log level to set\n @param[out] error Pointer to an error object that will be populated if an error occurs during log level setting"]
    pub fn ob_set_logger_severity(severity: ob_log_severity, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Set the log output to a file\n\n @param[in] severity Log level to output to file\n @param[in] directory Path to the log file output directory. If the path is empty, the existing settings will continue to be used (if the existing\n configuration is also empty, the log will not be output to the file)\n @param[out] error Pointer to an error object that will be populated if an error occurs during log output setting"]
    pub fn ob_set_logger_to_file(
        severity: ob_log_severity,
        directory: *const ::std::os::raw::c_char,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Set the log callback function\n\n @param[in] severity Log level to set for the callback function\n @param[in] callback Pointer to the callback function\n @param[in] user_data Pointer to user data that can be passed to and retrieved from the callback function\n @param[out] error Pointer to an error object that will be populated if an error occurs during log callback function setting"]
    pub fn ob_set_logger_to_callback(
        severity: ob_log_severity,
        callback: ob_log_callback,
        user_data: *mut ::std::os::raw::c_void,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Set the log output to the console\n\n @param[in] severity Log level to output to the console\n @param[out] error Pointer to an error object that will be populated if an error occurs during log output setting"]
    pub fn ob_set_logger_to_console(severity: ob_log_severity, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Set the extensions directory\n @brief The extensions directory is used to search for dynamic libraries that provide additional functionality to the SDK, such as the Frame filters.\n\n @attention Should be called before creating the context and pipeline, otherwise the default extensions directory (./extensions) will be used.\n\n @param directory Path to the extensions directory. If the path is empty, extensions path will be set to the current working directory.\n @param error Pointer to an error object that will be populated if an error occurs during extensions directory setting"]
    pub fn ob_set_extensions_directory(
        directory: *const ::std::os::raw::c_char,
        error: *mut *mut ob_error,
    );
}
#[doc = " @brief LDP switch"]
pub const OBPropertyID_OB_PROP_LDP_BOOL: OBPropertyID = 2;
#[doc = " @brief Laser switch"]
pub const OBPropertyID_OB_PROP_LASER_BOOL: OBPropertyID = 3;
#[doc = " @brief laser pulse width"]
pub const OBPropertyID_OB_PROP_LASER_PULSE_WIDTH_INT: OBPropertyID = 4;
#[doc = " @brief Laser current (uint: mA)"]
pub const OBPropertyID_OB_PROP_LASER_CURRENT_FLOAT: OBPropertyID = 5;
#[doc = " @brief IR flood switch"]
pub const OBPropertyID_OB_PROP_FLOOD_BOOL: OBPropertyID = 6;
#[doc = " @brief IR flood level"]
pub const OBPropertyID_OB_PROP_FLOOD_LEVEL_INT: OBPropertyID = 7;
#[doc = " @brief Enable/disable temperature compensation\n"]
pub const OBPropertyID_OB_PROP_TEMPERATURE_COMPENSATION_BOOL: OBPropertyID = 8;
#[doc = " @brief Depth mirror"]
pub const OBPropertyID_OB_PROP_DEPTH_MIRROR_BOOL: OBPropertyID = 14;
#[doc = " @brief Depth flip"]
pub const OBPropertyID_OB_PROP_DEPTH_FLIP_BOOL: OBPropertyID = 15;
#[doc = " @brief Depth Postfilter"]
pub const OBPropertyID_OB_PROP_DEPTH_POSTFILTER_BOOL: OBPropertyID = 16;
#[doc = " @brief Depth Holefilter"]
pub const OBPropertyID_OB_PROP_DEPTH_HOLEFILTER_BOOL: OBPropertyID = 17;
#[doc = " @brief IR mirror"]
pub const OBPropertyID_OB_PROP_IR_MIRROR_BOOL: OBPropertyID = 18;
#[doc = " @brief IR flip"]
pub const OBPropertyID_OB_PROP_IR_FLIP_BOOL: OBPropertyID = 19;
#[doc = " @brief Minimum depth threshold"]
pub const OBPropertyID_OB_PROP_MIN_DEPTH_INT: OBPropertyID = 22;
#[doc = " @brief Maximum depth threshold"]
pub const OBPropertyID_OB_PROP_MAX_DEPTH_INT: OBPropertyID = 23;
#[doc = " @brief Software filter switch"]
pub const OBPropertyID_OB_PROP_DEPTH_NOISE_REMOVAL_FILTER_BOOL: OBPropertyID = 24;
#[doc = " @brief LDP status"]
pub const OBPropertyID_OB_PROP_LDP_STATUS_BOOL: OBPropertyID = 32;
#[doc = " @brief maxdiff for depth noise removal filter"]
pub const OBPropertyID_OB_PROP_DEPTH_NOISE_REMOVAL_FILTER_MAX_DIFF_INT: OBPropertyID = 40;
#[doc = " @brief maxSpeckleSize for depth noise removal filter"]
pub const OBPropertyID_OB_PROP_DEPTH_NOISE_REMOVAL_FILTER_MAX_SPECKLE_SIZE_INT: OBPropertyID = 41;
#[doc = " @brief Hardware d2c is on"]
pub const OBPropertyID_OB_PROP_DEPTH_ALIGN_HARDWARE_BOOL: OBPropertyID = 42;
#[doc = " @brief Timestamp adjustment"]
pub const OBPropertyID_OB_PROP_TIMESTAMP_OFFSET_INT: OBPropertyID = 43;
#[doc = " @brief Hardware distortion switch Rectify"]
pub const OBPropertyID_OB_PROP_HARDWARE_DISTORTION_SWITCH_BOOL: OBPropertyID = 61;
#[doc = " @brief Fan mode switch"]
pub const OBPropertyID_OB_PROP_FAN_WORK_MODE_INT: OBPropertyID = 62;
#[doc = " @brief Multi-resolution D2C mode"]
pub const OBPropertyID_OB_PROP_DEPTH_ALIGN_HARDWARE_MODE_INT: OBPropertyID = 63;
#[doc = " @brief Anti_collusion activation status"]
pub const OBPropertyID_OB_PROP_ANTI_COLLUSION_ACTIVATION_STATUS_BOOL: OBPropertyID = 64;
#[doc = " @brief the depth precision level, which may change the depth frame data unit, needs to be confirmed through the ValueScale interface of\n DepthFrame"]
pub const OBPropertyID_OB_PROP_DEPTH_PRECISION_LEVEL_INT: OBPropertyID = 75;
#[doc = " @brief tof filter range configuration"]
pub const OBPropertyID_OB_PROP_TOF_FILTER_RANGE_INT: OBPropertyID = 76;
#[doc = " @brief laser mode, the firmware terminal currently only return 1: IR Drive, 2: Torch"]
pub const OBPropertyID_OB_PROP_LASER_MODE_INT: OBPropertyID = 79;
#[doc = " @brief brt2r-rectify function switch (brt2r is a special module on mx6600), 0: Disable, 1: Rectify Enable"]
pub const OBPropertyID_OB_PROP_RECTIFY2_BOOL: OBPropertyID = 80;
#[doc = " @brief Color mirror"]
pub const OBPropertyID_OB_PROP_COLOR_MIRROR_BOOL: OBPropertyID = 81;
#[doc = " @brief Color flip"]
pub const OBPropertyID_OB_PROP_COLOR_FLIP_BOOL: OBPropertyID = 82;
#[doc = " @brief Indicator switch, 0: Disable, 1: Enable"]
pub const OBPropertyID_OB_PROP_INDICATOR_LIGHT_BOOL: OBPropertyID = 83;
#[doc = " @brief Disparity to depth switch, false: switch to software disparity convert to depth, true: switch to hardware disparity convert to depth"]
pub const OBPropertyID_OB_PROP_DISPARITY_TO_DEPTH_BOOL: OBPropertyID = 85;
#[doc = " @brief BRT function switch (anti-background interference), 0: Disable, 1: Enable"]
pub const OBPropertyID_OB_PROP_BRT_BOOL: OBPropertyID = 86;
#[doc = " @brief Watchdog function switch, 0: Disable, 1: Enable"]
pub const OBPropertyID_OB_PROP_WATCHDOG_BOOL: OBPropertyID = 87;
#[doc = " @brief External signal trigger restart function switch, 0: Disable, 1: Enable"]
pub const OBPropertyID_OB_PROP_EXTERNAL_SIGNAL_RESET_BOOL: OBPropertyID = 88;
#[doc = " @brief Heartbeat monitoring function switch, 0: Disable, 1: Enable"]
pub const OBPropertyID_OB_PROP_HEARTBEAT_BOOL: OBPropertyID = 89;
#[doc = " @brief Depth cropping mode device: OB_DEPTH_CROPPING_MODE"]
pub const OBPropertyID_OB_PROP_DEPTH_CROPPING_MODE_INT: OBPropertyID = 90;
#[doc = " @brief D2C preprocessing switch (such as RGB cropping), 0: off, 1: on"]
pub const OBPropertyID_OB_PROP_D2C_PREPROCESS_BOOL: OBPropertyID = 91;
#[doc = " @brief Enable/disable GPM function"]
pub const OBPropertyID_OB_PROP_GPM_BOOL: OBPropertyID = 93;
#[doc = " @brief Custom RGB cropping switch, 0 is off, 1 is on custom cropping, and the ROI cropping area is issued"]
pub const OBPropertyID_OB_PROP_RGB_CUSTOM_CROP_BOOL: OBPropertyID = 94;
#[doc = " @brief Device operating mode (power consumption)"]
pub const OBPropertyID_OB_PROP_DEVICE_WORK_MODE_INT: OBPropertyID = 95;
#[doc = " @brief Device communication type, 0: USB; 1: Ethernet(RTSP)"]
pub const OBPropertyID_OB_PROP_DEVICE_COMMUNICATION_TYPE_INT: OBPropertyID = 97;
#[doc = " @brief Switch infrared imaging mode, 0: active IR mode, 1: passive IR mode"]
pub const OBPropertyID_OB_PROP_SWITCH_IR_MODE_INT: OBPropertyID = 98;
#[doc = " @brief Laser power level"]
pub const OBPropertyID_OB_PROP_LASER_POWER_LEVEL_CONTROL_INT: OBPropertyID = 99;
#[doc = " @brief LDP's measure distance, unit: mm"]
pub const OBPropertyID_OB_PROP_LDP_MEASURE_DISTANCE_INT: OBPropertyID = 100;
#[doc = " @brief Reset device time to zero"]
pub const OBPropertyID_OB_PROP_TIMER_RESET_SIGNAL_BOOL: OBPropertyID = 104;
#[doc = " @brief Enable send reset device time signal to other device. true: enable, false: disable"]
pub const OBPropertyID_OB_PROP_TIMER_RESET_TRIGGER_OUT_ENABLE_BOOL: OBPropertyID = 105;
#[doc = " @brief Delay to reset device time, unit: us"]
pub const OBPropertyID_OB_PROP_TIMER_RESET_DELAY_US_INT: OBPropertyID = 106;
#[doc = " @brief Signal to capture image"]
pub const OBPropertyID_OB_PROP_CAPTURE_IMAGE_SIGNAL_BOOL: OBPropertyID = 107;
#[doc = " @brief Right IR sensor mirror state"]
pub const OBPropertyID_OB_PROP_IR_RIGHT_MIRROR_BOOL: OBPropertyID = 112;
#[doc = " @brief Number frame to capture once a 'OB_PROP_CAPTURE_IMAGE_SIGNAL_BOOL' effect. range: [1, 255]"]
pub const OBPropertyID_OB_PROP_CAPTURE_IMAGE_FRAME_NUMBER_INT: OBPropertyID = 113;
#[doc = " @brief Right IR sensor flip state. true: flip image, false: origin, default: false"]
pub const OBPropertyID_OB_PROP_IR_RIGHT_FLIP_BOOL: OBPropertyID = 114;
#[doc = " @brief Color sensor rotation, angle{0, 90, 180, 270}"]
pub const OBPropertyID_OB_PROP_COLOR_ROTATE_INT: OBPropertyID = 115;
#[doc = " @brief IR/Left-IR sensor rotation, angle{0, 90, 180, 270}"]
pub const OBPropertyID_OB_PROP_IR_ROTATE_INT: OBPropertyID = 116;
#[doc = " @brief Right IR sensor rotation, angle{0, 90, 180, 270}"]
pub const OBPropertyID_OB_PROP_IR_RIGHT_ROTATE_INT: OBPropertyID = 117;
#[doc = " @brief Depth sensor rotation, angle{0, 90, 180, 270}"]
pub const OBPropertyID_OB_PROP_DEPTH_ROTATE_INT: OBPropertyID = 118;
#[doc = " @brief Get hardware laser power actual level which real state of laser element. OB_PROP_LASER_POWER_LEVEL_CONTROL_INT99 will effect this command\n which it setting and changed the hardware laser energy level."]
pub const OBPropertyID_OB_PROP_LASER_POWER_ACTUAL_LEVEL_INT: OBPropertyID = 119;
#[doc = " @brief USB's power state, enum type: OBUSBPowerState"]
pub const OBPropertyID_OB_PROP_USB_POWER_STATE_INT: OBPropertyID = 121;
#[doc = " @brief DC's power state, enum type: OBDCPowerState"]
pub const OBPropertyID_OB_PROP_DC_POWER_STATE_INT: OBPropertyID = 122;
#[doc = " @brief Device development mode switch, optional modes can refer to the definition in @ref OBDeviceDevelopmentMode,the default mode is\n @ref OB_USER_MODE\n @attention The device takes effect after rebooting when switching modes."]
pub const OBPropertyID_OB_PROP_DEVICE_DEVELOPMENT_MODE_INT: OBPropertyID = 129;
#[doc = " @brief Multi-DeviceSync synchronized signal trigger out is enable state. true: enable, false: disable"]
pub const OBPropertyID_OB_PROP_SYNC_SIGNAL_TRIGGER_OUT_BOOL: OBPropertyID = 130;
#[doc = " @brief Restore factory settings and factory parameters\n @attention This command can only be written, and the parameter value must be true. The command takes effect after restarting the device."]
pub const OBPropertyID_OB_PROP_RESTORE_FACTORY_SETTINGS_BOOL: OBPropertyID = 131;
#[doc = " @brief Enter recovery mode (flashing mode) when boot the device\n @attention The device will take effect after rebooting with the enable option. After entering recovery mode, you can upgrade the device system. Upgrading\n the system may cause system damage, please use it with caution."]
pub const OBPropertyID_OB_PROP_BOOT_INTO_RECOVERY_MODE_BOOL: OBPropertyID = 132;
#[doc = " @brief Query whether the current device is running in recovery mode (read-only)"]
pub const OBPropertyID_OB_PROP_DEVICE_IN_RECOVERY_MODE_BOOL: OBPropertyID = 133;
#[doc = " @brief Capture interval mode, 0:time interval, 1:number interval"]
pub const OBPropertyID_OB_PROP_CAPTURE_INTERVAL_MODE_INT: OBPropertyID = 134;
#[doc = " @brief Capture time interval"]
pub const OBPropertyID_OB_PROP_CAPTURE_IMAGE_TIME_INTERVAL_INT: OBPropertyID = 135;
#[doc = " @brief Capture number interval"]
pub const OBPropertyID_OB_PROP_CAPTURE_IMAGE_NUMBER_INTERVAL_INT: OBPropertyID = 136;
pub const OBPropertyID_OB_PROP_TIMER_RESET_ENABLE_BOOL: OBPropertyID = 140;
#[doc = " @brief Enable or disable the device to retry USB2.0 re-identification when the device is connected to a USB2.0 port.\n @brief This feature ensures that the device is not mistakenly identified as a USB 2.0 device when connected to a USB 3.0 port."]
pub const OBPropertyID_OB_PROP_DEVICE_USB2_REPEAT_IDENTIFY_BOOL: OBPropertyID = 141;
#[doc = " @brief Reboot device delay mode. Delay time unit: ms, range: [0, 8000)."]
pub const OBPropertyID_OB_PROP_DEVICE_REBOOT_DELAY_INT: OBPropertyID = 142;
#[doc = " @brief Query the status of laser overcurrent protection (read-only)"]
pub const OBPropertyID_OB_PROP_LASER_OVERCURRENT_PROTECTION_STATUS_BOOL: OBPropertyID = 148;
#[doc = " @brief Query the status of laser pulse width protection (read-only)"]
pub const OBPropertyID_OB_PROP_LASER_PULSE_WIDTH_PROTECTION_STATUS_BOOL: OBPropertyID = 149;
#[doc = " @brief Laser always on, true: always on, false: off, laser will be turned off when out of exposure time"]
pub const OBPropertyID_OB_PROP_LASER_ALWAYS_ON_BOOL: OBPropertyID = 174;
#[doc = " @brief Laser on/off alternate mode, 0: off, 1: on-off alternate, 2: off-on alternate\n @attention When turn on this mode, the laser will turn on and turn off alternately each frame."]
pub const OBPropertyID_OB_PROP_LASER_ON_OFF_PATTERN_INT: OBPropertyID = 175;
#[doc = " @brief Depth unit flexible adjustment\\\n @brief This property allows continuous adjustment of the depth unit, unlike @ref OB_PROP_DEPTH_PRECISION_LEVEL_INT must be set to some fixed value."]
pub const OBPropertyID_OB_PROP_DEPTH_UNIT_FLEXIBLE_ADJUSTMENT_FLOAT: OBPropertyID = 176;
#[doc = " @brief Laser control, 0: off, 1: on, 2: auto\n"]
pub const OBPropertyID_OB_PROP_LASER_CONTROL_INT: OBPropertyID = 182;
#[doc = " @brief IR brightness"]
pub const OBPropertyID_OB_PROP_IR_BRIGHTNESS_INT: OBPropertyID = 184;
#[doc = " @brief Slave/secondary device synchronization status (read-only)"]
pub const OBPropertyID_OB_PROP_SLAVE_DEVICE_SYNC_STATUS_BOOL: OBPropertyID = 188;
#[doc = " @brief Color AE max exposure"]
pub const OBPropertyID_OB_PROP_COLOR_AE_MAX_EXPOSURE_INT: OBPropertyID = 189;
#[doc = " @brief Max exposure time of IR auto exposure"]
pub const OBPropertyID_OB_PROP_IR_AE_MAX_EXPOSURE_INT: OBPropertyID = 190;
#[doc = " @brief Disparity search range mode, 1: 128, 2: 256"]
pub const OBPropertyID_OB_PROP_DISP_SEARCH_RANGE_MODE_INT: OBPropertyID = 191;
#[doc = " @brief Laser high temperature protection"]
pub const OBPropertyID_OB_PROP_LASER_HIGH_TEMPERATURE_PROTECT_BOOL: OBPropertyID = 193;
#[doc = " @brief low exposure laser control\n\n @brief Currently using for DabaiA device,if the exposure value is lower than a certain threshold, the laser is turned off;\n if it exceeds another threshold, the laser is turned on again."]
pub const OBPropertyID_OB_PROP_LOW_EXPOSURE_LASER_CONTROL_BOOL: OBPropertyID = 194;
#[doc = " @brief check pps sync in signal"]
pub const OBPropertyID_OB_PROP_CHECK_PPS_SYNC_IN_SIGNAL_BOOL: OBPropertyID = 195;
#[doc = " @brief Disparity search range offset, range: [0, 127]"]
pub const OBPropertyID_OB_PROP_DISP_SEARCH_OFFSET_INT: OBPropertyID = 196;
#[doc = " @brief Repower device (cut off power and power on again)\n\n @brief Currently using for GMSL device, cut off power and power on again by GMSL host driver."]
pub const OBPropertyID_OB_PROP_DEVICE_REPOWER_BOOL: OBPropertyID = 202;
#[doc = " @brief frame interleave config index"]
pub const OBPropertyID_OB_PROP_FRAME_INTERLEAVE_CONFIG_INDEX_INT: OBPropertyID = 204;
#[doc = " @brief frame interleave enable (true:enable,false:disable)"]
pub const OBPropertyID_OB_PROP_FRAME_INTERLEAVE_ENABLE_BOOL: OBPropertyID = 205;
#[doc = " @brief laser pattern sync with delay(us)"]
pub const OBPropertyID_OB_PROP_FRAME_INTERLEAVE_LASER_PATTERN_SYNC_DELAY_INT: OBPropertyID = 206;
#[doc = " @brief Get the health check result from device,range is [0.0f,1.5f]"]
pub const OBPropertyID_OB_PROP_ON_CHIP_CALIBRATION_HEALTH_CHECK_FLOAT: OBPropertyID = 209;
#[doc = " @brief Enable or disable on-chip calibration"]
pub const OBPropertyID_OB_PROP_ON_CHIP_CALIBRATION_ENABLE_BOOL: OBPropertyID = 210;
#[doc = " @brief hardware noise remove filter switch"]
pub const OBPropertyID_OB_PROP_HW_NOISE_REMOVE_FILTER_ENABLE_BOOL: OBPropertyID = 211;
#[doc = " @brief hardware noise remove filter threshold ,range [0.0 - 1.0]"]
pub const OBPropertyID_OB_PROP_HW_NOISE_REMOVE_FILTER_THRESHOLD_FLOAT: OBPropertyID = 212;
#[doc = " @brief soft trigger auto capture enable, use in OB_MULTI_DEVICE_SYNC_MODE_SOFTWARE_TRIGGERING mode"]
pub const OBPropertyID_OB_DEVICE_AUTO_CAPTURE_ENABLE_BOOL: OBPropertyID = 216;
#[doc = " @brief soft trigger auto capture interval time, use in OB_MULTI_DEVICE_SYNC_MODE_SOFTWARE_TRIGGERING mode"]
pub const OBPropertyID_OB_DEVICE_AUTO_CAPTURE_INTERVAL_TIME_INT: OBPropertyID = 217;
#[doc = " @brief PTP time synchronization enable"]
pub const OBPropertyID_OB_DEVICE_PTP_CLOCK_SYNC_ENABLE_BOOL: OBPropertyID = 223;
#[doc = " @brief Depth with confidence stream enable"]
pub const OBPropertyID_OB_PROP_DEPTH_WITH_CONFIDENCE_STREAM_ENABLE_BOOL: OBPropertyID = 224;
#[doc = " @brief Enable or disable confidence stream filter"]
pub const OBPropertyID_OB_PROP_CONFIDENCE_STREAM_FILTER_BOOL: OBPropertyID = 226;
#[doc = " @brief Confidence stream filter threshold, range [0, 255]"]
pub const OBPropertyID_OB_PROP_CONFIDENCE_STREAM_FILTER_THRESHOLD_INT: OBPropertyID = 227;
#[doc = " @brief Confidence stream mirror enable"]
pub const OBPropertyID_OB_PROP_CONFIDENCE_MIRROR_BOOL: OBPropertyID = 229;
#[doc = " @brief Confidence stream flip enable"]
pub const OBPropertyID_OB_PROP_CONFIDENCE_FLIP_BOOL: OBPropertyID = 230;
#[doc = " @brief Confidence stream rotate angle{0, 90, 180, 270}"]
pub const OBPropertyID_OB_PROP_CONFIDENCE_ROTATE_INT: OBPropertyID = 231;
#[doc = " @brief Baseline calibration parameters"]
pub const OBPropertyID_OB_STRUCT_BASELINE_CALIBRATION_PARAM: OBPropertyID = 1002;
#[doc = " @brief Device temperature information"]
pub const OBPropertyID_OB_STRUCT_DEVICE_TEMPERATURE: OBPropertyID = 1003;
#[doc = " @brief TOF exposure threshold range"]
pub const OBPropertyID_OB_STRUCT_TOF_EXPOSURE_THRESHOLD_CONTROL: OBPropertyID = 1024;
#[doc = " @brief get/set serial number"]
pub const OBPropertyID_OB_STRUCT_DEVICE_SERIAL_NUMBER: OBPropertyID = 1035;
#[doc = " @brief get/set device time"]
pub const OBPropertyID_OB_STRUCT_DEVICE_TIME: OBPropertyID = 1037;
#[doc = " @brief Multi-device synchronization mode and parameter configuration"]
pub const OBPropertyID_OB_STRUCT_MULTI_DEVICE_SYNC_CONFIG: OBPropertyID = 1038;
#[doc = " @brief RGB cropping ROI"]
pub const OBPropertyID_OB_STRUCT_RGB_CROP_ROI: OBPropertyID = 1040;
#[doc = " @brief Device IP address configuration"]
pub const OBPropertyID_OB_STRUCT_DEVICE_IP_ADDR_CONFIG: OBPropertyID = 1041;
#[doc = " @brief The current camera depth mode"]
pub const OBPropertyID_OB_STRUCT_CURRENT_DEPTH_ALG_MODE: OBPropertyID = 1043;
#[doc = " @brief A list of depth accuracy levels, returning an array of uin16_t, corresponding to the enumeration"]
pub const OBPropertyID_OB_STRUCT_DEPTH_PRECISION_SUPPORT_LIST: OBPropertyID = 1045;
#[doc = " @brief Device network static ip config record\n @brief Using for get last static ip config, witch is record in device flash when user set static ip config\n\n @attention read only"]
pub const OBPropertyID_OB_STRUCT_DEVICE_STATIC_IP_CONFIG_RECORD: OBPropertyID = 1053;
#[doc = " @brief Using to configure the depth sensor's HDR mode\n @brief The Value type is @ref OBHdrConfig\n\n @attention After enable HDR mode, the depth sensor auto exposure will be disabled."]
pub const OBPropertyID_OB_STRUCT_DEPTH_HDR_CONFIG: OBPropertyID = 1059;
#[doc = " @brief Color Sensor AE ROI configuration\n @brief The Value type is @ref OBRegionOfInterest"]
pub const OBPropertyID_OB_STRUCT_COLOR_AE_ROI: OBPropertyID = 1060;
#[doc = " @brief Depth Sensor AE ROI configuration\n @brief The Value type is @ref OBRegionOfInterest\n @brief Since the ir sensor is the same physical sensor as the depth sensor, this property will also effect the ir sensor."]
pub const OBPropertyID_OB_STRUCT_DEPTH_AE_ROI: OBPropertyID = 1061;
#[doc = " @brief ASIC serial number"]
pub const OBPropertyID_OB_STRUCT_ASIC_SERIAL_NUMBER: OBPropertyID = 1063;
#[doc = " @brief Disparity offset interleaving"]
pub const OBPropertyID_OB_STRUCT_DISP_OFFSET_CONFIG: OBPropertyID = 1064;
#[doc = " @brief Preset resolution ratio configuration"]
pub const OBPropertyID_OB_STRUCT_PRESET_RESOLUTION_CONFIG: OBPropertyID = 1069;
#[doc = " @brief Color camera auto exposure"]
pub const OBPropertyID_OB_PROP_COLOR_AUTO_EXPOSURE_BOOL: OBPropertyID = 2000;
#[doc = " @brief Color camera exposure adjustment"]
pub const OBPropertyID_OB_PROP_COLOR_EXPOSURE_INT: OBPropertyID = 2001;
#[doc = " @brief Color camera gain adjustment"]
pub const OBPropertyID_OB_PROP_COLOR_GAIN_INT: OBPropertyID = 2002;
#[doc = " @brief Color camera automatic white balance"]
pub const OBPropertyID_OB_PROP_COLOR_AUTO_WHITE_BALANCE_BOOL: OBPropertyID = 2003;
#[doc = " @brief Color camera white balance adjustment"]
pub const OBPropertyID_OB_PROP_COLOR_WHITE_BALANCE_INT: OBPropertyID = 2004;
#[doc = " @brief Color camera brightness adjustment"]
pub const OBPropertyID_OB_PROP_COLOR_BRIGHTNESS_INT: OBPropertyID = 2005;
#[doc = " @brief Color camera sharpness adjustment"]
pub const OBPropertyID_OB_PROP_COLOR_SHARPNESS_INT: OBPropertyID = 2006;
#[doc = " @brief Color camera shutter adjustment"]
pub const OBPropertyID_OB_PROP_COLOR_SHUTTER_INT: OBPropertyID = 2007;
#[doc = " @brief Color camera saturation adjustment"]
pub const OBPropertyID_OB_PROP_COLOR_SATURATION_INT: OBPropertyID = 2008;
#[doc = " @brief Color camera contrast adjustment"]
pub const OBPropertyID_OB_PROP_COLOR_CONTRAST_INT: OBPropertyID = 2009;
#[doc = " @brief Color camera gamma adjustment"]
pub const OBPropertyID_OB_PROP_COLOR_GAMMA_INT: OBPropertyID = 2010;
#[doc = " @brief Color camera image rotation"]
pub const OBPropertyID_OB_PROP_COLOR_ROLL_INT: OBPropertyID = 2011;
#[doc = " @brief Color camera auto exposure priority"]
pub const OBPropertyID_OB_PROP_COLOR_AUTO_EXPOSURE_PRIORITY_INT: OBPropertyID = 2012;
#[doc = " @brief Color camera brightness compensation"]
pub const OBPropertyID_OB_PROP_COLOR_BACKLIGHT_COMPENSATION_INT: OBPropertyID = 2013;
#[doc = " @brief Color camera color tint"]
pub const OBPropertyID_OB_PROP_COLOR_HUE_INT: OBPropertyID = 2014;
#[doc = " @brief Color Camera Power Line Frequency"]
pub const OBPropertyID_OB_PROP_COLOR_POWER_LINE_FREQUENCY_INT: OBPropertyID = 2015;
#[doc = " @brief Automatic exposure of depth camera (infrared camera will be set synchronously under some models of devices)"]
pub const OBPropertyID_OB_PROP_DEPTH_AUTO_EXPOSURE_BOOL: OBPropertyID = 2016;
#[doc = " @brief Depth camera exposure adjustment (infrared cameras will be set synchronously under some models of devices)"]
pub const OBPropertyID_OB_PROP_DEPTH_EXPOSURE_INT: OBPropertyID = 2017;
#[doc = " @brief Depth camera gain adjustment (infrared cameras will be set synchronously under some models of devices)"]
pub const OBPropertyID_OB_PROP_DEPTH_GAIN_INT: OBPropertyID = 2018;
#[doc = " @brief Infrared camera auto exposure (depth camera will be set synchronously under some models of devices)"]
pub const OBPropertyID_OB_PROP_IR_AUTO_EXPOSURE_BOOL: OBPropertyID = 2025;
#[doc = " @brief Infrared camera exposure adjustment (some models of devices will set the depth camera synchronously)"]
pub const OBPropertyID_OB_PROP_IR_EXPOSURE_INT: OBPropertyID = 2026;
#[doc = " @brief Infrared camera gain adjustment (the depth camera will be set synchronously under some models of devices)"]
pub const OBPropertyID_OB_PROP_IR_GAIN_INT: OBPropertyID = 2027;
#[doc = " @brief Select Infrared camera data source channel. If not support throw exception. 0 : IR stream from IR Left sensor; 1 : IR stream from IR Right sensor;"]
pub const OBPropertyID_OB_PROP_IR_CHANNEL_DATA_SOURCE_INT: OBPropertyID = 2028;
#[doc = " @brief Depth effect dedistortion, true: on, false: off. mutually exclusive with D2C function, RM_Filter disable When hardware or software D2C is enabled."]
pub const OBPropertyID_OB_PROP_DEPTH_RM_FILTER_BOOL: OBPropertyID = 2029;
#[doc = " @brief Color camera maximal gain"]
pub const OBPropertyID_OB_PROP_COLOR_MAXIMAL_GAIN_INT: OBPropertyID = 2030;
#[doc = " @brief Color camera shutter gain"]
pub const OBPropertyID_OB_PROP_COLOR_MAXIMAL_SHUTTER_INT: OBPropertyID = 2031;
#[doc = " @brief The enable/disable switch for IR short exposure function, supported only by a few devices."]
pub const OBPropertyID_OB_PROP_IR_SHORT_EXPOSURE_BOOL: OBPropertyID = 2032;
#[doc = " @brief Color camera HDR"]
pub const OBPropertyID_OB_PROP_COLOR_HDR_BOOL: OBPropertyID = 2034;
#[doc = " @brief IR long exposure mode switch read and write."]
pub const OBPropertyID_OB_PROP_IR_LONG_EXPOSURE_BOOL: OBPropertyID = 2035;
#[doc = " @brief Setting and getting the USB device frame skipping mode status, true: frame skipping mode, false: non-frame skipping mode."]
pub const OBPropertyID_OB_PROP_SKIP_FRAME_BOOL: OBPropertyID = 2036;
#[doc = " @brief Depth HDR merge, true: on, false: off."]
pub const OBPropertyID_OB_PROP_HDR_MERGE_BOOL: OBPropertyID = 2037;
#[doc = " @brief Color camera FOCUS"]
pub const OBPropertyID_OB_PROP_COLOR_FOCUS_INT: OBPropertyID = 2038;
#[doc = " @brief ir rectify status,true: ir rectify, false: no rectify"]
pub const OBPropertyID_OB_PROP_IR_RECTIFY_BOOL: OBPropertyID = 2040;
#[doc = " @brief Depth camera priority\n"]
pub const OBPropertyID_OB_PROP_DEPTH_AUTO_EXPOSURE_PRIORITY_INT: OBPropertyID = 2052;
#[doc = " @brief Software disparity to depth"]
pub const OBPropertyID_OB_PROP_SDK_DISPARITY_TO_DEPTH_BOOL: OBPropertyID = 3004;
#[doc = " @brief Depth data unpacking function switch (each open stream will be turned on by default, support RLE/Y10/Y11/Y12/Y14 format)"]
pub const OBPropertyID_OB_PROP_SDK_DEPTH_FRAME_UNPACK_BOOL: OBPropertyID = 3007;
#[doc = " @brief IR data unpacking function switch (each current will be turned on by default, support RLE/Y10/Y11/Y12/Y14 format)"]
pub const OBPropertyID_OB_PROP_SDK_IR_FRAME_UNPACK_BOOL: OBPropertyID = 3008;
#[doc = " @brief Accel data conversion function switch (on by default)"]
pub const OBPropertyID_OB_PROP_SDK_ACCEL_FRAME_TRANSFORMED_BOOL: OBPropertyID = 3009;
#[doc = " @brief Gyro data conversion function switch (on by default)"]
pub const OBPropertyID_OB_PROP_SDK_GYRO_FRAME_TRANSFORMED_BOOL: OBPropertyID = 3010;
#[doc = " @brief Left IR frame data unpacking function switch (each current will be turned on by default, support RLE/Y10/Y11/Y12/Y14 format)"]
pub const OBPropertyID_OB_PROP_SDK_IR_LEFT_FRAME_UNPACK_BOOL: OBPropertyID = 3011;
#[doc = " @brief Right IR frame data unpacking function switch (each current will be turned on by default, support RLE/Y10/Y11/Y12/Y14 format)"]
pub const OBPropertyID_OB_PROP_SDK_IR_RIGHT_FRAME_UNPACK_BOOL: OBPropertyID = 3012;
#[doc = " @brief Read the current network bandwidth type of the network device, whether it is Gigabit Ethernet or Fast Ethernet, such as G335LE."]
pub const OBPropertyID_OB_PROP_NETWORK_BANDWIDTH_TYPE_INT: OBPropertyID = 3027;
#[doc = " @brief Switch device performance mode, currently available in Adaptive Mode and High Performance Mode, such as G335LE."]
pub const OBPropertyID_OB_PROP_DEVICE_PERFORMANCE_MODE_INT: OBPropertyID = 3028;
#[doc = " @brief Calibration JSON file read from device (Femto Mega, read only)"]
pub const OBPropertyID_OB_RAW_DATA_CAMERA_CALIB_JSON_FILE: OBPropertyID = 4029;
#[doc = " @brief Confidence degree"]
pub const OBPropertyID_OB_PROP_DEBUG_ESGM_CONFIDENCE_FLOAT: OBPropertyID = 5013;
#[doc = " @brief Enumeration value describing all attribute control commands of the device"]
pub type OBPropertyID = i32;
#[doc = " @brief Enumeration value describing all attribute control commands of the device"]
pub use self::OBPropertyID as ob_property_id;
#[doc = "< Boolean property"]
pub const OBPropertyType_OB_BOOL_PROPERTY: OBPropertyType = 0;
#[doc = "< Integer property"]
pub const OBPropertyType_OB_INT_PROPERTY: OBPropertyType = 1;
#[doc = "< Floating-point property"]
pub const OBPropertyType_OB_FLOAT_PROPERTY: OBPropertyType = 2;
#[doc = "< Struct property"]
pub const OBPropertyType_OB_STRUCT_PROPERTY: OBPropertyType = 3;
#[doc = " @brief The data type used to describe all property settings"]
pub type OBPropertyType = i32;
#[doc = " @brief The data type used to describe all property settings"]
pub use self::OBPropertyType as ob_property_type;
#[doc = " @brief Used to describe the characteristics of each property"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OBPropertyItem {
    #[doc = "< Property ID"]
    pub id: OBPropertyID,
    #[doc = "< Property name"]
    pub name: *const ::std::os::raw::c_char,
    #[doc = "< Property type"]
    pub type_: OBPropertyType,
    #[doc = "< Property read and write permission"]
    pub permission: OBPermissionType,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of OBPropertyItem"][::std::mem::size_of::<OBPropertyItem>() - 24usize];
    ["Alignment of OBPropertyItem"][::std::mem::align_of::<OBPropertyItem>() - 8usize];
    ["Offset of field: OBPropertyItem::id"][::std::mem::offset_of!(OBPropertyItem, id) - 0usize];
    ["Offset of field: OBPropertyItem::name"]
        [::std::mem::offset_of!(OBPropertyItem, name) - 8usize];
    ["Offset of field: OBPropertyItem::type_"]
        [::std::mem::offset_of!(OBPropertyItem, type_) - 16usize];
    ["Offset of field: OBPropertyItem::permission"]
        [::std::mem::offset_of!(OBPropertyItem, permission) - 20usize];
};
#[doc = " @brief Used to describe the characteristics of each property"]
pub type ob_property_item = OBPropertyItem;
unsafe extern "C" {
    #[doc = " @brief Get the supported multi device sync mode bitmap of the device.\n @brief For example, if the return value is 0b00001100, it means the device supports @ref OB_MULTI_DEVICE_SYNC_MODE_PRIMARY and @ref\n OB_MULTI_DEVICE_SYNC_MODE_SECONDARY. User can check the supported mode by the code:\n ```c\n   if(supported_mode_bitmap & OB_MULTI_DEVICE_SYNC_MODE_FREE_RUN){\n      //support OB_MULTI_DEVICE_SYNC_MODE_FREE_RUN\n   }\n   if(supported_mode_bitmap & OB_MULTI_DEVICE_SYNC_MODE_STANDALONE){\n     //support OB_MULTI_DEVICE_SYNC_MODE_STANDALONE\n   }\n   // and so on\n ```\n @param[in] device The device handle.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return uint16_t return the supported multi device sync mode bitmap of the device."]
    pub fn ob_device_get_supported_multi_device_sync_mode_bitmap(
        device: *const ob_device,
        error: *mut *mut ob_error,
    ) -> u16;
}
unsafe extern "C" {
    #[doc = " @brief set the multi device sync configuration of the device.\n\n @param[in] device The device handle.\n @param[in] config The multi device sync configuration.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_device_set_multi_device_sync_config(
        device: *mut ob_device,
        config: *const ob_multi_device_sync_config,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief get the current multi device sync configuration of the device.\n\n @param[in] device The device handle.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_multi_device_sync_config return the multi device sync configuration of the device."]
    pub fn ob_device_get_multi_device_sync_config(
        device: *const ob_device,
        error: *mut *mut ob_error,
    ) -> ob_multi_device_sync_config;
}
unsafe extern "C" {
    #[doc = " @brief send the capture command to the device to trigger the capture.\n @brief The device will start one time capture after receiving the capture command when it is in the @ref OB_MULTI_DEVICE_SYNC_MODE_SOFTWARE_TRIGGERING\n\n @attention The frequency of the user call this function multiplied by the number of frames per trigger should be less than the frame rate of the stream. The\n number of frames per trigger can be set by @ref framesPerTrigger.\n @attention For some models, receive and execute the capture command will have a certain delay and performance consumption, so the frequency of calling this\n function should not be too high, please refer to the product manual for the specific supported frequency.\n @attention If the device is not in the @ref OB_MULTI_DEVICE_SYNC_MODE_HARDWARE_TRIGGERING mode, device will ignore the capture command.\n\n @param[in] device The device handle.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_device_trigger_capture(device: *mut ob_device, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief set the timestamp reset configuration of the device.\n\n @param[in] device The device handle.\n @param[in] config The timestamp reset configuration.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_device_set_timestamp_reset_config(
        device: *mut ob_device,
        config: *const ob_device_timestamp_reset_config,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief get the timestamp reset configuration of the device.\n\n @param[in] device The device handle.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_device_timestamp_reset_config return the timestamp reset configuration of the device."]
    pub fn ob_device_get_timestamp_reset_config(
        device: *mut ob_device,
        error: *mut *mut ob_error,
    ) -> ob_device_timestamp_reset_config;
}
unsafe extern "C" {
    #[doc = " @brief send the timestamp reset command to the device.\n @brief The device will reset the timer for calculating the timestamp for output frames to 0 after receiving the timestamp reset command when the timestamp\n reset function is enabled. The timestamp reset function can be enabled by call @ref ob_device_set_timestamp_reset_config.\n\n @attention If the stream of the device is started, the timestamp of the continuous frames output by the stream will jump once after the timestamp reset.\n @attention Due to the timer of device is not high-accuracy, the timestamp of the continuous frames output by the stream will drift after a long time. User\n can call this function periodically to reset the timer to avoid the timestamp drift, the recommended interval time is 60 minutes.\n\n @param[in] device The device handle.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_device_timestamp_reset(device: *mut ob_device, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief synchronize the timer of the device with the host.\n @brief After calling this function, the timer of the device will be synchronized with the host. User can call this function to multiple devices to\n synchronize all timers of the devices.\n\n @attention If the stream of the device is started, the timestamp of the continuous frames output by the stream will may jump once after the timer sync.\n @attention Due to the timer of device is not high-accuracy, the timestamp of the continuous frames output by the stream will drift after a long time. User\n can call this function periodically to synchronize the timer to avoid the timestamp drift, the recommended interval time is 60 minutes.\n\n @param[in] device The device handle.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_device_timer_sync_with_host(device: *mut ob_device, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Get the current depth work mode.\n\n @param[in] device The device object.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n\n @return ob_depth_work_mode The current depth work mode."]
    pub fn ob_device_get_current_depth_work_mode(
        device: *const ob_device,
        error: *mut *mut ob_error,
    ) -> ob_depth_work_mode;
}
unsafe extern "C" {
    #[doc = " @brief Get current depth mode name\n @brief According the current preset name to return current depth mode name\n @return const char* return the current depth mode name."]
    pub fn ob_device_get_current_depth_work_mode_name(
        device: *const ob_device,
        error: *mut *mut ob_error,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Switch the depth work mode by ob_depth_work_mode.\n        Prefer to use ob_device_switch_depth_work_mode_by_name to switch depth mode when the complete name of the depth work mode is known.\n\n @param[in] device The device object.\n @param[in] work_mode The depth work mode from ob_depth_work_mode_list which is returned by ob_device_get_depth_work_mode_list.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n\n @return ob_status The switch result. OB_STATUS_OK: success, other failed."]
    pub fn ob_device_switch_depth_work_mode(
        device: *mut ob_device,
        work_mode: *const ob_depth_work_mode,
        error: *mut *mut ob_error,
    ) -> ob_status;
}
unsafe extern "C" {
    #[doc = " @brief Switch the depth work mode by work mode name.\n\n @param[in] device The device object.\n @param[in] mode_name The depth work mode name which is equal to ob_depth_work_mode.name.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n\n @return ob_status The switch result. OB_STATUS_OK: success, other failed."]
    pub fn ob_device_switch_depth_work_mode_by_name(
        device: *mut ob_device,
        mode_name: *const ::std::os::raw::c_char,
        error: *mut *mut ob_error,
    ) -> ob_status;
}
unsafe extern "C" {
    #[doc = " @brief Request the list of supported depth work modes.\n\n @param[in] device The device object.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n\n @return ob_depth_work_mode_list The list of ob_depth_work_mode."]
    pub fn ob_device_get_depth_work_mode_list(
        device: *const ob_device,
        error: *mut *mut ob_error,
    ) -> *mut ob_depth_work_mode_list;
}
unsafe extern "C" {
    #[doc = " \\if English\n @brief Get the depth work mode count that ob_depth_work_mode_list hold\n @param[in] work_mode_list data struct contain list of ob_depth_work_mode\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return The total number contained in ob_depth_work_mode_list\n"]
    pub fn ob_depth_work_mode_list_get_count(
        work_mode_list: *const ob_depth_work_mode_list,
        error: *mut *mut ob_error,
    ) -> u32;
}
unsafe extern "C" {
    #[doc = " @brief Get the index target of ob_depth_work_mode from work_mode_list\n\n @param[in] work_mode_list Data structure containing a list of ob_depth_work_mode\n @param[in] index Index of the target ob_depth_work_mode\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_depth_work_mode\n"]
    pub fn ob_depth_work_mode_list_get_item(
        work_mode_list: *const ob_depth_work_mode_list,
        index: u32,
        error: *mut *mut ob_error,
    ) -> ob_depth_work_mode;
}
unsafe extern "C" {
    #[doc = " @brief Free the resources of ob_depth_work_mode_list\n\n @param[in] work_mode_list Data structure containing a list of ob_depth_work_mode\n @param[out] error Pointer to an error object that will be set if an error occurs.\n"]
    pub fn ob_delete_depth_work_mode_list(
        work_mode_list: *mut ob_depth_work_mode_list,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get the current preset name.\n @brief The preset mean a set of parameters or configurations that can be applied to the device to achieve a specific effect or function.\n\n @param device The device object.\n @param error  Pointer to an error object that will be set if an error occurs.\n @return  The current preset name, it should be one of the preset names returned by @ref ob_device_get_available_preset_list."]
    pub fn ob_device_get_current_preset_name(
        device: *const ob_device,
        error: *mut *mut ob_error,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Get the available preset list.\n @attention After loading the preset, the settings in the preset will set to the device immediately. Therefore, it is recommended to re-read the device\n settings to update the user program temporarily.\n\n @param device The device object.\n @param preset_name  Pointer to an error object that will be set if an error occurs. The name should be one of the preset names returned by @ref\n ob_device_get_available_preset_list.\n @param error  Pointer to an error object that will be set if an error occurs."]
    pub fn ob_device_load_preset(
        device: *mut ob_device,
        preset_name: *const ::std::os::raw::c_char,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Load preset from json string.\n @brief After loading the custom preset, the settings in the custom preset will set to the device immediately.\n @brief After loading the custom preset, the available preset list will be appended with the custom preset and named as the file name.\n\n @param device   The device object.\n @param json_file_path  The json file path.\n @param error   Pointer to an error object that will be set if an error occurs."]
    pub fn ob_device_load_preset_from_json_file(
        device: *mut ob_device,
        json_file_path: *const ::std::os::raw::c_char,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Load custom preset from data.\n @brief After loading the custom preset, the settings in the custom preset will set to the device immediately.\n @brief After loading the custom preset, the available preset list will be appended with the custom preset and named as the @ref presetName.\n\n @attention The user should ensure that the custom preset data is adapted to the device and the settings in the data are valid.\n @attention It is recommended to re-read the device settings to update the user program temporarily after successfully loading the custom preset.\n\n @param data The custom preset data.\n @param size The size of the custom preset data."]
    pub fn ob_device_load_preset_from_json_data(
        device: *mut ob_device,
        presetName: *const ::std::os::raw::c_char,
        data: *const u8,
        size: u32,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Export current settings as a preset json file.\n @brief After exporting the custom preset, the available preset list will be appended with the custom preset and named as the file name.\n\n @param device   The device object.\n @param json_file_path  The json file path.\n @param error   Pointer to an error object that will be set if an error occurs."]
    pub fn ob_device_export_current_settings_as_preset_json_file(
        device: *mut ob_device,
        json_file_path: *const ::std::os::raw::c_char,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Export current device settings as a preset json data.\n @brief After exporting the preset, a new preset named as the @ref presetName will be added to the available preset list.\n\n @attention The memory of the data is allocated by the SDK, and will automatically be released by the SDK.\n @attention The memory of the data will be reused by the SDK on the next call, so the user should copy the data to a new buffer if it needs to be\n preserved.\n\n @param[out] data return the preset json data.\n @param[out] dataSize return the size of the preset json data."]
    pub fn ob_device_export_current_settings_as_preset_json_data(
        device: *mut ob_device,
        presetName: *const ::std::os::raw::c_char,
        data: *mut *const u8,
        dataSize: *mut u32,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get the available preset list.\n\n @param device The device object.\n @param error  Pointer to an error object that will be set if an error occurs.\n @return  The available preset list."]
    pub fn ob_device_get_available_preset_list(
        device: *const ob_device,
        error: *mut *mut ob_error,
    ) -> *mut ob_device_preset_list;
}
unsafe extern "C" {
    #[doc = " @brief Delete the available preset list.\n\n @param preset_list The available preset list.\n @param error  Pointer to an error object that will be set if an error occurs."]
    pub fn ob_delete_preset_list(
        preset_list: *mut ob_device_preset_list,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get the number of preset in the preset list.\n\n @param preset_list The available preset list.\n @param error  Pointer to an error object that will be set if an error occurs.\n @return  The number of preset in the preset list."]
    pub fn ob_device_preset_list_get_count(
        preset_list: *const ob_device_preset_list,
        error: *mut *mut ob_error,
    ) -> u32;
}
unsafe extern "C" {
    #[doc = " @brief Get the name of the preset in the preset list.\n\n @param preset_list The available preset list.\n @param index  The index of the preset in the preset list.\n @param error  Pointer to an error object that will be set if an error occurs.\n @return  The name of the preset in the preset list."]
    pub fn ob_device_preset_list_get_name(
        preset_list: *const ob_device_preset_list,
        index: u32,
        error: *mut *mut ob_error,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Check if the preset list has the preset.\n\n @param preset_list The available preset list.\n @param preset_name  The name of the preset.\n @param error  Pointer to an error object that will be set if an error occurs.\n @return  Whether the preset list has the preset. If true, the preset list has the preset. If false, the preset list does not have the preset."]
    pub fn ob_device_preset_list_has_preset(
        preset_list: *const ob_device_preset_list,
        preset_name: *const ::std::os::raw::c_char,
        error: *mut *mut ob_error,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @brief Check if the device supports the frame interleave feature.\n\n @param device The device object.\n @param error  Pointer to an error object that will be set if an error occurs.\n @return bool Returns true if the device supports the frame interleave feature."]
    pub fn ob_device_is_frame_interleave_supported(
        device: *const ob_device,
        error: *mut *mut ob_error,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @brief load the frame interleave mode according to frame interleavee name.\n\n @param device The device object.\n @param frame_interleave_name  The name should be one of the frame interleave names returned by @ref ob_device_get_available_frame_interleave_list.\n @param error  Log error messages."]
    pub fn ob_device_load_frame_interleave(
        device: *mut ob_device,
        frame_interleave_name: *const ::std::os::raw::c_char,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get the available frame interleave list.\n\n @param device The device object.\n @param error  Log error messages.\n @return The available frame interleave list."]
    pub fn ob_device_get_available_frame_interleave_list(
        device: *mut ob_device,
        error: *mut *mut ob_error,
    ) -> *mut ob_device_frame_interleave_list;
}
unsafe extern "C" {
    #[doc = " @brief Delete the available frame interleave list.\n\n @param frame_interleave_list The available frame interleave list.\n @param error  Log error messages."]
    pub fn ob_delete_frame_interleave_list(
        frame_interleave_list: *mut ob_device_frame_interleave_list,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get the number of frame interleave in the frame interleave list.\n\n @param frame_interleave_list The available frame interleave list.\n @param error  Log error messages.\n @return  The number of frame interleave in the frame interleave list."]
    pub fn ob_device_frame_interleave_list_get_count(
        frame_interleave_list: *mut ob_device_frame_interleave_list,
        error: *mut *mut ob_error,
    ) -> u32;
}
unsafe extern "C" {
    #[doc = " @brief Get the name of frame interleave in the frame interleave list.\n\n @param frame_interleave_list The available frame interleave list.\n @param index  The index of frame interleave in the frame interleave list.\n @param error  Log error messages.\n @return  The name of frame interleave in the frame interleave list.."]
    pub fn ob_device_frame_interleave_list_get_name(
        frame_interleave_list: *mut ob_device_frame_interleave_list,
        index: u32,
        error: *mut *mut ob_error,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Check if the interleave ae list has the interleave ae.\n\n @param frame_interleave_list The available interleave ae list.\n @param frame_interleave_name  The name of the interleave ae.\n @param error  Log error messages.\n @return  Whether the interleave ae list has the interleave ae. If true, the interleave ae list has the interleave ae. If false, the interleave ae list does\n not have the interleave ae."]
    pub fn ob_device_frame_interleave_list_has_frame_interleave(
        frame_interleave_list: *mut ob_device_frame_interleave_list,
        frame_interleave_name: *const ::std::os::raw::c_char,
        error: *mut *mut ob_error,
    ) -> bool;
}
unsafe extern "C" {
    pub fn ob_device_get_available_preset_resolution_config_list(
        device: *mut ob_device,
        error: *mut *mut ob_error,
    ) -> *mut ob_preset_resolution_config_list;
}
unsafe extern "C" {
    pub fn ob_device_preset_resolution_config_get_count(
        ob_preset_resolution_config_list: *mut ob_preset_resolution_config_list,
        error: *mut *mut ob_error,
    ) -> u32;
}
unsafe extern "C" {
    #[doc = " @brief Get the preset resolution in the preset resolution list.\n\n @param ob_preset_resolution_config_list The available preset resolution list.\n @param index  The index of preset resolution in the preset resolution list.\n @param error  Log error messages.\n @return  The preset resolution in the preset resolution list."]
    pub fn ob_device_preset_resolution_config_list_get_item(
        ob_preset_resolution_config_list: *const ob_preset_resolution_config_list,
        index: u32,
        error: *mut *mut ob_error,
    ) -> OBPresetResolutionConfig;
}
unsafe extern "C" {
    #[doc = " @brief Delete the available preset resolution list.\n\n @param frame_interleave_list The available preset resolution list.\n @param error  Log error messages."]
    pub fn ob_delete_preset_resolution_config_list(
        ob_preset_resolution_config_list: *mut ob_preset_resolution_config_list,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Delete a device.\n\n @param[in] device The device to be deleted.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_delete_device(device: *mut ob_device, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief List all sensors.\n\n @param[in] device The device object.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_sensor_list* The list of all sensors."]
    pub fn ob_device_get_sensor_list(
        device: *const ob_device,
        error: *mut *mut ob_error,
    ) -> *mut ob_sensor_list;
}
unsafe extern "C" {
    #[doc = " @brief Get a device's sensor.\n\n @param[in] device The device object.\n @param[in] type The type of sensor to get.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_sensor* The acquired sensor."]
    pub fn ob_device_get_sensor(
        device: *mut ob_device,
        type_: ob_sensor_type,
        error: *mut *mut ob_error,
    ) -> *mut ob_sensor;
}
unsafe extern "C" {
    #[doc = " @brief Set an integer type of device property.\n\n @param[in] device The device object.\n @param[in] property_id The ID of the property to be set.\n @param[in] value The property value to be set.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_device_set_int_property(
        device: *mut ob_device,
        property_id: ob_property_id,
        value: i32,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get an integer type of device property.\n\n @param[in] device The device object.\n @param[in] property_id The property ID.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return int32_t The property value."]
    pub fn ob_device_get_int_property(
        device: *mut ob_device,
        property_id: ob_property_id,
        error: *mut *mut ob_error,
    ) -> i32;
}
unsafe extern "C" {
    #[doc = " @brief Get the integer type of device property range.\n\n @param[in] device The device object.\n @param[in] property_id The property id.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return The property range."]
    pub fn ob_device_get_int_property_range(
        device: *mut ob_device,
        property_id: ob_property_id,
        error: *mut *mut ob_error,
    ) -> ob_int_property_range;
}
unsafe extern "C" {
    #[doc = " @brief Set a float type of device property.\n\n @param[in] device The device object.\n @param[in] property_id The ID of the property to be set.\n @param[in] value The property value to be set.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_device_set_float_property(
        device: *mut ob_device,
        property_id: ob_property_id,
        value: f32,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get a float type of device property.\n\n @param[in] device The device object.\n @param[in] property_id The property ID.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return float The property value."]
    pub fn ob_device_get_float_property(
        device: *mut ob_device,
        property_id: ob_property_id,
        error: *mut *mut ob_error,
    ) -> f32;
}
unsafe extern "C" {
    #[doc = " @brief Get the float type of device property range.\n\n @param[in] device The device object.\n @param[in] property_id The property id.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return The property range."]
    pub fn ob_device_get_float_property_range(
        device: *mut ob_device,
        property_id: ob_property_id,
        error: *mut *mut ob_error,
    ) -> ob_float_property_range;
}
unsafe extern "C" {
    #[doc = " @brief Set a boolean type of device property.\n\n @param[in] device The device object.\n @param[in] property_id The ID of the property to be set.\n @param[in] value The property value to be set.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_device_set_bool_property(
        device: *mut ob_device,
        property_id: ob_property_id,
        value: bool,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get a boolean type of device property.\n\n @param[in] device The device object.\n @param[in] property_id The property ID.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return bool The property value."]
    pub fn ob_device_get_bool_property(
        device: *mut ob_device,
        property_id: ob_property_id,
        error: *mut *mut ob_error,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @brief Get the boolean type of device property range.\n\n @param[in] device The device object.\n @param[in] property_id The property id.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return The property range."]
    pub fn ob_device_get_bool_property_range(
        device: *mut ob_device,
        property_id: ob_property_id,
        error: *mut *mut ob_error,
    ) -> ob_bool_property_range;
}
unsafe extern "C" {
    #[doc = " @brief Set structured data.\n\n @param[in] device The device object.\n @param[in] property_id The ID of the property to be set.\n @param[in] data The property data to be set.\n @param[in] data_size The size of the property to be set.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_device_set_structured_data(
        device: *mut ob_device,
        property_id: ob_property_id,
        data: *const u8,
        data_size: u32,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get structured data of a device property.\n\n @param[in] device The device object.\n @param[in] property_id The ID of the property.\n @param[out] data The obtained property data.\n @param[out] data_size The size of the obtained property data.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_device_get_structured_data(
        device: *mut ob_device,
        property_id: ob_property_id,
        data: *mut u8,
        data_size: *mut u32,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get raw data of a device property.\n\n @param[in] device The device object.\n @param[in] property_id The ID of the property.\n @param[out] cb The get data callback.\n @param[out] user_data User-defined data that will be returned in the callback.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_device_get_raw_data(
        device: *mut ob_device,
        property_id: ob_property_id,
        cb: ob_get_data_callback,
        user_data: *mut ::std::os::raw::c_void,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Set customer data.\n\n @param[in] device The device object.\n @param[in] data The property data to be set.\n @param[in] data_size The size of the property to be set,the maximum length cannot exceed 65532 bytes.\n @param[out] error Log error messages."]
    pub fn ob_device_write_customer_data(
        device: *mut ob_device,
        data: *const ::std::os::raw::c_void,
        data_size: u32,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get customer data of a device property.\n\n @param[in] device The device object.\n @param[out] data The obtained property data.\n @param[out] data_size The size of the obtained property data.\n @param[out] error Log error messages."]
    pub fn ob_device_read_customer_data(
        device: *mut ob_device,
        data: *mut ::std::os::raw::c_void,
        data_size: *mut u32,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get the number of properties supported by the device.\n\n @param[in] device The device object.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return The number of properties supported by the device."]
    pub fn ob_device_get_supported_property_count(
        device: *const ob_device,
        error: *mut *mut ob_error,
    ) -> u32;
}
unsafe extern "C" {
    #[doc = " @brief Get the type of property supported by the device.\n\n @param[in] device The device object.\n @param[in] index The property index.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return The type of property supported by the device."]
    pub fn ob_device_get_supported_property_item(
        device: *const ob_device,
        index: u32,
        error: *mut *mut ob_error,
    ) -> ob_property_item;
}
unsafe extern "C" {
    #[doc = " @brief Check if a device property permission is supported.\n\n @param[in] device The device object.\n @param[in] property_id The property id.\n @param[in] permission The type of permission that needs to be interpreted.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return Whether the property permission is supported."]
    pub fn ob_device_is_property_supported(
        device: *const ob_device,
        property_id: ob_property_id,
        permission: ob_permission_type,
        error: *mut *mut ob_error,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @brief Check if the device supports global timestamp.\n\n @param[in] device The device object.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return bool Whether the device supports global timestamp."]
    pub fn ob_device_is_global_timestamp_supported(
        device: *const ob_device,
        error: *mut *mut ob_error,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @brief Enable or disable global timestamp.\n\n @param device The device object.\n @param enable Whether to enable global timestamp.\n @param error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_device_enable_global_timestamp(
        device: *mut ob_device,
        enable: bool,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Update the device firmware.\n\n @param[in] device The device object.\n @param[in] path The firmware path.\n @param[in] callback The firmware upgrade progress callback.\n @param[in] async Whether to execute asynchronously.\n @param[in] user_data User-defined data that will be returned in the callback.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_device_update_firmware(
        device: *mut ob_device,
        path: *const ::std::os::raw::c_char,
        callback: ob_device_fw_update_callback,
        async_: bool,
        user_data: *mut ::std::os::raw::c_void,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Update the device firmware from data.\n\n @param[in] device The device object.\n @param[in] data The firmware file data.\n @param[in] data_size The firmware file size.\n @param[in] callback The firmware upgrade progress callback.\n @param[in] async Whether to execute asynchronously.\n @param[in] user_data User-defined data that will be returned in the callback.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_device_update_firmware_from_data(
        device: *mut ob_device,
        data: *const u8,
        data_size: u32,
        callback: ob_device_fw_update_callback,
        async_: bool,
        user_data: *mut ::std::os::raw::c_void,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Update the device optional depth presets.\n\n @param[in] device The device object.\n @param[in] file_path_list A list(2D array) of preset file paths, each up to OB_PATH_MAX characters.\n @param[in] path_count The number of the preset file paths.\n @param[in] callback The preset upgrade progress callback.\n @param[in] user_data User-defined data that will be returned in the callback.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_device_update_optional_depth_presets(
        device: *mut ob_device,
        file_path_list: *const [::std::os::raw::c_char; 1024usize],
        path_count: u8,
        callback: ob_device_fw_update_callback,
        user_data: *mut ::std::os::raw::c_void,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Device reboot\n @attention The device will be disconnected and reconnected. After the device is disconnected, the interface access to the device handle may be abnormal.\n Please use the ob_delete_device interface to delete the handle directly. After the device is reconnected, it can be obtained again.\n\n @param[in] device Device object\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_device_reboot(device: *mut ob_device, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Get the current device status.\n\n @param[in] device The device object.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n\n @return ob_device_state The device state information."]
    pub fn ob_device_get_device_state(
        device: *const ob_device,
        error: *mut *mut ob_error,
    ) -> ob_device_state;
}
unsafe extern "C" {
    #[doc = " @brief Set the device state changed callback.\n\n @param[in] device The device object.\n @param[in] callback The callback function to be called when the device status changes.\n @param[in] user_data User-defined data that will be returned in the callback.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_device_set_state_changed_callback(
        device: *mut ob_device,
        callback: ob_device_state_callback,
        user_data: *mut ::std::os::raw::c_void,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Enable or disable the device heartbeat.\n @brief After enable the device heartbeat, the sdk will start a thread to send heartbeat signal to the device error every 3 seconds.\n\n @attention If the device does not receive the heartbeat signal for a long time, it will be disconnected and rebooted.\n\n @param[in] device The device object.\n @param[in] enable Whether to enable the device heartbeat.\n @param error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_device_enable_heartbeat(
        device: *mut ob_device,
        enable: bool,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Send data to the device and receive data from the device.\n @brief This is a factory and debug function, which can be used to send and receive data from the device. The data format is secret and belongs to the device\n vendor.\n\n @param[in] device The device object.\n @param[in] send_data The data to be sent to the device.\n @param[in] send_data_size The size of the data to be sent to the device.\n @param[out] receive_data The data received from the device.\n @param[in,out] receive_data_size Pass in the expected size of the receive data, and return the actual size of the received data.\n @param error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_device_send_and_receive_data(
        device: *mut ob_device,
        send_data: *const u8,
        send_data_size: u32,
        receive_data: *mut u8,
        receive_data_size: *mut u32,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get device information.\n\n @param[in] device The device to obtain information from.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_device_info* The device information."]
    pub fn ob_device_get_device_info(
        device: *const ob_device,
        error: *mut *mut ob_error,
    ) -> *mut ob_device_info;
}
unsafe extern "C" {
    #[doc = " @brief Delete device information.\n\n @param[in] info The device information to be deleted.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_delete_device_info(info: *mut ob_device_info, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Get device name\n\n @param[in] info Device Information\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return const char* return the device name"]
    pub fn ob_device_info_get_name(
        info: *const ob_device_info,
        error: *mut *mut ob_error,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Get device pid\n\n @param[in] info Device Information\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return int return the device pid"]
    pub fn ob_device_info_get_pid(
        info: *const ob_device_info,
        error: *mut *mut ob_error,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    #[doc = " @brief Get device vid\n\n @param[in] info Device Information\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return int return device vid"]
    pub fn ob_device_info_get_vid(
        info: *const ob_device_info,
        error: *mut *mut ob_error,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    #[doc = " @brief Get device uid\n\n @param[in] info Device Information\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return const char* return device uid"]
    pub fn ob_device_info_get_uid(
        info: *const ob_device_info,
        error: *mut *mut ob_error,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Get device serial number\n\n @param[in] info Device Information\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return const char* return device serial number"]
    pub fn ob_device_info_get_serial_number(
        info: *const ob_device_info,
        error: *mut *mut ob_error,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Get the firmware version number\n\n @param[in] info Device Information\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return int return the firmware version number"]
    pub fn ob_device_info_get_firmware_version(
        info: *const ob_device_info,
        error: *mut *mut ob_error,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Get the device connection type\n\n @param[in] info Device Information\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return const char* The connection type, currently supports: \"USB\", \"USB1.0\", \"USB1.1\", \"USB2.0\", \"USB2.1\", \"USB3.0\", \"USB3.1\", \"USB3.2\", \"Ethernet\""]
    pub fn ob_device_info_get_connection_type(
        info: *const ob_device_info,
        error: *mut *mut ob_error,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Get the device IP address\n\n @attention Only valid for network devices, otherwise it will return \"0.0.0.0\"\n\n @param info Device Information\n @param error Pointer to an error object that will be set if an error occurs.\n @return const char* The IP address, such as \"192.168.1.10\""]
    pub fn ob_device_info_get_ip_address(
        info: *const ob_device_info,
        error: *mut *mut ob_error,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Get the hardware version number\n\n @param[in] info Device Information\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return const char* The hardware version number"]
    pub fn ob_device_info_get_hardware_version(
        info: *const ob_device_info,
        error: *mut *mut ob_error,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Check if the device extension information exists.\n\n @param device The device object.\n @param info_key The key of the device extension information.\n @param error Pointer to an error object that will be set if an error occurs.\n @return bool Whether the device extension information exists."]
    pub fn ob_device_is_extension_info_exist(
        device: *const ob_device,
        info_key: *const ::std::os::raw::c_char,
        error: *mut *mut ob_error,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @brief Get the device extension information.\n @brief Extension information is a set of key-value pair of string, user cat get the information by the key.\n\n @param[in] device The device object.\n @param[in] info_key The key of the device extension information.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return const char* The device extension information"]
    pub fn ob_device_get_extension_info(
        device: *const ob_device,
        info_key: *const ::std::os::raw::c_char,
        error: *mut *mut ob_error,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Get the minimum SDK version number supported by the device\n\n @param[in] info Device Information\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return const char* The minimum SDK version number supported by the device"]
    pub fn ob_device_info_get_supported_min_sdk_version(
        info: *const ob_device_info,
        error: *mut *mut ob_error,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Get the chip name\n\n @param[in] info Device Information\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return const char* The ASIC name"]
    pub fn ob_device_info_get_asicName(
        info: *const ob_device_info,
        error: *mut *mut ob_error,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Get the device type\n\n @param[in] info Device Information\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_device_type The device type"]
    pub fn ob_device_info_get_device_type(
        info: *const ob_device_info,
        error: *mut *mut ob_error,
    ) -> ob_device_type;
}
unsafe extern "C" {
    #[doc = " @brief Delete a device list.\n\n @param[in] list The device list object to be deleted.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_delete_device_list(list: *mut ob_device_list, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Get the number of devices\n\n @param[in] list Device list object\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return uint32_t return the number of devices"]
    pub fn ob_device_list_get_count(list: *const ob_device_list, error: *mut *mut ob_error) -> u32;
}
unsafe extern "C" {
    #[doc = " @brief Get device name\n\n @param[in] list Device list object\n @param[in] index Device index\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return const char* return device name"]
    pub fn ob_device_list_get_device_name(
        list: *const ob_device_list,
        index: u32,
        error: *mut *mut ob_error,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Get the pid of the specified device\n\n @param[in] list Device list object\n @param[in] index Device index\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return int return the device pid"]
    pub fn ob_device_list_get_device_pid(
        list: *const ob_device_list,
        index: u32,
        error: *mut *mut ob_error,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    #[doc = " @brief Get the vid of the specified device\n\n @param[in] list Device list object\n @param[in] index Device index\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return int return device vid"]
    pub fn ob_device_list_get_device_vid(
        list: *const ob_device_list,
        index: u32,
        error: *mut *mut ob_error,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    #[doc = " @brief Get the uid of the specified device\n\n @param[in] list Device list object\n @param[in] index Device index\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return const char* return the device uid"]
    pub fn ob_device_list_get_device_uid(
        list: *const ob_device_list,
        index: u32,
        error: *mut *mut ob_error,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Get the serial number of the specified device.\n\n @param[in] list Device list object.\n @param[in] index Device index.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return const char* The device UID."]
    pub fn ob_device_list_get_device_serial_number(
        list: *const ob_device_list,
        index: u32,
        error: *mut *mut ob_error,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Get device connection type\n\n @param[in] list Device list object\n @param[in] index Device index\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return const char* returns the device connection type, currently supports: \"USB\", \"USB1.0\", \"USB1.1\", \"USB2.0\", \"USB2.1\", \"USB3.0\", \"USB3.1\", \"USB3.2\",\n \"Ethernet\""]
    pub fn ob_device_list_get_device_connection_type(
        list: *const ob_device_list,
        index: u32,
        error: *mut *mut ob_error,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Get device ip address\n\n @attention Only valid for network devices, otherwise it will return \"0.0.0.0\".\n\n @param list Device list object\n @param index Device index\n @param error Pointer to an error object that will be set if an error occurs.\n @return const char* returns the device ip address, such as \"192.168.1.10\""]
    pub fn ob_device_list_get_device_ip_address(
        list: *const ob_device_list,
        index: u32,
        error: *mut *mut ob_error,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Get device local mac address\n\n @attention Only valid for network devices, otherwise it will return \"0:0:0:0:0:0\".\n\n @param list Device list object\n @param index Device index\n @param error Pointer to an error object that will be set if an error occurs.\n @return const char* returns the device mac address"]
    pub fn ob_device_list_get_device_local_mac(
        list: *const ob_device_list,
        index: u32,
        error: *mut *mut ob_error,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Create a device.\n\n @attention If the device has already been acquired and created elsewhere, repeated acquisitions will return an error.\n\n @param[in] list Device list object.\n @param[in] index The index of the device to create.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_device* The created device.\n"]
    pub fn ob_device_list_get_device(
        list: *const ob_device_list,
        index: u32,
        error: *mut *mut ob_error,
    ) -> *mut ob_device;
}
unsafe extern "C" {
    #[doc = " @brief Create a device.\n\n @attention If the device has already been acquired and created elsewhere, repeated acquisitions will return an error.\n\n @param[in] list Device list object.\n @param[in] serial_number The serial number of the device to create.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_device* The created device."]
    pub fn ob_device_list_get_device_by_serial_number(
        list: *const ob_device_list,
        serial_number: *const ::std::os::raw::c_char,
        error: *mut *mut ob_error,
    ) -> *mut ob_device;
}
unsafe extern "C" {
    #[doc = " @brief Create device by uid\n @brief On Linux platform, for usb device, the uid of the device is composed of bus-port-dev, for example 1-1.2-1. But the SDK will remove the dev number and\n only keep the bus-port as the uid to create the device, for example 1-1.2, so that we can create a device connected to the specified USB port. Similarly,\n users can also directly pass in bus-port as uid to create device.\n @brief For GMSL device, the uid is GMSL port with \"gmsl2-\" prefix, for example gmsl2-1.\n\n @attention If the device has already been acquired and created elsewhere, repeated acquisitions will return an error.\n\n @param[in] list Device list object.\n @param[in] uid The UID of the device to create.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_device* The created device."]
    pub fn ob_device_list_get_device_by_uid(
        list: *const ob_device_list,
        uid: *const ::std::os::raw::c_char,
        error: *mut *mut ob_error,
    ) -> *mut ob_device;
}
unsafe extern "C" {
    #[doc = " @brief Get the original parameter list of camera calibration saved on the device.\n\n @attention The parameters in the list do not correspond to the current open-stream configuration.You need to select the parameters according to the actual\n situation, and may need to do scaling, mirroring and other processing. Non-professional users are recommended to use the ob_pipeline_get_camera_param()\n interface.\n\n @param[in] device The device object.\n @param[out] error Log error messages.\n\n @return ob_camera_param_list The camera parameter list."]
    pub fn ob_device_get_calibration_camera_param_list(
        device: *mut ob_device,
        error: *mut *mut ob_error,
    ) -> *mut ob_camera_param_list;
}
unsafe extern "C" {
    #[doc = " @brief Get the number of camera parameter lists\n\n @param[in] param_list Camera parameter list\n @param[out] error Log error messages\n @return uint32_t The number of lists"]
    pub fn ob_camera_param_list_get_count(
        param_list: *mut ob_camera_param_list,
        error: *mut *mut ob_error,
    ) -> u32;
}
unsafe extern "C" {
    #[doc = " @brief Get camera parameters from the camera parameter list\n\n @param[in] param_list Camera parameter list\n @param[in] index Parameter index\n @param[out] error Log error messages\n @return ob_camera_param The camera parameters. Since it returns the structure object directly, there is no need to provide a delete interface."]
    pub fn ob_camera_param_list_get_param(
        param_list: *mut ob_camera_param_list,
        index: u32,
        error: *mut *mut ob_error,
    ) -> ob_camera_param;
}
unsafe extern "C" {
    #[doc = " @brief Delete the camera parameter list\n\n @param[in] param_list Camera parameter list\n @param[out] error Log error messages"]
    pub fn ob_delete_camera_param_list(
        param_list: *mut ob_camera_param_list,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Create a new error object.\n\n @param status The error status.\n @param message The error message.\n @param function The name of the API function that caused the error.\n @param args The error parameters.\n @param exception_type The type of exception that caused the error.\n @return ob_error* The new error object."]
    pub fn ob_create_error(
        status: ob_status,
        message: *const ::std::os::raw::c_char,
        function: *const ::std::os::raw::c_char,
        args: *const ::std::os::raw::c_char,
        exception_type: ob_exception_type,
    ) -> *mut ob_error;
}
unsafe extern "C" {
    #[doc = " @brief Get the error status.\n\n @param[in] error The error object.\n @return The error status."]
    pub fn ob_error_get_status(error: *const ob_error) -> ob_status;
}
unsafe extern "C" {
    #[doc = " @brief Get the error message.\n\n @param[in] error The error object.\n @return The error message."]
    pub fn ob_error_get_message(error: *const ob_error) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Get the name of the API function that caused the error.\n\n @param[in] error The error object.\n @return The name of the API function."]
    pub fn ob_error_get_function(error: *const ob_error) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Get the error parameters.\n\n @param[in] error The error object.\n @return The error parameters."]
    pub fn ob_error_get_args(error: *const ob_error) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Get the type of exception that caused the error.\n\n @param[in] error The error object.\n @return The type of exception."]
    pub fn ob_error_get_exception_type(error: *const ob_error) -> ob_exception_type;
}
unsafe extern "C" {
    #[doc = " @brief Delete the error object.\n\n @param[in] error The error object to delete, you should set the pointer to NULL after calling this function."]
    pub fn ob_delete_error(error: *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Create a Filter object.\n\n @attention If the filter of the specified name is a private filter, and the creator of the filter have not been activated, the function will return NULL.\n\n @param name The name of the filter.\n @param error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_create_filter(
        name: *const ::std::os::raw::c_char,
        error: *mut *mut ob_error,
    ) -> *mut ob_filter;
}
unsafe extern "C" {
    #[doc = " @brief Get the name of ob_filter\n\n @param filter ob_filter object\n @param error Pointer to an error object that will be set if an error occurs.\n @return char The filter of name"]
    pub fn ob_filter_get_name(
        filter: *const ob_filter,
        error: *mut *mut ob_error,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Get the vendor specific code of a filter by filter name.\n @brief A private filter can define its own vendor specific code for specific purposes.\n\n @param name The name of the filter.\n @param error Pointer to an error object that will be set if an error occurs.\n @return const char* Return the vendor specific code of the filter."]
    pub fn ob_filter_get_vendor_specific_code(
        name: *const ::std::os::raw::c_char,
        error: *mut *mut ob_error,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Create a private Filter object with activation key.\n @brief Some private filters require an activation key to be activated, its depends on the vendor of the filter.\n\n @param name The name of the filter.\n @param activation_key The activation key of the filter.\n @param error Pointer to an error object that will be set if an error occurs.\n\n @return ob_filter* Return the private filter object."]
    pub fn ob_create_private_filter(
        name: *const ::std::os::raw::c_char,
        activation_key: *const ::std::os::raw::c_char,
        error: *mut *mut ob_error,
    ) -> *mut ob_filter;
}
unsafe extern "C" {
    #[doc = " @brief Delete the filter.\n\n @param[in] filter The filter object to be deleted.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_delete_filter(filter: *mut ob_filter, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Get config schema of the filter\n @brief The returned string is a csv format string representing the configuration schema of the filter. The format of the string is:\n  <parameter_name>, <parameter_type: \"int\", \"float\", \"bool\">, <minimum_value>, <maximum_value>, <value_step>, <default_value>, <parameter_description>\n\n @param[in] filter The filter object to get the configuration schema for\n @param[out] error Pointer to an error object that will be set if an error occurs\n\n @return A csv format string representing the configuration schema of the filter"]
    pub fn ob_filter_get_config_schema(
        filter: *const ob_filter,
        error: *mut *mut ob_error,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Get the filter config schema list of the filter\n @brief The returned string is a list of ob_config_schema_item representing the configuration schema of the filter.\n\n @attention The returned list should be deleted by calling @ref ob_delete_filter_config_schema_list when it is no longer needed.\n\n @param filter The filter object to get the configuration schema for\n @param error Pointer to an error object that will be set if an error occurs\n @return ob_filter_config_schema_list* Return the filter config schema list of the filter"]
    pub fn ob_filter_get_config_schema_list(
        filter: *const ob_filter,
        error: *mut *mut ob_error,
    ) -> *mut ob_filter_config_schema_list;
}
unsafe extern "C" {
    #[doc = " @brief Delete a list of filter config schema items.\n\n @param config_schema_list The list of filter config schema items to delete.\n @param error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_delete_filter_config_schema_list(
        config_schema_list: *mut ob_filter_config_schema_list,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Update config of the filter\n\n @attention The passed in argc and argv must match the configuration schema returned by the @ref ob_filter_get_config_schema function.\n\n @param[in] filter The filter object to update the configuration for\n @param[in] argc The number of arguments in the argv array\n @param[in] argv An array of strings representing the configuration values\n @param[out] error Pointer to an error object that will be set if an error occurs"]
    pub fn ob_filter_update_config(
        filter: *mut ob_filter,
        argc: u8,
        argv: *mut *const ::std::os::raw::c_char,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get the filter config value by name and cast to double.\n\n @attention The returned value is cast to double, the actual type of the value depends on the filter config schema returned by @ref\n ob_filter_get_config_schema.\n\n @param[in] filter A filter object.\n @param[in] config_name config name\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return double The value of the config."]
    pub fn ob_filter_get_config_value(
        filter: *const ob_filter,
        config_name: *const ::std::os::raw::c_char,
        error: *mut *mut ob_error,
    ) -> f64;
}
unsafe extern "C" {
    #[doc = " @brief Set the filter config value by name.\n\n @attention The pass into value type is double, witch will be cast to the actual type inside the filter. The actual type can be queried by the filter config\n schema returned by @ref ob_filter_get_config_schema.\n\n @param[in] filter A filter object.\n @param[in] config_name config name\n @param[in] value The value to set.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_filter_set_config_value(
        filter: *mut ob_filter,
        config_name: *const ::std::os::raw::c_char,
        value: f64,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Reset the filter, clears the cache, and resets the state. If the asynchronous interface is used, the processing thread will also be stopped and the\n pending cache frames will be cleared.\n\n @param[in] filter A filter object.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_filter_reset(filter: *mut ob_filter, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Enable the frame post processing\n @brief The filter default is enable.\n\n @attention If the filter has been disabled by calling this function, processing will directly output a clone of the input frame.\n\n @param[in] filter A filter object.\n @param[in] enable enable status, true: enable; false: disable.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_filter_enable(filter: *mut ob_filter, enable: bool, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Get the enable status of the frame post processing\n\n @attention If the filter is disabled, the processing will directly output a clone of the input frame.\n\n @param[in] filter A filter object.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n\n @return The post processing filter status. True: enable; False: disable."]
    pub fn ob_filter_is_enabled(filter: *const ob_filter, error: *mut *mut ob_error) -> bool;
}
unsafe extern "C" {
    #[doc = " @brief Process the frame (synchronous interface).\n\n @param[in] filter A filter object.\n @param[in] frame Pointer to the frame object to be processed.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n\n @return The frame object processed by the filter."]
    pub fn ob_filter_process(
        filter: *mut ob_filter,
        frame: *const ob_frame,
        error: *mut *mut ob_error,
    ) -> *mut ob_frame;
}
unsafe extern "C" {
    #[doc = " @brief Set the processing result callback function for the filter (asynchronous callback interface).\n\n @param[in] filter A filter object.\n @param[in] callback Callback function.\n @param[in] user_data Arbitrary user data pointer can be passed in and returned from the callback.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_filter_set_callback(
        filter: *mut ob_filter,
        callback: ob_frame_callback,
        user_data: *mut ::std::os::raw::c_void,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Push the frame into the pending cache for the filter (asynchronous callback interface).\n @brief The frame will be processed by the filter when the processing thread is available and return a new processed frame to the callback function.\n\n @attention The frame object will be add reference count, so the user still need call @ref ob_delete_frame to release the frame after calling this function.\n\n @param[in] filter A filter object.\n @param[in] frame Pointer to the frame object to be processed.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_filter_push_frame(
        filter: *mut ob_filter,
        frame: *const ob_frame,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get the number of filter in the list\n\n @param[in] filter_list  filter list\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return uint32_t The number of list"]
    pub fn ob_filter_list_get_count(
        filter_list: *const ob_filter_list,
        error: *mut *mut ob_error,
    ) -> u32;
}
unsafe extern "C" {
    #[doc = " @brief Get the filter by index\n\n @param[in] filter_list Filter list\n @param[in] index  Filter index\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_filter The index of ob_filter"]
    pub fn ob_filter_list_get_filter(
        filter_list: *const ob_filter_list,
        index: u32,
        error: *mut *mut ob_error,
    ) -> *mut ob_filter;
}
unsafe extern "C" {
    #[doc = " @brief Delete a list of ob_filter objects.\n\n @param[in] filter_list The list of ob_filter objects to delete.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_delete_filter_list(filter_list: *mut ob_filter_list, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Get the number of config schema items in the config schema list\n\n @param config_schema_list Filter config schema list\n @param error Pointer to an error object that will be set if an error occurs.\n @return uint32_t The number of config schema items in the filter list"]
    pub fn ob_filter_config_schema_list_get_count(
        config_schema_list: *const ob_filter_config_schema_list,
        error: *mut *mut ob_error,
    ) -> u32;
}
unsafe extern "C" {
    #[doc = " @brief Get the config schema item by index\n\n @param config_schema_list Filter config schema list\n @param index  Config schema item index\n @param error Pointer to an error object that will be set if an error occurs.\n @return ob_filter_config_schema_item* The config schema item by index"]
    pub fn ob_filter_config_schema_list_get_item(
        config_schema_list: *const ob_filter_config_schema_list,
        index: u32,
        error: *mut *mut ob_error,
    ) -> ob_filter_config_schema_item;
}
unsafe extern "C" {
    #[doc = " @brief Set the align to stream profile for the align filter.\n @brief It is useful when the align target stream dose not started (without any frame to get intrinsics and extrinsics).\n\n @param filter A filter object.\n @param align_to_stream_profile The align target stream profile.\n @param error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_align_filter_set_align_to_stream_profile(
        filter: *mut ob_filter,
        align_to_stream_profile: *const ob_stream_profile,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Crate a frame object based on the specified parameters.\n\n @attention The frame object is created with a reference count of 1, and the reference count should be decreased by calling @ref ob_delete_frame() when it is\n no longer needed.\n\n @param frame_type The frame object type.\n @param format The frame object format.\n @param data_size The size of the frame object data.\n @param error Pointer to an error object that will be set if an error occurs.\n @return ob_frame* Return the frame object."]
    pub fn ob_create_frame(
        frame_type: ob_frame_type,
        format: ob_format,
        data_size: u32,
        error: *mut *mut ob_error,
    ) -> *mut ob_frame;
}
unsafe extern "C" {
    #[doc = " @brief Create (clone) a frame object based on the specified other frame object.\n @brief The new frame object will have the same properties as the other frame object, but the data buffer is newly allocated.\n\n @attention The frame object is created with a reference count of 1, and the reference count should be decreased by calling @ref ob_delete_frame() when it is\n no longer needed.\n\n @param[in] other_frame The frame object to create the new frame object according to.\n @param[in] should_copy_data If true, the data of the source frame object will be copied to the new frame object. If false, the new frame object will\n have a data buffer with random data.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_frame* Return the new frame object."]
    pub fn ob_create_frame_from_other_frame(
        other_frame: *const ob_frame,
        should_copy_data: bool,
        error: *mut *mut ob_error,
    ) -> *mut ob_frame;
}
unsafe extern "C" {
    #[doc = " @brief Create a frame object according to the specified stream profile.\n\n @attention The frame object is created with a reference count of 1, and the reference count should be decreased by calling @ref ob_delete_frame() when it is\n no logger needed.\n\n @param stream_profile The stream profile to create the new frame object according to.\n @param error Pointer to an error object that will be set if an error occurs.\n @return ob_frame* Return the new frame object."]
    pub fn ob_create_frame_from_stream_profile(
        stream_profile: *const ob_stream_profile,
        error: *mut *mut ob_error,
    ) -> *mut ob_frame;
}
unsafe extern "C" {
    #[doc = " @brief Create an video frame object based on the specified parameters.\n\n @attention The frame object is created with a reference count of 1, and the reference count should be decreased by calling @ref ob_delete_frame() when it is\n no longer needed.\n\n @param[in] frame_type Frame object type.\n @param[in] format Frame object format.\n @param[in] width Frame object width.\n @param[in] height Frame object height.\n @param[in] stride_bytes Row span in bytes. If 0, the stride is calculated based on the width and format.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_frame* Return an empty frame object."]
    pub fn ob_create_video_frame(
        frame_type: ob_frame_type,
        format: ob_format,
        width: u32,
        height: u32,
        stride_bytes: u32,
        error: *mut *mut ob_error,
    ) -> *mut ob_frame;
}
unsafe extern "C" {
    #[doc = " @brief Create a frame object based on an externally created buffer.\n\n @attention The buffer is owned by the user and will not be destroyed by the frame object. The user should ensure that the buffer is valid and not modified.\n @attention The frame object is created with a reference count of 1, and the reference count should be decreased by calling @ref ob_delete_frame() when it is\n no longer needed.\n\n @param[in] frame_type Frame object type.\n @param[in] format Frame object format.\n @param[in] buffer Frame object buffer.\n @param[in] buffer_size Frame object buffer size.\n @param[in] buffer_destroy_cb Destroy callback, will be called when the frame object is destroyed.\n @param[in] buffer_destroy_context Destroy context, user-defined context to be passed to the destroy callback.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_frame* Return the frame object."]
    pub fn ob_create_frame_from_buffer(
        frame_type: ob_frame_type,
        format: ob_format,
        buffer: *mut u8,
        buffer_size: u32,
        buffer_destroy_cb: ob_frame_destroy_callback,
        buffer_destroy_context: *mut ::std::os::raw::c_void,
        error: *mut *mut ob_error,
    ) -> *mut ob_frame;
}
unsafe extern "C" {
    #[doc = " @brief Create a video frame object based on an externally created buffer.\n\n @attention The buffer is owned by the user and will not be destroyed by the frame object. The user should ensure that the buffer is valid and not modified.\n @attention The frame object is created with a reference count of 1, and the reference count should be decreased by calling @ref ob_delete_frame() when it is\n no longer needed.\n\n @param[in] frame_type Frame object type.\n @param[in] format Frame object format.\n @param[in] width Frame object width.\n @param[in] height Frame object height.\n @param[in] stride_bytes Row span in bytes. If 0, the stride is calculated based on the width and format.\n @param[in] buffer Frame object buffer.\n @param[in] buffer_size Frame object buffer size.\n @param[in] buffer_destroy_cb Destroy callback, user-defined function to destroy the buffer.\n @param[in] buffer_destroy_context Destroy context, user-defined context to be passed to the destroy callback.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_frame* Return the frame object."]
    pub fn ob_create_video_frame_from_buffer(
        frame_type: ob_frame_type,
        format: ob_format,
        width: u32,
        height: u32,
        stride_bytes: u32,
        buffer: *mut u8,
        buffer_size: u32,
        buffer_destroy_cb: ob_frame_destroy_callback,
        buffer_destroy_context: *mut ::std::os::raw::c_void,
        error: *mut *mut ob_error,
    ) -> *mut ob_frame;
}
unsafe extern "C" {
    #[doc = " @brief Create an empty frameset object.\n @brief A frameset object is a special type of frame object that can be used to store multiple frames.\n\n @attention The frameset object is created with a reference count of 1, and the reference count should be decreased by calling @ref ob_delete_frame() when it\n is no longer needed.\n\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_frame* Return the frameset object."]
    pub fn ob_create_frameset(error: *mut *mut ob_error) -> *mut ob_frame;
}
unsafe extern "C" {
    #[doc = " @brief Increase the reference count of a frame object.\n @brief The reference count is used to manage the lifetime of the frame object.\n\n @attention When calling this function, the reference count of the frame object is\n increased and requires to be decreased by calling @ref ob_delete_frame().\n\n @param[in] frame Frame object to increase the reference count.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_frame_add_ref(frame: *const ob_frame, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Delete a frame object\n @brief This function will decrease the reference count of the frame object and release the memory if the reference count becomes 0.\n\n @param[in] frame The frame object to delete.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_delete_frame(frame: *const ob_frame, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Copy the information of the source frame object to the destination frame object.\n @brief Including the index, timestamp, system timestamp, global timestamp and metadata will be copied.\n\n @param[in] src_frame Source frame object to copy the information from.\n @param[in] dst_frame Destination frame object to copy the information to.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_frame_copy_info(
        src_frame: *const ob_frame,
        dst_frame: *mut ob_frame,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get the frame index\n\n @param[in] frame Frame object\n @param[out] error Log wrong message\n @return uint64_t return the frame index"]
    pub fn ob_frame_get_index(frame: *const ob_frame, error: *mut *mut ob_error) -> u64;
}
unsafe extern "C" {
    #[doc = " @brief Get the frame format\n\n @param[in] frame Frame object\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_format return the frame format"]
    pub fn ob_frame_get_format(frame: *const ob_frame, error: *mut *mut ob_error) -> ob_format;
}
unsafe extern "C" {
    #[doc = " @brief Get the frame type\n\n @param[in] frame Frame object\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_frame_type return the frame type"]
    pub fn ob_frame_get_type(frame: *const ob_frame, error: *mut *mut ob_error) -> ob_frame_type;
}
unsafe extern "C" {
    #[doc = " @brief Get the frame timestamp (also known as device timestamp, hardware timestamp) of the frame in microseconds.\n @brief The hardware timestamp is the time point when the frame was captured by the device (Typically in the mid-exposure, unless otherwise stated), on device\n clock domain.\n\n @param[in] frame Frame object\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return uint64_t return the frame hardware timestamp in microseconds"]
    pub fn ob_frame_get_timestamp_us(frame: *const ob_frame, error: *mut *mut ob_error) -> u64;
}
unsafe extern "C" {
    #[doc = " @brief Set the frame timestamp (also known as the device timestamp, hardware timestamp) of a frame object.\n\n @param[in] frame Frame object to set the timestamp.\n @param[in] timestamp_us frame timestamp to set in microseconds.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_frame_set_timestamp_us(
        frame: *mut ob_frame,
        timestamp_us: u64,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get the system timestamp of the frame in microseconds.\n @brief The system timestamp is the time point when the frame was received by the host, on host clock domain.\n\n @param[in] frame Frame object\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return uint64_t return the frame system timestamp in microseconds"]
    pub fn ob_frame_get_system_timestamp_us(
        frame: *const ob_frame,
        error: *mut *mut ob_error,
    ) -> u64;
}
unsafe extern "C" {
    #[doc = " @brief Set the system timestamp of the frame in microseconds.\n\n @param frame Frame object\n @param system_timestamp_us frame system timestamp to set in microseconds.\n @param error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_frame_set_system_timestamp_us(
        frame: *mut ob_frame,
        system_timestamp_us: u64,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get the global timestamp of the frame in microseconds.\n @brief The global timestamp is the time point when the frame was captured by the device, and has been converted to the host clock domain. The\n conversion process base on the frame timestamp and can eliminate the timer drift of the device\n\n @attention The global timestamp is disabled by default. If global timestamp is not enabled, the function will return 0. To enable it, call @ref\n ob_device_enable_global_timestamp() function.\n @attention Only some models of device support getting the global timestamp.  Check the device support status by @ref\n ob_device_is_global_timestamp_supported() function.\n\n @param[in] frame Frame object\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return uint64_t The global timestamp of the frame in microseconds."]
    pub fn ob_frame_get_global_timestamp_us(
        frame: *const ob_frame,
        error: *mut *mut ob_error,
    ) -> u64;
}
unsafe extern "C" {
    #[doc = " @brief Get the data buffer of a frame.\n\n @attention The returned data buffer is mutable, but it is not recommended to modify it directly. Modifying the data directly may cause issues if the frame is\n being used in other threads  or future use. If you need to modify the data, it is recommended to create a new frame object.\n\n @param[in] frame The frame object from which to retrieve the data.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return uint8_t* Pointer to the frame data buffer."]
    pub fn ob_frame_get_data(frame: *const ob_frame, error: *mut *mut ob_error) -> *mut u8;
}
unsafe extern "C" {
    #[doc = " @brief Update the data of a frame.\n @brief The data will be memcpy to the frame data buffer.\n @brief The frame data size will be also updated as the input data size.\n\n @attention It is not recommended to update the frame data if the frame was not created by the user. If you must update it, ensure that the frame is not being\n used in other threads.\n @attention The size of the new data should be equal to or less than the current data size of the frame. Exceeding the original size may cause memory\n exceptions.\n\n @param[in] frame The frame object to update.\n @param[in] data The new data to update the frame with.\n @param[in] data_size The size of the new data.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_frame_update_data(
        frame: *mut ob_frame,
        data: *const u8,
        data_size: u32,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get the frame data size\n\n @param[in] frame Frame object\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return uint32_t return the frame data size\n If it is point cloud data, it return the number of bytes occupied by all point sets. If you need to find the number of points, you need to divide dataSize\n by the structure size of the corresponding point type."]
    pub fn ob_frame_get_data_size(frame: *const ob_frame, error: *mut *mut ob_error) -> u32;
}
unsafe extern "C" {
    #[doc = " @brief Get the metadata of the frame\n\n @attention The returned metadata is mutable, but it is not recommended to modify it directly. Modifying the metadata directly may cause issues if the frame\n is being used in other threads or future use. If you need to modify the metadata, it is recommended to create a new frame object.\n\n @param[in] frame frame object\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return const uint8_t * return the metadata pointer of the frame"]
    pub fn ob_frame_get_metadata(frame: *const ob_frame, error: *mut *mut ob_error) -> *mut u8;
}
unsafe extern "C" {
    #[doc = " @brief Get the metadata size of the frame\n\n @param[in] frame frame object\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return uint32_t return the metadata size of the frame"]
    pub fn ob_frame_get_metadata_size(frame: *const ob_frame, error: *mut *mut ob_error) -> u32;
}
unsafe extern "C" {
    #[doc = " @brief Update the metadata of the frame\n @brief The metadata will be memcpy to the frame metadata buffer.\n @brief The frame metadata size will be also updated as the input metadata size.\n\n @attention It is not recommended to update the frame metadata if the frame was not created by the user. If you must update it, ensure that the frame is not\n being used in other threads or future use.\n @attention The metadata size should be equal to or less than 256 bytes, otherwise it will cause memory exception.\n\n @param[in] frame frame object\n @param[in] metadata The new metadata to update.\n @param[in] metadata_size The size of the new metadata.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_frame_update_metadata(
        frame: *mut ob_frame,
        metadata: *const u8,
        metadata_size: u32,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief check if the frame contains the specified metadata\n\n @param[in] frame frame object\n @param[in] type metadata type, refer to @ref ob_frame_metadata_type\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_frame_has_metadata(
        frame: *const ob_frame,
        type_: ob_frame_metadata_type,
        error: *mut *mut ob_error,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @brief Get the metadata value of the frame\n\n @param[in] frame frame object\n @param[in] type metadata type, refer to @ref ob_frame_metadata_type\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return int64_t return the metadata value of the frame"]
    pub fn ob_frame_get_metadata_value(
        frame: *const ob_frame,
        type_: ob_frame_metadata_type,
        error: *mut *mut ob_error,
    ) -> i64;
}
unsafe extern "C" {
    #[doc = " @brief Get the stream profile of the frame\n\n @attention Require @ref ob_delete_stream_profile() to release the return stream profile.\n\n @param frame frame object\n @param error Pointer to an error object that will be set if an error occurs.\n @return ob_stream_profile* Return the stream profile of the frame, if the frame is not captured by a sensor stream, it will return NULL"]
    pub fn ob_frame_get_stream_profile(
        frame: *const ob_frame,
        error: *mut *mut ob_error,
    ) -> *mut ob_stream_profile;
}
unsafe extern "C" {
    #[doc = " @brief Set (override) the stream profile of the frame\n\n @param frame frame object\n @param stream_profile The stream profile to set for the frame.\n @param error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_frame_set_stream_profile(
        frame: *mut ob_frame,
        stream_profile: *const ob_stream_profile,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get the sensor of the frame\n\n @attention Require @ref ob_delete_sensor() to release the return sensor.\n\n @param[in] frame frame object\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_sensor* return the sensor of the frame, if the frame is not captured by a sensor or the sensor stream has been destroyed, it will return NULL"]
    pub fn ob_frame_get_sensor(frame: *const ob_frame, error: *mut *mut ob_error)
        -> *mut ob_sensor;
}
unsafe extern "C" {
    #[doc = " @brief Get the device of the frame\n\n @attention Require @ref ob_delete_device() to release the return device.\n\n @param frame frame object\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_device* return the device of the frame, if the frame is not captured by a sensor stream or the device has been destroyed, it will return NULL"]
    pub fn ob_frame_get_device(frame: *const ob_frame, error: *mut *mut ob_error)
        -> *mut ob_device;
}
unsafe extern "C" {
    #[doc = " @brief Get video frame width\n\n @param[in] frame Frame object\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return uint32_t return the frame width"]
    pub fn ob_video_frame_get_width(frame: *const ob_frame, error: *mut *mut ob_error) -> u32;
}
unsafe extern "C" {
    #[doc = " @brief Get video frame height\n\n @param[in] frame Frame object\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return uint32_t return the frame height"]
    pub fn ob_video_frame_get_height(frame: *const ob_frame, error: *mut *mut ob_error) -> u32;
}
unsafe extern "C" {
    #[doc = " @brief Get video frame pixel format\n @brief Usually used to determine the pixel type of depth frame (depth, disparity, raw phase, etc.)\n\n @attention Always return OB_PIXEL_UNKNOWN for non-depth frame currently if user has not set the pixel type by @ref ob_video_frame_set_pixel_type()\n\n @param frame Frame object\n @param error Pointer to an error object that will be set if an error occurs.\n @return ob_pixel_type return the pixel format of the frame."]
    pub fn ob_video_frame_get_pixel_type(
        frame: *const ob_frame,
        error: *mut *mut ob_error,
    ) -> ob_pixel_type;
}
unsafe extern "C" {
    #[doc = " @brief Set video frame pixel format\n\n @param frame Frame object\n @param pixel_type the pixel format of the frame\n @param error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_video_frame_set_pixel_type(
        frame: *mut ob_frame,
        pixel_type: ob_pixel_type,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get the effective number of pixels (such as Y16 format frame, but only the lower 10 bits are effective bits, and the upper 6 bits are filled with 0)\n @attention Only valid for Y8/Y10/Y11/Y12/Y14/Y16 format\n\n @param[in] frame video frame object\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return uint8_t return the effective number of pixels in the pixel, or 0 if it is an unsupported format"]
    pub fn ob_video_frame_get_pixel_available_bit_size(
        frame: *const ob_frame,
        error: *mut *mut ob_error,
    ) -> u8;
}
unsafe extern "C" {
    #[doc = " @brief Set the effective number of pixels (such as Y16 format frame, but only the lower 10 bits are effective bits, and the upper 6 bits are filled with 0)\n @attention Only valid for Y8/Y10/Y11/Y12/Y14/Y16 format\n\n @param[in] frame video frame object\n @param[in] bit_size the effective number of pixels in the pixel, or 0 if it is an unsupported format\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_video_frame_set_pixel_available_bit_size(
        frame: *mut ob_frame,
        bit_size: u8,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get the source sensor type of the ir frame (left or right for dual camera)\n\n @param frame Frame object\n @param ob_error Pointer to an error object that will be set if an error occurs.\n @return ob_sensor_type return the source sensor type of the ir frame"]
    pub fn ob_ir_frame_get_source_sensor_type(
        frame: *const ob_frame,
        ob_error: *mut *mut ob_error,
    ) -> ob_sensor_type;
}
unsafe extern "C" {
    #[doc = " @brief Get the value scale of the depth frame. The pixel value of the depth frame is multiplied by the scale to give a depth value in millimeters.\n For example, if valueScale=0.1 and a certain coordinate pixel value is pixelValue=10000, then the depth value = pixelValue*valueScale = 10000*0.1=1000mm.\n\n @param[in] frame Frame object\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return float The value scale of the depth frame"]
    pub fn ob_depth_frame_get_value_scale(frame: *const ob_frame, error: *mut *mut ob_error)
        -> f32;
}
unsafe extern "C" {
    #[doc = " @brief Set the value scale of the depth frame. The pixel value of the depth frame is multiplied by the scale to give a depth value in millimeters.\n For example, if valueScale=0.1 and a certain coordinate pixel value is pixelValue=10000, then the depth value = pixelValue*valueScale = 10000*0.1=1000mm.\n\n @param[in] frame Frame object\n @param[in] value_scale The value scale of the depth frame\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_depth_frame_set_value_scale(
        frame: *mut ob_frame,
        value_scale: f32,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get the point coordinate value scale of the points frame. The point position value of the points frame is multiplied by the scale to give a position\n value in millimeters. For example, if scale=0.1, the x-coordinate value of a point is x = 10000, which means that the actual x-coordinate value = x*scale =\n 10000*0.1 = 1000mm.\n\n @param[in] frame Frame object\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return float The coordinate value scale of the points frame"]
    pub fn ob_points_frame_get_coordinate_value_scale(
        frame: *const ob_frame,
        error: *mut *mut ob_error,
    ) -> f32;
}
unsafe extern "C" {
    #[doc = " @brief Get accelerometer frame data.\n\n @param[in] frame Accelerometer frame.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_accel_value Return the accelerometer data."]
    pub fn ob_accel_frame_get_value(
        frame: *const ob_frame,
        error: *mut *mut ob_error,
    ) -> ob_accel_value;
}
unsafe extern "C" {
    #[doc = " @brief Get the temperature when acquiring the accelerometer frame.\n\n @param[in] frame Accelerometer frame.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return float Return the temperature value."]
    pub fn ob_accel_frame_get_temperature(frame: *const ob_frame, error: *mut *mut ob_error)
        -> f32;
}
unsafe extern "C" {
    #[doc = " @brief Get gyroscope frame data.\n\n @param[in] frame Gyroscope frame.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_gyro_value Return the gyroscope data."]
    pub fn ob_gyro_frame_get_value(
        frame: *const ob_frame,
        error: *mut *mut ob_error,
    ) -> ob_gyro_value;
}
unsafe extern "C" {
    #[doc = " @brief Get the temperature when acquiring the gyroscope frame.\n\n @param[in] frame Gyroscope frame.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return float Return the temperature value."]
    pub fn ob_gyro_frame_get_temperature(frame: *const ob_frame, error: *mut *mut ob_error) -> f32;
}
unsafe extern "C" {
    #[doc = " @brief Get the number of frames contained in the frameset\n\n @attention The frame returned by this function should call @ref ob_delete_frame() to decrease the reference count when it is no longer needed.\n\n @param[in] frameset frameset object\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return uint32_t return the number of frames"]
    pub fn ob_frameset_get_count(frameset: *const ob_frame, error: *mut *mut ob_error) -> u32;
}
unsafe extern "C" {
    #[doc = " @brief Get the depth frame from the frameset.\n\n @attention The frame returned by this function should call @ref ob_delete_frame() to decrease the reference count when it is no longer needed.\n\n @param[in] frameset Frameset object.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_frame* Return the depth frame."]
    pub fn ob_frameset_get_depth_frame(
        frameset: *const ob_frame,
        error: *mut *mut ob_error,
    ) -> *mut ob_frame;
}
unsafe extern "C" {
    #[doc = " @brief Get the color frame from the frameset.\n\n @attention The frame returned by this function should call @ref ob_delete_frame() to decrease the reference count when it is no longer needed.\n\n @param[in] frameset Frameset object.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_frame* Return the color frame."]
    pub fn ob_frameset_get_color_frame(
        frameset: *const ob_frame,
        error: *mut *mut ob_error,
    ) -> *mut ob_frame;
}
unsafe extern "C" {
    #[doc = " @brief Get the infrared frame from the frameset.\n\n @attention The frame returned by this function should call @ref ob_delete_frame() to decrease the reference count when it is no longer needed.\n\n @param[in] frameset Frameset object.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_frame* Return the infrared frame."]
    pub fn ob_frameset_get_ir_frame(
        frameset: *const ob_frame,
        error: *mut *mut ob_error,
    ) -> *mut ob_frame;
}
unsafe extern "C" {
    #[doc = " @brief Get point cloud frame from the frameset.\n\n @attention The frame returned by this function should call @ref ob_delete_frame() to decrease the reference count when it is no longer needed.\n\n @param[in] frameset Frameset object.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_frame* Return the point cloud frame."]
    pub fn ob_frameset_get_points_frame(
        frameset: *const ob_frame,
        error: *mut *mut ob_error,
    ) -> *mut ob_frame;
}
unsafe extern "C" {
    #[doc = " @brief Get a frame of a specific type from the frameset.\n\n @attention The frame returned by this function should call @ref ob_delete_frame() to decrease the reference count when it is no longer needed.\n\n @param[in] frameset Frameset object.\n @param[in] frame_type Frame type.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_frame* Return the frame of the specified type, or nullptr if it does not exist."]
    pub fn ob_frameset_get_frame(
        frameset: *const ob_frame,
        frame_type: ob_frame_type,
        error: *mut *mut ob_error,
    ) -> *mut ob_frame;
}
unsafe extern "C" {
    #[doc = " @brief Get a frame at a specific index from the FrameSet\n\n @param[in] frameset Frameset object.\n @param[in] index The index of the frame.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_frame* Return the frame at the specified index, or nullptr if it does not exist."]
    pub fn ob_frameset_get_frame_by_index(
        frameset: *const ob_frame,
        index: u32,
        error: *mut *mut ob_error,
    ) -> *mut ob_frame;
}
unsafe extern "C" {
    #[doc = " @brief Push a frame to the frameset\n\n @attention If a frame with same type already exists in the frameset, it will be replaced by the new frame.\n @attention The frame push to the frameset will be add reference count, so you still need to call @ref ob_delete_frame() to decrease the reference count when\n it is no longer needed.\n\n @param[in] frameset Frameset object.\n @param[in] frame Frame object to push.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_frameset_push_frame(
        frameset: *mut ob_frame,
        frame: *const ob_frame,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get point cloud frame width\n\n @param[in] frame point cloud Frame object\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return uint32_t return the point cloud frame width"]
    pub fn ob_point_cloud_frame_get_width(frame: *const ob_frame, error: *mut *mut ob_error)
        -> u32;
}
unsafe extern "C" {
    #[doc = " @brief Get point cloud frame height\n\n @param[in] frame point cloud Frame object\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return uint32_t return the point cloud frame height"]
    pub fn ob_point_cloud_frame_get_height(
        frame: *const ob_frame,
        error: *mut *mut ob_error,
    ) -> u32;
}
unsafe extern "C" {
    #[doc = " @brief Create a pipeline object\n\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_pipeline* return the pipeline object"]
    pub fn ob_create_pipeline(error: *mut *mut ob_error) -> *mut ob_pipeline;
}
unsafe extern "C" {
    #[doc = " @brief Using device objects to create pipeline objects\n\n @param[in] dev Device object used to create pipeline\n @param[out] error  Pointer to an error object that will be set if an error occurs.\n @return ob_pipeline* return the pipeline object"]
    pub fn ob_create_pipeline_with_device(
        dev: *const ob_device,
        error: *mut *mut ob_error,
    ) -> *mut ob_pipeline;
}
unsafe extern "C" {
    #[doc = " @brief Delete pipeline objects\n\n @param[in] pipeline  The pipeline object to be deleted\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_delete_pipeline(pipeline: *mut ob_pipeline, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Start the pipeline with default parameters\n\n @param[in] pipeline  pipeline object\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_pipeline_start(pipeline: *mut ob_pipeline, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Start the pipeline with configuration parameters\n\n @param[in] pipeline  pipeline object\n @param[in] config Parameters to be configured\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_pipeline_start_with_config(
        pipeline: *mut ob_pipeline,
        config: *const ob_config,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Start the pipeline and set the frame collection data callback\n\n @attention After start the pipeline with this interface, the frames will be output to the callback function and cannot be obtained frames by call\n @ob_pipeline_wait_for_frameset\n\n @param[in] pipeline pipeline object\n @param[in] config  Parameters to be configured\n @param[in] callback Trigger a callback when all frame data in the frameset arrives\n @param[in] user_data  Pass in any user data and get it from the callback\n @param[out] error  Pointer to an error object that will be set if an error occurs."]
    pub fn ob_pipeline_start_with_callback(
        pipeline: *mut ob_pipeline,
        config: *const ob_config,
        callback: ob_frameset_callback,
        user_data: *mut ::std::os::raw::c_void,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Stop pipeline\n\n @param[in] pipeline pipeline object\n @param[out] error  Pointer to an error object that will be set if an error occurs."]
    pub fn ob_pipeline_stop(pipeline: *mut ob_pipeline, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Get the configuration object associated with the pipeline\n @brief Returns default configuration if the user has not configured\n\n @param[in] pipeline The pipeline object\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_config* The configuration object"]
    pub fn ob_pipeline_get_config(
        pipeline: *const ob_pipeline,
        error: *mut *mut ob_error,
    ) -> *mut ob_config;
}
unsafe extern "C" {
    #[doc = " @brief Switch the corresponding configuration\n\n @param[in] pipeline The pipeline object\n @param[in] config The pipeline configuration\n @param[out] error Log error messages"]
    pub fn ob_pipeline_switch_config(
        pipeline: *mut ob_pipeline,
        config: *mut ob_config,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Wait for a set of frames to be returned synchronously\n\n @param[in] pipeline The pipeline object\n @param[in] timeout_ms The timeout for waiting (in milliseconds)\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_frame* The frameset that was waited for. A frameset is a special frame that can be used to obtain independent frames from the set."]
    pub fn ob_pipeline_wait_for_frameset(
        pipeline: *mut ob_pipeline,
        timeout_ms: u32,
        error: *mut *mut ob_error,
    ) -> *mut ob_frame;
}
unsafe extern "C" {
    #[doc = " @brief Get the device object associated with the pipeline\n\n @param[in] pipeline The pipeline object\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_device* The device object"]
    pub fn ob_pipeline_get_device(
        pipeline: *const ob_pipeline,
        error: *mut *mut ob_error,
    ) -> *mut ob_device;
}
unsafe extern "C" {
    #[doc = " @brief Get the stream profile list associated with the pipeline\n\n @param[in] pipeline The pipeline object\n @param[in] sensorType The sensor type. The supported sensor types can be obtained through the ob_device_get_sensor_list() interface.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_stream_profile_list* The stream profile list"]
    pub fn ob_pipeline_get_stream_profile_list(
        pipeline: *const ob_pipeline,
        sensorType: ob_sensor_type,
        error: *mut *mut ob_error,
    ) -> *mut ob_stream_profile_list;
}
unsafe extern "C" {
    #[doc = " @brief Enable frame synchronization\n @brief Synchronize the frames of different streams by using the timestamp information of the frames.\n @brief Dynamically (when pipeline is started) enable/disable frame synchronization is allowed.\n\n @param[in] pipeline The pipeline object\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_pipeline_enable_frame_sync(pipeline: *mut ob_pipeline, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Disable frame synchronization\n\n @param[in] pipeline The pipeline object\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_pipeline_disable_frame_sync(pipeline: *mut ob_pipeline, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Return a list of D2C-enabled depth sensor resolutions corresponding to the input color sensor resolution\n\n @param[in] pipeline The pipeline object\n @param[in] color_profile The input profile of the color sensor\n @param[in] align_mode The input align mode\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_stream_profile_list* The list of D2C-enabled depth sensor resolutions"]
    pub fn ob_get_d2c_depth_profile_list(
        pipeline: *const ob_pipeline,
        color_profile: *const ob_stream_profile,
        align_mode: ob_align_mode,
        error: *mut *mut ob_error,
    ) -> *mut ob_stream_profile_list;
}
unsafe extern "C" {
    #[doc = " @brief Create the pipeline configuration\n\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_config* The configuration object"]
    pub fn ob_create_config(error: *mut *mut ob_error) -> *mut ob_config;
}
unsafe extern "C" {
    #[doc = " @brief Delete the pipeline configuration\n\n @param[in] config The configuration to be deleted\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_delete_config(config: *mut ob_config, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Enable a stream with default profile\n\n @param[in] config The pipeline configuration object\n @param[in] stream_type The type of the stream to be enabled\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_config_enable_stream(
        config: *mut ob_config,
        stream_type: ob_stream_type,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Enable all streams in the pipeline configuration\n\n @param[in] config The pipeline configuration\n @param[out] error Log error messages"]
    pub fn ob_config_enable_all_stream(config: *mut ob_config, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Enable a stream according to the stream profile\n\n @param[in] config The pipeline configuration object\n @param[in] profile The stream profile to be enabled\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_config_enable_stream_with_stream_profile(
        config: *mut ob_config,
        profile: *const ob_stream_profile,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Enable video stream with specified parameters\n\n @attention The stream_type should be a video stream type, such as OB_STREAM_IR, OB_STREAM_COLOR, OB_STREAM_DEPTH, etc.\n\n @param[in] config The pipeline configuration object\n @param[in] stream_type The type of the stream to be enabled\n @param[in] width The width of the video stream\n @param[in] height The height of the video stream\n @param[in] fps The frame rate of the video stream\n @param[in] format The format of the video stream\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_config_enable_video_stream(
        config: *mut ob_config,
        stream_type: ob_stream_type,
        width: u32,
        height: u32,
        fps: u32,
        format: ob_format,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Enable accelerometer stream with specified parameters\n\n @param[in] config The pipeline configuration object\n @param[in] full_scale_range The full scale range of the accelerometer\n @param[in] sample_rate The sample rate of the accelerometer\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_config_enable_accel_stream(
        config: *mut ob_config,
        full_scale_range: ob_accel_full_scale_range,
        sample_rate: ob_accel_sample_rate,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Enable gyroscope stream with specified parameters\n\n @param[in] config The pipeline configuration object\n @param[in] full_scale_range The full scale range of the gyroscope\n @param[in] sample_rate The sample rate of the gyroscope\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_config_enable_gyro_stream(
        config: *mut ob_config,
        full_scale_range: ob_gyro_full_scale_range,
        sample_rate: ob_gyro_sample_rate,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief  Get the enabled stream profile list in the pipeline configuration\n\n @param config The pipeline configuration object\n @param error Pointer to an error object that will be set if an error occurs.\n @return ob_stream_profile_list* The enabled stream profile list, should be released by @ref ob_delete_stream_profile_list after use"]
    pub fn ob_config_get_enabled_stream_profile_list(
        config: *const ob_config,
        error: *mut *mut ob_error,
    ) -> *mut ob_stream_profile_list;
}
unsafe extern "C" {
    #[doc = " @brief Disable a specific stream in the pipeline configuration\n\n @param[in] config The pipeline configuration object\n @param[in] type The type of stream to be disabled\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_config_disable_stream(
        config: *mut ob_config,
        type_: ob_stream_type,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Disable all streams in the pipeline configuration\n\n @param[in] config The pipeline configuration object\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_config_disable_all_stream(config: *mut ob_config, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Set the alignment mode for the pipeline configuration\n\n @param[in] config The pipeline configuration object\n @param[in] mode The alignment mode to be set\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_config_set_align_mode(
        config: *mut ob_config,
        mode: ob_align_mode,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Set whether depth scaling is required after enable depth to color alignment\n @brief After enabling depth to color alignment, the depth image may need to be scaled to match the color image size.\n\n @param[in] config The pipeline configuration object\n @param[in] enable Whether scaling is required\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_config_set_depth_scale_after_align_require(
        config: *mut ob_config,
        enable: bool,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Set the frame aggregation output mode for the pipeline configuration\n @brief The processing strategy when the FrameSet generated by the frame aggregation function does not contain the frames of all opened streams (which\n can be caused by different frame rates of each stream, or by the loss of frames of one stream): drop directly or output to the user.\n\n @param[in] config The pipeline configuration object\n @param[in] mode The frame aggregation output mode to be set (default mode is @ref OB_FRAME_AGGREGATE_OUTPUT_ANY_SITUATION)\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_config_set_frame_aggregate_output_mode(
        config: *mut ob_config,
        mode: ob_frame_aggregate_output_mode,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get current camera parameters\n @attention If D2C is enabled, it will return the camera parameters after D2C, if not, it will return to the default parameters\n\n @param[in] pipeline pipeline object\n @param[out] error Log error messages\n @return ob_camera_param The camera internal parameters"]
    pub fn ob_pipeline_get_camera_param(
        pipeline: *mut ob_pipeline,
        error: *mut *mut ob_error,
    ) -> ob_camera_param;
}
unsafe extern "C" {
    #[doc = " @brief Get the current camera parameters\n\n @param[in] pipeline pipeline object\n @param[in] colorWidth color width\n @param[in] colorHeight color height\n @param[in] depthWidth depth width\n @param[in] depthHeight depth height\n @param[out] error Log error messages\n @return ob_camera_param returns camera internal parameters"]
    pub fn ob_pipeline_get_camera_param_with_profile(
        pipeline: *mut ob_pipeline,
        colorWidth: u32,
        colorHeight: u32,
        depthWidth: u32,
        depthHeight: u32,
        error: *mut *mut ob_error,
    ) -> ob_camera_param;
}
unsafe extern "C" {
    #[doc = " @brief Get device calibration parameters with the specified configuration\n\n @param[in] pipeline pipeline object\n @param[in] config The pipeline configuration\n @param[out] error Log error messages\n @return ob_calibration_param The calibration parameters"]
    pub fn ob_pipeline_get_calibration_param(
        pipeline: *mut ob_pipeline,
        config: *mut ob_config,
        error: *mut *mut ob_error,
    ) -> ob_calibration_param;
}
unsafe extern "C" {
    #[doc = " @brief Get the type of the sensor.\n\n @param[in] sensor The sensor object.\n @param[out] error Logs error messages.\n @return The sensor type."]
    pub fn ob_sensor_get_type(
        sensor: *const ob_sensor,
        error: *mut *mut ob_error,
    ) -> ob_sensor_type;
}
unsafe extern "C" {
    #[doc = " @brief Get a list of all supported stream profiles.\n\n @param[in] sensor The sensor object.\n @param[out] error Logs error messages.\n @return A list of stream profiles."]
    pub fn ob_sensor_get_stream_profile_list(
        sensor: *const ob_sensor,
        error: *mut *mut ob_error,
    ) -> *mut ob_stream_profile_list;
}
unsafe extern "C" {
    #[doc = " @brief Open the current sensor and set the callback data frame.\n\n @param[in] sensor The sensor object.\n @param[in] profile The stream configuration information.\n @param[in] callback The callback function triggered when frame data arrives.\n @param[in] user_data Any user data to pass in and get from the callback.\n @param[out] error Logs error messages."]
    pub fn ob_sensor_start(
        sensor: *mut ob_sensor,
        profile: *const ob_stream_profile,
        callback: ob_frame_callback,
        user_data: *mut ::std::os::raw::c_void,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Stop the sensor stream.\n\n @param[in] sensor The sensor object.\n @param[out] error Logs error messages."]
    pub fn ob_sensor_stop(sensor: *mut ob_sensor, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Switch resolutions.\n\n @param[in] sensor The sensor object.\n @param[in] profile The stream configuration information.\n @param[out] error Logs error messages."]
    pub fn ob_sensor_switch_profile(
        sensor: *mut ob_sensor,
        profile: *mut ob_stream_profile,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Delete a sensor object.\n\n @param[in] sensor The sensor object to delete.\n @param[out] error Logs error messages."]
    pub fn ob_delete_sensor(sensor: *mut ob_sensor, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief  Create a list of recommended filters for the specified sensor.\n\n @param[in] sensor The ob_sensor object.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n\n @return ob_filter_list"]
    pub fn ob_sensor_create_recommended_filter_list(
        sensor: *const ob_sensor,
        error: *mut *mut ob_error,
    ) -> *mut ob_filter_list;
}
unsafe extern "C" {
    #[doc = " @brief Get the number of sensors in the sensor list.\n\n @param[in] sensor_list The list of sensor objects.\n @param[out] error Logs error messages.\n @return The number of sensors in the list."]
    pub fn ob_sensor_list_get_count(
        sensor_list: *const ob_sensor_list,
        error: *mut *mut ob_error,
    ) -> u32;
}
unsafe extern "C" {
    #[doc = " @brief Get the sensor type.\n\n @param[in] sensor_list The list of sensor objects.\n @param[in] index The index of the sensor on the list.\n @param[out] error Logs error messages.\n @return The sensor type."]
    pub fn ob_sensor_list_get_sensor_type(
        sensor_list: *const ob_sensor_list,
        index: u32,
        error: *mut *mut ob_error,
    ) -> ob_sensor_type;
}
unsafe extern "C" {
    #[doc = " @brief Get a sensor by sensor type.\n\n @param[in] sensor_list The list of sensor objects.\n @param[in] sensorType The sensor type to be obtained.\n @param[out] error Logs error messages.\n @return The sensor pointer. If the specified type of sensor does not exist, it will return null."]
    pub fn ob_sensor_list_get_sensor_by_type(
        sensor_list: *const ob_sensor_list,
        sensorType: ob_sensor_type,
        error: *mut *mut ob_error,
    ) -> *mut ob_sensor;
}
unsafe extern "C" {
    #[doc = " @brief Get a sensor by index number.\n\n @param[in] sensor_list The list of sensor objects.\n @param[in] index The index of the sensor on the list.\n @param[out] error Logs error messages.\n @return The sensor object."]
    pub fn ob_sensor_list_get_sensor(
        sensor_list: *const ob_sensor_list,
        index: u32,
        error: *mut *mut ob_error,
    ) -> *mut ob_sensor;
}
unsafe extern "C" {
    #[doc = " @brief Delete a list of sensor objects.\n\n @param[in] sensor_list The list of sensor objects to delete.\n @param[out] error Logs error messages."]
    pub fn ob_delete_sensor_list(sensor_list: *mut ob_sensor_list, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Create a stream profile object\n\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_stream_profile* return the stream profile object"]
    pub fn ob_create_stream_profile(
        type_: ob_stream_type,
        format: ob_format,
        error: *mut *mut ob_error,
    ) -> *mut ob_stream_profile;
}
unsafe extern "C" {
    #[doc = " @brief Create a video stream profile object\n\n @param[in] type Stream type\n @param[in] format Stream format\n @param[in] width Stream width\n @param[in] height Stream height\n @param[in] fps Stream frame rate\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_stream_profile* return the video stream profile object"]
    pub fn ob_create_video_stream_profile(
        type_: ob_stream_type,
        format: ob_format,
        width: u32,
        height: u32,
        fps: u32,
        error: *mut *mut ob_error,
    ) -> *mut ob_stream_profile;
}
unsafe extern "C" {
    #[doc = " @brief Create a accel stream profile object\n\n @param[in] full_scale_range Accel full scale range\n @param[in] sample_rate Accel sample rate\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_stream_profile* return the accel stream profile object"]
    pub fn ob_create_accel_stream_profile(
        full_scale_range: ob_accel_full_scale_range,
        sample_rate: ob_accel_sample_rate,
        error: *mut *mut ob_error,
    ) -> *mut ob_stream_profile;
}
unsafe extern "C" {
    #[doc = " @brief Create a gyro stream profile object\n\n @param[in] full_scale_range Gyro full scale range\n @param[in] sample_rate Gyro sample rate\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_stream_profile* return the accel stream profile object"]
    pub fn ob_create_gyro_stream_profile(
        full_scale_range: ob_gyro_full_scale_range,
        sample_rate: ob_gyro_sample_rate,
        error: *mut *mut ob_error,
    ) -> *mut ob_stream_profile;
}
unsafe extern "C" {
    #[doc = " @brief Copy the stream profile object from an other stream profile object\n\n @param[in] srcProfile Source stream profile object\n @param[out] error Pointer to an error object that will be set if an error occurs.\n\n @return ob_stream_profile* return the new stream profile object"]
    pub fn ob_create_stream_profile_from_other_stream_profile(
        srcProfile: *const ob_stream_profile,
        error: *mut *mut ob_error,
    ) -> *mut ob_stream_profile;
}
unsafe extern "C" {
    #[doc = " @brief Copy the stream profile object with a new format object\n\n @param[in] profile Stream profile object\n @param[in] new_format New format\n @param[out] error Pointer to an error object that will be set if an error occurs.\n\n @return ob_stream_profile* return the new stream profile object with the new format"]
    pub fn ob_create_stream_profile_with_new_format(
        profile: *const ob_stream_profile,
        new_format: ob_format,
        error: *mut *mut ob_error,
    ) -> *mut ob_stream_profile;
}
unsafe extern "C" {
    #[doc = " @brief Delete the stream configuration.\n\n @param[in] profile Stream profile object .\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_delete_stream_profile(profile: *const ob_stream_profile, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Get stream profile format\n\n @param[in] profile Stream profile object\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_format return the format of the stream"]
    pub fn ob_stream_profile_get_format(
        profile: *const ob_stream_profile,
        error: *mut *mut ob_error,
    ) -> ob_format;
}
unsafe extern "C" {
    #[doc = " @brief Set stream profile format\n\n @param[in] profile Stream profile object\n @param[in] format The format of the stream\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_stream_profile_set_format(
        profile: *mut ob_stream_profile,
        format: ob_format,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get stream profile type\n\n @param[in] profile Stream profile object\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_stream_type stream type"]
    pub fn ob_stream_profile_get_type(
        profile: *const ob_stream_profile,
        error: *mut *mut ob_error,
    ) -> ob_stream_type;
}
unsafe extern "C" {
    #[doc = " @brief Set stream profile type\n\n @param[in] profile Stream profile object\n @param[in] type The type of the stream\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_stream_profile_set_type(
        profile: *const ob_stream_profile,
        type_: ob_stream_type,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get the extrinsic for source stream to target stream\n\n @param[in] source Source stream profile\n @param[in]  target Target stream profile\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_extrinsic The extrinsic"]
    pub fn ob_stream_profile_get_extrinsic_to(
        source: *const ob_stream_profile,
        target: *mut ob_stream_profile,
        error: *mut *mut ob_error,
    ) -> ob_extrinsic;
}
unsafe extern "C" {
    #[doc = " @brief Set the extrinsic for source stream to target stream\n\n @param[in] source Stream profile object\n @param[in] target  Target stream type\n @param[in] extrinsic The extrinsic\n @param[out] error   Pointer to an error object that will be set if an error occurs."]
    pub fn ob_stream_profile_set_extrinsic_to(
        source: *mut ob_stream_profile,
        target: *const ob_stream_profile,
        extrinsic: ob_extrinsic,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Set the extrinsic for source stream to target stream type\n\n @param[in] source Source stream profile\n @param[in]  type Target stream type\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_extrinsic The extrinsic"]
    pub fn ob_stream_profile_set_extrinsic_to_type(
        source: *mut ob_stream_profile,
        type_: ob_stream_type,
        extrinsic: ob_extrinsic,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get the frame rate of the video stream\n\n @param[in] profile Stream profile object\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return uint32_t return the frame rate of the stream"]
    pub fn ob_video_stream_profile_get_fps(
        profile: *const ob_stream_profile,
        error: *mut *mut ob_error,
    ) -> u32;
}
unsafe extern "C" {
    #[doc = " @brief Get the width of the video stream\n\n @param[in] profile Stream profile object , If the profile is not a video stream configuration, an error will be returned\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return uint32_t return the width of the stream"]
    pub fn ob_video_stream_profile_get_width(
        profile: *const ob_stream_profile,
        error: *mut *mut ob_error,
    ) -> u32;
}
unsafe extern "C" {
    #[doc = " @brief Set the width of the video stream\n\n @param[in] profile Stream profile object , If the profile is not a video stream configuration, an error will be returned\n @param[in] width The width of the stream\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_video_stream_profile_set_width(
        profile: *mut ob_stream_profile,
        width: u32,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get the height of the video stream\n\n @param[in] profile Stream profile object , If the profile is not a video stream configuration, an error will be returned\n @param[out] error  Pointer to an error object that will be set if an error occurs.\n @return uint32_t return the height of the stream"]
    pub fn ob_video_stream_profile_get_height(
        profile: *const ob_stream_profile,
        error: *mut *mut ob_error,
    ) -> u32;
}
unsafe extern "C" {
    #[doc = " @brief Set the height of the video stream\n\n @param[in] profile Stream profile object , If the profile is not a video stream configuration, an error will be returned\n @param[in] height The height of the stream\n @param[out] error  Pointer to an error object that will be set if an error occurs."]
    pub fn ob_video_stream_profile_set_height(
        profile: *mut ob_stream_profile,
        height: u32,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get the intrinsic of the video stream profile\n\n @param[in]  profile Stream profile object\n @param[out] error   Pointer to an error object that will be set if an error occurs.\n @return ob_camera_intrinsic Return the intrinsic of the stream"]
    pub fn ob_video_stream_profile_get_intrinsic(
        profile: *const ob_stream_profile,
        error: *mut *mut ob_error,
    ) -> ob_camera_intrinsic;
}
unsafe extern "C" {
    #[doc = " @brief Set the intrinsic of the video stream profile\n\n @param[in] profile Stream profile object\n @param[in]  intrinsic The intrinsic of the stream\n @param[out] error   Pointer to an error object that will be set if an error occurs."]
    pub fn ob_video_stream_profile_set_intrinsic(
        profile: *mut ob_stream_profile,
        intrinsic: ob_camera_intrinsic,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get the distortion of the video stream profile\n\n @param[in]  profile Stream profile object\n @param[out] error   Pointer to an error object that will be set if an error occurs.\n @return ob_camera_distortion Return the distortion of the stream"]
    pub fn ob_video_stream_profile_get_distortion(
        profile: *const ob_stream_profile,
        error: *mut *mut ob_error,
    ) -> ob_camera_distortion;
}
unsafe extern "C" {
    #[doc = " @brief Set the distortion of the video stream profile\n\n @param[in] profile Stream profile object\n @param[in]  distortion The distortion of the stream\n @param[out] error   Pointer to an error object that will be set if an error occurs."]
    pub fn ob_video_stream_profile_set_distortion(
        profile: *mut ob_stream_profile,
        distortion: ob_camera_distortion,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get the process param of the disparity stream\n\n @param[in]  profile Stream profile object\n @param[out] error   Pointer to an error object that will be set if an error occurs.\n @return ob_disparity_param Return the disparity process param of the stream"]
    pub fn ob_disparity_based_stream_profile_get_disparity_param(
        profile: *const ob_stream_profile,
        error: *mut *mut ob_error,
    ) -> ob_disparity_param;
}
unsafe extern "C" {
    #[doc = " @brief Set the disparity process param of the disparity stream.\n\n @param[in] profile Stream profile object. If the profile is not for the disparity stream, an error will be returned.\n @param[in] param The disparity process param of the disparity stream.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_disparity_based_stream_profile_set_disparity_param(
        profile: *mut ob_stream_profile,
        param: ob_disparity_param,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get the full-scale range of the accelerometer stream.\n\n @param[in] profile Stream profile object. If the profile is not for the accelerometer stream, an error will be returned.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return The full-scale range of the accelerometer stream."]
    pub fn ob_accel_stream_profile_get_full_scale_range(
        profile: *const ob_stream_profile,
        error: *mut *mut ob_error,
    ) -> ob_accel_full_scale_range;
}
unsafe extern "C" {
    #[doc = " @brief Get the sampling frequency of the accelerometer frame.\n\n @param[in] profile Stream profile object. If the profile is not for the accelerometer stream, an error will be returned.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return The sampling frequency of the accelerometer frame."]
    pub fn ob_accel_stream_profile_get_sample_rate(
        profile: *const ob_stream_profile,
        error: *mut *mut ob_error,
    ) -> ob_accel_sample_rate;
}
unsafe extern "C" {
    #[doc = " @brief Get the intrinsic of the accelerometer stream.\n\n @param[in]  profile Stream profile object. If the profile is not for the accelerometer stream, an error will be returned.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_accel_intrinsic Return the intrinsic of the accelerometer stream."]
    pub fn ob_accel_stream_profile_get_intrinsic(
        profile: *const ob_stream_profile,
        error: *mut *mut ob_error,
    ) -> ob_accel_intrinsic;
}
unsafe extern "C" {
    #[doc = " @brief Set the intrinsic of the accelerometer stream.\n\n @param[in] profile Stream profile object. If the profile is not for the accelerometer stream, an error will be returned.\n @param[in]  intrinsic The intrinsic of the accelerometer stream.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_accel_stream_profile_set_intrinsic(
        profile: *mut ob_stream_profile,
        intrinsic: ob_accel_intrinsic,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get the full-scale range of the gyroscope stream.\n\n @param[in] profile Stream profile object. If the profile is not for the gyroscope stream, an error will be returned.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return The full-scale range of the gyroscope stream."]
    pub fn ob_gyro_stream_profile_get_full_scale_range(
        profile: *const ob_stream_profile,
        error: *mut *mut ob_error,
    ) -> ob_gyro_full_scale_range;
}
unsafe extern "C" {
    #[doc = " @brief Get the sampling frequency of the gyroscope stream.\n\n @param[in] profile Stream profile object. If the profile is not for the gyroscope stream, an error will be returned.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return The sampling frequency of the gyroscope stream."]
    pub fn ob_gyro_stream_profile_get_sample_rate(
        profile: *const ob_stream_profile,
        error: *mut *mut ob_error,
    ) -> ob_gyro_sample_rate;
}
unsafe extern "C" {
    #[doc = " @brief Get the intrinsic of the gyroscope stream.\n\n @param[in]  profile Stream profile object. If the profile is not for the gyroscope stream, an error will be returned.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return ob_gyro_intrinsic Return the intrinsic of the gyroscope stream."]
    pub fn ob_gyro_stream_get_intrinsic(
        profile: *const ob_stream_profile,
        error: *mut *mut ob_error,
    ) -> ob_gyro_intrinsic;
}
unsafe extern "C" {
    #[doc = " @brief Set the intrinsic of the gyroscope stream.\n\n @param[in] profile Stream profile object. If the profile is not for the gyroscope stream, an error will be returned.\n @param[in]  intrinsic The intrinsic of the gyroscope stream.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_gyro_stream_set_intrinsic(
        profile: *mut ob_stream_profile,
        intrinsic: ob_gyro_intrinsic,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get the number of StreamProfile lists.\n\n @param[in] profile_list StreamProfile list.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return The number of StreamProfile lists."]
    pub fn ob_stream_profile_list_get_count(
        profile_list: *const ob_stream_profile_list,
        error: *mut *mut ob_error,
    ) -> u32;
}
unsafe extern "C" {
    #[doc = " @brief Get the corresponding StreamProfile by subscripting.\n\n @attention The stream profile returned by this function should be deleted by calling @ref ob_delete_stream_profile() when it is no longer needed.\n\n @param[in] profile_list StreamProfile lists.\n @param[in] index Index.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return The matching profile."]
    pub fn ob_stream_profile_list_get_profile(
        profile_list: *const ob_stream_profile_list,
        index: ::std::os::raw::c_int,
        error: *mut *mut ob_error,
    ) -> *mut ob_stream_profile;
}
unsafe extern "C" {
    #[doc = " @brief Match the corresponding ob_stream_profile through the passed parameters. If there are multiple matches,\n the first one in the list will be returned by default. If no matched profile is found, an error will be returned.\n\n @attention The stream profile returned by this function should be deleted by calling @ref ob_delete_stream_profile() when it is no longer needed.\n\n @param[in] profile_list Resolution list.\n @param[in] width Width. If you don't need to add matching conditions, you can pass OB_WIDTH_ANY.\n @param[in] height Height. If you don't need to add matching conditions, you can pass OB_HEIGHT_ANY.\n @param[in] format Format. If you don't need to add matching conditions, you can pass OB_FORMAT_ANY.\n @param[in] fps Frame rate. If you don't need to add matching conditions, you can pass OB_FPS_ANY.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return The matching profile."]
    pub fn ob_stream_profile_list_get_video_stream_profile(
        profile_list: *const ob_stream_profile_list,
        width: ::std::os::raw::c_int,
        height: ::std::os::raw::c_int,
        format: ob_format,
        fps: ::std::os::raw::c_int,
        error: *mut *mut ob_error,
    ) -> *mut ob_stream_profile;
}
unsafe extern "C" {
    #[doc = " @brief Match the corresponding ob_stream_profile through the passed parameters. If there are multiple matches,\n the first one in the list will be returned by default. If no matched profile is found, an error will be returned.\n\n @attention The stream profile returned by this function should be deleted by calling @ref ob_delete_stream_profile() when it is no longer needed.\n\n @param[in] profile_list Resolution list.\n @param[in] full_scale_range Full-scale range. If you don't need to add matching conditions, you can pass 0.\n @param[in] sample_rate Sample rate. If you don't need to add matching conditions, you can pass 0.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return The matching profile."]
    pub fn ob_stream_profile_list_get_accel_stream_profile(
        profile_list: *const ob_stream_profile_list,
        full_scale_range: ob_accel_full_scale_range,
        sample_rate: ob_accel_sample_rate,
        error: *mut *mut ob_error,
    ) -> *mut ob_stream_profile;
}
unsafe extern "C" {
    #[doc = " @brief Match the corresponding ob_stream_profile through the passed parameters. If there are multiple matches,\n the first one in the list will be returned by default. If no matched profile is found, an error will be returned.\n\n @attention The stream profile returned by this function should be deleted by calling @ref ob_delete_stream_profile() when it is no longer needed.\n\n @param[in] profile_list Resolution list.\n @param[in] full_scale_range Full-scale range. If you don't need to add matching conditions, you can pass 0.\n @param[in] sample_rate Sample rate. If you don't need to add matching conditions, you can pass 0.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return The matching profile."]
    pub fn ob_stream_profile_list_get_gyro_stream_profile(
        profile_list: *const ob_stream_profile_list,
        full_scale_range: ob_gyro_full_scale_range,
        sample_rate: ob_gyro_sample_rate,
        error: *mut *mut ob_error,
    ) -> *mut ob_stream_profile;
}
unsafe extern "C" {
    #[doc = " @brief Delete the stream profile list.\n\n @param[in] profile_list Stream configuration list.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_delete_stream_profile_list(
        profile_list: *const ob_stream_profile_list,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get the SDK version number.\n\n @return int The SDK version number."]
    pub fn ob_get_version() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    #[doc = " @brief Get the SDK major version number.\n\n @return int The SDK major version number."]
    pub fn ob_get_major_version() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    #[doc = " @brief Get the SDK minor version number.\n\n @return int The SDK minor version number."]
    pub fn ob_get_minor_version() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    #[doc = " @brief Get the SDK patch version number.\n\n @return int The SDK patch version number."]
    pub fn ob_get_patch_version() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    #[doc = " @brief Get the SDK stage version.\n @attention The returned char* does not need to be freed.\n\n @return const char* The SDK stage version."]
    pub fn ob_get_stage_version() -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Convert OBFormat to \" char* \" type and then return.\n\n @param[in] type OBFormat type.\n @return OBFormat of \"char*\" type."]
    pub fn ob_format_type_to_string(type_: OBFormat) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Convert OBFrameType to \" char* \" type and then return.\n\n @param[in] type OBFrameType type.\n @return OBFrameType of \"char*\" type."]
    pub fn ob_frame_type_to_string(type_: OBFrameType) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Convert OBStreamType to \" char* \" type and then return.\n\n @param[in] type OBStreamType type.\n @return OBStreamType of \"char*\" type."]
    pub fn ob_stream_type_to_string(type_: OBStreamType) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Convert OBSensorType to \" char* \" type and then return.\n\n @param[in] type OBSensorType type.\n @return OBSensorType of \"char*\" type."]
    pub fn ob_sensor_type_to_string(type_: OBSensorType) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Convert OBIMUSampleRate to \" char* \" type and then return.\n\n @param[in] type OBIMUSampleRate type.\n @return OBIMUSampleRate of \"char*\" type."]
    pub fn ob_imu_rate_type_to_string(type_: OBIMUSampleRate) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Convert OBGyroFullScaleRange to \" char* \" type and then return.\n\n @param[in] type OBGyroFullScaleRange type.\n @return OBGyroFullScaleRange of \"char*\" type."]
    pub fn ob_gyro_range_type_to_string(
        type_: OBGyroFullScaleRange,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Convert OBAccelFullScaleRange to \" char* \" type and then return.\n\n @param[in] type OBAccelFullScaleRange type.\n @return OBAccelFullScaleRange of \"char*\" type."]
    pub fn ob_accel_range_type_to_string(
        type_: OBAccelFullScaleRange,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Convert OBFrameMetadataType to \" char* \" type and then return.\n\n @param[in] type OBFrameMetadataType type.\n @return OBFrameMetadataType of \"char*\" type."]
    pub fn ob_meta_data_type_to_string(type_: OBFrameMetadataType)
        -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Convert OBStreamType to OBSensorType.\n\n @param[in] type The sensor type to convert.\n @return OBStreamType The corresponding stream type."]
    pub fn ob_sensor_type_to_stream_type(type_: OBSensorType) -> OBStreamType;
}
unsafe extern "C" {
    #[doc = " @brief Convert OBFormat to \" char* \" type and then return.\n\n @param format The OBFormat to convert.\n @return The string."]
    pub fn ob_format_to_string(format: OBFormat) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Create a recording device for the specified device with a specified file path and compression enabled.\n\n @param[in] device The device to record.\n @param[in] file_path The file path to record to.\n @param[in] compression_enabled Whether to enable compression for the recording.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return A pointer to the newly created recording device, or NULL if an error occurred."]
    pub fn ob_create_record_device(
        device: *mut ob_device,
        file_path: *const ::std::os::raw::c_char,
        compression_enabled: bool,
        error: *mut *mut ob_error,
    ) -> *mut ob_record_device;
}
unsafe extern "C" {
    #[doc = " @brief Delete a recording device.\n\n @param[in] recorder The recording device to delete.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_delete_record_device(recorder: *mut ob_record_device, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Pause recording on the specified recording device.\n\n @param[in] recorder The recording device to pause.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_record_device_pause(recorder: *mut ob_record_device, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Resume recording on the specified recording device.\n\n @param[in] recorder The recording device to resume.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_record_device_resume(recorder: *mut ob_record_device, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Create a playback device for the specified file path.\n\n @param[in] file_path The file path to playback from.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return A pointer to the newly created playback device, or NULL if an error occurred."]
    pub fn ob_create_playback_device(
        file_path: *const ::std::os::raw::c_char,
        error: *mut *mut ob_error,
    ) -> *mut ob_device;
}
unsafe extern "C" {
    #[doc = " @brief Pause playback on the specified playback device.\n\n @param[in] player The playback device to pause.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_playback_device_pause(player: *mut ob_device, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Resume playback on the specified playback device.\n\n @param[in] player The playback device to resume.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_playback_device_resume(player: *mut ob_device, error: *mut *mut ob_error);
}
unsafe extern "C" {
    #[doc = " @brief Set the playback to a specified time point of the played data.\n\n @param[in] player The playback device to set the position for.\n @param[in] timestamp The position to set the playback to, in milliseconds.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_playback_device_seek(
        player: *mut ob_device,
        timestamp: u64,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Set the playback to a specified time point of the played data.\n\n @param[in] player The playback device to set the position for.\n @param[in] rate The playback rate to set.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_playback_device_set_playback_rate(
        player: *mut ob_device,
        rate: f32,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get the current playback status of the played data.\n\n @param[in] player The playback device to get the status for.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return The current playback status of the played data."]
    pub fn ob_playback_device_get_current_playback_status(
        player: *mut ob_device,
        error: *mut *mut ob_error,
    ) -> ob_playback_status;
}
unsafe extern "C" {
    #[doc = " @brief Set a callback function to receive playback status updates.\n\n @param[in] player The playback device to set the callback for.\n @param[in] callback The callback function to receive playback status updates.\n @param[out] error Pointer to an error object that will be set if an error occurs."]
    pub fn ob_playback_device_set_playback_status_changed_callback(
        player: *mut ob_device,
        callback: ob_playback_status_changed_callback,
        user_data: *mut ::std::os::raw::c_void,
        error: *mut *mut ob_error,
    );
}
unsafe extern "C" {
    #[doc = " @brief Get the current playback position of the played data.\n\n @param[in] player The playback device to get the position for.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return The current playback position of the played data, in milliseconds."]
    pub fn ob_playback_device_get_position(
        player: *mut ob_device,
        error: *mut *mut ob_error,
    ) -> u64;
}
unsafe extern "C" {
    #[doc = " @brief Get the duration of the played data.\n\n @param[in] player The playback device to get the duration for.\n @param[out] error Pointer to an error object that will be set if an error occurs.\n @return The duration of the played data, in milliseconds."]
    pub fn ob_playback_device_get_duration(
        player: *mut ob_device,
        error: *mut *mut ob_error,
    ) -> u64;
}