objc2-video-toolbox 0.3.2

Bindings to the VideoToolbox framework
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
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ffi::*;
use core::ptr::NonNull;
use objc2_core_foundation::*;

use crate::*;

extern "C" {
    /// The number of pending frames in the compression session.
    ///
    /// This number may decrease asynchronously.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_numberofpendingframes?language=objc)
    pub static kVTCompressionPropertyKey_NumberOfPendingFrames: &'static CFString;
}

extern "C" {
    /// Indicates whether the a common pixel buffer pool is shared between
    /// the video encoder and the session client.
    ///
    /// This is false if separate pools are used because the video encoder's
    /// and the client's pixel buffer attributes were incompatible.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_pixelbufferpoolisshared?language=objc)
    pub static kVTCompressionPropertyKey_PixelBufferPoolIsShared: &'static CFString;
}

extern "C" {
    /// The video encoder's pixel buffer attributes for the compression session.
    ///
    /// You can use these to create a pixel buffer pool for source pixel buffers.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_videoencoderpixelbufferattributes?language=objc)
    pub static kVTCompressionPropertyKey_VideoEncoderPixelBufferAttributes: &'static CFString;
}

extern "C" {
    /// The maximum interval between key frames, also known as the key frame rate.
    ///
    /// Key frames, also known as sync frames, reset inter-frame
    /// dependencies; decoding a key frame is sufficient to prepare a
    /// decoder for correctly decoding the difference frames that
    /// follow.
    /// Video encoders are allowed to generate key frames more frequently if
    /// this would result in more efficient compression.
    /// The default key frame interval is 0, which indicates that the
    /// video encoder should choose where to place all key frames. A key
    /// frame interval of 1 indicates that every frame must be a key
    /// frame, 2 indicates that at least every other frame must be a key
    /// frame, etc.
    /// See also kVTCompressionPropertyKey_AllowTemporalCompression.
    ///
    /// This key can be set in conjunction with
    /// kVTCompressionPropertyKey_MaxKeyFrameIntervalDuration,
    /// and both limits will be enforced - requiring a keyframe every X
    /// frames or every Y seconds, whichever comes first.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_maxkeyframeinterval?language=objc)
    pub static kVTCompressionPropertyKey_MaxKeyFrameInterval: &'static CFString;
}

extern "C" {
    /// The maximum duration from one key frame to the next in seconds.
    ///
    /// Zero by default, which means no limit.
    /// This property is particularly useful when the frame rate is variable.
    /// See kVTCompressionPropertyKey_MaxKeyFrameInterval for more discussion
    /// of key frames.
    ///
    /// This key can be set in conjunction with
    /// kVTCompressionPropertyKey_MaxKeyFrameInterval,
    /// and both limits will be enforced - requiring a keyframe every X
    /// frames or every Y seconds, whichever comes first.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_maxkeyframeintervalduration?language=objc)
    pub static kVTCompressionPropertyKey_MaxKeyFrameIntervalDuration: &'static CFString;
}

extern "C" {
    /// Enables temporal compression.
    ///
    /// True by default.  Set this to false to require key-frame-only compression.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_allowtemporalcompression?language=objc)
    pub static kVTCompressionPropertyKey_AllowTemporalCompression: &'static CFString;
}

extern "C" {
    /// Enables frame reordering.
    ///
    /// In order to encode B frames, a video encoder must reorder frames,
    /// which means that the order in which they will be emitted and
    /// stored (the decode order) is different from the order in which
    /// they were presented to the video encoder (the display order).
    /// True by default.  Set this to false to prevent frame reordering.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_allowframereordering?language=objc)
    pub static kVTCompressionPropertyKey_AllowFrameReordering: &'static CFString;
}

extern "C" {
    /// Enables Open GOP (Group Of Pictures) encoding.
    ///
    /// Only applicable to certain video encoders.  For HEVC encoding the property value is kCFBooleanTrue by default - which means
    /// that the encoder may use Open GOP structures, but it is not guaranteed to.
    /// Set this to kCFBooleanFalse to prevent the encoder from using any form of Open GOP during encoding.
    /// If set to kCFBooleanFalse, this will mean that the encoder will generate groups of pictures that are independently decodable; there
    /// will be no frame dependencies across sync samples (frames where kCMSampleAttachmentKey_NotSync is absent or kCFBooleanFalse)
    /// When the value is kCFBooleanTrue, the encoder may use Open GOP frame dependency structures to increase compression efficiency or quality.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_allowopengop?language=objc)
    pub static kVTCompressionPropertyKey_AllowOpenGOP: &'static CFString;
}

extern "C" {
    /// The long-term desired average bit rate in bits per second.
    ///
    /// This is not a hard limit; the bit rate may peak above this.
    /// The default bit rate is zero, which indicates that the video encoder
    /// should determine the size of compressed data.
    /// Note that bit rate settings only have an effect when timing
    /// information is provided for source frames, and that some codecs do
    /// not support limiting to specified bit rates.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_averagebitrate?language=objc)
    pub static kVTCompressionPropertyKey_AverageBitRate: &'static CFString;
}

extern "C" {
    /// Zero, one or two hard limits on data rate.
    ///
    /// Each hard limit is described by a data size in bytes and a
    /// duration in seconds, and requires that the total size of
    /// compressed data for any contiguous segment of that duration (in
    /// decode time) must not exceed the data size.
    /// By default, no data rate limits are set.
    /// The property is a CFArray of an even number of CFNumbers,
    /// alternating between bytes and seconds.
    /// Note that data rate settings only have an effect when timing
    /// information is provided for source frames, and that some codecs do
    /// not support limiting to specified data rates.
    ///
    /// When both kVTCompressionPropertyKey_DataRateLimits and
    /// kVTCompressionPropertyKey_AverageBitRate are supported,
    /// it is recommended that kVTCompressionPropertyKey_AverageBitRate
    /// be set when kVTCompressionPropertyKey_DataRateLimits is set.
    /// If kVTCompressionPropertyKey_AverageBitRate is not specified,
    /// an overall average bit rate target will be selected at a safe margin below
    /// the kVTCompressionPropertyKey_DataRateLimits target, so that regional
    /// overshoot in the encoding will not exceed the
    /// kVTCompressionPropertyKey_DataRateLimits.
    /// The overall average bitrate target generated from
    /// kVTCompressionPropertyKey_DataRateLimits in the absence of
    /// kVTCompressionPropertyKey_AverageBitRate may not be ideal for all
    /// scenarios.
    /// Encoding is more likely to undershoot a requested
    /// kVTCompressionPropertyKey_AverageBitRate if the specified target is too
    /// close to a hard limit specified by kVTCompressionPropertyKey_DataRateLimits.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_dataratelimits?language=objc)
    pub static kVTCompressionPropertyKey_DataRateLimits: &'static CFString;
}

extern "C" {
    /// The desired compression quality.
    ///
    /// Some encoders, such as JPEG, describe the compression level of each
    /// image with a quality value.  This value should be specified as a
    /// number in the range of 0.0 to 1.0, where low = 0.25, normal = 0.50,
    /// high = 0.75, and 1.0 implies lossless compression for encoders that
    /// support it.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_quality?language=objc)
    pub static kVTCompressionPropertyKey_Quality: &'static CFString;
}

extern "C" {
    /// The target quality to use for encoding the alpha channel.
    ///
    /// The desired compression level to use for encoding the alpha channel.
    /// This value should be specified as a number in the range of 0.0 to 1.0.
    /// 0.0 is lowest quality and 1.0 implies nearly lossless.  Alpha plane
    /// bit rates will tend to increase with increasing values.  When encoding
    /// the alpha channel, quality is given priority over bitrate.  Note this
    /// parameter is currently only applicable to HEVC with Alpha encoders.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_targetqualityforalpha?language=objc)
    pub static kVTCompressionPropertyKey_TargetQualityForAlpha: &'static CFString;
}

extern "C" {
    /// Indicates whether and how a compression session's frames will be
    /// concatenated with other compressed frames to form a longer series.
    ///
    /// True if frames compressed in a separate session will be
    /// concatenated before the beginning of this one.  False if this is a
    /// stand-alone session, or if this session will encode the first
    /// segment of a multi-segment compression. By default, false.
    ///
    /// This information enables video encoders to ensure that compressed
    /// segments can be concatenated smoothly -- for example, avoiding
    /// data rate spikes where segments are joined.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_moreframesbeforestart?language=objc)
    pub static kVTCompressionPropertyKey_MoreFramesBeforeStart: &'static CFString;
}

extern "C" {
    /// Indicates whether and how a compression session's frames will be
    /// concatenated with other compressed frames to form a longer series.
    ///
    /// True if frames compressed in a separate session will be
    /// concatenated following the end of this one. False if this is a
    /// stand-alone session, or if this session will encode the last
    /// segment of a multi-segment compression. By default, false.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_moreframesafterend?language=objc)
    pub static kVTCompressionPropertyKey_MoreFramesAfterEnd: &'static CFString;
}

extern "C" {
    /// Hint for the video encoder that it should maximize its speed during encode, sacrificing quality if needed
    ///
    /// Video encoders sometimes have a tradeoff available between encoding speed and quality at a given bitrate.
    /// For example, by spending more time refining encoding decisions, it may be possible to make marginal improvements on quality.
    /// This property lets a client indicate its preference for any such tradeoff.
    /// Clients may set this property to kCFBooleanTrue to indicate that
    /// the encoder can take steps to maximize its speed by reducing quality,
    /// or to kCFBooleanFalse to indicate that the priority should be maximizing quality (at a given bitrate).
    /// When the property value is NULL, the video encoder will choose its default behavior.
    /// H.264 and HEVC hardware video encoders prioritize quality over speed by default.
    /// ProRes hardware encoders currently prioritize speed over quality by default.
    /// Not all video encoders support this property.
    /// By default, this property is NULL.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_prioritizeencodingspeedoverquality?language=objc)
    pub static kVTCompressionPropertyKey_PrioritizeEncodingSpeedOverQuality: &'static CFString;
}

