-
Notifications
You must be signed in to change notification settings - Fork 12
/
iOSapi.CoreMedia.pas
4168 lines (3870 loc) · 216 KB
/
iOSapi.CoreMedia.pas
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
{ *********************************************************** }
{ }
{ CodeGear Delphi Runtime Library }
{ }
{ Copyright(c) 2012-2014 Embarcadero Technologies, Inc. }
{ }
{ *********************************************************** }
//
// Delphi-Objective-C Bridge
// Interfaces for Cocoa framework CoreMedia
//
unit iOSapi.CoreMedia;
interface
uses
Macapi.CoreFoundation,
Macapi.CoreServices,
Macapi.Dispatch,
Macapi.Foundation,
Macapi.Mach,
Macapi.ObjCRuntime,
Macapi.ObjectiveC,
Macapi.QuartzCore,
iOSapi.AudioToolbox,
iOSapi.CocoaTypes,
iOSapi.CoreAudio,
iOSapi.CoreGraphics,
iOSapi.CoreVideo,
iOSapi.Foundation;
const
kCMPersistentTrackID_Invalid = 0;
kCMAttachmentMode_ShouldNotPropagate = 0;
kCMAttachmentMode_ShouldPropagate = 1;
kCMTimeFlags_Valid = 1 shl 0;
kCMTimeFlags_HasBeenRounded = 1 shl 1;
kCMTimeFlags_PositiveInfinity = 1 shl 2;
kCMTimeFlags_NegativeInfinity = 1 shl 3;
kCMTimeFlags_Indefinite = 1 shl 4;
kCMTimeFlags_ImpliedValueFlagsMask = kCMTimeFlags_PositiveInfinity or
kCMTimeFlags_NegativeInfinity or kCMTimeFlags_Indefinite;
kCMTimeRoundingMethod_RoundHalfAwayFromZero = 1;
kCMTimeRoundingMethod_RoundTowardZero = 2;
kCMTimeRoundingMethod_RoundAwayFromZero = 3;
kCMTimeRoundingMethod_QuickTime = 4;
kCMTimeRoundingMethod_RoundTowardPositiveInfinity = 5;
kCMTimeRoundingMethod_RoundTowardNegativeInfinity = 6;
kCMTimeRoundingMethod_Default = kCMTimeRoundingMethod_RoundHalfAwayFromZero;
kCMClockError_MissingRequiredParameter = -12745;
kCMClockError_InvalidParameter = -12746;
kCMClockError_AllocationFailed = -12747;
kCMClockError_UnsupportedOperation = -12756;
kCMTimebaseError_MissingRequiredParameter = -12748;
kCMTimebaseError_InvalidParameter = -12749;
kCMTimebaseError_AllocationFailed = -12750;
kCMTimebaseError_TimerIntervalTooShort = -12751;
kCMTimebaseError_ReadOnly = -12757;
kCMSyncError_MissingRequiredParameter = -12752;
kCMSyncError_InvalidParameter = -12753;
kCMSyncError_AllocationFailed = -12754;
kCMSyncError_RateMustBeNonZero = -12755;
kCMBlockBufferNoErr = 0;
kCMBlockBufferStructureAllocationFailedErr = -12700;
kCMBlockBufferBlockAllocationFailedErr = -12701;
kCMBlockBufferBadCustomBlockSourceErr = -12702;
kCMBlockBufferBadOffsetParameterErr = -12703;
kCMBlockBufferBadLengthParameterErr = -12704;
kCMBlockBufferBadPointerParameterErr = -12705;
kCMBlockBufferEmptyBBufErr = -12706;
kCMBlockBufferUnallocatedBlockErr = -12707;
kCMBlockBufferInsufficientSpaceErr = -12708;
kCMBlockBufferAssureMemoryNowFlag = (1 shl 0);
kCMBlockBufferAlwaysCopyDataFlag = (1 shl 1);
kCMBlockBufferDontOptimizeDepthFlag = (1 shl 2);
kCMBlockBufferPermitEmptyReferenceFlag = (1 shl 3);
kCMBlockBufferCustomBlockSourceVersion = 0;
kCMBufferQueueError_AllocationFailed = -12760;
kCMBufferQueueError_RequiredParameterMissing = -12761;
kCMBufferQueueError_InvalidCMBufferCallbacksStruct = -12762;
kCMBufferQueueError_EnqueueAfterEndOfData = -12763;
kCMBufferQueueError_QueueIsFull = -12764;
kCMBufferQueueError_BadTriggerDuration = -12765;
kCMBufferQueueError_CannotModifyQueueFromTriggerCallback = -12766;
kCMBufferQueueError_InvalidTriggerCondition = -12767;
kCMBufferQueueError_InvalidTriggerToken = -12768;
kCMBufferQueueError_InvalidBuffer = -12769;
kCMBufferQueueTrigger_WhenDurationBecomesLessThan = 1;
kCMBufferQueueTrigger_WhenDurationBecomesLessThanOrEqualTo = 2;
kCMBufferQueueTrigger_WhenDurationBecomesGreaterThan = 3;
kCMBufferQueueTrigger_WhenDurationBecomesGreaterThanOrEqualTo = 4;
kCMBufferQueueTrigger_WhenMinPresentationTimeStampChanges = 5;
kCMBufferQueueTrigger_WhenMaxPresentationTimeStampChanges = 6;
kCMBufferQueueTrigger_WhenDataBecomesReady = 7;
kCMBufferQueueTrigger_WhenEndOfDataReached = 8;
kCMBufferQueueTrigger_WhenReset = 9;
kCMBufferQueueTrigger_WhenBufferCountBecomesLessThan = 10;
kCMBufferQueueTrigger_WhenBufferCountBecomesGreaterThan = 11;
kCMBufferQueueTrigger_WhenDurationBecomesGreaterThanOrEqualToAndBufferCountBecomesGreaterThan =
12;
kCMFormatDescriptionError_InvalidParameter = -12710;
kCMFormatDescriptionError_AllocationFailed = -12711;
kCMFormatDescriptionError_ValueNotAvailable = -12718;
kCMMediaType_Video = 1986618469;
kCMMediaType_Audio = 1936684398;
kCMMediaType_Muxed = 1836415096;
kCMMediaType_Text = 1952807028;
kCMMediaType_ClosedCaption = 1668047728;
kCMMediaType_Subtitle = 1935832172;
kCMMediaType_TimeCode = 1953325924;
kCMMediaType_Metadata = 1835365473;
kCMAudioCodecType_AAC_LCProtected = 1885430115;
kCMAudioCodecType_AAC_AudibleProtected = 1633771875;
kCMAudioFormatDescriptionMask_StreamBasicDescription = (1 shl 0);
kCMAudioFormatDescriptionMask_MagicCookie = (1 shl 1);
kCMAudioFormatDescriptionMask_ChannelLayout = (1 shl 2);
kCMAudioFormatDescriptionMask_Extensions = (1 shl 3);
kCMAudioFormatDescriptionMask_All =
kCMAudioFormatDescriptionMask_StreamBasicDescription or
kCMAudioFormatDescriptionMask_MagicCookie or
kCMAudioFormatDescriptionMask_ChannelLayout or
kCMAudioFormatDescriptionMask_Extensions;
kCMPixelFormat_32ARGB = 32;
kCMPixelFormat_32BGRA = 1111970369;
kCMPixelFormat_24RGB = 24;
kCMPixelFormat_16BE555 = 16;
kCMPixelFormat_16BE565 = 1110783541;
kCMPixelFormat_16LE555 = 1278555445;
kCMPixelFormat_16LE565 = 1278555701;
kCMPixelFormat_16LE5551 = 892679473;
kCMPixelFormat_422YpCbCr8 = 846624121;
kCMPixelFormat_422YpCbCr8_yuvs = 2037741171;
kCMPixelFormat_444YpCbCr8 = 1983066168;
kCMPixelFormat_4444YpCbCrA8 = 1983131704;
kCMPixelFormat_422YpCbCr16 = 1983000886;
kCMPixelFormat_422YpCbCr10 = 1983000880;
kCMPixelFormat_444YpCbCr10 = 1983131952;
kCMPixelFormat_8IndexedGray_WhiteIsZero = 40;
kCMVideoCodecType_422YpCbCr8 = kCMPixelFormat_422YpCbCr8;
kCMVideoCodecType_Animation = 1919706400;
kCMVideoCodecType_Cinepak = 1668704612;
kCMVideoCodecType_JPEG = 1785750887;
kCMVideoCodecType_JPEG_OpenDML = 1684890161;
kCMVideoCodecType_SorensonVideo = 1398165809;
kCMVideoCodecType_SorensonVideo3 = 1398165811;
kCMVideoCodecType_H263 = 1748121139;
kCMVideoCodecType_H264 = 1635148593;
kCMVideoCodecType_HEVC = 1752589105;
kCMVideoCodecType_MPEG4Video = 1836070006;
kCMVideoCodecType_MPEG2Video = 1836069494;
kCMVideoCodecType_MPEG1Video = 1836069238;
kCMVideoCodecType_DVCNTSC = 1685480224;
kCMVideoCodecType_DVCPAL = 1685480304;
kCMVideoCodecType_DVCProPAL = 1685483632;
kCMVideoCodecType_DVCPro50NTSC = 1685468526;
kCMVideoCodecType_DVCPro50PAL = 1685468528;
kCMVideoCodecType_DVCPROHD720p60 = 1685481584;
kCMVideoCodecType_DVCPROHD720p50 = 1685481585;
kCMVideoCodecType_DVCPROHD1080i60 = 1685481526;
kCMVideoCodecType_DVCPROHD1080i50 = 1685481525;
kCMVideoCodecType_DVCPROHD1080p30 = 1685481523;
kCMVideoCodecType_DVCPROHD1080p25 = 1685481522;
kCMVideoCodecType_AppleProRes4444 = 1634743400;
kCMVideoCodecType_AppleProRes422HQ = 1634755432;
kCMVideoCodecType_AppleProRes422 = 1634755438;
kCMVideoCodecType_AppleProRes422LT = 1634755443;
kCMVideoCodecType_AppleProRes422Proxy = 1634755439;
kCMMPEG2VideoProfile_HDV_720p30 = 1751414321;
kCMMPEG2VideoProfile_HDV_1080i60 = 1751414322;
kCMMPEG2VideoProfile_HDV_1080i50 = 1751414323;
kCMMPEG2VideoProfile_HDV_720p24 = 1751414324;
kCMMPEG2VideoProfile_HDV_720p25 = 1751414325;
kCMMPEG2VideoProfile_HDV_1080p24 = 1751414326;
kCMMPEG2VideoProfile_HDV_1080p25 = 1751414327;
kCMMPEG2VideoProfile_HDV_1080p30 = 1751414328;
kCMMPEG2VideoProfile_HDV_720p60 = 1751414329;
kCMMPEG2VideoProfile_HDV_720p50 = 1751414369;
kCMMPEG2VideoProfile_XDCAM_HD_1080i60_VBR35 = 2019849778;
kCMMPEG2VideoProfile_XDCAM_HD_1080i50_VBR35 = 2019849779;
kCMMPEG2VideoProfile_XDCAM_HD_1080p24_VBR35 = 2019849782;
kCMMPEG2VideoProfile_XDCAM_HD_1080p25_VBR35 = 2019849783;
kCMMPEG2VideoProfile_XDCAM_HD_1080p30_VBR35 = 2019849784;
kCMMPEG2VideoProfile_XDCAM_EX_720p24_VBR35 = 2019849780;
kCMMPEG2VideoProfile_XDCAM_EX_720p25_VBR35 = 2019849781;
kCMMPEG2VideoProfile_XDCAM_EX_720p30_VBR35 = 2019849777;
kCMMPEG2VideoProfile_XDCAM_EX_720p50_VBR35 = 2019849825;
kCMMPEG2VideoProfile_XDCAM_EX_720p60_VBR35 = 2019849785;
kCMMPEG2VideoProfile_XDCAM_EX_1080i60_VBR35 = 2019849826;
kCMMPEG2VideoProfile_XDCAM_EX_1080i50_VBR35 = 2019849827;
kCMMPEG2VideoProfile_XDCAM_EX_1080p24_VBR35 = 2019849828;
kCMMPEG2VideoProfile_XDCAM_EX_1080p25_VBR35 = 2019849829;
kCMMPEG2VideoProfile_XDCAM_EX_1080p30_VBR35 = 2019849830;
kCMMPEG2VideoProfile_XDCAM_HD422_720p50_CBR50 = 2019833185;
kCMMPEG2VideoProfile_XDCAM_HD422_720p60_CBR50 = 2019833145;
kCMMPEG2VideoProfile_XDCAM_HD422_1080i60_CBR50 = 2019833186;
kCMMPEG2VideoProfile_XDCAM_HD422_1080i50_CBR50 = 2019833187;
kCMMPEG2VideoProfile_XDCAM_HD422_1080p24_CBR50 = 2019833188;
kCMMPEG2VideoProfile_XDCAM_HD422_1080p25_CBR50 = 2019833189;
kCMMPEG2VideoProfile_XDCAM_HD422_1080p30_CBR50 = 2019833190;
kCMMPEG2VideoProfile_XDCAM_HD_540p = 2019846244;
kCMMPEG2VideoProfile_XDCAM_HD422_540p = 2019846194;
kCMMPEG2VideoProfile_XDCAM_HD422_720p24_CBR50 = 2019833140;
kCMMPEG2VideoProfile_XDCAM_HD422_720p25_CBR50 = 2019833141;
kCMMPEG2VideoProfile_XDCAM_HD422_720p30_CBR50 = 2019833137;
kCMMPEG2VideoProfile_XF = 2019981873;
kCMMuxedStreamType_MPEG1System = 1836069235;
kCMMuxedStreamType_MPEG2Transport = 1836069492;
kCMMuxedStreamType_MPEG2Program = 1836069488;
kCMMuxedStreamType_DV = 1685463072;
kCMClosedCaptionFormatType_CEA608 = 1664495672;
kCMClosedCaptionFormatType_CEA708 = 1664561208;
kCMClosedCaptionFormatType_ATSC = 1635017571;
kCMTextFormatType_QTText = 1952807028;
kCMTextFormatType_3GText = 1954034535;
kCMTextDisplayFlag_scrollIn = 32;
kCMTextDisplayFlag_scrollOut = 64;
kCMTextDisplayFlag_scrollDirectionMask = 384;
kCMTextDisplayFlag_scrollDirection_bottomToTop = 0;
kCMTextDisplayFlag_scrollDirection_rightToLeft = 128;
kCMTextDisplayFlag_scrollDirection_topToBottom = 256;
kCMTextDisplayFlag_scrollDirection_leftToRight = 384;
kCMTextDisplayFlag_continuousKaraoke = 2048;
kCMTextDisplayFlag_writeTextVertically = 131072;
kCMTextDisplayFlag_fillTextRegion = 262144;
kCMTextDisplayFlag_obeySubtitleFormatting = 536870912;
kCMTextDisplayFlag_forcedSubtitlesPresent = 1073741824;
kCMTextDisplayFlag_allSubtitlesForced = 2147483648;
kCMTextJustification_left_top = 0;
kCMTextJustification_centered = 1;
kCMTextJustification_bottom_right = -1;
kCMSubtitleFormatType_3GText = 1954034535;
kCMSubtitleFormatType_WebVTT = 2004251764;
kCMTimeCodeFormatType_TimeCode32 = 1953325924;
kCMTimeCodeFormatType_TimeCode64 = 1952658996;
kCMTimeCodeFormatType_Counter32 = 1668166450;
kCMTimeCodeFormatType_Counter64 = 1668167220;
kCMTimeCodeFlag_DropFrame = 1 shl 0;
kCMTimeCodeFlag_24HourMax = 1 shl 1;
kCMTimeCodeFlag_NegTimesOK = 1 shl 2;
kCMMetadataFormatType_ICY = 1768126752;
kCMMetadataFormatType_ID3 = 1768174368;
kCMMetadataFormatType_Boxed = 1835360888;
kCMFormatDescriptionBridgeError_InvalidParameter = -12712;
kCMFormatDescriptionBridgeError_AllocationFailed = -12713;
kCMFormatDescriptionBridgeError_InvalidSerializedSampleDescription = -12714;
kCMFormatDescriptionBridgeError_InvalidFormatDescription = -12715;
kCMFormatDescriptionBridgeError_IncompatibleFormatDescription = -12716;
kCMFormatDescriptionBridgeError_UnsupportedSampleDescriptionFlavor = -12717;
kCMFormatDescriptionBridgeError_InvalidSlice = -12719;
kCMMetadataIdentifierError_AllocationFailed = -16300;
kCMMetadataIdentifierError_RequiredParameterMissing = -16301;
kCMMetadataIdentifierError_BadKey = -16302;
kCMMetadataIdentifierError_BadKeyLength = -16303;
kCMMetadataIdentifierError_BadKeyType = -16304;
kCMMetadataIdentifierError_BadNumberKey = -16305;
kCMMetadataIdentifierError_BadKeySpace = -16306;
kCMMetadataIdentifierError_BadIdentifier = -16307;
kCMMetadataIdentifierError_NoKeyValueAvailable = -16308;
kCMMetadataDataTypeRegistryError_AllocationFailed = -16310;
kCMMetadataDataTypeRegistryError_RequiredParameterMissing = -16311;
kCMMetadataDataTypeRegistryError_BadDataTypeIdentifier = -16312;
kCMMetadataDataTypeRegistryError_DataTypeAlreadyRegistered = -16313;
kCMMetadataDataTypeRegistryError_RequiresConformingBaseType = -16314;
kCMMetadataDataTypeRegistryError_MultipleConformingBaseTypes = -16315;
kCMSampleBufferError_AllocationFailed = -12730;
kCMSampleBufferError_RequiredParameterMissing = -12731;
kCMSampleBufferError_AlreadyHasDataBuffer = -12732;
kCMSampleBufferError_BufferNotReady = -12733;
kCMSampleBufferError_SampleIndexOutOfRange = -12734;
kCMSampleBufferError_BufferHasNoSampleSizes = -12735;
kCMSampleBufferError_BufferHasNoSampleTimingInfo = -12736;
kCMSampleBufferError_ArrayTooSmall = -12737;
kCMSampleBufferError_InvalidEntryCount = -12738;
kCMSampleBufferError_CannotSubdivide = -12739;
kCMSampleBufferError_SampleTimingInfoInvalid = -12740;
kCMSampleBufferError_InvalidMediaTypeForOperation = -12741;
kCMSampleBufferError_InvalidSampleData = -12742;
kCMSampleBufferError_InvalidMediaFormat = -12743;
kCMSampleBufferError_Invalidated = -12744;
kCMSampleBufferError_DataFailed = -16750;
kCMSampleBufferError_DataCanceled = -16751;
kCMSampleBufferFlag_AudioBufferList_Assure16ByteAlignment = (1 shl 0);
kCMSimpleQueueError_AllocationFailed = -12770;
kCMSimpleQueueError_RequiredParameterMissing = -12771;
kCMSimpleQueueError_ParameterOutOfRange = -12772;
kCMSimpleQueueError_QueueIsFull = -12773;
type
// ===== Framework typedefs =====
{$M+}
CMItemCount = LongInt;
PCMItemCount = ^CMItemCount;
CMItemIndex = LongInt;
PCMItemIndex = ^CMItemIndex;
CMPersistentTrackID = Int32;
CFTypeRef = Pointer;
CMAttachmentBearerRef = CFTypeRef;
CMAttachmentMode = LongWord;
CFStringRef = Pointer;
CFAllocatorRef = Pointer;
CFDictionaryRef = Pointer;
CMTimeValue = Int64;
CMTimeScale = Int32;
CMTimeEpoch = Int64;
CMTimeFlags = LongWord;
CMTime = record
value: CMTimeValue;
timescale: CMTimeScale;
flags: CMTimeFlags;
epoch: CMTimeEpoch;
end;
PCMTime = ^CMTime;
CMTimeRoundingMethod = LongWord;
CMClockRef = Pointer;
CMTimebaseRef = Pointer;
CMClockOrTimebaseRef = CFTypeRef;
CFTypeID = LongWord;
OSStatus = Int32;
Boolean = Byte;
CFRunLoopTimerRef = Pointer;
CFRunLoopRef = Pointer;
CMBlockBufferFlags = LongWord;
CMBlockBufferRef = Pointer;
__darwin_size_t = LongWord;
TCoreMediaAllocateBlock = function(param1: Pointer; param2: LongWord)
: Pointer; cdecl;
TCoreMediaFreeBlock = procedure(param1: Pointer; param2: Pointer;
param3: LongWord); cdecl;
CMBlockBufferCustomBlockSource = record
version: LongWord;
AllocateBlock: TCoreMediaAllocateBlock;
FreeBlock: TCoreMediaFreeBlock;
refCon: Pointer;
end;
PCMBlockBufferCustomBlockSource = ^CMBlockBufferCustomBlockSource;
CMBufferQueueRef = Pointer;
CMBufferRef = CFTypeRef;
CMBufferGetTimeCallback = function(param1: CMBufferRef; param2: Pointer)
: CMTime; cdecl;
CMBufferGetBooleanCallback = function(param1: CMBufferRef; param2: Pointer)
: Boolean; cdecl;
CFIndex = LongInt;
CFComparisonResult = CFIndex;
CMBufferCompareCallback = function(param1: CMBufferRef; param2: CMBufferRef;
param3: Pointer): CFComparisonResult; cdecl;
CMBufferGetSizeCallback = function(param1: CMBufferRef; param2: Pointer)
: LongWord; cdecl;
CMBufferCallbacks = record
version: LongWord;
refCon: Pointer;
getDecodeTimeStamp: CMBufferGetTimeCallback;
getPresentationTimeStamp: CMBufferGetTimeCallback;
getDuration: CMBufferGetTimeCallback;
isDataReady: CMBufferGetBooleanCallback;
compare: CMBufferCompareCallback;
dataBecameReadyNotification: CFStringRef;
getSize: CMBufferGetSizeCallback;
end;
PCMBufferCallbacks = ^CMBufferCallbacks;
TCoreMediaCallback = procedure(param1: CMBufferRef; param2: Pointer); cdecl;
CMBufferQueueTriggerToken = Pointer;
CMBufferQueueTriggerCallback = procedure(param1: Pointer;
param2: CMBufferQueueTriggerToken); cdecl;
CMBufferQueueTriggerCondition = Int32;
TCoreMediaCallback1 = function(param1: CMBufferRef; param2: Pointer)
: OSStatus; cdecl;
CMBufferValidationCallback = function(param1: CMBufferQueueRef;
param2: CMBufferRef; param3: Pointer): OSStatus; cdecl;
CMFormatDescriptionRef = Pointer;
FourCharCode = UInt32;
CMMediaType = FourCharCode;
CFPropertyListRef = CFTypeRef;
CMAudioCodecType = FourCharCode;
CMAudioFormatDescriptionRef = CMFormatDescriptionRef;
CFArrayRef = Pointer;
CMAudioFormatDescriptionMask = LongWord;
CMVideoFormatDescriptionRef = CMFormatDescriptionRef;
CMPixelFormatType = FourCharCode;
CMVideoCodecType = FourCharCode;
CMVideoDimensions = record
width: Int32;
height: Int32;
end;
PCMVideoDimensions = ^CMVideoDimensions;
CVBufferRef = Pointer;
CVImageBufferRef = CVBufferRef;
CGFloat = Single;
CGSize = CGSize = record width: CGFloat;
height:
CGFloat;
end;
PCGSize = ^CGSize;;
CGPoint = CGPoint = record x: CGFloat;
y:
CGFloat;
end;
PCGPoint = ^CGPoint;;
CGRect = CGRect = record origin: CGPoint;
size:
CGSize;
end;
PCGRect = ^CGRect;;
CMMuxedFormatDescriptionRef = CMFormatDescriptionRef;
CMMuxedStreamType = FourCharCode;
CMClosedCaptionFormatDescriptionRef = CMFormatDescriptionRef;
CMClosedCaptionFormatType = FourCharCode;
CMTextFormatDescriptionRef = CMFormatDescriptionRef;
CMTextFormatType = FourCharCode;
CMTextDisplayFlags = LongWord;
CMTextJustificationValue = Int8;
CMSubtitleFormatType = FourCharCode;
CMTimeCodeFormatDescriptionRef = CMFormatDescriptionRef;
CMTimeCodeFormatType = FourCharCode;
CMMetadataFormatDescriptionRef = CMFormatDescriptionRef;
CMMetadataFormatType = FourCharCode;
OSType = FourCharCode;
CFStringEncoding = UInt32;
CMMemoryPoolRef = Pointer;
CMSampleBufferRef = Pointer;
CMSampleTimingInfo = record duration: CMTime;
presentationTimeStamp:
CMTime;
decodeTimeStamp:
CMTime;
end;
PCMSampleTimingInfo = ^CMSampleTimingInfo;
CMSampleBufferMakeDataReadyCallback =
function(param1: CMSampleBufferRef; param2: Pointer): OSStatus;
cdecl;
CFRange = record location: CFIndex;
length:
CFIndex;
end;;
CMSampleBufferInvalidateCallback =
procedure(param1: CMSampleBufferRef; param2: UInt64);
cdecl;
CMSampleBufferInvalidateHandler =
procedure(param1: CMSampleBufferRef) of object;
TCoreMediaCallback2 =
function(param1: CMSampleBufferRef; param2: CMItemCount; param3: Pointer)
: OSStatus;
cdecl;
TCoreMediaHandler =
function(param1: CMSampleBufferRef; param2: CMItemCount): OSStatus;
cdecl;
CMSimpleQueueRef = Pointer;
CMTimeRange = record start: CMTime;
duration:
CMTime;
end;
PCMTimeRange = ^CMTimeRange;
CMTimeMapping = record source: CMTimeRange;
target:
CMTimeRange;
end;
PCMTimeMapping = ^CMTimeMapping;
// ===== Exported string consts =====
function kCMTimeInvalid: Pointer;
function kCMTimeIndefinite: Pointer;
function kCMTimePositiveInfinity: Pointer;
function kCMTimeNegativeInfinity: Pointer;
function kCMTimeZero: Pointer;
function kCMTimeValueKey: Pointer;
function kCMTimeScaleKey: Pointer;
function kCMTimeEpochKey: Pointer;
function kCMTimeFlagsKey: Pointer;
function kCMTimebaseNotification_EffectiveRateChanged
: Pointer;
function kCMTimebaseNotification_TimeJumped: Pointer;
function kCMTimebaseNotificationKey_EventTime: Pointer;
function kCMFormatDescriptionExtension_OriginalCompressionSettings
: Pointer;
function kCMFormatDescriptionExtension_SampleDescriptionExtensionAtoms
: Pointer;
function kCMFormatDescriptionExtension_VerbatimSampleDescription
: Pointer;
function kCMFormatDescriptionExtension_VerbatimISOSampleEntry
: Pointer;
function kCMFormatDescriptionExtension_FormatName
: Pointer;
function kCMFormatDescriptionExtension_Depth
: Pointer;
function kCMFormatDescriptionExtension_CleanAperture
: Pointer;
function kCMFormatDescriptionKey_CleanApertureWidth
: Pointer;
function kCMFormatDescriptionKey_CleanApertureHeight
: Pointer;
function kCMFormatDescriptionKey_CleanApertureHorizontalOffset
: Pointer;
function kCMFormatDescriptionKey_CleanApertureVerticalOffset
: Pointer;
function kCMFormatDescriptionKey_CleanApertureWidthRational
: Pointer;
function kCMFormatDescriptionKey_CleanApertureHeightRational
: Pointer;
function kCMFormatDescriptionKey_CleanApertureHorizontalOffsetRational
: Pointer;
function kCMFormatDescriptionKey_CleanApertureVerticalOffsetRational
: Pointer;
function kCMFormatDescriptionExtension_FieldCount
: Pointer;
function kCMFormatDescriptionExtension_FieldDetail
: Pointer;
function kCMFormatDescriptionFieldDetail_TemporalTopFirst
: Pointer;
function kCMFormatDescriptionFieldDetail_TemporalBottomFirst
: Pointer;
function kCMFormatDescriptionFieldDetail_SpatialFirstLineEarly
: Pointer;
function kCMFormatDescriptionFieldDetail_SpatialFirstLineLate
: Pointer;
function kCMFormatDescriptionExtension_PixelAspectRatio
: Pointer;
function kCMFormatDescriptionKey_PixelAspectRatioHorizontalSpacing
: Pointer;
function kCMFormatDescriptionKey_PixelAspectRatioVerticalSpacing
: Pointer;
function kCMFormatDescriptionExtension_ColorPrimaries
: Pointer;
function kCMFormatDescriptionColorPrimaries_ITU_R_709_2
: Pointer;
function kCMFormatDescriptionColorPrimaries_EBU_3213
: Pointer;
function kCMFormatDescriptionColorPrimaries_SMPTE_C
: Pointer;
function kCMFormatDescriptionColorPrimaries_DCI_P3
: Pointer;
function kCMFormatDescriptionColorPrimaries_P3_D65
: Pointer;
function kCMFormatDescriptionColorPrimaries_ITU_R_2020
: Pointer;
function kCMFormatDescriptionColorPrimaries_P22
: Pointer;
function kCMFormatDescriptionExtension_TransferFunction
: Pointer;
function kCMFormatDescriptionTransferFunction_ITU_R_709_2
: Pointer;
function kCMFormatDescriptionTransferFunction_SMPTE_240M_1995
: Pointer;
function kCMFormatDescriptionTransferFunction_UseGamma
: Pointer;
function kCMFormatDescriptionTransferFunction_ITU_R_2020
: Pointer;
function kCMFormatDescriptionExtension_GammaLevel
: Pointer;
function kCMFormatDescriptionExtension_YCbCrMatrix
: Pointer;
function kCMFormatDescriptionYCbCrMatrix_ITU_R_709_2
: Pointer;
function kCMFormatDescriptionYCbCrMatrix_ITU_R_601_4
: Pointer;
function kCMFormatDescriptionYCbCrMatrix_SMPTE_240M_1995
: Pointer;
function kCMFormatDescriptionYCbCrMatrix_ITU_R_2020
: Pointer;
function kCMFormatDescriptionExtension_FullRangeVideo
: Pointer;
function kCMFormatDescriptionExtension_ICCProfile
: Pointer;
function kCMFormatDescriptionExtension_BytesPerRow
: Pointer;
function kCMFormatDescriptionExtension_ChromaLocationTopField
: Pointer;
function kCMFormatDescriptionExtension_ChromaLocationBottomField
: Pointer;
function kCMFormatDescriptionChromaLocation_Left
: Pointer;
function kCMFormatDescriptionChromaLocation_Center
: Pointer;
function kCMFormatDescriptionChromaLocation_TopLeft
: Pointer;
function kCMFormatDescriptionChromaLocation_Top
: Pointer;
function kCMFormatDescriptionChromaLocation_BottomLeft
: Pointer;
function kCMFormatDescriptionChromaLocation_Bottom
: Pointer;
function kCMFormatDescriptionChromaLocation_DV420
: Pointer;
function kCMFormatDescriptionConformsToMPEG2VideoProfile
: Pointer;
function kCMFormatDescriptionExtension_TemporalQuality
: Pointer;
function kCMFormatDescriptionExtension_SpatialQuality
: Pointer;
function kCMFormatDescriptionExtension_VerbatimImageDescription
: Pointer;
function kCMFormatDescriptionExtension_Version
: Pointer;
function kCMFormatDescriptionExtension_RevisionLevel
: Pointer;
function kCMFormatDescriptionExtension_Vendor
: Pointer;
function kCMFormatDescriptionVendor_Apple
: Pointer;
function kCMTextFormatDescriptionExtension_DisplayFlags
: Pointer;
function kCMTextFormatDescriptionExtension_BackgroundColor
: Pointer;
function kCMTextFormatDescriptionColor_Red
: Pointer;
function kCMTextFormatDescriptionColor_Green
: Pointer;
function kCMTextFormatDescriptionColor_Blue
: Pointer;
function kCMTextFormatDescriptionColor_Alpha
: Pointer;
function kCMTextFormatDescriptionExtension_DefaultTextBox
: Pointer;
function kCMTextFormatDescriptionRect_Top
: Pointer;
function kCMTextFormatDescriptionRect_Left
: Pointer;
function kCMTextFormatDescriptionRect_Bottom
: Pointer;
function kCMTextFormatDescriptionRect_Right
: Pointer;
function kCMTextFormatDescriptionExtension_DefaultStyle
: Pointer;
function kCMTextFormatDescriptionStyle_StartChar
: Pointer;
function kCMTextFormatDescriptionStyle_Font
: Pointer;
function kCMTextFormatDescriptionStyle_FontFace
: Pointer;
function kCMTextFormatDescriptionStyle_ForegroundColor
: Pointer;
function kCMTextFormatDescriptionStyle_FontSize
: Pointer;
function kCMTextFormatDescriptionExtension_HorizontalJustification
: Pointer;
function kCMTextFormatDescriptionExtension_VerticalJustification
: Pointer;
function kCMTextFormatDescriptionStyle_EndChar
: Pointer;
function kCMTextFormatDescriptionExtension_FontTable
: Pointer;
function kCMTextFormatDescriptionExtension_TextJustification
: Pointer;
function kCMTextFormatDescriptionStyle_Height
: Pointer;
function kCMTextFormatDescriptionStyle_Ascent
: Pointer;
function kCMTextFormatDescriptionExtension_DefaultFontName
: Pointer;
function kCMTimeCodeFormatDescriptionExtension_SourceReferenceName
: Pointer;
function kCMTimeCodeFormatDescriptionKey_Value
: Pointer;
function kCMTimeCodeFormatDescriptionKey_LangCode
: Pointer;
function kCMFormatDescriptionExtensionKey_MetadataKeyTable
: Pointer;
function kCMMetadataFormatDescriptionKey_Namespace
: Pointer;
function kCMMetadataFormatDescriptionKey_Value
: Pointer;
function kCMMetadataFormatDescriptionKey_LocalID
: Pointer;
function kCMMetadataFormatDescriptionKey_DataType
: Pointer;
function kCMMetadataFormatDescriptionKey_DataTypeNamespace
: Pointer;
function kCMMetadataFormatDescriptionKey_ConformingDataTypes
: Pointer;
function kCMMetadataFormatDescriptionKey_LanguageTag
: Pointer;
function kCMMetadataFormatDescriptionKey_StructuralDependency
: Pointer;
function kCMMetadataFormatDescription_StructuralDependencyKey_DependencyIsInvalidFlag
: Pointer;
function kCMMetadataFormatDescriptionMetadataSpecificationKey_Identifier
: Pointer;
function kCMMetadataFormatDescriptionMetadataSpecificationKey_DataType
: Pointer;
function kCMMetadataFormatDescriptionMetadataSpecificationKey_ExtendedLanguageTag
: Pointer;
function kCMMetadataFormatDescriptionMetadataSpecificationKey_StructuralDependency
: Pointer;
function kCMImageDescriptionFlavor_QuickTimeMovie
: Pointer;
function kCMImageDescriptionFlavor_ISOFamily
: Pointer;
function kCMImageDescriptionFlavor_3GPFamily
: Pointer;
function kCMSoundDescriptionFlavor_QuickTimeMovie
: Pointer;
function kCMSoundDescriptionFlavor_QuickTimeMovieV2
: Pointer;
function kCMSoundDescriptionFlavor_ISOFamily
: Pointer;
function kCMSoundDescriptionFlavor_3GPFamily
: Pointer;
function kCMMemoryPoolOption_AgeOutPeriod
: Pointer;
function kCMMetadataKeySpace_QuickTimeUserData
: Pointer;
function kCMMetadataKeySpace_ISOUserData
: Pointer;
function kCMMetadataKeySpace_QuickTimeMetadata
: Pointer;
function kCMMetadataKeySpace_iTunes
: Pointer;
function kCMMetadataKeySpace_ID3
: Pointer;
function kCMMetadataKeySpace_Icy
: Pointer;
function kCMMetadataKeySpace_HLSDateRange
: Pointer;
function kCMMetadataIdentifier_QuickTimeMetadataLocation_ISO6709
: Pointer;
function kCMMetadataIdentifier_QuickTimeMetadataDirection_Facing
: Pointer;
function kCMMetadataIdentifier_QuickTimeMetadataPreferredAffineTransform
: Pointer;
function kCMMetadataIdentifier_QuickTimeMetadataVideoOrientation
: Pointer;
function kCMMetadataBaseDataType_RawData
: Pointer;
function kCMMetadataBaseDataType_UTF8
: Pointer;
function kCMMetadataBaseDataType_UTF16
: Pointer;
function kCMMetadataBaseDataType_GIF
: Pointer;
function kCMMetadataBaseDataType_JPEG
: Pointer;
function kCMMetadataBaseDataType_PNG
: Pointer;
function kCMMetadataBaseDataType_BMP
: Pointer;
function kCMMetadataBaseDataType_Float32
: Pointer;
function kCMMetadataBaseDataType_Float64
: Pointer;
function kCMMetadataBaseDataType_SInt8
: Pointer;
function kCMMetadataBaseDataType_SInt16
: Pointer;
function kCMMetadataBaseDataType_SInt32
: Pointer;
function kCMMetadataBaseDataType_SInt64
: Pointer;
function kCMMetadataBaseDataType_UInt8
: Pointer;
function kCMMetadataBaseDataType_UInt16
: Pointer;
function kCMMetadataBaseDataType_UInt32
: Pointer;
function kCMMetadataBaseDataType_UInt64
: Pointer;
function kCMMetadataBaseDataType_PointF32
: Pointer;
function kCMMetadataBaseDataType_DimensionsF32
: Pointer;
function kCMMetadataBaseDataType_RectF32
: Pointer;
function kCMMetadataBaseDataType_AffineTransformF64
: Pointer;
function kCMMetadataBaseDataType_PolygonF32
: Pointer;
function kCMMetadataBaseDataType_PolylineF32
: Pointer;
function kCMMetadataBaseDataType_JSON
: Pointer;
function kCMMetadataDataType_QuickTimeMetadataLocation_ISO6709
: Pointer;
function kCMMetadataDataType_QuickTimeMetadataDirection
: Pointer;
function kCMTimingInfoInvalid: Pointer;
function kCMSampleBufferNotification_DataBecameReady
: Pointer;
function kCMSampleBufferNotification_DataFailed
: Pointer;
function kCMSampleBufferNotificationParameter_OSStatus
: Pointer;
function kCMSampleBufferConduitNotification_InhibitOutputUntil
: Pointer;
function kCMSampleBufferConduitNotificationParameter_ResumeTag
: Pointer;
function kCMSampleBufferConduitNotification_ResetOutput
: Pointer;
function kCMSampleBufferConduitNotification_UpcomingOutputPTSRangeChanged
: Pointer;
function kCMSampleBufferConduitNotificationParameter_UpcomingOutputPTSRangeMayOverlapQueuedOutputPTSRange
: Pointer;
function kCMSampleBufferConduitNotificationParameter_MinUpcomingOutputPTS
: Pointer;
function kCMSampleBufferConduitNotificationParameter_MaxUpcomingOutputPTS
: Pointer;
function kCMSampleBufferConsumerNotification_BufferConsumed
: Pointer;
function kCMSampleAttachmentKey_NotSync
: Pointer;
function kCMSampleAttachmentKey_PartialSync
: Pointer;
function kCMSampleAttachmentKey_HasRedundantCoding
: Pointer;
function kCMSampleAttachmentKey_IsDependedOnByOthers
: Pointer;
function kCMSampleAttachmentKey_DependsOnOthers
: Pointer;
function kCMSampleAttachmentKey_EarlierDisplayTimesAllowed
: Pointer;
function kCMSampleAttachmentKey_DisplayImmediately
: Pointer;
function kCMSampleAttachmentKey_DoNotDisplay
: Pointer;
function kCMSampleBufferAttachmentKey_ResetDecoderBeforeDecoding
: Pointer;
function kCMSampleBufferAttachmentKey_DrainAfterDecoding
: Pointer;
function kCMSampleBufferAttachmentKey_PostNotificationWhenConsumed
: Pointer;
function kCMSampleBufferAttachmentKey_ResumeOutput
: Pointer;
function kCMSampleBufferAttachmentKey_TransitionID
: Pointer;
function kCMSampleBufferAttachmentKey_TrimDurationAtStart
: Pointer;
function kCMSampleBufferAttachmentKey_TrimDurationAtEnd
: Pointer;
function kCMSampleBufferAttachmentKey_SpeedMultiplier
: Pointer;
function kCMSampleBufferAttachmentKey_Reverse
: Pointer;
function kCMSampleBufferAttachmentKey_FillDiscontinuitiesWithSilence
: Pointer;
function kCMSampleBufferAttachmentKey_EmptyMedia
: Pointer;
function kCMSampleBufferAttachmentKey_PermanentEmptyMedia
: Pointer;
function kCMSampleBufferAttachmentKey_DisplayEmptyMediaImmediately
: Pointer;
function kCMSampleBufferAttachmentKey_EndsPreviousSampleDuration
: Pointer;
function kCMSampleBufferAttachmentKey_SampleReferenceURL
: Pointer;
function kCMSampleBufferAttachmentKey_SampleReferenceByteOffset
: Pointer;
function kCMSampleBufferAttachmentKey_GradualDecoderRefresh
: Pointer;
function kCMSampleBufferAttachmentKey_DroppedFrameReason
: Pointer;
function kCMSampleBufferDroppedFrameReason_FrameWasLate
: Pointer;
function kCMSampleBufferDroppedFrameReason_OutOfBuffers
: Pointer;
function kCMSampleBufferDroppedFrameReason_Discontinuity
: Pointer;
function kCMSampleBufferAttachmentKey_DroppedFrameReasonInfo
: Pointer;
function kCMSampleBufferDroppedFrameReasonInfo_CameraModeSwitch
: Pointer;
function kCMSampleBufferAttachmentKey_StillImageLensStabilizationInfo
: Pointer;
function kCMSampleBufferLensStabilizationInfo_Active
: Pointer;
function kCMSampleBufferLensStabilizationInfo_OutOfRange
: Pointer;
function kCMSampleBufferLensStabilizationInfo_Unavailable
: Pointer;
function kCMSampleBufferLensStabilizationInfo_Off
: Pointer;
function kCMSampleBufferAttachmentKey_ForceKeyFrame
: Pointer;
function kCMTextMarkupAttribute_ForegroundColorARGB
: Pointer;
function kCMTextMarkupAttribute_BackgroundColorARGB
: Pointer;
function kCMTextMarkupAttribute_CharacterBackgroundColorARGB
: Pointer;
function kCMTextMarkupAttribute_BoldStyle
: Pointer;
function kCMTextMarkupAttribute_ItalicStyle
: Pointer;
function kCMTextMarkupAttribute_UnderlineStyle
: Pointer;
function kCMTextMarkupAttribute_FontFamilyName
: Pointer;
function kCMTextMarkupAttribute_GenericFontFamilyName
: Pointer;
function kCMTextMarkupGenericFontName_Default
: Pointer;
function kCMTextMarkupGenericFontName_Serif
: Pointer;
function kCMTextMarkupGenericFontName_SansSerif
: Pointer;
function kCMTextMarkupGenericFontName_Monospace
: Pointer;
function kCMTextMarkupGenericFontName_ProportionalSerif
: Pointer;
function kCMTextMarkupGenericFontName_ProportionalSansSerif
: Pointer;
function kCMTextMarkupGenericFontName_MonospaceSerif
: Pointer;
function kCMTextMarkupGenericFontName_MonospaceSansSerif
: Pointer;
function kCMTextMarkupGenericFontName_Casual
: Pointer;
function kCMTextMarkupGenericFontName_Cursive
: Pointer;
function kCMTextMarkupGenericFontName_Fantasy
: Pointer;
function kCMTextMarkupGenericFontName_SmallCapital
: Pointer;
function kCMTextMarkupAttribute_BaseFontSizePercentageRelativeToVideoHeight
: Pointer;
function kCMTextMarkupAttribute_RelativeFontSize
: Pointer;
function kCMTextMarkupAttribute_VerticalLayout
: Pointer;
function kCMTextVerticalLayout_LeftToRight
: Pointer;
function kCMTextVerticalLayout_RightToLeft
: Pointer;
function kCMTextMarkupAttribute_Alignment
: Pointer;
function kCMTextMarkupAlignmentType_Start
: Pointer;
function kCMTextMarkupAlignmentType_Middle
: Pointer;
function kCMTextMarkupAlignmentType_End
: Pointer;
function kCMTextMarkupAlignmentType_Left
: Pointer;
function kCMTextMarkupAlignmentType_Right
: Pointer;
function kCMTextMarkupAttribute_TextPositionPercentageRelativeToWritingDirection
: Pointer;
function kCMTextMarkupAttribute_OrthogonalLinePositionPercentageRelativeToWritingDirection
: Pointer;
function kCMTextMarkupAttribute_WritingDirectionSizePercentage
: Pointer;
function kCMTextMarkupAttribute_CharacterEdgeStyle
: Pointer;
function kCMTextMarkupCharacterEdgeStyle_None
: Pointer;
function kCMTextMarkupCharacterEdgeStyle_Raised
: Pointer;
function kCMTextMarkupCharacterEdgeStyle_Depressed
: Pointer;
function kCMTextMarkupCharacterEdgeStyle_Uniform
: Pointer;
function kCMTextMarkupCharacterEdgeStyle_DropShadow
: Pointer;
function kCMTimeRangeZero: Pointer;
function kCMTimeRangeInvalid: Pointer;
function kCMTimeRangeStartKey: Pointer;
function kCMTimeRangeDurationKey
: Pointer;
function kCMTimeMappingInvalid: Pointer;
function kCMTimeMappingSourceKey
: Pointer;
function kCMTimeMappingTargetKey
: Pointer;
// ===== External functions =====
const
libCoreMedia =
'/System/Library/Frameworks/CoreMedia.framework/CoreMedia';
procedure CMSetAttachment
(target: CMAttachmentBearerRef;
key: CFStringRef; value: CFTypeRef;
attachmentMode: CMAttachmentMode);
cdecl; external libCoreMedia name _PU +
'CMSetAttachment';
function CMGetAttachment
(target: CMAttachmentBearerRef;
key: CFStringRef;
attachmentModeOut: PLongWord)
: CFTypeRef; cdecl;
external libCoreMedia name _PU +
'CMGetAttachment';
procedure CMRemoveAttachment