ohos-media-sys 0.1.0

Raw Bindings to the media framework on OpenHarmony
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
// automatically generated by rust-bindgen 0.71.1

#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(deprecated)]
#[cfg(feature = "api-11")]
use crate::avbuffer::OH_AVBuffer;
use crate::avbuffer_info::OH_AVCodecBufferAttr;
#[allow(unused_imports)]
use crate::averrors::OH_AVErrCode;
use crate::avformat::OH_AVFormat;
use crate::avmemory::OH_AVMemory;

/// Forward declaration of OH_AVCodec.
///
///
/// Available since API-level: 9
#[repr(C)]
pub struct OH_AVCodec {
    _unused: [u8; 0],
}
/// When an error occurs in the running of the OH_AVCodec instance, the function pointer will be called
/// to report specific error information.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
/// # Arguments
///
/// * `codec` - OH_AVCodec instance
///
/// * `errorCode` - specific error code
///
/// * `userData` - User specific data
///
/// Available since API-level: 9
pub type OH_AVCodecOnError = ::core::option::Option<
    unsafe extern "C" fn(
        codec: *mut OH_AVCodec,
        errorCode: i32,
        userData: *mut ::core::ffi::c_void,
    ),
>;
/// When the output stream changes, the function pointer will be called to report the new stream description
/// information. It should be noted that the life cycle of the OH_AVFormat pointer
/// is only valid when the function pointer is called, and it is forbidden to continue to access after the call ends.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
/// # Arguments
///
/// * `codec` - OH_AVCodec instance
///
/// * `format` - New output stream description information
///
/// * `userData` - User specific data
///
/// Available since API-level: 9
pub type OH_AVCodecOnStreamChanged = ::core::option::Option<
    unsafe extern "C" fn(
        codec: *mut OH_AVCodec,
        format: *mut OH_AVFormat,
        userData: *mut ::core::ffi::c_void,
    ),
>;
/// When OH_AVCodec needs new input data during the running process,
/// the function pointer will be called and carry an available Buffer to fill in the new input data.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
/// # Arguments
///
/// * `codec` - OH_AVCodec instance
///
/// * `index` - The index corresponding to the newly available input buffer.
///
/// * `data` - New available input buffer.
///
/// * `userData` - User specific data
///
/// **Deprecated** since 11
/// OH_AVCodecOnNeedInputBuffer
///
/// Available since API-level: 9
#[deprecated(since = "11")]
pub type OH_AVCodecOnNeedInputData = ::core::option::Option<
    unsafe extern "C" fn(
        codec: *mut OH_AVCodec,
        index: u32,
        data: *mut OH_AVMemory,
        userData: *mut ::core::ffi::c_void,
    ),
>;
/// When new output data is generated during the operation of OH_AVCodec, the function pointer will be
/// called and carry a Buffer containing the new output data. It should be noted that the life cycle of the
/// OH_AVCodecBufferAttr pointer is only valid when the function pointer is called. , which prohibits continued
/// access after the call ends.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
/// # Arguments
///
/// * `codec` - OH_AVCodec instance
///
/// * `index` - The index corresponding to the new output Buffer.
///
/// * `data` - Buffer containing the new output data
///
/// * `attr` - The description of the new output Buffer, please refer to [`OH_AVCodecBufferAttr`]
///
/// * `userData` - specified data
///
/// **Deprecated** since 11
/// OH_AVCodecOnNewOutputBuffer
///
/// Available since API-level: 9
#[deprecated(since = "11")]
pub type OH_AVCodecOnNewOutputData = ::core::option::Option<
    unsafe extern "C" fn(
        codec: *mut OH_AVCodec,
        index: u32,
        data: *mut OH_AVMemory,
        attr: *mut OH_AVCodecBufferAttr,
        userData: *mut ::core::ffi::c_void,
    ),
>;
/// When OH_AVCodec needs new input data during the running process,
/// the function pointer will be called and carry an available Buffer to fill in the new input data.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
/// # Arguments
///
/// * `codec` - OH_AVCodec instance
///
/// * `index` - The index corresponding to the newly available input buffer.
///
/// * `buffer` - New available input buffer.
///
/// * `userData` - User specific data
///
/// Available since API-level: 11
#[cfg(feature = "api-11")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
pub type OH_AVCodecOnNeedInputBuffer = ::core::option::Option<
    unsafe extern "C" fn(
        codec: *mut OH_AVCodec,
        index: u32,
        buffer: *mut OH_AVBuffer,
        userData: *mut ::core::ffi::c_void,
    ),
>;
/// When new output data is generated during the operation of OH_AVCodec, the function pointer will be
/// called and carry a Buffer containing the new output data.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
/// # Arguments
///
/// * `codec` - OH_AVCodec instance
///
/// * `index` - The index corresponding to the new output Buffer.
///
/// * `buffer` - Buffer containing the new output buffer.
///
/// * `userData` - specified data
///
/// Available since API-level: 11
#[cfg(feature = "api-11")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
pub type OH_AVCodecOnNewOutputBuffer = ::core::option::Option<
    unsafe extern "C" fn(
        codec: *mut OH_AVCodec,
        index: u32,
        buffer: *mut OH_AVBuffer,
        userData: *mut ::core::ffi::c_void,
    ),
>;
/// A collection of all asynchronous callback function pointers in OH_AVCodec. Register an instance of this
/// structure to the OH_AVCodec instance, and process the information reported through the callback to ensure the
/// normal operation of OH_AVCodec.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
/// # Arguments
///
/// * `onError` - Monitor OH_AVCodec operation errors, refer to [`OH_AVCodecOnError`]
///
/// * `onStreamChanged` - Monitor codec stream information, refer to [`OH_AVCodecOnStreamChanged`]
///
/// * `onNeedInputData` - Monitoring codec requires input data, refer to [`OH_AVCodecOnNeedInputData`]
///
/// * `onNeedOutputData` - Monitor codec to generate output data, refer to [`OH_AVCodecOnNewOutputData`]
///
/// **Deprecated** since 11
/// OH_AVCodecCallback
///
/// Available since API-level: 9
#[deprecated(since = "11")]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OH_AVCodecAsyncCallback {
    pub onError: OH_AVCodecOnError,
    pub onStreamChanged: OH_AVCodecOnStreamChanged,
    pub onNeedInputData: OH_AVCodecOnNeedInputData,
    pub onNeedOutputData: OH_AVCodecOnNewOutputData,
}
/// A collection of all asynchronous callback function pointers in OH_AVCodec. Register an instance of this
/// structure to the OH_AVCodec instance, and process the information reported through the callback to ensure the
/// normal operation of OH_AVCodec.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
/// # Arguments
///
/// * `onError` - Monitor OH_AVCodec operation errors, refer to [`OH_AVCodecOnError`]
///
/// * `onStreamChanged` - Monitor codec stream information, refer to [`OH_AVCodecOnStreamChanged`]
///
/// * `onNeedInputBuffer` - Monitoring codec requires input buffer, refer to [`OH_AVCodecOnNeedInputBuffer`]
///
/// * `onNewOutputBuffer` - Monitor codec to generate output buffer, refer to [`OH_AVCodecOnNewOutputBuffer`]
///
/// Available since API-level: 11
#[cfg(feature = "api-11")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OH_AVCodecCallback {
    pub onError: OH_AVCodecOnError,
    pub onStreamChanged: OH_AVCodecOnStreamChanged,
    pub onNeedInputBuffer: OH_AVCodecOnNeedInputBuffer,
    pub onNewOutputBuffer: OH_AVCodecOnNewOutputBuffer,
}
/// the function pointer will be called to get sequence media data.
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
/// # Arguments
///
/// * `data` - OH_AVBuffer buffer to fill
///
/// * `length` - expected to read size;
///
/// * `pos` - current read offset
///
/// # Returns
///
/// * Actual size of data read to the buffer.
///
/// Available since API-level: 12
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
pub type OH_AVDataSourceReadAt = ::core::option::Option<
    unsafe extern "C" fn(data: *mut OH_AVBuffer, length: i32, pos: i64) -> i32,
>;
/// User customized data source.
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
///
/// Available since API-level: 12
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OH_AVDataSource {
    /// Total size of the data source.
    pub size: i64,
    /// Callback interface for reading data from datasource.
    pub readAt: OH_AVDataSourceReadAt,
}
/// the function pointer will be called to get sequence media data.
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
/// # Arguments
///
/// * `data` - OH_AVBuffer buffer to fill
///
/// * `length` - expected to read size;
///
/// * `pos` - current read offset
///
/// * `userData` - user-defined data
///
/// # Returns
///
/// * Actual size of data read to the buffer.
///
/// Available since API-level: 20
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub type OH_AVDataSourceReadAtExt = ::core::option::Option<
    unsafe extern "C" fn(
        data: *mut OH_AVBuffer,
        length: i32,
        pos: i64,
        userData: *mut ::core::ffi::c_void,
    ) -> i32,