extern "C" {
    /// Requires that the encoder use a Constant Bit Rate algorithm.
    ///
    /// The property kVTCompressionPropertyKey_ExpectedFrameRate should be set along with kVTCompressionPropertyKey_ConstantBitRate
    /// to ensure effective CBR rate control.
    ///
    /// This property is not compatible with kVTCompressionPropertyKey_DataRateLimits,
    /// kVTCompressionPropertyKey_AverageBitRate, and kVTCompressionPropertyKey_VariableBitRate.
    ///
    /// The encoder will pad the frame if they are smaller than they need to be based on the Constant BitRate. This
    /// property is not recommended for general streaming or export scenarios. It is intended for interoperability with
    /// certain streaming CDNs which specifically require that data rates not drop even during low motion and activity scenes.
    ///
    /// This is not supported in all encoders or in all encoder operating modes. kVTPropertyNotSupportedErr will be
    /// returned when this option is not supported.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_constantbitrate?language=objc)
    pub static kVTCompressionPropertyKey_ConstantBitRate: &'static CFString;
}

extern "C" {
    /// Returns the encoder's estimate of the expected size of a single encoded frame in bytes, based on current configuration.
    ///
    /// When supported, this option is intended to allow clients to estimate the output file size for an encoded video stream.
    /// This property is not implemented by all video encoders.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_estimatedaveragebytesperframe?language=objc)
    pub static kVTCompressionPropertyKey_EstimatedAverageBytesPerFrame: &'static CFString;
}

extern "C" {
    /// Requires that the encoder use a variable bitrate (VBR) rate control algorithm and specifies the desired variable bitrate in bits per second.
    ///
    /// The actual peak bitrate present in the bitstream may be above or below this value based on other parameters such as kVTCompressionPropertyKey_VBVMaxBitRate.
    /// This property key needs to be set to achieve Variable Bitrate (VBR) rate control.
    /// This property key is not compatible with:
    /// 1. kVTCompressionPropertyKey_AverageBitRate,
    /// 2. kVTCompressionPropertyKey_ConstantBitRate,
    /// 3. kVTCompressionPropertyKey_DataRateLimits,
    /// 4. VTVideoEncoderSpecification_EnableLowLatencyRateControl = True.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_variablebitrate?language=objc)
    pub static kVTCompressionPropertyKey_VariableBitRate: &'static CFString;
}

extern "C" {
    /// Defines the maximum bitrate that can enter the video buffering verifier (VBV) model at any time in variable bitrate (VBR) mode.
    ///
    /// The value of this property must be greater than zero.
    /// This property key is not compatible with:
    /// 1. kVTCompressionPropertyKey_AverageBitRate,
    /// 2. kVTCompressionPropertyKey_ConstantBitRate,
    /// 3. kVTCompressionPropertyKey_DataRateLimits,
    /// 4. VTVideoEncoderSpecification_EnableLowLatencyRateControl=True.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_vbvmaxbitrate?language=objc)
    pub static kVTCompressionPropertyKey_VBVMaxBitRate: &'static CFString;
}

extern "C" {
    /// Capacity of the video buffering verifier (VBV) model in seconds.
    ///
    /// VBV model allows for larger variations in bitrates while avoiding decoder-side overflows or underflows.
    /// A larger VBV model size may improve compression quality, but it requires more memory and may introduce delay.
    /// The value of this property must be greater than 0.0.
    /// The default value is set as 2.5 seconds.
    /// This property key is compatible with constant bitrate (CBR) or variable bitrate (VBR) rate control.
    /// This property key is incompatible with:
    /// 1. kVTCompressionPropertyKey_AverageBitRate,
    /// 2. kVTCompressionPropertyKey_DataRateLimits,
    /// 3. VTVideoEncoderSpecification_EnableLowLatencyRateControl=True.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_vbvbufferduration?language=objc)
    pub static kVTCompressionPropertyKey_VBVBufferDuration: &'static CFString;
}

extern "C" {
    /// Initial delay of the VBV model between storing the picture in the VBV buffer model and decoding of that picture, as a percentage of VBV buffer duration.
    ///
    /// This value should be specified as a number in the range of 0 to 100.
    /// Larger value increases the delay but results in smoother playback.
    /// Default value is 90, meaning 90% of the VBV buffer duration.
    /// This property key is incompatible with:
    /// 1. kVTCompressionPropertyKey_AverageBitRate,
    /// 2. kVTCompressionPropertyKey_DataRateLimits,
    /// 3. VTVideoEncoderSpecification_EnableLowLatencyRateControl=True.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_vbvinitialdelaypercentage?language=objc)
    pub static kVTCompressionPropertyKey_VBVInitialDelayPercentage: &'static CFString;
}

extern "C" {
    /// Specifies the profile and level for the encoded bitstream.
    ///
    /// Available profiles and levels vary across formats and between video encoders.
    /// Video encoders should use standard keys where available, and follow standard patterns where not.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_profilelevel?language=objc)
    pub static kVTCompressionPropertyKey_ProfileLevel: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_hevc_main_autolevel?language=objc)
    pub static kVTProfileLevel_HEVC_Main_AutoLevel: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_hevc_main10_autolevel?language=objc)
    pub static kVTProfileLevel_HEVC_Main10_AutoLevel: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_hevc_main42210_autolevel?language=objc)
    pub static kVTProfileLevel_HEVC_Main42210_AutoLevel: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_hevc_monochrome_autolevel?language=objc)
    pub static kVTProfileLevel_HEVC_Monochrome_AutoLevel: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_hevc_monochrome10_autolevel?language=objc)
    pub static kVTProfileLevel_HEVC_Monochrome10_AutoLevel: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_baseline_1_3?language=objc)
    pub static kVTProfileLevel_H264_Baseline_1_3: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_baseline_3_0?language=objc)
    pub static kVTProfileLevel_H264_Baseline_3_0: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_baseline_3_1?language=objc)
    pub static kVTProfileLevel_H264_Baseline_3_1: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_baseline_3_2?language=objc)
    pub static kVTProfileLevel_H264_Baseline_3_2: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_baseline_4_0?language=objc)
    pub static kVTProfileLevel_H264_Baseline_4_0: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_baseline_4_1?language=objc)
    pub static kVTProfileLevel_H264_Baseline_4_1: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_baseline_4_2?language=objc)
    pub static kVTProfileLevel_H264_Baseline_4_2: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_baseline_5_0?language=objc)
    pub static kVTProfileLevel_H264_Baseline_5_0: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_baseline_5_1?language=objc)
    pub static kVTProfileLevel_H264_Baseline_5_1: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_baseline_5_2?language=objc)
    pub static kVTProfileLevel_H264_Baseline_5_2: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_baseline_autolevel?language=objc)
    pub static kVTProfileLevel_H264_Baseline_AutoLevel: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_constrainedbaseline_autolevel?language=objc)
    pub static kVTProfileLevel_H264_ConstrainedBaseline_AutoLevel: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_main_3_0?language=objc)
    pub static kVTProfileLevel_H264_Main_3_0: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_main_3_1?language=objc)
    pub static kVTProfileLevel_H264_Main_3_1: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_main_3_2?language=objc)
    pub static kVTProfileLevel_H264_Main_3_2: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_main_4_0?language=objc)
    pub static kVTProfileLevel_H264_Main_4_0: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_main_4_1?language=objc)
    pub static kVTProfileLevel_H264_Main_4_1: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_main_4_2?language=objc)
    pub static kVTProfileLevel_H264_Main_4_2: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_main_5_0?language=objc)
    pub static kVTProfileLevel_H264_Main_5_0: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_main_5_1?language=objc)
    pub static kVTProfileLevel_H264_Main_5_1: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_main_5_2?language=objc)
    pub static kVTProfileLevel_H264_Main_5_2: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_main_autolevel?language=objc)
    pub static kVTProfileLevel_H264_Main_AutoLevel: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_extended_5_0?language=objc)
    pub static kVTProfileLevel_H264_Extended_5_0: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_extended_autolevel?language=objc)
    pub static kVTProfileLevel_H264_Extended_AutoLevel: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_high_3_0?language=objc)
    pub static kVTProfileLevel_H264_High_3_0: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_high_3_1?language=objc)
    pub static kVTProfileLevel_H264_High_3_1: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_high_3_2?language=objc)
    pub static kVTProfileLevel_H264_High_3_2: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_high_4_0?language=objc)
    pub static kVTProfileLevel_H264_High_4_0: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_high_4_1?language=objc)
    pub static kVTProfileLevel_H264_High_4_1: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_high_4_2?language=objc)
    pub static kVTProfileLevel_H264_High_4_2: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_high_5_0?language=objc)
    pub static kVTProfileLevel_H264_High_5_0: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_high_5_1?language=objc)
    pub static kVTProfileLevel_H264_High_5_1: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_high_5_2?language=objc)
    pub static kVTProfileLevel_H264_High_5_2: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_high_autolevel?language=objc)
    pub static kVTProfileLevel_H264_High_AutoLevel: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h264_constrainedhigh_autolevel?language=objc)
    pub static kVTProfileLevel_H264_ConstrainedHigh_AutoLevel: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_mp4v_simple_l0?language=objc)
    pub static kVTProfileLevel_MP4V_Simple_L0: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_mp4v_simple_l1?language=objc)
    pub static kVTProfileLevel_MP4V_Simple_L1: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_mp4v_simple_l2?language=objc)
    pub static kVTProfileLevel_MP4V_Simple_L2: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_mp4v_simple_l3?language=objc)
    pub static kVTProfileLevel_MP4V_Simple_L3: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_mp4v_main_l2?language=objc)
    pub static kVTProfileLevel_MP4V_Main_L2: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_mp4v_main_l3?language=objc)
    pub static kVTProfileLevel_MP4V_Main_L3: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_mp4v_main_l4?language=objc)
    pub static kVTProfileLevel_MP4V_Main_L4: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_mp4v_advancedsimple_l0?language=objc)
    pub static kVTProfileLevel_MP4V_AdvancedSimple_L0: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_mp4v_advancedsimple_l1?language=objc)
    pub static kVTProfileLevel_MP4V_AdvancedSimple_L1: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_mp4v_advancedsimple_l2?language=objc)
    pub static kVTProfileLevel_MP4V_AdvancedSimple_L2: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_mp4v_advancedsimple_l3?language=objc)
    pub static kVTProfileLevel_MP4V_AdvancedSimple_L3: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_mp4v_advancedsimple_l4?language=objc)
    pub static kVTProfileLevel_MP4V_AdvancedSimple_L4: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h263_profile0_level10?language=objc)
    pub static kVTProfileLevel_H263_Profile0_Level10: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h263_profile0_level45?language=objc)
    pub static kVTProfileLevel_H263_Profile0_Level45: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprofilelevel_h263_profile3_level45?language=objc)
    pub static kVTProfileLevel_H263_Profile3_Level45: &'static CFString;
}

extern "C" {
    /// When set, requires the encoder to output bitstream with the requested bit depth, if supported by the configured profile level setting.
    /// In the absence of this property, the video encoder will assume the highest bit depth allowable by the configured profile level setting.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_outputbitdepth?language=objc)
    pub static kVTCompressionPropertyKey_OutputBitDepth: &'static CFString;
}

extern "C" {
    /// The mode for HDR metadata in the output bitstream.
    ///
    /// If set to kVTHDRMetadataInsertionMode_None, no HDR metadata will
    /// be present in the output bitstream.  For other modes,
    /// VTCompressionSession will determine what type of HDR metadata
    /// to insert based on the output color space.  e.g. DolbyVision, HDR10, etc.
    /// This property has no effect if the output color space is not HDR, or if
    /// there is currently no underlying support for the HDR format.
    /// kVTHDRMetadataInsertionMode_RequestSDRRangePreservation will
    /// only insert metadata when the following is true:
    /// transfer function is kCVImageBufferTransferFunction_SMPTE_ST_2084_PQ
    /// color primaries is kCVImageBufferColorPrimaries_ITU_R_2020
    /// color matrix is kCVImageBufferYCbCrMatrix_ITU_R_2020
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_hdrmetadatainsertionmode?language=objc)
    pub static kVTCompressionPropertyKey_HDRMetadataInsertionMode: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvthdrmetadatainsertionmode_none?language=objc)
    pub static kVTHDRMetadataInsertionMode_None: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvthdrmetadatainsertionmode_auto?language=objc)
    pub static kVTHDRMetadataInsertionMode_Auto: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvthdrmetadatainsertionmode_requestsdrrangepreservation?language=objc)
    pub static kVTHDRMetadataInsertionMode_RequestSDRRangePreservation: &'static CFString;
}

extern "C" {
    /// The entropy encoding mode for H.264 compression.
    ///
    /// If supported by an H.264 encoder, this property controls whether the encoder should use
    /// Context-based Adaptive Variable Length Coding (CAVLC) or Context-based Adaptive Binary Arithmetic Coding (CABAC).
    /// CABAC generally gives better compression at the expense of higher computational overhead.
    /// The default value is encoder-specific and may change depending on other encoder settings.
    /// Care should be taken when using this property -- changes may result in a configuration
    /// which is not compatible with a requested Profile and Level.  Results in this case are undefined,
    /// and could include encode errors or a non-compliant output stream.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_h264entropymode?language=objc)
    pub static kVTCompressionPropertyKey_H264EntropyMode: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvth264entropymode_cavlc?language=objc)
    pub static kVTH264EntropyMode_CAVLC: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvth264entropymode_cabac?language=objc)
    pub static kVTH264EntropyMode_CABAC: &'static CFString;
}

extern "C" {
    /// The pixel depth of the encoded video.
    ///
    /// This property is only supported by video encoders for formats that are
    /// tied to particular pixel formats (eg, 16-bit RGB, 24-bit RGB).
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_depth?language=objc)
    pub static kVTCompressionPropertyKey_Depth: &'static CFString;
}

extern "C" {
    /// Instructs the encoder to encode or discard the alpha channel of input video frames
    ///
    /// This property allows a client to  specify whether or not the alpha channel in the source pixelBuffers should be encoded.
    /// The client may set this to kCFBooleanFalse in cases where they are not interested in preserving alpha, or if the alpha channel is known to be fully opaque.
    /// This property is not supported by all encoders.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_preservealphachannel?language=objc)
    pub static kVTCompressionPropertyKey_PreserveAlphaChannel: &'static CFString;
}

extern "C" {
    /// The maximum frame delay count is the maximum number of frames that
    /// a compressor is allowed to hold before it must output a compressed
    /// frame.
    ///
    /// It limits the number of frames that may be held in the
    /// "compression window". If the maximum frame delay count is M, then
    /// before the call to encode frame N returns, frame N-M must have
    /// been emitted.
    /// The default is kVTUnlimitedFrameDelayCount, which sets no limit
    /// on the compression window.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_maxframedelaycount?language=objc)
    pub static kVTCompressionPropertyKey_MaxFrameDelayCount: &'static CFString;
}

/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtunlimitedframedelaycount?language=objc)
pub const kVTUnlimitedFrameDelayCount: c_int = -1;

extern "C" {
    /// Specifies the maximum slice size for H.264 encoding
    ///
    /// If supported by an H.264 encoder, the value limits the size in bytes of
    /// slices produced by the encoder, where possible.
    /// By default, no limit is specified.  A value of zero implies default behavior.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_maxh264slicebytes?language=objc)
    pub static kVTCompressionPropertyKey_MaxH264SliceBytes: &'static CFString;
}

extern "C" {
    /// Hints the video encoder that compression is, or is not, being performed in real time.
    ///
    /// For offline compression, clients are advised to set this property to kCFBooleanFalse.
    /// This indicates that the timeline of the frames is not connected to wall-clock time at all.
    /// This allows the video encoder to run either slower than real-time or faster than real-time,
    /// depending upon the situation and device capabilities.
    /// For real-time compression, clients are advised to set this property to kCFBooleanTrue.
    /// This indicates that the timeline of frames is connected to real time (so, for example,
    /// the client expects to encode one second of frames each second, on average).
    /// In such a case, it is important that encoding keep up, but it is also not valuable to encode
    /// substantially faster than real time.
    /// When this property is set to kCFBooleanTrue, the video encoder may use the value of the
    /// kVTCompressionPropertyKey_ExpectedFrameRate property to optimize energy usage,
    /// by anticipating that encoding requests will happen at this rate.
    /// By default, this property is NULL, indicating unknown.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_realtime?language=objc)
    pub static kVTCompressionPropertyKey_RealTime: &'static CFString;
}

extern "C" {
    /// Hints to the video encoder that it should maximize power efficiency during encode.
    ///
    /// For compression where the client is operating in the background, clients may set this property to kCFBooleanTrue, which indicates that
    /// the encoder can take steps to minimize impact on power usage and other system activity.
    /// Setting the property to NULL is equivalent to setting it to kCFBooleanFalse.
    /// Not all video encoders support this property.
    /// By default, this property is NULL.
    /// If the kVTCompressionPropertyKey_RealTime property is set to kCFBooleanTrue,
    /// the video encoder may act as though this property were set to kCFBooleanFalse.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_maximizepowerefficiency?language=objc)
    pub static kVTCompressionPropertyKey_MaximizePowerEfficiency: &'static CFString;
}

extern "C" {
    /// Indicates the number of source frames, if known.
    ///
    /// This property allows a client to give the video encoder advance guidance as to how
    /// many frames will be encoded.
    /// If nonzero, this should be the exact number of times that the client calls
    /// VTCompressionSessionEncodeFrame in each pass.
    /// The default is 0, which indicates that the number of source frames
    /// is not known.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_sourceframecount?language=objc)
    pub static kVTCompressionPropertyKey_SourceFrameCount: &'static CFString;
}

extern "C" {
    /// Indicates the expected frame rate of the video to be encoded.
    ///
    /// The frame rate is measured in frames per second.
    /// This property is used to inform the encoder of the expected cadence of the presentation time stamp values of frames that will be submitted to the encoder.
    /// The actual frame rate may vary, and will depend on the frame durations calculated by the difference between subsequent presentation time stamps.
    /// If kVTCompressionPropertyKey_RealTime has been set to true, the ExpectedFrameRate may be used to optimize energy usage as well as perform internal encoder configuration before compression begins.
    /// If kVTCompressionPropertyKey_RealTime is not set, or has been set to false, the ExpectedFrameRate is still helpful and allows the encoder to optimize internal encoder configuration before compression begins.
    /// By default, the property has a value of zero indicating "unknown".
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_expectedframerate?language=objc)
    pub static kVTCompressionPropertyKey_ExpectedFrameRate: &'static CFString;
}

extern "C" {
    /// Indicates the maximum real time rate at which frames could be submitted to the VTCompressionSession
    ///
    /// The frame rate is measured in frames per second.
    /// This property can be used to inform the encoder of the maximum rate that frames could be submitted to the encoder during realtime encoding.  This allows the encoder to configure itself to ensure this capability.
    /// This property can only be used when kVTCompressionPropertyKey_RealTime has been set to true.
    /// Unlike kVTCompressionPropertyKey_ExpectedFrameRate, this property informs the maximum possible rate that the VTCompressionSession could see, not the average frame rate that is expected in normal operation.
    /// By default, the property has a value of zero indicating "unknown".
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_maximumrealtimeframerate?language=objc)
    pub static kVTCompressionPropertyKey_MaximumRealTimeFrameRate: &'static CFString;
}