>;
/// User customized data source.
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
///
/// Available since API-level: 20
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OH_AVDataSourceExt {
    /// Total size of the data source.
    pub size: i64,
    /// Callback interface for reading data from datasource.
    pub readAt: OH_AVDataSourceReadAtExt,
}
impl OH_MediaType {
    pub const MEDIA_TYPE_AUD: OH_MediaType = OH_MediaType(0);
    pub const MEDIA_TYPE_VID: OH_MediaType = OH_MediaType(1);
    /// track is subtitle.
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub const MEDIA_TYPE_SUBTITLE: OH_MediaType = OH_MediaType(2);
    /// track is timed meta.
    ///
    /// Available since API-level: 20
    #[cfg(feature = "api-20")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
    pub const MEDIA_TYPE_TIMED_METADATA: OH_MediaType = OH_MediaType(5);
    /// track is auxiliary.
    ///
    /// Available since API-level: 20
    #[cfg(feature = "api-20")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
    pub const MEDIA_TYPE_AUXILIARY: OH_MediaType = OH_MediaType(6);
}
#[repr(transparent)]
/// Media type.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
///
/// Available since API-level: 9
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_MediaType(pub ::core::ffi::c_uint);
impl OH_AACProfile {
    pub const AAC_PROFILE_LC: OH_AACProfile = OH_AACProfile(0);
    /// High-Efficiency AAC profile, contain the audio object types: AAC LC, SBR
    ///
    /// Available since API-level: 14
    #[cfg(feature = "api-14")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
    pub const AAC_PROFILE_HE: OH_AACProfile = OH_AACProfile(3);
    /// High-Efficiency AAC v2 profile, contain the audio object types: AAC LC, SBR, PS
    ///
    /// Available since API-level: 14
    #[cfg(feature = "api-14")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
    pub const AAC_PROFILE_HE_V2: OH_AACProfile = OH_AACProfile(4);
}
#[repr(transparent)]
/// AAC Profile
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
///
/// Available since API-level: 9
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_AACProfile(pub ::core::ffi::c_uint);
impl OH_AVCProfile {
    pub const AVC_PROFILE_BASELINE: OH_AVCProfile = OH_AVCProfile(0);
    pub const AVC_PROFILE_HIGH: OH_AVCProfile = OH_AVCProfile(4);
    pub const AVC_PROFILE_MAIN: OH_AVCProfile = OH_AVCProfile(8);
}
#[repr(transparent)]
/// AVC Profile
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
///
/// Available since API-level: 9
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_AVCProfile(pub ::core::ffi::c_uint);
impl OH_HEVCProfile {
    pub const HEVC_PROFILE_MAIN: OH_HEVCProfile = OH_HEVCProfile(0);
    pub const HEVC_PROFILE_MAIN_10: OH_HEVCProfile = OH_HEVCProfile(1);
    pub const HEVC_PROFILE_MAIN_STILL: OH_HEVCProfile = OH_HEVCProfile(2);
    ///
    /// **Deprecated** since 14
    #[deprecated(since = "14")]
    pub const HEVC_PROFILE_MAIN_10_HDR10: OH_HEVCProfile = OH_HEVCProfile(3);
    ///
    /// **Deprecated** since 14
    #[deprecated(since = "14")]
    pub const HEVC_PROFILE_MAIN_10_HDR10_PLUS: OH_HEVCProfile = OH_HEVCProfile(4);
}
#[repr(transparent)]
/// HEVC Profile
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
///
/// Available since API-level: 10
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_HEVCProfile(pub ::core::ffi::c_uint);
#[cfg(feature = "api-15")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
impl OH_VVCProfile {
    /// Main 10 profile
    pub const VVC_PROFILE_MAIN_10: OH_VVCProfile = OH_VVCProfile(1);
    /// Main 12 profile
    pub const VVC_PROFILE_MAIN_12: OH_VVCProfile = OH_VVCProfile(2);
    /// Main 12 Intra profile
    pub const VVC_PROFILE_MAIN_12_INTRA: OH_VVCProfile = OH_VVCProfile(10);
    /// Multilayer Main 10 profile
    pub const VVC_PROFILE_MULTI_MAIN_10: OH_VVCProfile = OH_VVCProfile(17);
    /// Main 10 4:4:4 profile
    pub const VVC_PROFILE_MAIN_10_444: OH_VVCProfile = OH_VVCProfile(33);
    /// Main 12 4:4:4 profile
    pub const VVC_PROFILE_MAIN_12_444: OH_VVCProfile = OH_VVCProfile(34);
    /// Main 16 4:4:4 profile
    pub const VVC_PROFILE_MAIN_16_444: OH_VVCProfile = OH_VVCProfile(36);
    /// Main 12 4:4:4 Intra profile
    pub const VVC_PROFILE_MAIN_12_444_INTRA: OH_VVCProfile = OH_VVCProfile(42);
    /// Main 16 4:4:4 Intra profile
    pub const VVC_PROFILE_MAIN_16_444_INTRA: OH_VVCProfile = OH_VVCProfile(44);
    /// Multilayer Main 10 4:4:4 profile
    pub const VVC_PROFILE_MULTI_MAIN_10_444: OH_VVCProfile = OH_VVCProfile(49);
    /// Main 10 Still Picture profile
    pub const VVC_PROFILE_MAIN_10_STILL: OH_VVCProfile = OH_VVCProfile(65);
    /// Main 12 Still Picture profile
    pub const VVC_PROFILE_MAIN_12_STILL: OH_VVCProfile = OH_VVCProfile(66);
    /// Main 10 4:4:4 Still Picture profile
    pub const VVC_PROFILE_MAIN_10_444_STILL: OH_VVCProfile = OH_VVCProfile(97);
    /// Main 12 4:4:4 Still Picture profile
    pub const VVC_PROFILE_MAIN_12_444_STILL: OH_VVCProfile = OH_VVCProfile(98);
    /// Main 16 4:4:4 Still Picture profile
    pub const VVC_PROFILE_MAIN_16_444_STILL: OH_VVCProfile = OH_VVCProfile(100);
}
#[repr(transparent)]
/// Profile: A specified subset of the syntax of VVC.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
///
/// Available since API-level: 15
#[cfg(feature = "api-15")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_VVCProfile(pub ::core::ffi::c_uint);
#[cfg(feature = "api-17")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
impl OH_MPEG2Profile {
    /// Simple profile
    pub const MPEG2_PROFILE_SIMPLE: OH_MPEG2Profile = OH_MPEG2Profile(0);
    /// Main profile
    pub const MPEG2_PROFILE_MAIN: OH_MPEG2Profile = OH_MPEG2Profile(1);
    /// SNR scalable profile
    pub const MPEG2_PROFILE_SNR_SCALABLE: OH_MPEG2Profile = OH_MPEG2Profile(2);
    /// Spatially scalable profile
    pub const MPEG2_PROFILE_SPATIALLY_SCALABLE: OH_MPEG2Profile = OH_MPEG2Profile(3);
    /// High profile
    pub const MPEG2_PROFILE_HIGH: OH_MPEG2Profile = OH_MPEG2Profile(4);
    /// 4:2:2 profile
    pub const MPEG2_PROFILE_422: OH_MPEG2Profile = OH_MPEG2Profile(5);
}
#[repr(transparent)]
/// MPEG2 Profile
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
///
/// Available since API-level: 17
#[cfg(feature = "api-17")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_MPEG2Profile(pub ::core::ffi::c_uint);
#[cfg(feature = "api-17")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
impl OH_MPEG4Profile {
    /// Simple profile
    pub const MPEG4_PROFILE_SIMPLE: OH_MPEG4Profile = OH_MPEG4Profile(0);
    /// Simple scalable profile
    pub const MPEG4_PROFILE_SIMPLE_SCALABLE: OH_MPEG4Profile = OH_MPEG4Profile(1);
    /// Core profile
    pub const MPEG4_PROFILE_CORE: OH_MPEG4Profile = OH_MPEG4Profile(2);
    /// Main profile
    pub const MPEG4_PROFILE_MAIN: OH_MPEG4Profile = OH_MPEG4Profile(3);
    /// N-Bit profile
    pub const MPEG4_PROFILE_N_BIT: OH_MPEG4Profile = OH_MPEG4Profile(4);
    /// Hybrid profile
    pub const MPEG4_PROFILE_HYBRID: OH_MPEG4Profile = OH_MPEG4Profile(5);
    /// Basic animated texture profile
    pub const MPEG4_PROFILE_BASIC_ANIMATED_TEXTURE: OH_MPEG4Profile = OH_MPEG4Profile(6);
    /// Scalable texture profile
    pub const MPEG4_PROFILE_SCALABLE_TEXTURE: OH_MPEG4Profile = OH_MPEG4Profile(7);
    /// Simple FA profile
    pub const MPEG4_PROFILE_SIMPLE_FA: OH_MPEG4Profile = OH_MPEG4Profile(8);
    /// Advanced real time simple profile
    pub const MPEG4_PROFILE_ADVANCED_REAL_TIME_SIMPLE: OH_MPEG4Profile = OH_MPEG4Profile(9);
    /// Core scalable profile
    pub const MPEG4_PROFILE_CORE_SCALABLE: OH_MPEG4Profile = OH_MPEG4Profile(10);
    /// Advanced coding efficiency profile
    pub const MPEG4_PROFILE_ADVANCED_CODING_EFFICIENCY: OH_MPEG4Profile = OH_MPEG4Profile(11);
    /// Advanced core profile
    pub const MPEG4_PROFILE_ADVANCED_CORE: OH_MPEG4Profile = OH_MPEG4Profile(12);
    /// Advanced scalable texture profile
    pub const MPEG4_PROFILE_ADVANCED_SCALABLE_TEXTURE: OH_MPEG4Profile = OH_MPEG4Profile(13);
    /// Advanced simple profile
    pub const MPEG4_PROFILE_ADVANCED_SIMPLE: OH_MPEG4Profile = OH_MPEG4Profile(17);
}
#[repr(transparent)]
/// MPEG4 Profile
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
///
/// Available since API-level: 17
#[cfg(feature = "api-17")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_MPEG4Profile(pub ::core::ffi::c_uint);
#[cfg(feature = "api-17")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
impl OH_H263Profile {
    /// Baseline profile
    pub const H263_PROFILE_BASELINE: OH_H263Profile = OH_H263Profile(0);
    /// Version 1 backward compatibility profile
    pub const H263_PROFILE_VERSION_1_BACKWARD_COMPATIBILITY: OH_H263Profile = OH_H263Profile(2);
}
#[repr(transparent)]
/// H263 Profile
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
///
/// Available since API-level: 17
#[cfg(feature = "api-17")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_H263Profile(pub ::core::ffi::c_uint);
impl OH_AVOutputFormat {
    pub const AV_OUTPUT_FORMAT_DEFAULT: OH_AVOutputFormat = OH_AVOutputFormat(0);
    pub const AV_OUTPUT_FORMAT_MPEG_4: OH_AVOutputFormat = OH_AVOutputFormat(2);
    pub const AV_OUTPUT_FORMAT_M4A: OH_AVOutputFormat = OH_AVOutputFormat(6);
    /// The muxer output amr file format.
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub const AV_OUTPUT_FORMAT_AMR: OH_AVOutputFormat = OH_AVOutputFormat(8);
    /// The muxer output mp3 file format.
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub const AV_OUTPUT_FORMAT_MP3: OH_AVOutputFormat = OH_AVOutputFormat(9);
    /// The muxer output wav file format.
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub const AV_OUTPUT_FORMAT_WAV: OH_AVOutputFormat = OH_AVOutputFormat(10);
    /// The muxer output aac file format.
    ///
    /// Available since API-level: 18
    #[cfg(feature = "api-18")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
    pub const AV_OUTPUT_FORMAT_AAC: OH_AVOutputFormat = OH_AVOutputFormat(11);
    /// The muxer output flac file format.
    ///
    /// Available since API-level: 20
    #[cfg(feature = "api-20")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
    pub const AV_OUTPUT_FORMAT_FLAC: OH_AVOutputFormat = OH_AVOutputFormat(12);
}
#[repr(transparent)]
/// Enumerates the muxer output file format
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
///
/// Available since API-level: 10
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_AVOutputFormat(pub ::core::ffi::c_uint);
impl OH_AVSeekMode {
    pub const SEEK_MODE_NEXT_SYNC: OH_AVSeekMode = OH_AVSeekMode(0);
    pub const SEEK_MODE_PREVIOUS_SYNC: OH_AVSeekMode = OH_AVSeekMode(1);
    pub const SEEK_MODE_CLOSEST_SYNC: OH_AVSeekMode = OH_AVSeekMode(2);
}
#[repr(transparent)]
/// Seek Mode
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
///
/// Available since API-level: 10
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_AVSeekMode(pub ::core::ffi::c_uint);
impl OH_ScalingMode {
    ///
    /// **Deprecated** since 14
    /// OH_SCALING_MODE_SCALE_TO_WINDOW_V2
    #[deprecated(since = "14")]
    pub const SCALING_MODE_SCALE_TO_WINDOW: OH_ScalingMode = OH_ScalingMode(1);
    ///
    /// **Deprecated** since 14
    /// OH_SCALING_MODE_SCALE_CROP_V2
    #[deprecated(since = "14")]
    pub const SCALING_MODE_SCALE_CROP: OH_ScalingMode = OH_ScalingMode(2);
}
#[repr(transparent)]
/// Scaling Mode
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
///
/// **Deprecated** since 14
/// OHScalingModeV2
///
/// Available since API-level: 10
#[deprecated(since = "14")]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_ScalingMode(pub ::core::ffi::c_uint);
impl OH_BitsPerSample {
    pub const SAMPLE_U8: OH_BitsPerSample = OH_BitsPerSample(0);
    pub const SAMPLE_S16LE: OH_BitsPerSample = OH_BitsPerSample(1);
    pub const SAMPLE_S24LE: OH_BitsPerSample = OH_BitsPerSample(2);
    pub const SAMPLE_S32LE: OH_BitsPerSample = OH_BitsPerSample(3);
    pub const SAMPLE_F32LE: OH_BitsPerSample = OH_BitsPerSample(4);
    pub const SAMPLE_U8P: OH_BitsPerSample = OH_BitsPerSample(5);
    pub const SAMPLE_S16P: OH_BitsPerSample = OH_BitsPerSample(6);
    pub const SAMPLE_S24P: OH_BitsPerSample = OH_BitsPerSample(7);
    pub const SAMPLE_S32P: OH_BitsPerSample = OH_BitsPerSample(8);
    pub const SAMPLE_F32P: OH_BitsPerSample = OH_BitsPerSample(9);
    pub const INVALID_WIDTH: OH_BitsPerSample = OH_BitsPerSample(-1);
}
#[repr(transparent)]
/// enum Audio Bits Per Coded Sample
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
///
/// Available since API-level: 10
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_BitsPerSample(pub ::core::ffi::c_int);
impl OH_ColorPrimary {
    pub const COLOR_PRIMARY_BT709: OH_ColorPrimary = OH_ColorPrimary(1);
    pub const COLOR_PRIMARY_UNSPECIFIED: OH_ColorPrimary = OH_ColorPrimary(2);
    pub const COLOR_PRIMARY_BT470_M: OH_ColorPrimary = OH_ColorPrimary(4);
    pub const COLOR_PRIMARY_BT601_625: OH_ColorPrimary = OH_ColorPrimary(5);
    pub const COLOR_PRIMARY_BT601_525: OH_ColorPrimary = OH_ColorPrimary(6);
    pub const COLOR_PRIMARY_SMPTE_ST240: OH_ColorPrimary = OH_ColorPrimary(7);
    pub const COLOR_PRIMARY_GENERIC_FILM: OH_ColorPrimary = OH_ColorPrimary(8);
    pub const COLOR_PRIMARY_BT2020: OH_ColorPrimary = OH_ColorPrimary(9);
    pub const COLOR_PRIMARY_SMPTE_ST428: OH_ColorPrimary = OH_ColorPrimary(10);
    pub const COLOR_PRIMARY_P3DCI: OH_ColorPrimary = OH_ColorPrimary(11);
    pub const COLOR_PRIMARY_P3D65: OH_ColorPrimary = OH_ColorPrimary(12);
}
#[repr(transparent)]
/// Color Primary
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
///
/// Available since API-level: 10
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_ColorPrimary(pub ::core::ffi::c_uint);
impl OH_TransferCharacteristic {
    pub const TRANSFER_CHARACTERISTIC_BT709: OH_TransferCharacteristic =
        OH_TransferCharacteristic(1);
    pub const TRANSFER_CHARACTERISTIC_UNSPECIFIED: OH_TransferCharacteristic =
        OH_TransferCharacteristic(2);
    pub const TRANSFER_CHARACTERISTIC_GAMMA_2_2: OH_TransferCharacteristic =
        OH_TransferCharacteristic(4);
    pub const TRANSFER_CHARACTERISTIC_GAMMA_2_8: OH_TransferCharacteristic =
        OH_TransferCharacteristic(5);
    pub const TRANSFER_CHARACTERISTIC_BT601: OH_TransferCharacteristic =
        OH_TransferCharacteristic(6);
    pub const TRANSFER_CHARACTERISTIC_SMPTE_ST240: OH_TransferCharacteristic =
        OH_TransferCharacteristic(7);
    pub const TRANSFER_CHARACTERISTIC_LINEAR: OH_TransferCharacteristic =
        OH_TransferCharacteristic(8);
    pub const TRANSFER_CHARACTERISTIC_LOG: OH_TransferCharacteristic = OH_TransferCharacteristic(9);
    pub const TRANSFER_CHARACTERISTIC_LOG_SQRT: OH_TransferCharacteristic =
        OH_TransferCharacteristic(10);
    pub const TRANSFER_CHARACTERISTIC_IEC_61966_2_4: OH_TransferCharacteristic =
        OH_TransferCharacteristic(11);
    pub const TRANSFER_CHARACTERISTIC_BT1361: OH_TransferCharacteristic =
        OH_TransferCharacteristic(12);
    pub const TRANSFER_CHARACTERISTIC_IEC_61966_2_1: OH_TransferCharacteristic =
        OH_TransferCharacteristic(13);
    pub const TRANSFER_CHARACTERISTIC_BT2020_10BIT: OH_TransferCharacteristic =
        OH_TransferCharacteristic(14);
    pub const TRANSFER_CHARACTERISTIC_BT2020_12BIT: OH_TransferCharacteristic =
        OH_TransferCharacteristic(15);
    pub const TRANSFER_CHARACTERISTIC_PQ: OH_TransferCharacteristic = OH_TransferCharacteristic(16);
    pub const TRANSFER_CHARACTERISTIC_SMPTE_ST428: OH_TransferCharacteristic =
        OH_TransferCharacteristic(17);
    pub const TRANSFER_CHARACTERISTIC_HLG: OH_TransferCharacteristic =
        OH_TransferCharacteristic(18);
}
#[repr(transparent)]
/// Transfer Characteristic
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
///
/// Available since API-level: 10
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_TransferCharacteristic(pub ::core::ffi::c_uint);
impl OH_MatrixCoefficient {
    pub const MATRIX_COEFFICIENT_IDENTITY: OH_MatrixCoefficient = OH_MatrixCoefficient(0);
    pub const MATRIX_COEFFICIENT_BT709: OH_MatrixCoefficient = OH_MatrixCoefficient(1);
    pub const MATRIX_COEFFICIENT_UNSPECIFIED: OH_MatrixCoefficient = OH_MatrixCoefficient(2);
    pub const MATRIX_COEFFICIENT_FCC: OH_MatrixCoefficient = OH_MatrixCoefficient(4);
    pub const MATRIX_COEFFICIENT_BT601_625: OH_MatrixCoefficient = OH_MatrixCoefficient(5);
    pub const MATRIX_COEFFICIENT_BT601_525: OH_MatrixCoefficient = OH_MatrixCoefficient(6);
    pub const MATRIX_COEFFICIENT_SMPTE_ST240: OH_MatrixCoefficient = OH_MatrixCoefficient(7);
    pub const MATRIX_COEFFICIENT_YCGCO: OH_MatrixCoefficient = OH_MatrixCoefficient(8);
    pub const MATRIX_COEFFICIENT_BT2020_NCL: OH_MatrixCoefficient = OH_MatrixCoefficient(9);
    pub const MATRIX_COEFFICIENT_BT2020_CL: OH_MatrixCoefficient = OH_MatrixCoefficient(10);
    pub const MATRIX_COEFFICIENT_SMPTE_ST2085: OH_MatrixCoefficient = OH_MatrixCoefficient(11);
    pub const MATRIX_COEFFICIENT_CHROMATICITY_NCL: OH_MatrixCoefficient = OH_MatrixCoefficient(12);
    pub const MATRIX_COEFFICIENT_CHROMATICITY_CL: OH_MatrixCoefficient = OH_MatrixCoefficient(13);
    pub const MATRIX_COEFFICIENT_ICTCP: OH_MatrixCoefficient = OH_MatrixCoefficient(14);
}
#[repr(transparent)]
/// Matrix Coefficient
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
///
/// Available since API-level: 10
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_MatrixCoefficient(pub ::core::ffi::c_uint);
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
impl OH_AVCLevel {
    pub const AVC_LEVEL_1: OH_AVCLevel = OH_AVCLevel(0);
    pub const AVC_LEVEL_1b: OH_AVCLevel = OH_AVCLevel(1);
    pub const AVC_LEVEL_11: OH_AVCLevel = OH_AVCLevel(2);
    pub const AVC_LEVEL_12: OH_AVCLevel = OH_AVCLevel(3);
    pub const AVC_LEVEL_13: OH_AVCLevel = OH_AVCLevel(4);
    pub const AVC_LEVEL_2: OH_AVCLevel = OH_AVCLevel(5);
    pub const AVC_LEVEL_21: OH_AVCLevel = OH_AVCLevel(6);
    pub const AVC_LEVEL_22: OH_AVCLevel = OH_AVCLevel(7);
    pub const AVC_LEVEL_3: OH_AVCLevel = OH_AVCLevel(8);
    pub const AVC_LEVEL_31: OH_AVCLevel = OH_AVCLevel(9);
    pub const AVC_LEVEL_32: OH_AVCLevel = OH_AVCLevel(10);
    pub const AVC_LEVEL_4: OH_AVCLevel = OH_AVCLevel(11);
    pub const AVC_LEVEL_41: OH_AVCLevel = OH_AVCLevel(12);
    pub const AVC_LEVEL_42: OH_AVCLevel = OH_AVCLevel(13);
    pub const AVC_LEVEL_5: OH_AVCLevel = OH_AVCLevel(14);
    pub const AVC_LEVEL_51: OH_AVCLevel = OH_AVCLevel(15);
    pub const AVC_LEVEL_52: OH_AVCLevel = OH_AVCLevel(16);
    pub const AVC_LEVEL_6: OH_AVCLevel = OH_AVCLevel(17);
    pub const AVC_LEVEL_61: OH_AVCLevel = OH_AVCLevel(18);
    pub const AVC_LEVEL_62: OH_AVCLevel = OH_AVCLevel(19);
}
#[repr(transparent)]
/// AVC Level.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
///
/// Available since API-level: 12
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_AVCLevel(pub ::core::ffi::c_uint);
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
impl OH_HEVCLevel {
    pub const HEVC_LEVEL_1: OH_HEVCLevel = OH_HEVCLevel(0);
    pub const HEVC_LEVEL_2: OH_HEVCLevel = OH_HEVCLevel(1);
    pub const HEVC_LEVEL_21: OH_HEVCLevel = OH_HEVCLevel(2);
    pub const HEVC_LEVEL_3: OH_HEVCLevel = OH_HEVCLevel(3);
    pub const HEVC_LEVEL_31: OH_HEVCLevel = OH_HEVCLevel(4);
    pub const HEVC_LEVEL_4: OH_HEVCLevel = OH_HEVCLevel(5);
    pub const HEVC_LEVEL_41: OH_HEVCLevel = OH_HEVCLevel(6);
    pub const HEVC_LEVEL_5: OH_HEVCLevel = OH_HEVCLevel(7);
    pub const HEVC_LEVEL_51: OH_HEVCLevel = OH_HEVCLevel(8);
    pub const HEVC_LEVEL_52: OH_HEVCLevel = OH_HEVCLevel(9);
    pub const HEVC_LEVEL_6: OH_HEVCLevel = OH_HEVCLevel(10);
    pub const HEVC_LEVEL_61: OH_HEVCLevel = OH_HEVCLevel(11);
    pub const HEVC_LEVEL_62: OH_HEVCLevel = OH_HEVCLevel(12);
}
#[repr(transparent)]
/// HEVC Level.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
///
/// Available since API-level: 12
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_HEVCLevel(pub ::core::ffi::c_uint);
#[cfg(feature = "api-15")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
impl OH_VVCLevel {
    /// VVC level 1.0
    pub const VVC_LEVEL_1: OH_VVCLevel = OH_VVCLevel(16);
    /// VVC level 2.0
    pub const VVC_LEVEL_2: OH_VVCLevel = OH_VVCLevel(32);
    /// VVC level 2.1
    pub const VVC_LEVEL_21: OH_VVCLevel = OH_VVCLevel(35);
    /// VVC level 3.0
    pub const VVC_LEVEL_3: OH_VVCLevel = OH_VVCLevel(48);
    /// VVC level 3.1
    pub const VVC_LEVEL_31: OH_VVCLevel = OH_VVCLevel(51);
    /// VVC level 4.0
    pub const VVC_LEVEL_4: OH_VVCLevel = OH_VVCLevel(64);
    /// VVC level 4.1
    pub const VVC_LEVEL_41: OH_VVCLevel = OH_VVCLevel(67);
    /// VVC level 5.0
    pub const VVC_LEVEL_5: OH_VVCLevel = OH_VVCLevel(80);
    /// VVC level 5.1
    pub const VVC_LEVEL_51: OH_VVCLevel = OH_VVCLevel(83);
    /// VVC level 5.2
    pub const VVC_LEVEL_52: OH_VVCLevel = OH_VVCLevel(86);
    /// VVC level 6.0
    pub const VVC_LEVEL_6: OH_VVCLevel = OH_VVCLevel(96);
    /// VVC level 6.1
    pub const VVC_LEVEL_61: OH_VVCLevel = OH_VVCLevel(99);
    /// VVC level 6.2
    pub const VVC_LEVEL_62: OH_VVCLevel = OH_VVCLevel(102);
    /// VVC level 6.3
    pub const VVC_LEVEL_63: OH_VVCLevel = OH_VVCLevel(105);
    /// VVC level 15.5
    pub const VVC_LEVEL_155: OH_VVCLevel = OH_VVCLevel(255);
}
#[repr(transparent)]
/// VVC Level: A defined set of constraints on the values that may be taken by the syntax elements and variables
/// of VVC, or the value of a transform coefficient prior to scaling.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
///
/// Available since API-level: 15
#[cfg(feature = "api-15")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_VVCLevel(pub ::core::ffi::c_uint);
#[cfg(feature = "api-17")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
impl OH_MPEG2Level {
    /// Low level
    pub const MPEG2_LEVEL_LOW: OH_MPEG2Level = OH_MPEG2Level(0);
    /// Main level
    pub const MPEG2_LEVEL_MAIN: OH_MPEG2Level = OH_MPEG2Level(1);
    /// High 1440 level
    pub const MPEG2_LEVEL_HIGH_1440: OH_MPEG2Level = OH_MPEG2Level(2);
    /// High level
    pub const MPEG2_LEVEL_HIGH: OH_MPEG2Level = OH_MPEG2Level(3);
}
#[repr(transparent)]
/// MPEG2 Level.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
///
/// Available since API-level: 17
#[cfg(feature = "api-17")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_MPEG2Level(pub ::core::ffi::c_uint);
#[cfg(feature = "api-17")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
impl OH_MPEG4Level {
    /// 0 level
    pub const MPEG4_LEVEL_0: OH_MPEG4Level = OH_MPEG4Level(0);
    /// 0B level
    pub const MPEG4_LEVEL_0B: OH_MPEG4Level = OH_MPEG4Level(1);
    /// 1 level
    pub const MPEG4_LEVEL_1: OH_MPEG4Level = OH_MPEG4Level(2);
    /// 2 level
    pub const MPEG4_LEVEL_2: OH_MPEG4Level = OH_MPEG4Level(3);
    /// 3 level
    pub const MPEG4_LEVEL_3: OH_MPEG4Level = OH_MPEG4Level(4);
    /// 3B level
    pub const MPEG4_LEVEL_3B: OH_MPEG4Level = OH_MPEG4Level(5);
    /// 4 level
    pub const MPEG4_LEVEL_4: OH_MPEG4Level = OH_MPEG4Level(6);
    /// 4A level
    pub const MPEG4_LEVEL_4A: OH_MPEG4Level = OH_MPEG4Level(7);
    /// 5 level
    pub const MPEG4_LEVEL_5: OH_MPEG4Level = OH_MPEG4Level(8);
    /// 6 level
    pub const MPEG4_LEVEL_6: OH_MPEG4Level = OH_MPEG4Level(9);
}
#[repr(transparent)]
/// MPEG4 Level.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
///
/// Available since API-level: 17
#[cfg(feature = "api-17")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_MPEG4Level(pub ::core::ffi::c_uint);
#[cfg(feature = "api-17")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
impl OH_H263Level {
    /// 10 level
    pub const H263_LEVEL_10: OH_H263Level = OH_H263Level(0);
    /// 20 level
    pub const H263_LEVEL_20: OH_H263Level = OH_H263Level(1);
    /// 30 level
    pub const H263_LEVEL_30: OH_H263Level = OH_H263Level(2);
    /// 40 level
    pub const H263_LEVEL_40: OH_H263Level = OH_H263Level(3);
    /// 45 level
    pub const H263_LEVEL_45: OH_H263Level = OH_H263Level(4);
    /// 50 level
    pub const H263_LEVEL_50: OH_H263Level = OH_H263Level(5);
    /// 60 level
    pub const H263_LEVEL_60: OH_H263Level = OH_H263Level(6);
    /// 70 level
    pub const H263_LEVEL_70: OH_H263Level = OH_H263Level(7);
}
#[repr(transparent)]
/// H263 Level.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
///
/// Available since API-level: 17
#[cfg(feature = "api-17")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_H263Level(pub ::core::ffi::c_uint);
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
impl OH_TemporalGopReferenceMode {
    /// Refer to latest short-term reference frame.
    pub const ADJACENT_REFERENCE: OH_TemporalGopReferenceMode = OH_TemporalGopReferenceMode(0);
    /// Refer to latest long-term reference frame.
    pub const JUMP_REFERENCE: OH_TemporalGopReferenceMode = OH_TemporalGopReferenceMode(1);
    /// Uniformly scaled reference structure, which has even distribution of video frames after drop the highest
    /// enhance layer. The temporal group of pictures must be power of 2.
    pub const UNIFORMLY_SCALED_REFERENCE: OH_TemporalGopReferenceMode =
        OH_TemporalGopReferenceMode(2);
}
#[repr(transparent)]
/// The reference mode in temporal group of picture.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
///
/// Available since API-level: 12
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_TemporalGopReferenceMode(pub ::core::ffi::c_uint);
impl OH_BitrateMode {
    /// Constant Bit rate mode.
    pub const BITRATE_MODE_CBR: OH_BitrateMode = OH_BitrateMode(0);
    /// Variable Bit rate mode.
    pub const BITRATE_MODE_VBR: OH_BitrateMode = OH_BitrateMode(1);
    /// Constant Quality mode.
    pub const BITRATE_MODE_CQ: OH_BitrateMode = OH_BitrateMode(2);
    /// Stable Quality RateControl.
    ///
    /// Available since API-level: 20
    #[cfg(feature = "api-20")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
    pub const BITRATE_MODE_SQR: OH_BitrateMode = OH_BitrateMode(3);
}
#[repr(transparent)]
/// The bitrate mode of encoder.
///
/// Change the location of the header file, since 14.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
///
/// Available since API-level: 10
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_BitrateMode(pub ::core::ffi::c_uint);
extern "C" {
    /// Enumerates the mime types of video avc codec.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 9
    pub static mut OH_AVCODEC_MIMETYPE_VIDEO_AVC: *const ::core::ffi::c_char;
    /// Enumerates the mime types of audio aac codec.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 9
    pub static mut OH_AVCODEC_MIMETYPE_AUDIO_AAC: *const ::core::ffi::c_char;
    /// Enumerates the mime types of audio flac codec.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_AVCODEC_MIMETYPE_AUDIO_FLAC: *const ::core::ffi::c_char;
    /// Enumerates the mime types of audio vorbis codec.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_AVCODEC_MIMETYPE_AUDIO_VORBIS: *const ::core::ffi::c_char;
    /// Enumerates the mime types of audio mp3 codec.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_AVCODEC_MIMETYPE_AUDIO_MPEG: *const ::core::ffi::c_char;
    /// Enumerates the mime types of video hevc codec.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_AVCODEC_MIMETYPE_VIDEO_HEVC: *const ::core::ffi::c_char;
    /// Enumerates the mime types of video mpeg4 muxer.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// **Deprecated** since 11
    ///
    /// Available since API-level: 10
    #[deprecated(since = "11")]
    pub static mut OH_AVCODEC_MIMETYPE_VIDEO_MPEG4: *const ::core::ffi::c_char;
    /// Enumerates the mime types of cover jpg muxer.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_AVCODEC_MIMETYPE_IMAGE_JPG: *const ::core::ffi::c_char;
    /// Enumerates the mime types of cover png muxer.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_AVCODEC_MIMETYPE_IMAGE_PNG: *const ::core::ffi::c_char;
    /// Enumerates the mime types of cover bmp muxer.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_AVCODEC_MIMETYPE_IMAGE_BMP: *const ::core::ffi::c_char;
    /// Enumerates the mime types of audio vivid codec.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 11
    #[cfg(feature = "api-11")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
    pub static mut OH_AVCODEC_MIMETYPE_AUDIO_VIVID: *const ::core::ffi::c_char;
    /// Enumerates the mime types of audio amrnb codec.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 11
    #[cfg(feature = "api-11")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
    pub static mut OH_AVCODEC_MIMETYPE_AUDIO_AMR_NB: *const ::core::ffi::c_char;
    /// Enumerates the mime types of audio amrwb codec.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 11
    #[cfg(feature = "api-11")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
    pub static mut OH_AVCODEC_MIMETYPE_AUDIO_AMR_WB: *const ::core::ffi::c_char;
    /// Enumerates the mime types of audio opus codec.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 11
    #[cfg(feature = "api-11")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
    pub static mut OH_AVCODEC_MIMETYPE_AUDIO_OPUS: *const ::core::ffi::c_char;
    /// Enumerates the mime types of audio g711mu codec.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 11
    #[cfg(feature = "api-11")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
    pub static mut OH_AVCODEC_MIMETYPE_AUDIO_G711MU: *const ::core::ffi::c_char;
    /// Enumerates the mime type of audio ape codec.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_AVCODEC_MIMETYPE_AUDIO_APE: *const ::core::ffi::c_char;
    /// Enumerates the MIME type of versatile video coding.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_AVCODEC_MIMETYPE_VIDEO_VVC: *const ::core::ffi::c_char;
    /// Enumerates the mime type of subtitle srt.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_AVCODEC_MIMETYPE_SUBTITLE_SRT: *const ::core::ffi::c_char;
    /// Enumerates the mime type of subtitle webvtt.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_AVCODEC_MIMETYPE_SUBTITLE_WEBVTT: *const ::core::ffi::c_char;
    /// Enumerates the mime type of audio raw stream.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 18
    #[cfg(feature = "api-18")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
    pub static mut OH_AVCODEC_MIMETYPE_AUDIO_RAW: *const ::core::ffi::c_char;
    /// Enumerates the mime types of audio G711 A-law codec.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 20
    #[cfg(feature = "api-20")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
    pub static mut OH_AVCODEC_MIMETYPE_AUDIO_G711A: *const ::core::ffi::c_char;
    /// Enumerates the MIME type of video mpeg2 codec.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 17
    #[cfg(feature = "api-17")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
    pub static mut OH_AVCODEC_MIMETYPE_VIDEO_MPEG2: *const ::core::ffi::c_char;
    /// Enumerates the MIME type of video mpeg4 part2 codec.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 17
    #[cfg(feature = "api-17")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
    pub static mut OH_AVCODEC_MIMETYPE_VIDEO_MPEG4_PART2: *const ::core::ffi::c_char;
    /// Enumerates the MIME type of video h263 codec.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 17
    #[cfg(feature = "api-17")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
    pub static mut OH_AVCODEC_MIMETYPE_VIDEO_H263: *const ::core::ffi::c_char;
    /// Key for timeStamp in surface's extraData, value type is int64_t.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// **Deprecated** since 14
    ///
    /// Available since API-level: 9
    #[deprecated(since = "14")]
    pub static mut OH_ED_KEY_TIME_STAMP: *const ::core::ffi::c_char;
    /// Key for endOfStream in surface's extraData, value type is bool.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// **Deprecated** since 14
    ///
    /// Available since API-level: 9
    #[deprecated(since = "14")]
    pub static mut OH_ED_KEY_EOS: *const ::core::ffi::c_char;
    /// Key for track type, value type is int32_t, see [`OH_MediaType`].
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 9
    pub static mut OH_MD_KEY_TRACK_TYPE: *const ::core::ffi::c_char;
    /// Key for codec mime type, value type is string.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 9
    pub static mut OH_MD_KEY_CODEC_MIME: *const ::core::ffi::c_char;
    /// Key for file duration in microseconds, value type is int64_t.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 9
    pub static mut OH_MD_KEY_DURATION: *const ::core::ffi::c_char;
    /// Key for bitrate, value type is int64_t.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 9
    pub static mut OH_MD_KEY_BITRATE: *const ::core::ffi::c_char;
    /// Key for max input size, value type is int32_t.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 9
    pub static mut OH_MD_KEY_MAX_INPUT_SIZE: *const ::core::ffi::c_char;
    /// Key for video width, value type is int32_t.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 9
    pub static mut OH_MD_KEY_WIDTH: *const ::core::ffi::c_char;
    /// Key for video height, value type is int32_t.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 9
    pub static mut OH_MD_KEY_HEIGHT: *const ::core::ffi::c_char;
    /// Key for video pixel format, value type is int32_t, see [`OH_AVPixelFormat`].
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 9
    pub static mut OH_MD_KEY_PIXEL_FORMAT: *const ::core::ffi::c_char;
    /// key for audio raw format, value type is int32_t , see [`OH_BitsPerSample`].
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 9
    pub static mut OH_MD_KEY_AUDIO_SAMPLE_FORMAT: *const ::core::ffi::c_char;
    /// Key for video frame rate, value type is double.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 9
    pub static mut OH_MD_KEY_FRAME_RATE: *const ::core::ffi::c_char;
    /// video encode bitrate mode, the value type is int32_t, see [`OH_VideoEncodeBitrateMode`].
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 9
    pub static mut OH_MD_KEY_VIDEO_ENCODE_BITRATE_MODE: *const ::core::ffi::c_char;
    /// encode profile, the value type is int32_t. see [`OH_AVCProfile`], [`OH_HEVCProfile`],
    /// [`OH_AACProfile`].
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 9
    pub static mut OH_MD_KEY_PROFILE: *const ::core::ffi::c_char;
    /// Key for audio channel count, value type is int32_t.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 9
    pub static mut OH_MD_KEY_AUD_CHANNEL_COUNT: *const ::core::ffi::c_char;
    /// Key for audio sample rate, value type is int32_t.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 9
    pub static mut OH_MD_KEY_AUD_SAMPLE_RATE: *const ::core::ffi::c_char;
    /// Key for the interval of key frame. value type is int32_t, the unit is milliseconds. A negative value means no
    /// key frames are requested after the first frame. A zero value means a stream containing all key frames is requested.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 9
    pub static mut OH_MD_KEY_I_FRAME_INTERVAL: *const ::core::ffi::c_char;
    /// Key of the surface rotation angle. value type is int32_t: should be {0, 90, 180, 270}, default is 0.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 9
    pub static mut OH_MD_KEY_ROTATION: *const ::core::ffi::c_char;
    /// Key for video YUV value range flag, value type is bool, true for full range, false for limited range.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_MD_KEY_RANGE_FLAG: *const ::core::ffi::c_char;
    /// Key for video color primaries, value type is int32_t, see [`OH_ColorPrimary`].
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_MD_KEY_COLOR_PRIMARIES: *const ::core::ffi::c_char;
    /// Key for video transfer characteristics, value type is int32_t, see [`OH_TransferCharacteristic`].
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_MD_KEY_TRANSFER_CHARACTERISTICS: *const ::core::ffi::c_char;
    /// Key for video matrix coefficients, value type is int32_t, see [`OH_MatrixCoefficient`].
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_MD_KEY_MATRIX_COEFFICIENTS: *const ::core::ffi::c_char;
    /// Key for the request an I-Frame immediately, value type is bool.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_MD_KEY_REQUEST_I_FRAME: *const ::core::ffi::c_char;
    /// Key for the desired encoding quality, value type is int32_t, this key is only.
    /// supported for encoders that are configured in constant quality mode.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_MD_KEY_QUALITY: *const ::core::ffi::c_char;
    /// Key of the codec specific data. value type is a uint8_t pointer.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_MD_KEY_CODEC_CONFIG: *const ::core::ffi::c_char;
    /// source format Key for title, value type is string.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_MD_KEY_TITLE: *const ::core::ffi::c_char;
    /// source format Key for artist, value type is string.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_MD_KEY_ARTIST: *const ::core::ffi::c_char;
    /// source format Key for album, value type is string.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_MD_KEY_ALBUM: *const ::core::ffi::c_char;
    /// source format Key for album artist, value type is string.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_MD_KEY_ALBUM_ARTIST: *const ::core::ffi::c_char;
    /// source format Key for date, value type is string.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_MD_KEY_DATE: *const ::core::ffi::c_char;
    /// source format Key for comment, value type is string.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_MD_KEY_COMMENT: *const ::core::ffi::c_char;
    /// source format Key for genre, value type is string.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_MD_KEY_GENRE: *const ::core::ffi::c_char;
    /// source format Key for copyright, value type is string.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_MD_KEY_COPYRIGHT: *const ::core::ffi::c_char;
    /// source format Key for language, value type is string.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_MD_KEY_LANGUAGE: *const ::core::ffi::c_char;
    /// source format Key for description, value type is string.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_MD_KEY_DESCRIPTION: *const ::core::ffi::c_char;
    /// source format Key for lyrics, value type is string.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_MD_KEY_LYRICS: *const ::core::ffi::c_char;
    /// source format Key for track count, value type is int32_t.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_MD_KEY_TRACK_COUNT: *const ::core::ffi::c_char;
    /// Key for the desired encoding channel layout, value type is int64_t, this key is only supported for encoders.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_MD_KEY_CHANNEL_LAYOUT: *const ::core::ffi::c_char;
    /// Key for bits per coded sample, value type is int32_t, supported for flac encoder,
    /// see [`OH_BitsPerSample`].
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_MD_KEY_BITS_PER_CODED_SAMPLE: *const ::core::ffi::c_char;
    /// Key for the aac format, value type is int32_t, supported for aac decoder.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_MD_KEY_AAC_IS_ADTS: *const ::core::ffi::c_char;
    /// Key for aac sbr mode, value type is int32_t, supported for aac encoder.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_MD_KEY_SBR: *const ::core::ffi::c_char;
    /// Key for flac compliance level, value type is int32_t.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_MD_KEY_COMPLIANCE_LEVEL: *const ::core::ffi::c_char;
    /// Key for vorbis identification header, value type is a uint8_t pointer, supported only for vorbis decoder.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_MD_KEY_IDENTIFICATION_HEADER: *const ::core::ffi::c_char;
    /// Key for vorbis setup header, value type is a uint8_t pointer, supported only for vorbis decoder.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_MD_KEY_SETUP_HEADER: *const ::core::ffi::c_char;
    /// Key for video scale type, value type is int32_t, see [`OH_ScalingMode`].
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// **Deprecated** since 14
    /// OH_NativeWindow_NativeWindowSetScalingModeV2
    ///
    /// Available since API-level: 10
    #[deprecated(since = "14")]
    pub static mut OH_MD_KEY_SCALING_MODE: *const ::core::ffi::c_char;
    /// Key for max input buffer count, value type is int32_t.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_MD_MAX_INPUT_BUFFER_COUNT: *const ::core::ffi::c_char;
    /// Key for max output buffer count, value type is int32_t.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 10
    pub static mut OH_MD_MAX_OUTPUT_BUFFER_COUNT: *const ::core::ffi::c_char;
    /// Key for audio codec compression level, value type is int32_t.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 11
    #[cfg(feature = "api-11")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
    pub static mut OH_MD_KEY_AUDIO_COMPRESSION_LEVEL: *const ::core::ffi::c_char;
    /// Key of the video is hdr vivid. value type is bool.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 11
    #[cfg(feature = "api-11")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
    pub static mut OH_MD_KEY_VIDEO_IS_HDR_VIVID: *const ::core::ffi::c_char;
    /// Key for number of audio objects. value type is int32_t.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 11
    #[cfg(feature = "api-11")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
    pub static mut OH_MD_KEY_AUDIO_OBJECT_NUMBER: *const ::core::ffi::c_char;
    /// Key for meta data of audio vivid. value type is a uint8_t pointer.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 11
    #[cfg(feature = "api-11")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
    pub static mut OH_MD_KEY_AUDIO_VIVID_METADATA: *const ::core::ffi::c_char;
    /// Key for querying the maximum long-term reference count of video encoder, value type is int32_t.
    /// You should query the count through interface [`OH_AVCapability_GetFeatureProperties`]
    /// with enum [`VIDEO_ENCODER_LONG_TERM_REFERENCE`].
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_FEATURE_PROPERTY_KEY_VIDEO_ENCODER_MAX_LTR_FRAME_COUNT:
        *const ::core::ffi::c_char;
    /// Key for enable the temporal scalability mode, value type is int32_t (0 or 1): 1 is enabled, 0 otherwise.
    /// The default value is 0. To query supported, you should use the interface [`OH_AVCapability_IsFeatureSupported`]
    /// with enum [`VIDEO_ENCODER_TEMPORAL_SCALABILITY`]. This is an optional key that applies only to video encoder.
    /// It is used in configure.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_MD_KEY_VIDEO_ENCODER_ENABLE_TEMPORAL_SCALABILITY: *const ::core::ffi::c_char;
    /// Key for describing the temporal group of picture size, value type is int32_t. It takes effect only when
    /// temporal level scale is enable. This is an optional key that applies only to video encoder. It is used in configure.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_MD_KEY_VIDEO_ENCODER_TEMPORAL_GOP_SIZE: *const ::core::ffi::c_char;
    /// Key for describing the reference mode in temporal group of picture, value type is int32_t, see enum
    /// [`OH_TemporalGopReferenceMode`]. It takes effect only when temporal level sacle is enabled.
    /// This is an optional key that applies only to video encoder. It is used in configure.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_MD_KEY_VIDEO_ENCODER_TEMPORAL_GOP_REFERENCE_MODE: *const ::core::ffi::c_char;
    /// Key for describing the count of used long-term reference frames, value type is int32_t, must be within the
    /// supported range. To get supported range, you should query wthether the capability is supported through the interface
    /// [`OH_AVCapability_GetFeatureProperties`] with enum [`VIDEO_ENCODER_LONG_TERM_REFERENCE`], otherwise, not set
    /// the key. This is an optional key that applies only to video encoder. It is used in configure.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_MD_KEY_VIDEO_ENCODER_LTR_FRAME_COUNT: *const ::core::ffi::c_char;
    /// Key for describing mark this frame as a long term reference frame, value type is int32_t (0 or 1): 1 is mark,
    /// 0 otherwise. It takes effect only when the number of used long term reference frames is configured. This is an
    /// optional key that applies only to video encoder input loop. It takes effect immediately.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_MD_KEY_VIDEO_ENCODER_PER_FRAME_MARK_LTR: *const ::core::ffi::c_char;
    /// Key for describing the long term reference frame poc referenced by this frame, value type is int32_t. This is
    /// an optional key that applies only to video encoder input loop. It takes effect immediately.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_MD_KEY_VIDEO_ENCODER_PER_FRAME_USE_LTR: *const ::core::ffi::c_char;
    /// Key for indicating this frame is a long-term reference frame, value type is int32_t (0 or 1): 1 is LTR,
    /// 0 otherwise. This is an optional key that applies only to video encoder output loop.
    /// It indicates the attribute of the frame.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_MD_KEY_VIDEO_PER_FRAME_IS_LTR: *const ::core::ffi::c_char;
    /// Key for describing the frame poc, value type is int32_t. This is an optional key that applies only to video
    /// encoder output loop. It indicates the attribute of the frame.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_MD_KEY_VIDEO_PER_FRAME_POC: *const ::core::ffi::c_char;
    /// Key for describing the top-coordinate (y) of the crop rectangle, value type is int32_t. This is the top-most
    /// row included in the crop frame, where row indices start at 0.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_MD_KEY_VIDEO_CROP_TOP: *const ::core::ffi::c_char;
    /// Key for describing the bottom-coordinate (y) of the crop rectangle, value type is int32_t. This is the
    /// bottom-most row included in the crop frame, where row indices start at 0.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_MD_KEY_VIDEO_CROP_BOTTOM: *const ::core::ffi::c_char;
    /// Key for describing the left-coordinate (x) of the crop rectangle, value type is int32_t.
    /// This is the left-most column included in the crop frame, where column indices start at 0.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_MD_KEY_VIDEO_CROP_LEFT: *const ::core::ffi::c_char;
    /// Key for describing the right-coordinate (x) of the crop rectangle, value type is int32_t. This is the
    /// right-most column included in the crop frame, where column indices start at 0.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_MD_KEY_VIDEO_CROP_RIGHT: *const ::core::ffi::c_char;
    /// Key for describing the stride of the video buffer layout, value type is int32_t. Stride (or row increment) is
    /// the difference between the index of a pixel and that of the pixel directly underneath. For YUV 420 formats, the
    /// stride corresponds to the Y plane; the stride of the U and V planes can be calculated based on the color format,
    /// though it is generally undefined and depends on the device and release.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_MD_KEY_VIDEO_STRIDE: *const ::core::ffi::c_char;
    /// Key for describing the plane height of a multi-planar (YUV) video buffer layout, value type is int32_t.
    /// Slice height (or plane height/vertical stride) is the number of rows that must be skipped to get from
    /// the top of the Y plane to the top of the U plane in the buffer. In essence the offset of the U plane
    /// is sliceHeight * stride. The height of the U/V planes can be calculated based on the color format,
    /// though it is generally undefined and depends on the device and release.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_MD_KEY_VIDEO_SLICE_HEIGHT: *const ::core::ffi::c_char;
    /// Key for describing the valid picture width of the video, value type is int32_t.
    /// Get the value from an OH_AVFormat instance, which obtained by calling [`OH_VideoDecoder_GetOutputDescription`]
    /// or [`OH_AVCodecOnStreamChanged`].
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_MD_KEY_VIDEO_PIC_WIDTH: *const ::core::ffi::c_char;
    /// Key for describing the valid picture height of the video, value type is int32_t.
    /// Get the value from an OH_AVFormat instance, which obtained by calling [`OH_VideoDecoder_GetOutputDescription`]
    /// or [`OH_AVCodecOnStreamChanged`].
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_MD_KEY_VIDEO_PIC_HEIGHT: *const ::core::ffi::c_char;
    /// Key to enable the low latency mode, value type is int32_t (0 or 1):1 is enabled, 0 otherwise.
    /// If enabled, the video decoder doesn't hold input and output data more than required by
    /// the codec standards. This is an optional key that applies only to video decoder.
    /// It is used in configure.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_MD_KEY_VIDEO_ENABLE_LOW_LATENCY: *const ::core::ffi::c_char;
    /// Key for describing the maximum quantization parameter allowed for video encoder, value type is int32_t.
    /// It is used in configure/setparameter or takes effect immediately with the frame.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_MD_KEY_VIDEO_ENCODER_QP_MAX: *const ::core::ffi::c_char;
    /// Key for describing the minimum quantization parameter allowed for video encoder, value type is int32_t.
    /// It is used in configure/setparameter or takes effect immediately with the frame.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_MD_KEY_VIDEO_ENCODER_QP_MIN: *const ::core::ffi::c_char;
    /// Key for describing the video frame averge quantization parameter, value type is int32_t.
    /// This is a part of a video encoder statistics export feature. This value is emitted from video encoder for a video
    /// frame.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_MD_KEY_VIDEO_ENCODER_QP_AVERAGE: *const ::core::ffi::c_char;
    /// Key for describing video frame mean squared error, value type is double.
    /// This is a part of a video encoder statistics export feature. This value is emitted from video encoder for a video
    /// frame.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_MD_KEY_VIDEO_ENCODER_MSE: *const ::core::ffi::c_char;
    /// Key for decoding timestamp of the buffer in microseconds, value type is int64_t.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_MD_KEY_DECODING_TIMESTAMP: *const ::core::ffi::c_char;
    /// Key for duration of the buffer in microseconds, value type is int64_t.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_MD_KEY_BUFFER_DURATION: *const ::core::ffi::c_char;
    /// Key for sample aspect ratio, value type is double.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_MD_KEY_VIDEO_SAR: *const ::core::ffi::c_char;
    /// Key for start time of the first frame in the media file in microseconds, value type is int64_t.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_MD_KEY_START_TIME: *const ::core::ffi::c_char;
    /// Key for start time of track in microseconds, value type is int64_t.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_MD_KEY_TRACK_START_TIME: *const ::core::ffi::c_char;
    /// Key for setting the output color space of video decoder. The value type is int32_t.
    /// The supported value is [`OH_COLORSPACE_BT709_LIMIT`], see [`OH_NativeBuffer_ColorSpace`]. It is used in
    /// [`OH_VideoDecoder_Configure`]. If the color space conversion capability is supported and this key is configured,
    /// the video decoder will automatically transcode an HDR Vivid video to an SDR video with color space BT709.
    /// If color space conversion capability is not supported, [`OH_VideoDecoder_Configure`] returns
    /// [`AV_ERR_VIDEO_UNSUPPORTED_COLOR_SPACE_CONVERSION`].
    /// If the input video is not an HDR vivid video, an error [`AV_ERR_VIDEO_UNSUPPORTED_COLOR_SPACE_CONVERSION`] will
    /// be reported by callback function [`OH_AVCodecOnError`].
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_MD_KEY_VIDEO_DECODER_OUTPUT_COLOR_SPACE: *const ::core::ffi::c_char;
    /// Key for describing if enable VRR or not, value type is int32_t (0 or 1): 1 is enabled, 0 otherwise.
    /// This is an optional key that applies only to video decoder. It is used in configure.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 15
    #[cfg(feature = "api-15")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
    pub static mut OH_MD_KEY_VIDEO_DECODER_OUTPUT_ENABLE_VRR: *const ::core::ffi::c_char;
    /// Key for creation timestamp of a media file, value type is string.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 14
    #[cfg(feature = "api-14")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
    pub static mut OH_MD_KEY_CREATION_TIME: *const ::core::ffi::c_char;
    /// Key applies only when configuring a video encoder in surface mode, value type is int32_t.
    /// If no new frame became available since the last frame submitted to the encoder,
    /// it will sumbit the previous frame repeatly in milliseconds. It is used in configure.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 18
    #[cfg(feature = "api-18")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
    pub static mut OH_MD_KEY_VIDEO_ENCODER_REPEAT_PREVIOUS_FRAME_AFTER: *const ::core::ffi::c_char;
    /// Key for describing the maximum count that the frame previously submitted to the encoder will be
    /// repeated, in case no new frame has been available since, value type is int32_t. This key takes effect only when
    /// [`VIDEO_ENCODER_REPEAT_PREVIOUS_FRAME_AFTER`] is vaild. It is used in configure.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 18
    #[cfg(feature = "api-18")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
    pub static mut OH_MD_KEY_VIDEO_ENCODER_REPEAT_PREVIOUS_MAX_COUNT: *const ::core::ffi::c_char;
    /// Key to enable B-frame encoding, value type is int32_t (0 or 1): 1 is enabled, 0 otherwise.
    ///
    /// This is an optional key that applies only to video encoder, default is 0.
    ///
    /// If enabled, the video encoder will use B-frame, the decode order will be different from the display order.
    ///
    /// For unsupported platforms, Configuring this key will have no effect.
    ///
    /// Platform capability can be checked via [`OH_AVCapability_IsFeatureSupported`] with
    /// [`OH_AVCapabilityFeature::VIDEO_ENCODER_B_FRAME`].
    ///
    /// It's only used in configuration phase.
    ///
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 20
    #[cfg(feature = "api-20")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
    pub static mut OH_MD_KEY_VIDEO_ENCODER_ENABLE_B_FRAME: *const ::core::ffi::c_char;
    /// Key for describing the maximum B-frame count of video encoder, value type is int32_t.
    ///
    /// Note: This key is only for querying the capability of the codec currently.
    /// Usage specifications:
    /// 1. Check feature support via [`OH_AVCapability_IsFeatureSupported`] with
    /// [`OH_AVCapabilityFeature::VIDEO_ENCODER_B_FRAME`].
    ///
    /// 2. Obtain OH_AVFormat handle via [`OH_AVCapability_GetFeatureProperties`] with
    /// [`OH_AVCapabilityFeature::VIDEO_ENCODER_B_FRAME`].
    ///
    /// 3. Get maximum B-frame count via [`OH_AVFormat_GetIntValue`] with this key.
    ///
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 20
    #[cfg(feature = "api-20")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
    pub static mut OH_MD_KEY_VIDEO_ENCODER_MAX_B_FRAMES: *const ::core::ffi::c_char;
    /// Key to set the region of interest(ROI) as QpOffset-Rects, value type is string in the format
    /// "Top1,Left1-Bottom1,Right1=Offset1;Top2,Left2-Bottom2,Right2=Offset2;". Each "Top,Left-Bottom,Right=Offset"
    /// represents the coordinate information and quantization parameter of one ROI. Each "=Offset" in the string
    /// can be omitted, like "Top1,Left1-Bottom1,Right1;Top2,Left2-Bottom2,Right2=Offset2;", the encoder
    /// will use the default quantization parameter to perform the ROI encoding on the first ROI and
    /// use Offset2 on the second ROI.
    ///
    /// This is an optional key that applies only to video encoder.
    /// It is used in running process and is set with each frame.
    /// In surface mode, it is used in [`OH_VideoEncoder_OnNeedInputParameter`].
    /// In buffer mode, it is configured via [`OH_AVBuffer_SetParameter`].
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 20
    #[cfg(feature = "api-20")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
    pub static mut OH_MD_KEY_VIDEO_ENCODER_ROI_PARAMS: *const ::core::ffi::c_char;
    /// Key for front moov of the mp4 and m4a media file, value type is int32_t (0 or 1):1 is enabled, 0 otherwise.
    /// This key may affect the performance of the stop function of the mp4 and m4a muxer.
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 20
    #[cfg(feature = "api-20")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
    pub static mut OH_MD_KEY_ENABLE_MOOV_FRONT: *const ::core::ffi::c_char;
    /// Key for the desired encoding quality, value type is int32_t, this key is only
    /// supported for encoders that are configured in Stable Quality RateControl, the higher
    /// values generally result in more efficient(smaller-sized) encoding.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 20
    #[cfg(feature = "api-20")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
    pub static mut OH_MD_KEY_SQR_FACTOR: *const ::core::ffi::c_char;
    /// Key for maximum bitrate, value type is int64_t.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 20
    #[cfg(feature = "api-20")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
    pub static mut OH_MD_KEY_MAX_BITRATE: *const ::core::ffi::c_char;
    /// Key for describing the reference relationship between tracks, value type is int32_t*.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 20
    #[cfg(feature = "api-20")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
    pub static mut OH_MD_KEY_REFERENCE_TRACK_IDS: *const ::core::ffi::c_char;
    /// Key for describing the track reference type, value type is string.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 20
    #[cfg(feature = "api-20")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
    pub static mut OH_MD_KEY_TRACK_REFERENCE_TYPE: *const ::core::ffi::c_char;
    /// Key for describing the track description, value type is string.
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 20
    #[cfg(feature = "api-20")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
    pub static mut OH_MD_KEY_TRACK_DESCRIPTION: *const ::core::ffi::c_char;
    /// Key to enable Bitrate Control Based on Presentation Time Stamp(PTS),
    /// value type is int32_t (0 or 1):1 is enabled, 0 otherwise.
    ///
    /// This is an optional key that applies only to video encoder, default is 0.
    /// If enabled, the PTS information must be carried in each video frame and sent to the encoder.
    /// It is used in configure.
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 20
    #[cfg(feature = "api-20")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
    pub static mut OH_MD_KEY_VIDEO_ENCODER_ENABLE_PTS_BASED_RATECONTROL: *const ::core::ffi::c_char;
    /// Key to enable synchronous mode, value type is (0 or 1): 1 is enabled, 0 otherwise.
    ///
    /// This is an optional key, default is 0.
    ///
    /// When enabled:
    /// - Callbacks should NOT be set for codecs
    /// - Buffer query APIs must be used instead
    /// - Only used in configuration phase
    ///
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.CodecBase
    ///
    /// Available since API-level: 20
    #[cfg(feature = "api-20")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
    pub static mut OH_MD_KEY_ENABLE_SYNC_MODE: *const ::core::ffi::c_char;
    /// Key for specifying whether to output a blank frame during video decoder shutdown,
    /// value type is int32_t (0 or 1): 1 is enabled, 0 otherwise.
    ///
    /// This is an optional key, only used when configuring a video decoder in surface mode.
    ///
    /// By default, this feature is disabled (0).
    ///
    /// When enabled, the video decoder will output a blank frame (typically black)
    /// when stop or release to ensure a smooth transition to no-signal state on display devices.
    ///
    /// This prevents display retention or flickering caused by abrupt termination.
    ///
    ///
    ///
    /// Available since API-level: 20
    #[cfg(feature = "api-20")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
    pub static mut OH_MD_KEY_VIDEO_DECODER_BLANK_FRAME_ON_SHUTDOWN: *const ::core::ffi::c_char;
}