extern "C" {
    /// This property indicates the desired frame rate fraction of the base layer.
    ///
    /// This property indicates the fraction of total frames submitted that should be encoded in the base layer.
    /// For example, a value of 0.5 means that half of the frames are in the base layer, and half are in the enhancement layer.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_baselayerframeratefraction?language=objc)
    pub static kVTCompressionPropertyKey_BaseLayerFrameRateFraction: &'static CFString;
}

extern "C" {
    /// This property indicates the desired bit rate fraction of the base layer
    ///
    /// This is not a hard limit; the encoder will attempt to satisfy this ratio when possible. If not set, the encoder will manage the ratio.
    /// For example: If the target bitrate is set to 500kbps and kVTCompressionPropertyKey_BaseLayerBitRateFraction is set to 0.6, the base layer will be given a
    /// budget of 300kbps and the enhancement layer 200kbps.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_baselayerbitratefraction?language=objc)
    pub static kVTCompressionPropertyKey_BaseLayerBitRateFraction: &'static CFString;
}

extern "C" {
    /// Indicates the expected total duration for the compression session, if known.
    ///
    /// By default, this is zero, indicating "unknown".
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_expectedduration?language=objc)
    pub static kVTCompressionPropertyKey_ExpectedDuration: &'static CFString;
}

extern "C" {
    /// This property indicates the desired frame rate for the base temporal layer used in hierarchical video encoding.
    ///
    /// The frame rate is measured in frames per second.
    /// This property is only implemented by encoders which support hierarchical frame encoding, and requests that this encoding feature be enabled.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_baselayerframerate?language=objc)
    pub static kVTCompressionPropertyKey_BaseLayerFrameRate: &'static CFString;
}

extern "C" {
    /// The client will be able to control the the maximum allowed ReferenceBufferCount using this optional key.
    ///
    /// This is typically used to force the encoder to use lower count than allowed by the stantard for a level/profile.
    /// The encoder will fail and  report an error if the requested value exceeds the limit set by the standard for such a level/profile.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_referencebuffercount?language=objc)
    pub static kVTCompressionPropertyKey_ReferenceBufferCount: &'static CFString;
}

extern "C" {
    /// This property requests that the encoder measure and output the Mean Squared Error(MSE) quality metric.
    ///
    /// The MSE value returned may be measured using an internal representation of the decoded frame which may lack filtering or processing present in the actual decoded frame.  Because of this, there may be a small delta between the reported MSE and the true MSE.
    /// If supported, the MSE values will be returned as sample buffer attachments on the encoded frame using the kVTSampleAttachmentKey_QualityMetrics key.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_calculatemeansquarederror?language=objc)
    pub static kVTCompressionPropertyKey_CalculateMeanSquaredError: &'static CFString;
}

extern "C" {
    /// The value for this key contain quality-related metadata from the video encoder for a video frame.
    ///
    /// The video encoder will attach this via the CMSampleBufferGetSampleAttachmentsArray interface before emitting the sample buffer.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtsampleattachmentkey_qualitymetrics?language=objc)
    pub static kVTSampleAttachmentKey_QualityMetrics: &'static CFString;
}

extern "C" {
    /// Key for mean squared error (MSE) of the encoded Luma channel from the video encoder.
    ///
    /// For single-view video, a CFNumber value is returned.
    /// For multi-view video, a CFArray value is returned, and each element (CFNumber) in the CFArray includes MSE for the corresponding view.
    /// The video encoder will attach this in kVTSampleAttachmentKey_QualityMetrics via the CMSampleBufferGetSampleAttachmentsArray interface before emitting the sample buffer.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtsampleattachmentqualitymetricskey_lumameansquarederror?language=objc)
    pub static kVTSampleAttachmentQualityMetricsKey_LumaMeanSquaredError: &'static CFString;
}

extern "C" {
    /// Key for mean squared error (MSE) of the encoded Chroma Blue channel from the video encoder.
    ///
    /// For single-view video, a CFNumber value is returned.
    /// For multi-view video, a CFArray value is returned, and each element (CFNumber) in the CFArray includes MSE for the corresponding view.
    /// The video encoder will attach this in kVTSampleAttachmentKey_QualityMetrics via the CMSampleBufferGetSampleAttachmentsArray interface before emitting the sample buffer.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtsampleattachmentqualitymetricskey_chromabluemeansquarederror?language=objc)
    pub static kVTSampleAttachmentQualityMetricsKey_ChromaBlueMeanSquaredError: &'static CFString;
}

extern "C" {
    /// Key for mean squared error (MSE) of the encoded Chroma Red channel from the video encoder.
    ///
    /// For single-view video, a CFNumber value is returned.
    /// For multi-view video, a CFArray value is returned, and each element (CFNumber) in the CFArray includes MSE for the corresponding view.
    /// The video encoder will attach this in kVTSampleAttachmentKey_QualityMetrics via the CMSampleBufferGetSampleAttachmentsArray interface before emitting the sample buffer.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtsampleattachmentqualitymetricskey_chromaredmeansquarederror?language=objc)
    pub static kVTSampleAttachmentQualityMetricsKey_ChromaRedMeanSquaredError: &'static CFString;
}

extern "C" {
    /// If set to kCFBooleanTrue, use a hardware accelerated video encoder if available.  If set to
    /// kCFBooleanFalse, hardware encode will never be used.
    ///
    /// This key is set in the encoderSpecification passed in to VTCompressionSessionCreate.  Set it
    /// to kCFBooleanTrue to allow hardware accelerated encode.  To prevent hardware encode,
    /// this property can be set to kCFBooleanFalse.
    /// In MacOS 10.15 and later, hardware encode is enabled in VTCompressionSessions by default.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtvideoencoderspecification_enablehardwareacceleratedvideoencoder?language=objc)
    pub static kVTVideoEncoderSpecification_EnableHardwareAcceleratedVideoEncoder:
        &'static CFString;
}

extern "C" {
    /// If set to kCFBooleanTrue, only use hardware encode and return an error if this isn't possible.
    /// Setting this key automatically implies kVTVideoEncoderSpecification_EnableHardwareAcceleratedVideoEncoder --
    /// there is no need to set both and the Enable key does nothing if the Require key is set.
    ///
    /// This key is set in the encoderSpecification passed in to VTCompressionSessionCreate.  Set it
    /// to kCFBooleanTrue to require hardware accelerated encode.  If hardware acceleration is not
    /// possible, the VTCompressionSessionCreate call will fail.
    /// This key is useful for clients that have their own software encode implementation or
    /// those that may want to configure software and hardware encode sessions differently.
    /// Hardware acceleration may be unavailable for a number of reasons.  A few common cases are:
    /// - the machine does not have hardware acceleration capabilities
    /// - the requested encoding format or encoding configuration is not supported
    /// - the hardware encoding resources on the machine are busy
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtvideoencoderspecification_requirehardwareacceleratedvideoencoder?language=objc)
    pub static kVTVideoEncoderSpecification_RequireHardwareAcceleratedVideoEncoder:
        &'static CFString;
}

extern "C" {
    /// If set to kCFBooleanTrue, a hardware accelerated video encoder is being used.
    ///
    /// You can query this property using VTSessionCopyProperty after you have enabled hardware
    /// accelerated encode using kVTVideoEncoderSpecification_EnableHardwareAcceleratedVideoEncoder
    /// to see if a hardware accelerated encoder was selected.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_usinghardwareacceleratedvideoencoder?language=objc)
    pub static kVTCompressionPropertyKey_UsingHardwareAcceleratedVideoEncoder: &'static CFString;
}

extern "C" {
    /// If set, the VideoToolbox will only use a hardware encoder running on the GPU specified by the provided GPU registryID.
    ///
    /// This specification implies kVTVideoEncoderSpecification_EnableHardwareAcceleratedVideoEncoder.  A separate hardware encode opt-in is not required.
    /// The GPU registryID can be obtained from a MTLDevice using [MTLDevice registryID] or can be obtained from OpenGL or OpenCL.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtvideoencoderspecification_requiredencodergpuregistryid?language=objc)
    pub static kVTVideoEncoderSpecification_RequiredEncoderGPURegistryID: &'static CFString;
}

extern "C" {
    /// If set, the VideoToolbox will try to use a hardware encoder running on the GPU specified by the provided GPU registryID.  If the
    /// GPU does not support encode of the specified format, the VideoToolbox will fall back to alternate encoders.
    ///
    /// This specification implies kVTVideoEncoderSpecification_EnableHardwareAcceleratedVideoEncoder.  A separate hardware encode opt-in is not required.
    /// If both kVTVideoEncoderSpecification_PreferredEncoderGPURegistryID and kVTVideoEncoderSpecification_RequiredEncoderGPURegistryID are set, kVTVideoEncoderSpecification_PreferredEncoderGPURegistryID will be ignored.
    /// This specification can be used in conjunction with kVTVideoEncoderSpecification_RequireHardwareAcceleratedVideoEncoder to prevent a fallback to software encode.
    /// The GPU registryID can be obtained from a MTLDevice using [MTLDevice registryID] or can be obtained from OpenGL or OpenCL.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtvideoencoderspecification_preferredencodergpuregistryid?language=objc)
    pub static kVTVideoEncoderSpecification_PreferredEncoderGPURegistryID: &'static CFString;
}

extern "C" {
    /// returns CFNumber indicating the gpu registryID of the encoder that was selected.  NULL indicates a built-in encoder or software encode was used.
    ///
    /// You can query this property using VTSessionCopyProperty after building a VTCompressionSession to find out which GPU the encoder is using.
    /// If a encoder based on a built-in GPU was used it will return NULL.  If a software encoder is used, it will return NULL
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_usinggpuregistryid?language=objc)
    pub static kVTCompressionPropertyKey_UsingGPURegistryID: &'static CFString;
}

extern "C" {
    /// This property can be queried to determine if the encoder supports base frame QP requests.
    ///
    /// If this property returns kCFBooleanTrue, it indicates that the encoder supports base frame QP requests through kVTEncodeFrameOptionKey_BaseFrameQP. If it returns false or kVTPropertyNotSupportedErr, base frame QP requests will cause errors on VTCompressionSessionEncodeFrame calls, or will be ignored.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_supportsbaseframeqp?language=objc)
    pub static kVTCompressionPropertyKey_SupportsBaseFrameQP: &'static CFString;
}

extern "C" {
    /// CFBoolean forcing the current frame to be a key frame
    ///
    /// This value is set in the frameProperties CFDictionary passed to
    /// VTCompressionSessionEncodeFrame to force the current frame to be a
    /// keyframe or not.
    /// Note that it may not be possible for the encoder to accomodate all
    /// requests.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtencodeframeoptionkey_forcekeyframe?language=objc)
    pub static kVTEncodeFrameOptionKey_ForceKeyFrame: &'static CFString;
}

extern "C" {
    /// CFNumberRef requesting the current frame to use the provided base frame QP.
    ///
    /// This value is set in the frameProperties CFDictionary passed to VTCompressionSessionEncodeFrame to force
    /// the QP value for the current frame. This is an optional parameter. Use it only when you have a specific requirement
    /// for the video quality and you are familiar with frame QP and are prepared to assume full responsibility for rate control.
    /// Otherwise it is strongly encouraged to rely on the encoder’s rate control for adjusting frame QP.
    ///
    /// Setting BaseFrameQP turns off standard rate control and will cause the following properties to be ignored::
    /// kVTCompressionPropertyKey_DataRateLimits
    /// kVTCompressionPropertyKey_AverageBitRate
    /// kVTCompressionPropertyKey_BaseLayerBitRateFraction
    /// kVTCompressionPropertyKey_Quality
    /// kVTCompressionPropertyKey_MaxAllowedFrameQP
    /// kVTCompressionPropertyKey_MinAllowedFrameQP
    ///
    /// If kVTEncodeFrameOptionKey_BaseFrameQP is used, it must be set for all frames in a session. The QP value specified is
    /// frame-level but macro-block level QP may be modulated inside a frame. There will be no rate-control related frame dropping
    /// if kVTEncodeFrameOptionKey_BaseFrameQP is used.
    ///
    /// kVTEncodeFrameOptionKey_BaseFrameQP is only supported if the encoder returns kCFBooleanTrue when the
    /// kVTCompressionPropertyKey_SupportsBaseFrameQP is queried. If this FrameOptionKey is set for encoder which
    /// does not support it, it will be ignored.
    ///
    /// Note that it may not be possible for the encoder to accommodate all requests.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtencodeframeoptionkey_baseframeqp?language=objc)
    pub static kVTEncodeFrameOptionKey_BaseFrameQP: &'static CFString;
}

extern "C" {
    /// Describes the clean aperture for encoded frames.
    ///
    /// Some video encoders may enforce specific clean apertures;
    /// in those cases this property will be read-only (SetProperty will return kVTPropertyReadOnlyErr).
    /// The clean aperture will be set on the format description for output samples,
    /// and may affect source frame scaling.
    /// NULL is a valid value for this property, meaning that the clean aperture is the full width and height.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_cleanaperture?language=objc)
    pub static kVTCompressionPropertyKey_CleanAperture: &'static CFString;
}

extern "C" {
    /// Describes the pixel aspect ratio for encoded frames.
    ///
    /// Some video encoders may enforce specific pixel aspect ratios;
    /// in those cases this property will be read-only (SetProperty will return kVTPropertyReadOnlyErr).
    /// The pixel aspect ratio will be set on the format description for output samples,
    /// and may affect source frame scaling.
    /// NULL is a valid value for this property, meaning square pixels (1:1).
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_pixelaspectratio?language=objc)
    pub static kVTCompressionPropertyKey_PixelAspectRatio: &'static CFString;
}

extern "C" {
    /// Indicates whether the frames should be encoded progressive (1) or interlaced (2).
    ///
    /// The field count will be set on the format description for output samples,
    /// and may affect source frame scaling.
    /// NULL is a valid value for this property.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_fieldcount?language=objc)
    pub static kVTCompressionPropertyKey_FieldCount: &'static CFString;
}

extern "C" {
    /// Indicates field ordering for encoded interlaced frames.
    ///
    /// Some video encoders may enforce specific field ordering;
    /// in those cases this property will be read-only (SetProperty will return kVTPropertyReadOnlyErr).
    /// The field detail will be set on the format description for output samples,
    /// and may affect source frame scaling.
    /// NULL is a valid value for this property.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_fielddetail?language=objc)
    pub static kVTCompressionPropertyKey_FieldDetail: &'static CFString;
}

extern "C" {
    /// Indicates that the DV video stream should have the 16x9 flag set.
    ///
    /// This property is supported by the DV25/50 family of encoders.
    /// When false, the picture aspect ratio is 4:3.
    /// When true, the picture aspect ratio is 16:9.
    /// Either way, a fixed PixelAspectRatio is used (the specific value depends on whether the format is NTSC or PAL).
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_aspectratio16x9?language=objc)
    pub static kVTCompressionPropertyKey_AspectRatio16x9: &'static CFString;
}

extern "C" {
    /// Indicates that the DV video stream should have the progressive flag set.
    ///
    /// This property is supported by the DV25/50 family of encoders.
    /// If false, content is encoded as interlaced.
    /// If true, content is encoded as progressive.
    /// The value of this property fixes the FieldCount and FieldDetail properties.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_progressivescan?language=objc)
    pub static kVTCompressionPropertyKey_ProgressiveScan: &'static CFString;
}

extern "C" {
    /// Indicates color primaries for compressed content.
    ///
    /// Some video encoders may enforce specific colorimetry;
    /// in those cases this property will be read-only (SetProperty will return kVTPropertyReadOnlyErr).
    /// The value will be set on the format description for output sample buffers.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_colorprimaries?language=objc)
    pub static kVTCompressionPropertyKey_ColorPrimaries: &'static CFString;
}

extern "C" {
    /// Indicates transfer function for compressed content.
    ///
    /// Some video encoders may enforce specific colorimetry;
    /// in those cases this property will be read-only (SetProperty will return kVTPropertyReadOnlyErr).
    /// The value will be set on the format description for output sample buffers.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_transferfunction?language=objc)
    pub static kVTCompressionPropertyKey_TransferFunction: &'static CFString;
}

extern "C" {
    /// Indicates YCbCr matrix for compressed content.
    ///
    /// Some video encoders may enforce specific colorimetry;
    /// in those cases this property will be read-only (SetProperty will return kVTPropertyReadOnlyErr).
    /// The value will be set on the format description for output sample buffers.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_ycbcrmatrix?language=objc)
    pub static kVTCompressionPropertyKey_YCbCrMatrix: &'static CFString;
}

extern "C" {
    /// Indicates ICC profile for compressed content.
    ///
    /// Some video encoders may enforce specific colorimetry;
    /// in those cases this property will be read-only (SetProperty will return kVTPropertyReadOnlyErr).
    /// If this property and any of the previous three are all set, they should be set to consistent values,
    /// or undefined behavior may occur.
    /// The value will be set on the format description for output sample buffers.
    /// NULL can be a valid value for this property.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_iccprofile?language=objc)
    pub static kVTCompressionPropertyKey_ICCProfile: &'static CFString;
}

extern "C" {
    /// The value is 24 bytes containing a big-endian structure as defined in ISO/IEC 23008-2:2015(E), D.2.28 Mastering display colour volume SEI message.
    ///
    /// The value will be set on the format description for output sample buffers,
    /// and incorporated into the appropriate SEI NAL unit where supported by the encoder.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_masteringdisplaycolorvolume?language=objc)
    pub static kVTCompressionPropertyKey_MasteringDisplayColorVolume: &'static CFString;
}

extern "C" {
    /// The value is 4 bytes containing a big-endian structure as defined in the Content Light Level Info SEI message.
    ///
    /// The value will be set on the format description for output sample buffers,
    /// and incorporated into the appropriate SEI NAL unit where supported by the encoder.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_contentlightlevelinfo?language=objc)
    pub static kVTCompressionPropertyKey_ContentLightLevelInfo: &'static CFString;
}

extern "C" {
    /// Indicates gamma level for compressed content.
    ///
    /// This property allows the caller to specify a gamma value to include in the CMVideoFormatDescription attached to output CMSampleBuffers. It does not change pixel data being encoded.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_gammalevel?language=objc)
    pub static kVTCompressionPropertyKey_GammaLevel: &'static CFString;
}

extern "C" {
    /// Specifies whether the source images' RGB values have been premultiplied by the alpha channel values.
    ///
    /// Video compression will fail if source image buffers have a mismatched value in their kCVImageBufferAlphaChannelMode attachment.
    /// If this property is not set, the encoder may read the first source image buffer's kCVImageBufferAlphaChannelMode attachment.
    /// If neither the property nor the first buffer's attachment is set, defaults to kVTAlphaChannelMode_PremultipliedAlpha.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_alphachannelmode?language=objc)
    pub static kVTCompressionPropertyKey_AlphaChannelMode: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtalphachannelmode_straightalpha?language=objc)
    pub static kVTAlphaChannelMode_StraightAlpha: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtalphachannelmode_premultipliedalpha?language=objc)
    pub static kVTAlphaChannelMode_PremultipliedAlpha: &'static CFString;
}

extern "C" {
    /// Specifies properties to configure a VTPixelTransferSession used to transfer source frames
    /// from the client's image buffers to the video encoder's image buffers, if necessary.
    ///
    /// Setting this property alone does not necessarily guarantee that a VTPixelTransferSession will be created.
    /// See VTPixelTransferProperties.h.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_pixeltransferproperties?language=objc)
    pub static kVTCompressionPropertyKey_PixelTransferProperties: &'static CFString;
}

extern "C" {
    /// Enables multi-pass compression and provides storage for encoder-private data.
    ///
    /// Some video encoders support multi-pass encoding.  To determine whether a VTCompressionSession supports multi-pass encoding, you can inspect the dictionary returned by VTSessionCopySupportedPropertyDictionary to see if it contains kVTCompressionPropertyKey_MultiPassStorage.
    ///
    /// To enable multi-pass encoding, set the kVTCompressionPropertyKey_MultiPassStorage property to a VTMultiPassStorage object, which you can create by calling VTMultiPassStorageCreate.  Then make one or more passes over the source frames.  Bracket each pass with a call to VTCompressionSessionBeginPass at the beginning and VTCompressionSessionEndPass at the end.
    ///
    /// In the first pass of multi-pass encoding, call VTCompressionSessionEncodeFrame for every source frame (just as in single-pass encoding).  At the end of every pass, call VTCompressionSessionEndPass.  This may take some time as the video encoder determines whether it can improve the encoding by performing another pass.  If the user cancels encoding during this time, call VTCompressionSessionInvalidate to interrupt the processing.  VTCompressionSessionEndPass will indicate via the furtherPassesRequestedOut argument whether the video encoder would like to perform another pass.  There is no particular bound on the number of passes the video encoder may request, but the client is free to disregard this request and use the last-emitted set of frames.
    ///
    /// If *furtherPassesRequestedOut is set to true and you want to perform another pass, call VTCompressionSessionGetTimeRangesForNextPass to determine the time ranges for the next pass.  Only the source frames within these time ranges need to be passed to VTCompressionSessionEncodeFrame; the video encoder is satisfied with the already-emitted compressed frames outside these ranges and they can be kept for the final output.
    ///
    /// In second and successive passes, you must pass identical source frames, frame properties and timestamps to VTCompressionSessionEncodeFrame as in the first pass, with the exception that frames not in the requested time ranges should be skipped.
    ///
    /// You can create and use a VTFrameSilo object to merge sequences of compressed frames across passes during multi-pass encoding.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_multipassstorage?language=objc)
    pub static kVTCompressionPropertyKey_MultiPassStorage: &'static CFString;
}

extern "C" {
    /// Specifies a particular video encoder by its ID string.
    ///
    /// Matches the value specified in kVTVideoEncoderSpecification_EncoderID, and the kVTVideoEncoderList_EncoderID value returned from VTCopyVideoEncoderList.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_encoderid?language=objc)
    pub static kVTCompressionPropertyKey_EncoderID: &'static CFString;
}

extern "C" {
    /// If supported by the underlying video encoder, returns the recommended number of VTCompressionSessions to instantiate in a parallel encoding configuration.
    ///
    /// Parallel encoding VTCompressionSessions require the use of the properties kVTCompressionPropertyKey_MoreFramesBeforeStart, kVTCompressionPropertyKey_MoreFramesAfterEnd, and kVTCompressionPropertyKey_SourceFrameCount.
    /// e.g. If the property returns 4, a setup for 4 VTCompressionSessions on a 400 frame movie might look like:
    /// compressionSession1
    /// kVTCompressionPropertyKey_MoreFramesBeforeStart = false
    /// kVTCompressionPropertyKey_MoreFramesAfterEnd = true
    /// kVTCompressionPropertyKey_SourceFrameCount = 100
    /// compressionSession2
    /// kVTCompressionPropertyKey_MoreFramesBeforeStart = true
    /// kVTCompressionPropertyKey_MoreFramesAfterEnd = true
    /// kVTCompressionPropertyKey_SourceFrameCount = 100
    /// compressionSession3
    /// kVTCompressionPropertyKey_MoreFramesBeforeStart = true
    /// kVTCompressionPropertyKey_MoreFramesAfterEnd = true
    /// kVTCompressionPropertyKey_SourceFrameCount = 100
    /// compressionSession4
    /// kVTCompressionPropertyKey_MoreFramesBeforeStart = true
    /// kVTCompressionPropertyKey_MoreFramesAfterEnd = false
    /// kVTCompressionPropertyKey_SourceFrameCount = 100
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_recommendedparallelizationlimit?language=objc)
    pub static kVTCompressionPropertyKey_RecommendedParallelizationLimit: &'static CFString;
}

extern "C" {
    /// If supported by the underlying video encoder, returns the recommended minimum number of video frames for a given subdivision in a parallel encoding configuration.
    ///
    /// For best results, ensure that the total number of frames of a parallelized subdivision is greater than or equal to this returned value.
    /// See also kVTCompressionPropertyKey_RecommendedParallelizationLimit
    /// See also kVTCompressionPropertyKey_RecommendedParallelizedSubdivisionMinimumDuration
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_recommendedparallelizedsubdivisionminimumframecount?language=objc)
    pub static kVTCompressionPropertyKey_RecommendedParallelizedSubdivisionMinimumFrameCount:
        &'static CFString;
}

extern "C" {
    /// If supported by the underlying video encoder, returns the recommended minimum duration for a given subdivision in a parallel encoding configuration.
    ///
    /// For best results, ensure that the total duration of a parallelized subdivision is greater than or equal to this returned value.
    /// See also kVTCompressionPropertyKey_RecommendedParallelizationLimit
    /// See also kVTCompressionPropertyKey_RecommendedParallelizedSubdivisionMinimumFrameCount
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_recommendedparallelizedsubdivisionminimumduration?language=objc)
    pub static kVTCompressionPropertyKey_RecommendedParallelizedSubdivisionMinimumDuration:
        &'static CFString;
}

extern "C" {
    /// Controls whether or not to preserve any dynamic HDR metadata on the input pixel buffer
    ///
    /// If set to false, and kVTCompressionPropertyKey_HDRMetadataInsertionMode is not
    /// kVTHDRMetadataInsertionMode_None, then VTCompressionSession will generate the
    /// dynamic HDR metadata for the pixel buffer, if the HDR format is supported.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_preservedynamichdrmetadata?language=objc)
    pub static kVTCompressionPropertyKey_PreserveDynamicHDRMetadata: &'static CFString;
}

extern "C" {
    /// Requires that an encoder which supports low-latency operation be selected, and enables low-latency mode.
    ///
    /// Low latency RateControl enforces the following behaviors:
    /// - Infinite GOP (all P frames following the beginning IDR).
    /// - No frame reordering (B frame) or looking ahead.
    /// - Only High profiles. Levels are left for the encoder to automatically set.
    /// - Temporal Layer structure.
    ///
    /// Also see:
    /// kVTCompressionPropertyKey_AverageBitRate
    /// kVTCompressionPropertyKey_BaseLayerFrameRateFraction
    /// kVTEncodeFrameOptionKey_ForceKeyFrame
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtvideoencoderspecification_enablelowlatencyratecontrol?language=objc)
    pub static kVTVideoEncoderSpecification_EnableLowLatencyRateControl: &'static CFString;
}

extern "C" {
    /// Specifies the maximum allowed encoded frame QP (Quantization Parameter).
    ///
    /// This is an optional parameter. Use it only when you have a specific requirement for the video quality and you are
    /// familiar with frame QP. To satisfy this requirement, the encoder may drop frames to maintain bitrate and QP goals.
    /// This is not supported in all encoders or in all encoder operating modes. kVTPropertyNotSupportedErr will be
    /// returned when this option is not supported.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_maxallowedframeqp?language=objc)
    pub static kVTCompressionPropertyKey_MaxAllowedFrameQP: &'static CFString;
}

extern "C" {
    /// Specifies the minimum allowed encoded frame QP (Quantization Parameter).
    ///
    /// This is an optional parameter. Use it only when you have a specific requirement for the video quality and you are
    /// familiar with frame QP.
    /// This is not supported in all encoders or in all encoder operating modes. kVTPropertyNotSupportedErr will be
    /// returned when this option is not supported.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_minallowedframeqp?language=objc)
    pub static kVTCompressionPropertyKey_MinAllowedFrameQP: &'static CFString;
}

extern "C" {
    /// Enable Long Term Reference (LTR) frames during encoding
    ///
    /// When an LTR frame is encoded, encoder will signal a unique token of the LTR frame in the encoder callback through:
    /// kVTSampleAttachmentKey_RequireLTRAcknowledgementToken
    /// Clients are responsible for reporting acknowledged LTR frames to the encoder through:
    /// kVTEncodeFrameOptionKey_AcknowledgedLTRTokens
    /// Client can request a refresh frame at any time through:
    /// kVTEncodeFrameOptionKey_ForceLTRRefresh
    /// Encoder will encode a P frame by using one of acknowledged LTR frames
    /// as the reference. Encoder will encode a new reference frame using an acknowledged LTR, or an IDR if no LTR frames have been acknowledged.
    ///
    /// Also see:
    /// kVTEncodeFrameOptionKey_AcknowledgedLTRTokens
    /// kVTEncodeFrameOptionKey_ForceLTRRefresh
    /// kVTSampleAttachmentKey_RequireLTRAcknowledgementToken
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_enableltr?language=objc)
    pub static kVTCompressionPropertyKey_EnableLTR: &'static CFString;
}

extern "C" {
    /// A CFArray of CFNumbers containing the kVTSampleAttachmentKey_RequireLTRAcknowledgementToken values which have been successfully sent to the receiver and can be used as references
    ///
    /// When an LTR frame is encoded, the encoder will return a unique token for the LTR frame on the output CMSampleBuffer through kVTSampleAttachmentKey_RequireLTRAcknowledgementToken.
    /// This token is then returned to the encoder via kVTEncodeFrameOptionKey_AcknowledgedLTRTokens when the LTR frame is received by the remote consumer(s).
    ///
    /// Also see:
    /// kVTCompressionPropertyKey_EnableLTR
    /// kVTEncodeFrameOptionKey_ForceLTRRefresh
    /// kVTSampleAttachmentKey_RequireLTRAcknowledgementToken
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtencodeframeoptionkey_acknowledgedltrtokens?language=objc)
    pub static kVTEncodeFrameOptionKey_AcknowledgedLTRTokens: &'static CFString;
}

extern "C" {
    /// Set this option to kCFBooleanTrue to force an LTR refresh
    ///
    /// When the encoder receives this request on an incoming frame, the encoder will encode a new reference frame using a previously
    /// acknowledged LTR, or it will encode a new IDR if no LTR frames have been acknowledged.
    ///
    /// Also see:
    /// kVTCompressionPropertyKey_EnableLTR
    /// kVTEncodeFrameOptionKey_AcknowledgedLTRTokens
    /// kVTSampleAttachmentKey_RequireLTRAcknowledgementToken
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtencodeframeoptionkey_forceltrrefresh?language=objc)
    pub static kVTEncodeFrameOptionKey_ForceLTRRefresh: &'static CFString;
}

extern "C" {
    /// CFNumber containing a unique token for this LTR
    ///
    /// This CMSampleBuffer attachment contains a unique token which can be returned to the encoder through
    /// kVTEncodeFrameOptionKey_AcknowledgedLTRTokens to indicate that the LTR has been received and may be used as a reference.
    ///
    /// Also see:
    /// kVTCompressionPropertyKey_EnableLTR
    /// kVTEncodeFrameOptionKey_AcknowledgedLTRTokens
    /// kVTEncodeFrameOptionKey_ForceLTRRefresh
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtsampleattachmentkey_requireltracknowledgementtoken?language=objc)
    pub static kVTSampleAttachmentKey_RequireLTRAcknowledgementToken: &'static CFString;
}

extern "C" {
    /// Requests multi-image encoding; advises encoder to expect CMTaggedBufferGroups with specific CMTags referencing these MV-HEVC VideoLayerIDs.
    ///
    /// MV-HEVC specific.
    /// The property value is a CFArray containing VideoLayerIDs as CFNumbers.
    /// The property is NULL by default.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_mvhevcvideolayerids?language=objc)
    pub static kVTCompressionPropertyKey_MVHEVCVideoLayerIDs: &'static CFString;
}

extern "C" {
    /// Specifies the ViewIDs corresponding to the VideoLayerIDs provided via kVTCompressionPropertyKey_MVHEVCVideoLayerIDs.
    ///
    /// MV-HEVC specific.
    /// The property value is a CFArray containing ViewIDs as CFNumbers.
    /// The entries in this array should be in the same order and have the same count as the value set via kVTCompressionPropertyKey_MVHEVCVideoLayerIDs.
    /// The property is NULL by default.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_mvhevcviewids?language=objc)
    pub static kVTCompressionPropertyKey_MVHEVCViewIDs: &'static CFString;
}

extern "C" {
    /// Specifies which of the ViewIDs provided via kVTCompressionPropertyKey_MVHEVCViewIDs is the "left view id" and which is the "right view id".
    ///
    /// MV-HEVC specific.
    /// These ViewIDs will be incorporated into the 3D Reference Displays Info SEI message.
    /// The property value is a CFArray containing two ViewIDs as CFNumbers with the first correspponding to the left eye and the second corresponding to the right eye.
    /// The property is NULL by default.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_mvhevcleftandrightviewids?language=objc)
    pub static kVTCompressionPropertyKey_MVHEVCLeftAndRightViewIDs: &'static CFString;
}

extern "C" {
    /// Specifies the value of kCMFormatDescriptionExtension_HeroEye.
    ///
    /// The value will be set on the format description for output samples and may affect the decoded frame presentation.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_heroeye?language=objc)
    pub static kVTCompressionPropertyKey_HeroEye: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtheroeye_left?language=objc)
    pub static kVTHeroEye_Left: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtheroeye_right?language=objc)
    pub static kVTHeroEye_Right: &'static CFString;
}

extern "C" {
    /// Specifies the value of kCMFormatDescriptionExtension_StereoCameraBaseline.
    ///
    /// The value will be set on the format description for output samples and may affect the decoded frame presentation.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_stereocamerabaseline?language=objc)
    pub static kVTCompressionPropertyKey_StereoCameraBaseline: &'static CFString;
}

extern "C" {
    /// Specifies the value of kCMFormatDescriptionExtension_HorizontalDisparityAdjustment.
    ///
    /// The value will be set on the format description for output samples and may affect the decoded frame presentation.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_horizontaldisparityadjustment?language=objc)
    pub static kVTCompressionPropertyKey_HorizontalDisparityAdjustment: &'static CFString;
}

extern "C" {
    /// Specifies the value of kCMFormatDescriptionExtension_HasLeftStereoEyeView.
    ///
    /// The value will be set on the format description for output samples and may affect the decoded frame presentation.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_hasleftstereoeyeview?language=objc)
    pub static kVTCompressionPropertyKey_HasLeftStereoEyeView: &'static CFString;
}

extern "C" {
    /// Specifies the value of kCMFormatDescriptionExtension_HasRightStereoEyeView.
    ///
    /// The value will be set on the format description for output samples and may affect the decoded frame presentation.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_hasrightstereoeyeview?language=objc)
    pub static kVTCompressionPropertyKey_HasRightStereoEyeView: &'static CFString;
}

extern "C" {
    /// Specifies the value of kCMFormatDescriptionExtension_HorizontalFieldOfView.
    ///
    /// The value is a CFNumber holding an unsigned 32-bit integer that is interpreted in millidegree or thousandths of a degree (e.g., 123456 is 123.456 degree).
    /// This property is optional and should only be specified if the field of view is known.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_horizontalfieldofview?language=objc)
    pub static kVTCompressionPropertyKey_HorizontalFieldOfView: &'static CFString;
}

extern "C" {
    /// Specifies the value of kCMFormatDescriptionExtension_ProjectionKind.
    ///
    /// The value will be set on the format description for output samples and may affect the decoded frame presentation.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_projectionkind?language=objc)
    pub static kVTCompressionPropertyKey_ProjectionKind: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprojectionkind_rectilinear?language=objc)
    pub static kVTProjectionKind_Rectilinear: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprojectionkind_equirectangular?language=objc)
    pub static kVTProjectionKind_Equirectangular: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprojectionkind_halfequirectangular?language=objc)
    pub static kVTProjectionKind_HalfEquirectangular: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtprojectionkind_parametricimmersive?language=objc)
    pub static kVTProjectionKind_ParametricImmersive: &'static CFString;
}

extern "C" {
    /// Specifies the value of kCMFormatDescriptionExtension_ViewPackingKind.
    ///
    /// The value will be set on the format description for output samples and may affect the decoded frame presentation.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_viewpackingkind?language=objc)
    pub static kVTCompressionPropertyKey_ViewPackingKind: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtviewpackingkind_sidebyside?language=objc)
    pub static kVTViewPackingKind_SideBySide: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtviewpackingkind_overunder?language=objc)
    pub static kVTViewPackingKind_OverUnder: &'static CFString;
}

extern "C" {
    /// Specifies intrinsic and extrinsic parameters for single or multiple lenses.
    ///
    /// The property value is an array of dictionaries describing the camera calibration data for each lens. The camera calibration data includes intrinsics and extrinics with other parameters.
    /// For a stereoscopic camera system, the left and right lens signaling can be done with the kVTCompressionPropertyCameraCalibrationKey_LensRole key and its value.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_cameracalibrationdatalenscollection?language=objc)
    pub static kVTCompressionPropertyKey_CameraCalibrationDataLensCollection: &'static CFString;
}

extern "C" {
    /// The following keys are required in each kVTCompressionPropertyKey_CameraCalibrationDataLensCollection dictionary.
    ///
    ///
    ///
    /// Specifies the camera calibration methodology.
    ///
    /// If the algorithm kind is ParametricLens, the camera lens collection requires camera intrinsic and extrinsic parameters.
    ///
    ///
    ///
    /// Specifies the kind of lens (e.g., color).
    ///
    ///
    ///
    /// Specifies a unique number associated with a lens.
    ///
    ///
    ///
    /// Specifies the particular use of the lens in the camera system (e.g., left or right for a stereo system).
    ///
    /// For a stereoscopic camera system, one lens should have the left role and another should have the right role.
    ///
    ///
    ///
    /// Specifies the first and second radial distortion coefficients(k1 and k2) used to correct the distortion that appeared as curved lines for straight lines and the first and second tangential distortion coefficients(p1 and p2) used to correct the distortion caused by a lens's improper alignment of physical elements.
    ///
    /// The values are in a CFArray of four CFNumbers in k1, k2, p1 and p2 order.
    ///
    ///
    ///
    /// Specifies a three element polynomial for mapping x axis UV parameters with an adjustment using the equation `x' = polynomialX[0] + polynomialX[1]*x + polynomialX[2]*x^3`.
    ///
    /// The values are in a CFArray of three CFNumbers(float) in the order polynomialX[0], polynomialX[1]
    /// &
    /// polynomialX[2].
    /// The polynomial transform origin is at the center of the frame. The default values of elements of polynomialX[] are [0.0, 1.0, 0.0].
    ///
    ///
    ///
    /// Specifies a three element polynomial for mapping y axis UV parameters with an adjustment using the equation `y' = polynomialY[0] + polynomialY[1]*y + polynomialY[2]*y^3`.
    ///
    /// The values are in a CFArray of three CFNumbers(float) in the order polynomialY[0], polynomialY[1]
    /// &
    /// polynomialY[2].
    /// The polynomial transform origin is at the center of the frame. The default values of elements of polynomialY[] are [0.0, 1.0, 0.0].
    ///
    ///
    ///
    /// Specifies the outer limit of the calibration validity in degrees of angle eccentric from the optical axis.
    ///
    /// The value is linked to radial distortion corrections with k1 and k2.
    ///
    ///
    ///
    /// Specifies the 3x3 camera intrinsic matrix for camera calibration.
    ///
    /// Camera intrinsic matrix is a CFData containing a matrix_float3x3, which is column-major. Each element is in IEEE754 native-endian 32-bit floating point. It has the following contents:
    /// fx    s    cx
    /// 0    fy    cy
    /// 0    0    1
    /// fx and fy are the focal length in pixels. For square pixels, they will have the same value.
    /// cx and cy are the coordinates of the principal point. The origin is the upper left of the frame.
    /// s is an optional skew factor.
    ///
    ///
    ///
    /// Specifies the offset of the point of perspective relative to the rectilinear projection.
    ///
    ///
    ///
    /// Specifies the image dimensions to which the camera’s intrinsic matrix values are relative.
    ///
    /// Values are width and height in a CFDictionary. Dictionary keys are compatible with CGSize dictionary, namely "Width" and "Height".
    ///
    ///
    ///
    /// Identifies how the origin of the camera system's extrinsics are determined.
    ///
    /// The 'blin' value indicates the center of transform is determined by the point mid way along the dimensions indicated by the StereoCameraSystemBaselineBox held in the StereoCameraSystemBox.
    /// Each left and right lens within a stereoscopic camera system is equidistant from this point, so the 'blin' value is halved when associated with the respective left and right lenses.
    ///
    ///
    ///
    /// Specifies a camera’s orientation to a world or scene coordinate system. The orientation value is a unit quaternion(ix, iy, and iz) instead of the classical 3x3 matrix.
    ///
    /// The values are in a CFArray of three CFNumbers in ix, iy, and iz order.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertycameracalibrationkey_lensalgorithmkind?language=objc)
    pub static kVTCompressionPropertyCameraCalibrationKey_LensAlgorithmKind: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcameracalibrationlensalgorithmkind_parametriclens?language=objc)
    pub static kVTCameraCalibrationLensAlgorithmKind_ParametricLens: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertycameracalibrationkey_lensdomain?language=objc)
    pub static kVTCompressionPropertyCameraCalibrationKey_LensDomain: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcameracalibrationlensdomain_color?language=objc)
    pub static kVTCameraCalibrationLensDomain_Color: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertycameracalibrationkey_lensidentifier?language=objc)
    pub static kVTCompressionPropertyCameraCalibrationKey_LensIdentifier: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertycameracalibrationkey_lensrole?language=objc)
    pub static kVTCompressionPropertyCameraCalibrationKey_LensRole: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcameracalibrationlensrole_mono?language=objc)
    pub static kVTCameraCalibrationLensRole_Mono: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcameracalibrationlensrole_left?language=objc)
    pub static kVTCameraCalibrationLensRole_Left: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcameracalibrationlensrole_right?language=objc)
    pub static kVTCameraCalibrationLensRole_Right: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertycameracalibrationkey_lensdistortions?language=objc)
    pub static kVTCompressionPropertyCameraCalibrationKey_LensDistortions: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertycameracalibrationkey_radialanglelimit?language=objc)
    pub static kVTCompressionPropertyCameraCalibrationKey_RadialAngleLimit: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertycameracalibrationkey_lensframeadjustmentspolynomialx?language=objc)
    pub static kVTCompressionPropertyCameraCalibrationKey_LensFrameAdjustmentsPolynomialX:
        &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertycameracalibrationkey_lensframeadjustmentspolynomialy?language=objc)
    pub static kVTCompressionPropertyCameraCalibrationKey_LensFrameAdjustmentsPolynomialY:
        &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertycameracalibrationkey_intrinsicmatrix?language=objc)
    pub static kVTCompressionPropertyCameraCalibrationKey_IntrinsicMatrix: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertycameracalibrationkey_intrinsicmatrixprojectionoffset?language=objc)
    pub static kVTCompressionPropertyCameraCalibrationKey_IntrinsicMatrixProjectionOffset:
        &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertycameracalibrationkey_intrinsicmatrixreferencedimensions?language=objc)
    pub static kVTCompressionPropertyCameraCalibrationKey_IntrinsicMatrixReferenceDimensions:
        &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertycameracalibrationkey_extrinsicoriginsource?language=objc)
    pub static kVTCompressionPropertyCameraCalibrationKey_ExtrinsicOriginSource: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcameracalibrationextrinsicoriginsource_stereocamerasystembaseline?language=objc)
    pub static kVTCameraCalibrationExtrinsicOriginSource_StereoCameraSystemBaseline:
        &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertycameracalibrationkey_extrinsicorientationquaternion?language=objc)
    pub static kVTCompressionPropertyCameraCalibrationKey_ExtrinsicOrientationQuaternion:
        &'static CFString;
}

extern "C" {
    /// Requests that the encoder retain the specified number of frames during encoding. These frames will be used for additional analysis and statistics
    /// gathering before the frame is finally encoded at the end of the window. When this property is not set, video encoder will automatically determine
    /// the number of lookahead frames.
    ///
    /// Encoder will choose number of lookahead frames closer to the suggested value based on internal configuration. This property directly affects latency
    /// of the video encoder. The following properties also affect look ahead frames:
    /// 1. Value of this property must be less than or equal to `kVTCompressionPropertyKey_MaxFrameDelayCount`.
    /// 2. This property is ignored when `VTVideoEncoderSpecification_EnableLowLatencyRateControl` is set to true
    /// 3. This property is ignored when `kVTCompressionPropertyKey_Quality` is set to 1.0
    /// 4. This property can not be used in conjunction with multi-pass feature (`kVTCompressionPropertyKey_MultiPassStorage`)
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_suggestedlookaheadframecount?language=objc)
    pub static kVTCompressionPropertyKey_SuggestedLookAheadFrameCount: &'static CFString;
}

extern "C" {
    /// Control spatial adaptation of the quantization parameter (QP) based on per-frame statistics.
    /// If set to kVTQPModulationLevel_Disable, spatial QP adaptation is not applied based on per-frame statistics.
    /// If set to kVTQPModulationLevel_Default, video encoder is allowed to apply spatial QP adaptation for each macro block (or coding unit) within a video frame.
    /// QP adaptation is based on spatial characteristics of a frame and the level of spatial QP adaptation is decided internally by the rate controller.
    ///
    /// This property must be disabled when low latency rate control is enabled. Support for this property is codec dependent.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_spatialadaptiveqplevel?language=objc)
    pub static kVTCompressionPropertyKey_SpatialAdaptiveQPLevel: &'static CFString;
}

/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtqpmodulationlevel_default?language=objc)
pub const kVTQPModulationLevel_Default: c_int = -1;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtqpmodulationlevel_disable?language=objc)
pub const kVTQPModulationLevel_Disable: c_int = 0;

extern "C" {
    /// Where supported by video encoders, returns a dictionary whose keys are the available compression presets (prefixed by `kVTCompressionPreset_`) and the values are dictionaries containing the corresponding settings property key/value pairs.
    ///
    /// Clients can select a compression preset for their encoding needs and use its encoder settings to configure the encoder.
    /// Clients may also use the encoder settings as a base configuration that they can customize as they require.
    ///
    /// See also kVTCompressionPreset_HighQuality, kVTCompressionPreset_Balanced, kVTCompressionPreset_HighSpeed, kVTCompressionPreset_VideoConferencing.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_supportedpresetdictionaries?language=objc)
    pub static kVTCompressionPropertyKey_SupportedPresetDictionaries: &'static CFString;
}

extern "C" {
    /// A preset to achieve a high compression quality.
    ///
    /// An encoder configured using this preset is expected to achieve a higher quality with a slower encoding than an encoder configured with the preset kVTCompressionPreset_Balanced or kVTCompressionPreset_HighSpeed.
    /// The presets kVTCompressionPreset_Balanced and kVTCompressionPreset_HighSpeed may be preferred for a faster encoding.
    ///
    /// See also kVTCompressionPreset_Balanced, kVTCompressionPreset_HighSpeed, kVTCompressionPreset_VideoConferencing.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpreset_highquality?language=objc)
    pub static kVTCompressionPreset_HighQuality: &'static CFString;
}

extern "C" {
    /// A preset to provide a balanced compression quality and encoding speed.
    ///
    /// An encoder configured using this preset is expected to achieve a higher quality than an encoder configured with the preset kVTCompressionPreset_HighSpeed.
    /// The preset kVTCompressionPreset_HighSpeed may be preferred for a faster encoding.
    /// The preset kVTCompressionPreset_HighQuality may be preferred for a higher compression quality.
    ///
    /// See also kVTCompressionPreset_HighQuality, kVTCompressionPreset_HighSpeed, kVTCompressionPreset_VideoConferencing.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpreset_balanced?language=objc)
    pub static kVTCompressionPreset_Balanced: &'static CFString;
}

extern "C" {
    /// A preset to provide a high-speed encoding.
    ///
    /// An encoder configured using this preset is expected to achieve a faster encoding at a lower compression quality than an encoder configured with the preset kVTCompressionPreset_HighQuality or kVTCompressionPreset_Balanced.
    /// The presets kVTCompressionPreset_HighQuality and kVTCompressionPreset_Balanced may be preferred for a higher compression quality.
    ///
    /// See also kVTCompressionPreset_HighQuality, kVTCompressionPreset_Balanced, kVTCompressionPreset_VideoConferencing.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpreset_highspeed?language=objc)
    pub static kVTCompressionPreset_HighSpeed: &'static CFString;
}

extern "C" {
    /// A preset to achieve low-latency encoding for real-time communication applications.
    ///
    /// This preset requires setting kVTVideoEncoderSpecification_EnableLowLatencyRateControl to kCFBooleanTrue for encoding in the low-latency mode.
    ///
    /// See also kVTCompressionPreset_HighQuality, kVTCompressionPreset_Balanced, kVTCompressionPreset_HighSpeed.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcompressionpreset_videoconferencing?language=objc)
    pub static kVTCompressionPreset_VideoConferencing: &'static CFString;
}