-
Notifications
You must be signed in to change notification settings - Fork 395
/
coremedia.yaml
849 lines (806 loc) · 28.2 KB
/
coremedia.yaml
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
package: org.robovm.apple.coremedia
include: [foundation.yaml, corefoundation.yaml, dispatch.yaml, coreaudio.yaml, coreanimation.yaml, coregraphics.yaml, corevideo.yaml, audiotoolbox.yaml]
library: CoreMedia
framework: CoreMedia
clang_args: ['-x', 'objective-c']
headers:
- /System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.h
- /System/Library/Frameworks/CoreMedia.framework/Headers/CMBase.h
typedefs:
CMTimeCodeFormatDescriptionRef: CMTimeCodeFormatDescription
CMAudioFormatDescriptionRef: CMAudioFormatDescription
CMVideoFormatDescriptionRef: CMVideoFormatDescription
CMTextFormatDescriptionRef: CMTextFormatDescription
OS_dispatch_source: DispatchSource
private_typedefs:
"__CFString *": String
"__CFString **": "NSString.NSStringPtr"
"__CFData *": NSData
"__CFURL *": NSURL
"__CFDictionary *": "NSDictionary<?, ?>"
"__CFArray *": "NSArray<?>"
enums:
# CMAttachmentMode: { first: kCMAttachmentMode_ShouldNotPropagate, prefix: kCMAttachmentMode_, marshaler: ValuedEnum.AsMachineSizedUIntMarshaler }
CMClockError: { first: kCMClockError_MissingRequiredParameter, prefix: kCMClockError_ }
CMTimebaseError: { first: kCMTimebaseError_MissingRequiredParameter, prefix: kCMTimebaseError_ }
CMSyncError: { first: kCMSyncError_MissingRequiredParameter, prefix: kCMSyncError_ }
CMBlockBufferError: { first: kCMBlockBufferNoErr, prefix: kCMBlockBuffer, suffix: Err }
CMBlockBufferFlag: { first: kCMBlockBufferAssureMemoryNowFlag, prefix: kCMBlockBuffer, suffix: Flag, bits: true, marshaler: Bits.AsMachineSizedIntMarshaler }
CMBufferQueueError: { first: kCMBufferQueueError_AllocationFailed, prefix: kCMBufferQueueError_ }
CMBufferQueueTriggerCondition: { first: kCMBufferQueueTrigger_WhenDurationBecomesLessThan, prefix: kCMBufferQueueTrigger_ }
CMFormatDescriptionError: { first: kCMFormatDescriptionError_InvalidParameter, prefix: kCMFormatDescriptionError_ }
CMMediaType: { first: kCMMediaType_Video, prefix: kCMMediaType_, marshaler: ValuedEnum.AsMachineSizedUIntMarshaler }
CMAudioCodecType: { first: kCMAudioCodecType_AAC_LCProtected, prefix: kCMAudioCodecType_, marshaler: ValuedEnum.AsMachineSizedUIntMarshaler }
CMAudioFormatDescriptionMask: { first: kCMAudioFormatDescriptionMask_StreamBasicDescription, prefix: kCMAudioFormatDescriptionMask_, bits: true, marshaler: Bits.AsMachineSizedIntMarshaler }
CMPixelFormatType: { first: kCMPixelFormat_32ARGB, prefix: kCMPixelFormat_, marshaler: ValuedEnum.AsMachineSizedUIntMarshaler }
CMVideoCodecType: { first: kCMVideoCodecType_422YpCbCr8, prefix: kCMVideoCodecType_, marshaler: ValuedEnum.AsMachineSizedUIntMarshaler }
CMMPEG2VideoProfile: { first: kCMMPEG2VideoProfile_HDV_720p30, prefix: kCMMPEG2VideoProfile_, marshaler: ValuedEnum.AsMachineSizedUIntMarshaler }
CMMuxedStreamType: { first: kCMMuxedStreamType_MPEG1System, prefix: kCMMuxedStreamType_, marshaler: ValuedEnum.AsMachineSizedUIntMarshaler }
CMClosedCaptionFormatType: { first: kCMClosedCaptionFormatType_CEA608, prefix: kCMClosedCaptionFormatType, marshaler: ValuedEnum.AsMachineSizedUIntMarshaler }
CMTextFormatType: { first: kCMTextFormatType_QTText, prefix: kCMTextFormatType_, marshaler: ValuedEnum.AsMachineSizedUIntMarshaler }
CMTextDisplayFlag: { first: kCMTextDisplayFlag_scrollIn, prefix: kCMTextDisplayFlag_, bits: true, marshaler: Bits.AsMachineSizedIntMarshaler }
CMTextJustification: { first: kCMTextJustification_left_top, prefix: kCMTextJustification_ }
CMSubtitleFormatType: { first: kCMSubtitleFormatType_3GText, prefix: kCMSubtitleFormatType_, marshaler: ValuedEnum.AsMachineSizedUIntMarshaler }
CMTimeCodeFormatType: { first: kCMTimeCodeFormatType_TimeCode32, prefix: kCMTimeCodeFormatType_, marshaler: ValuedEnum.AsMachineSizedUIntMarshaler }
CMTimeCodeFlag: { first: kCMTimeCodeFlag_DropFrame, prefix: kCMTimeCodeFlag_, bits: true, marshaler: Bits.AsMachineSizedIntMarshaler }
CMMetadataFormatType: { first: kCMMetadataFormatType_ICY, prefix: kCMMetadataFormatType_, marshaler: ValuedEnum.AsMachineSizedUIntMarshaler }
CMSampleBufferError: { first: kCMSampleBufferError_AllocationFailed, prefix: kCMSampleBufferError_ }
CMSampleBufferFlag: { first: kCMSampleBufferFlag_AudioBufferList_Assure16ByteAlignment, prefix: kCMSampleBufferFlag_, bits: true, marshaler: Bits.AsMachineSizedIntMarshaler }
CMSimpleQueueError: { first: kCMSimpleQueueError_AllocationFailed, prefix: kCMSimpleQueueError_ }
CMTimeFlags: { first: kCMTimeFlags_Valid, prefix: kCMTimeFlags_, bits: true, marshaler: Bits.AsMachineSizedIntMarshaler }
CMTimeRoundingMethod: { first: kCMTimeRoundingMethod_RoundHalfAwayFromZero, prefix: kCMTimeRoundingMethod_, marshaler: ValuedEnum.AsMachineSizedUIntMarshaler }
classes:
CoreMedia:
annotations: ['@Marshaler(NSString.AsStringMarshaler.class)']
# Opaque Types
#CMAttachmentBearer:
# extends: CFType
#CMAttachmentBearerRef:
# name: "CMAttachmentBearer"
# extends: CFType
CMBlockBuffer:
extends: CFType
OpaqueCMBlockBuffer:
name: "CMBlockBuffer"
extends: CFType
CMBufferQueue:
extends: CFType
opaqueCMBufferQueue:
name: "CMBufferQueue"
extends: CFType
CMClockOrTimebase:
extends: CFType
CMClock:
extends: CMClockOrTimebase
OpaqueCMClock:
name: "CMClock"
extends: CMClockOrTimebase
CMFormatDescription:
extends: CFType
opaqueCMFormatDescription:
name: "CMFormatDescription"
extends: CFType
CMAudioFormatDescription:
extends: CMFormatDescription
add_ptr: true
CMClosedCaptionFormatDescription:
extends: CMFormatDescription
add_ptr: true
CMMetadataFormatDescription:
extends: CMFormatDescription
add_ptr: true
CMMuxedFormatDescription:
extends: CMFormatDescription
add_ptr: true
CMTextFormatDescription:
extends: CMFormatDescription
add_ptr: true
CMTimeCodeFormatDescription:
extends: CMFormatDescription
add_ptr: true
CMVideoFormatDescription:
extends: CMFormatDescription
add_ptr: true
CMSampleBuffer:
extends: CFType
implements: CMBuffer
opaqueCMSampleBuffer:
name: "CMSampleBuffer"
extends: CFType
implements: CMBuffer
CMTime:
extends: CFType
CMTimebase:
extends: CMClockOrTimebase
OpaqueCMTimebase:
name: "CMTimebase"
extends: CMClockOrTimebase
CMTimeRange:
extends: CFType
CMMemoryPool:
extends: CFType
OpaqueCMMemoryPool:
name: "CMMemoryPool"
extends: CFType
CMSimpleQueue:
extends: CFType
opaqueCMSimpleQueue:
name: "CMSimpleQueue"
extends: CFType
# Structs
CMBlockBufferCustomBlockSource: {}
CMBufferCallbacks:
name: "CMBufferCallbacksStruct"
refcon:
type: "@Pointer long"
visibility: ""
CMBufferQueueTriggerToken: {}
opaqueCMBufferQueueTriggerToken:
name: "CMBufferQueueTriggerToken"
CMVideoDimensions: {}
CMSampleTimingInfo: {}
CMTime:
add_ptr: true
CMTimeRange: {}
CMTimeMapping: {}
protocols: {}
functions:
(CM.*)GetTypeID:
class: "#{g[0]}"
name: getClassTypeID
# CMAttachment
#CMCopyDictionaryOfAttachments:
# class: CMAttachmentBearer
# name: "copyDictionaryOfAttachments"
# visibility: protected
#CMGetAttachment:
# class: CMAttachmentBearer
# name: "getAttachment"
# visibility: protected
#CMSetAttachments:
# class: CMAttachmentBearer
# name: "setAttachment"
CM(.*Attachment.?):
exclude: true
# class: CMAttachmentBearer
# name: "#{g[0]}"
# CMClock
CMClock(GetHostTimeClock):
class: CMClock
name: "#{g[0]}"
CMClock(ConvertHostTimeToSystemUnits):
class: CMClock
name: "#{g[0]}"
CMClockMakeHostTimeFromSystemUnits:
class: CMClock
name: "createHostTimeFromSystemUnits"
CMClock(GetAnchorTime):
class: CMClock
name: "#{g[0]}"
visibility: protected
parameters:
outClockTime:
type: "CMTime.CMTimePtr"
outReferenceClockTime:
type: "CMTime.CMTimePtr"
CMClock(.*):
class: CMClock
name: "#{g[0]}"
# CMAudioClock
CMAudioClockCreate:
class: CMClock
name: "createAudioClock"
visibility: protected
# CMTimebase
CMTimebaseCreateWithMasterClock:
class: CMTimebase
name: "create"
visibility: protected
CMTimebaseCreateWithMasterTimebase:
class: CMTimebase
name: "create"
visibility: protected
CMTimebase(GetTime)WithTimeScale:
class: CMTimebase
name: "#{g[0]}"
CMTimebaseGetTimeAndRate:
exclude: true
CMTimebase(GetMaster):
class: CMTimebase
name: "#{g[0]}"
return_type: "CMTimebase"
CMTimebase(Get.*):
class: CMTimebase
name: "#{g[0]}"
CMTimebase(.*):
class: CMTimebase
name: "#{g[0]}"
return_type: CMTimebaseError
# CMSync
CMSync(GetRelativeRateAndAnchorTime):
class: CMClockOrTimebase
name: "#{g[0]}"
visibility: protected
parameters:
ofClockOrTimebase:
type: "CMClockOrTimebase"
relativeToClockOrTimebase:
type: "CMClockOrTimebase"
outOfClockOrTimebaseAnchorTime:
type: "CMTime.CMTimePtr"
outRelativeToClockOrTimebaseAnchorTime:
type: "CMTime.CMTimePtr"
CMSync(GetTime):
class: CMClockOrTimebase
name: "#{g[0]}"
parameters:
clockOrTimebase:
type: "CMClockOrTimebase"
CMSync(MightDrift):
class: CMClockOrTimebase
name: "#{g[0]}"
parameters:
clockOrTimebase1:
type: "CMClockOrTimebase"
clockOrTimebase2:
type: "CMClockOrTimebase"
CMSync(GetRelativeRate):
class: CMClockOrTimebase
name: "#{g[0]}"
parameters:
ofClockOrTimebase:
type: "CMClockOrTimebase"
relativeToClockOrTimebase:
type: "CMClockOrTimebase"
CMSync(ConvertTime):
class: CMClockOrTimebase
name: "#{g[0]}"
parameters:
fromClockOrTimebase:
type: "CMClockOrTimebase"
toClockOrTimebase:
type: "CMClockOrTimebase"
visibility: protected
CMSync(.*):
class: CMClockOrTimebase
name: "#{g[0]}"
# CMBlockBuffer
CMBlockBufferCreate.*:
class: CMBlockBuffer
name: "create"
visibility: protected
CMBlockBuffer(ReplaceDataBytes):
class: CMBlockBuffer
name: "#{g[0]}"
static: true
visibility: protected
return_type: CMBlockBufferError
CMBlockBuffer(FillDataBytes):
class: CMBlockBuffer
name: "#{g[0]}"
static: true
visibility: protected
return_type: CMBlockBufferError
CMBlockBuffer(GetDataPointer):
class: CMBlockBuffer
name: "#{g[0]}"
visibility: protected
return_type: CMBlockBufferError
CMBlockBuffer(Get.*):
class: CMBlockBuffer
name: "#{g[0]}"
CMBlockBuffer(Is.*):
class: CMBlockBuffer
name: "#{g[0]}"
CMBlockBuffer(.*):
class: CMBlockBuffer
name: "#{g[0]}"
return_type: CMBlockBufferError
# CMBufferQueue
CMBufferQueue(GetCallbacks.*):
class: CMBufferQueue
name: "#{g[0]}"
exclude: true
CMBufferQueueCreate:
class: CMBufferQueue
name: "create"
visibility: protected
return_type: CMBufferQueueError
CMBufferQueue(Enqueue|MarkEndOfData|Reset|RemoveTrigger):
class: CMBufferQueue
name: "#{g[0]}"
return_type: CMBufferQueueError
CMBufferQueue(Reset)WithCallback:
class: CMBufferQueue
name: "#{g[0]}"
return_type: CMBufferQueueError
visibility: protected
parameters:
refcon:
type: "@Pointer long"
CMBufferQueue(InstallTrigger).*:
class: CMBufferQueue
name: "#{g[0]}"
return_type: CMBufferQueueError
visibility: protected
parameters:
triggerRefcon:
type: "@Pointer long"
CMBufferQueue(CallForEachBuffer):
class: CMBufferQueue
name: "#{g[0]}"
return_type: CMBufferQueueError
visibility: protected
parameters:
refcon:
type: "@Pointer long"
CMBufferQueue(SetValidationCallback):
class: CMBufferQueue
name: "#{g[0]}"
return_type: CMBufferQueueError
visibility: protected
parameters:
validationRefCon:
type: "@Pointer long"
CMBufferQueue(.*):
class: CMBufferQueue
name: "#{g[0]}"
# CMFormatDescription
CMFormatDescriptionCreate:
class: CMFormatDescription
name: "create"
visibility: protected
parameters:
extensions:
type: "NSDictionary<NSString, ?>"
CMFormatDescription(GetExtensions):
class: CMFormatDescription
name: "#{g[0]}"
return_type: "NSDictionary<NSString, ?>"
CMFormatDescriptionEqual.*:
class: CMFormatDescription
name: "equals"
CMFormatDescription(.*):
class: CMFormatDescription
name: "#{g[0]}"
# CMAudioFormatDescription
CMAudioFormatDescriptionCreate:
class: CMAudioFormatDescription
name: "create"
visibility: protected
parameters:
extensions:
type: "NSDictionary<NSString, ?>"
CMAudioFormatDescription(CreateSummary):
class: CMAudioFormatDescription
name: "#{g[0]}"
visibility: protected
CMAudioFormatDescription(GetChannelLayout|GetFormatList|GetMagicCookie):
class: CMAudioFormatDescription
name: "#{g[0]}"
visibility: protected
CMAudioFormatDescriptionEqual:
class: CMAudioFormatDescription
name: "equals"
visibility: protected
CMAudioFormatDescription(.*):
class: CMAudioFormatDescription
name: "#{g[0]}"
# CMVideoFormatDescription
CMVideoFormatDescriptionCreate.*:
class: CMVideoFormatDescription
name: "create"
visibility: protected
parameters:
extensions:
type: "NSDictionary<NSString, ?>"
CMVideoFormatDescription(GetH264ParameterSetAtIndex):
class: CMVideoFormatDescription
name: "#{g[0]}"
visibility: protected
CMVideoFormatDescription(.*):
class: CMVideoFormatDescription
name: "#{g[0]}"
# CMMuxedFormatDescription
CMMuxedFormatDescriptionCreate:
class: CMMuxedFormatDescription
name: "create"
visibility: protected
parameters:
extensions:
type: "NSDictionary<NSString, ?>"
# CMTextFormatDescription
CMTextFormatDescription(GetDefaultTextBox):
class: CMTextFormatDescription
name: "#{g[0]}"
visibility: protected
parameters:
desc:
type: "CMTextFormatDescription"
outDefaultTextBox:
type: "CGRect.CGRectPtr"
CMTextFormatDescription(GetFontName):
class: CMTextFormatDescription
name: "#{g[0]}"
visibility: protected
parameters:
desc:
type: "CMTextFormatDescription"
outFontName:
type: "CFString.CFStringPtr"
CMTextFormatDescription(Get.*):
class: CMTextFormatDescription
name: "#{g[0]}"
visibility: protected
parameters:
desc:
type: "CMTextFormatDescription"
CMTextFormatDescription(.*):
class: CMTextFormatDescription
name: "#{g[0]}"
# CMTimeCodeFormatDescription
CMTimeCodeFormatDescriptionCreate:
class: CMTimeCodeFormatDescription
name: "create"
visibility: protected
parameters:
extensions:
type: "NSDictionary<NSString, ?>"
CMTimeCodeFormatDescription(GetTimeCodeFlags):
class: CMTimeCodeFormatDescription
name: "#{g[0]}"
return_type: CMTimeCodeFlag
CMTimeCodeFormatDescription(.*):
class: CMTimeCodeFormatDescription
name: "#{g[0]}"
# CMMetadataFormatDescription
CMMetadataFormatDescriptionCreateWithKeys:
class: CMMetadataFormatDescription
name: "create"
visibility: protected
CMMetadataFormatDescription(.*):
class: CMMetadataFormatDescription
name: "#{g[0]}"
# CMMemoryPool
CMMemoryPool(.*):
class: CMMemoryPool
name: "#{g[0]}"
# CMSampleBuffer
CMSampleBuffer(Create.*):
class: CMSampleBuffer
name: "#{g[0]}"
visibility: protected
parameters:
makeDataReadyRefcon:
type: "@Pointer long"
return_type: CMSampleBufferError
CMAudioSampleBufferCreateWithPacketDescriptions:
class: CMSampleBuffer
name: "createAudioSampleBuffer"
visibility: protected
parameters:
makeDataReadyRefcon:
type: "@Pointer long"
return_type: CMSampleBufferError
CMSampleBuffer(CopySampleBuffer)ForRange:
class: CMSampleBuffer
name: "#{g[0]}"
visibility: protected
return_type: CMSampleBufferError
CMSampleBuffer(SetDataBuffer)FromAudioBufferList:
class: CMSampleBuffer
name: "#{g[0]}"
visibility: protected
return_type: CMSampleBufferError
parameters:
flags:
type: "CMSampleBufferFlag"
CMSampleBuffer(GetAudioBufferList)WithRetainedBlockBuffer:
class: CMSampleBuffer
name: "#{g[0]}"
visibility: protected
return_type: CMSampleBufferError
parameters:
flags:
type: "CMSampleBufferFlag"
CMSampleBuffer(GetAudioStreamPacketDescriptions):
class: CMSampleBuffer
name: "#{g[0]}"
visibility: protected
return_type: CMSampleBufferError
CMSampleBufferDataIsReady:
class: CMSampleBuffer
name: "isDataReady"
CMSampleBufferGetAudioStreamPacketDescriptionsPtr:
exclude: true
CMSampleBuffer(CopyPCMDataIntoAudioBufferList|SetDataReady|MakeDataReady|TrackDataReadiness|Invalidate|SetOutputPresentationTimeStamp):
class: CMSampleBuffer
name: "#{g[0]}"
return_type: CMSampleBufferError
CMSampleBuffer(SetInvalidateCallback):
class: CMSampleBuffer
name: "#{g[0]}"
return_type: CMSampleBufferError
visibility: protected
CMSampleBuffer(GetSampleTimingInfoArray|GetOutputSampleTimingInfoArray|GetSampleTimingInfo|GetSampleSizeArray): # TODO wrap
class: CMSampleBuffer
name: "#{g[0]}"
visibility: protected
return_type: CMSampleBufferError
CMSampleBuffer(CallForEachSample):
class: CMSampleBuffer
name: "#{g[0]}"
visibility: protected
return_type: CMSampleBufferError
parameters:
refcon:
type: "@Pointer long"
CMSampleBuffer(.*):
class: CMSampleBuffer
name: "#{g[0]}"
# CMSimpleQueue
CMSimpleQueueCreate:
class: CMSimpleQueue
name: "create"
visibility: protected
CMSimpleQueue(Enqueue):
class: CMSimpleQueue
name: "#{g[0]}"
return_type: CMSimpleQueueError
CMSimpleQueue(.*):
class: CMSimpleQueue
name: "#{g[0]}"
# CMTimeRange
CMTimeRangeMake.*:
class: CMTimeRange
name: "create"
CMTimeRangeGetUnion:
class: CMTimeRange
name: "union"
CMTimeRangeGetIntersection:
class: CMTimeRange
name: "intersection"
CMTimeRangeEqual:
class: CMTimeRange
name: "equals"
CMTimeRange(.*):
class: CMTimeRange
name: "#{g[0]}"
# CMTime
CMTimeMake.*:
class: CMTime
name: "create"
CMTime(CopyDescription):
class: CMTime
name: "#{g[0]}"
visibility: protected
CMTimeShow:
class: CMTime
name: "print"
CMTime(.*):
class: CMTime
name: "#{g[0]}"
# Make sure we don't miss any functions if new ones are introduced in a later version
(k?CM.*):
class: CoreMedia
name: 'Function__#{g[0]}'
values: # TODO converts keys, notifications... Strings to NSStrings/CFStrings??
# kCMTimebaseNotificationKey_(.*):
# class: CMTimebase
# name: "NotificationKey#{g[0]}"
# kCMTimebaseNotification_(.*):
# class: CMTimebase
# name: "Notification#{g[0]}"
# kCMTimebase(.*):
# class: CMTimebase
# name: "#{g[0]}"
#
# kCMTime(.*):
# class: CMTime
# name: "#{g[0]}"
#
# kCMTimeRange(.*):
# class: CMTimeRange
# name: "#{g[0]}"
#
# kCMFormatDescriptionExtension_(.*):
# class: CMFormatDescription
# name: "Extension#{g[0]}"
# kCMFormatDescriptionKey_(.*):
# class: CMFormatDescription
# name: "Key#{g[0]}"
# kCMFormatDescriptionColorPrimaries_(.*):
# class: CMFormatDescription
# name: "ColorPrimaries#{g[0]}"
# kCMFormatDescriptionVendor_(.*):
# class: CMFormatDescription
# name: "Vendor#{g[0]}"
# kCMFormatDescriptionExtensionKey_(.*):
# class: CMFormatDescription
# name: "ExtensionKey#{g[0]}"
#
# kCMTextFormatDescriptionExtension_(.*):
# class: CMTextFormatDescription
# name: "Extension#{g[0]}"
# kCMTextFormatDescriptionRect_(.*):
# class: CMTextFormatDescription
# name: "Rect#{g[0]}"
# kCMTextFormatDescriptionStyle_(.*):
# class: CMTextFormatDescription
# name: "Style#{g[0]}"
# kCMTextFormatDescriptionColor_(.*):
# class: CMTextFormatDescription
# name: "Color#{g[0]}"
#
# kCMMetadataFormatDescriptionKey_(.*):
# class: CMMetadataFormatDescription
# name: "Key#{g[0]}"
# kCMFormatDescription(.*):
# class: CMMetadataFormatDescription
# name: "#{g[0]}"
#
# kCM(TimingInfoInvalid):
# class: CMSampleTimingInfo
# name: "#{g[0]}"
#
# kCMSampleBufferNotification_(.*):
# class: CMSampleBuffer
# name: "Notification#{g[0]}"
# kCMSampleBufferConduitNotification_(.*):
# class: CMSampleBuffer
# name: "ConduitNotification#{g[0]}"
# kCMSampleBufferConduitNotificationParameter_(.*):
# class: CMSampleBuffer
# name: "ConduitNotificationParameter#{g[0]}"
# kCMSampleBufferConsumerNotification_(.*):
# class: CMSampleBuffer
# name: "ConsumerNotification#{g[0]}"
# kCMSampleAttachmentKey_(.*):
# class: CMSampleBuffer
# name: "SampleAttachmentKey#{g[0]}"
# kCMSampleBufferAttachmentKey_(.*):
# class: CMSampleBuffer
# name: "SampleBufferAttachmentKey#{g[0]}"
# kCMSampleBufferDroppedFrameReason_(.*):
# class: CMSampleBuffer
# name: "DroppedFrameReason#{g[0]}"
# kCMSampleBufferDroppedFrameReasonInfo_(.*):
# class: CMSampleBuffer
# name: "DroppedFrameReasonInfo#{g[0]}"
#
# kCMMemoryPoolOption_(.*):
# class: CMMemoryPool
# name: "Option#{g[0]}"
#
# kCMTextMarkupAttribute_(.*):
# class: CMTextMarkup
# name: "Attribute#{g[0]}"
# kCMTextMarkupGenericFontName_(.*):
# class: CMTextMarkup
# name: "GenericFontName#{g[0]}"
# kCMTextVerticalLayout_(.*):
# class: CMTextMarkup
# name: "VerticalLayout#{g[0]}"
# kCMTextMarkupAlignmentType_(.*):
# class: CMTextMarkup
# name: "AlignmentType#{g[0]}"
# kCMTextMarkupCharacterEdgeStyle_(.*):
# class: CMTextMarkup
# name: "CharacterEdgeStyle#{g[0]}"
# CMMetadata
kCMMetadata.*DataType_(.*):
class: CMMetadataDataType
name: '#{g[0]}Value'
type: CFString
visibility: protected
kCMTimebaseNotificationKey_(.*):
class: CoreMedia
name: "CMTimebaseNotificationKey#{g[0]}"
kCMTimebaseNotification_(.*):
class: CoreMedia
name: "CMTimebaseNotification#{g[0]}"
kCMTimebase(.*):
class: CoreMedia
name: "CMTimebase#{g[0]}"
kCMTime(.*):
class: CoreMedia
name: "CMTime#{g[0]}"
kCMTimeRange(.*):
class: CoreMedia
name: "CMTimeRange#{g[0]}"
kCMFormatDescriptionExtension_(.*):
class: CoreMedia
name: "CMFormatDescriptionExtension#{g[0]}"
kCMFormatDescriptionKey_(.*):
class: CoreMedia
name: "CMFormatDescriptionKey#{g[0]}"
kCMFormatDescriptionColorPrimaries_(.*):
class: CoreMedia
name: "CMFormatDescriptionColorPrimaries#{g[0]}"
kCMFormatDescriptionVendor_(.*):
class: CoreMedia
name: "CMFormatDescriptionVendor#{g[0]}"
kCMFormatDescriptionExtensionKey_(.*):
class: CoreMedia
name: "CMFormatDescriptionExtensionKey#{g[0]}"
kCMTextFormatDescriptionExtension_(.*):
class: CoreMedia
name: "CMTextFormatDescriptionExtension#{g[0]}"
kCMTextFormatDescriptionRect_(.*):
class: CoreMedia
name: "CMTextFormatDescriptionRect#{g[0]}"
kCMTextFormatDescriptionStyle_(.*):
class: CoreMedia
name: "CMTextFormatDescriptionStyle#{g[0]}"
kCMTextFormatDescriptionColor_(.*):
class: CoreMedia
name: "CMTextFormatDescriptionColor#{g[0]}"
kCMMetadataFormatDescriptionKey_(.*):
class: CoreMedia
name: "CMMetadataFormatDescriptionKey#{g[0]}"
kCMFormatDescription(.*):
class: CoreMedia
name: "CMMetadataFormatDescription#{g[0]}"
kCM(TimingInfoInvalid):
class: CoreMedia
name: "CMSampleTimingInfo#{g[0]}"
kCMSampleBufferNotification_(.*):
class: CoreMedia
name: "CMSampleBufferNotification#{g[0]}"
kCMSampleBufferConduitNotification_(.*):
class: CoreMedia
name: "CMSampleBufferConduitNotification#{g[0]}"
kCMSampleBufferConduitNotificationParameter_(.*):
class: CoreMedia
name: "CMSampleBufferConduitNotificationParameter#{g[0]}"
kCMSampleBufferConsumerNotification_(.*):
class: CoreMedia
name: "CMSampleBufferConsumerNotification#{g[0]}"
kCMSampleAttachmentKey_(.*):
class: CoreMedia
name: "CMSampleBufferSampleAttachmentKey#{g[0]}"
kCMSampleBufferAttachmentKey_(.*):
class: CoreMedia
name: "CMSampleBufferSampleBufferAttachmentKey#{g[0]}"
kCMSampleBufferDroppedFrameReason_(.*):
class: CoreMedia
name: "CMSampleBufferDroppedFrameReason#{g[0]}"
kCMSampleBufferDroppedFrameReasonInfo_(.*):
class: CoreMedia
name: "CMSampleBufferDroppedFrameReasonInfo#{g[0]}"
kCMMemoryPoolOption_(.*):
class: CoreMedia
name: "CMMemoryPoolOption#{g[0]}"
kCMTextMarkupAttribute_(.*):
class: CoreMedia
name: "CMTextMarkupAttribute#{g[0]}"
kCMTextMarkupGenericFontName_(.*):
class: CoreMedia
name: "CMTextMarkupGenericFontName#{g[0]}"
kCMTextVerticalLayout_(.*):
class: CoreMedia
name: "CMTextMarkupVerticalLayout#{g[0]}"
kCMTextMarkupAlignmentType_(.*):
class: CoreMedia
name: "CMTextMarkupAlignmentType#{g[0]}"
kCMTextMarkupCharacterEdgeStyle_(.*):
class: CoreMedia
name: "CMTextMarkupCharacterEdgeStyle#{g[0]}"
# Make sure we don't miss any values if new ones are introduced in a later version
(k?CM.*):
class: CoreMedia
name: 'Value__#{g[0]}'
constants:
kCMTime(MaxTimescale):
class: CMTime
name: "#{g[0]}"
kCMBlockBuffer(CustomBlockSourceVersion):
class: CMBlockBuffer
name: "#{g[0]}"
kCMPersistentTrackID_Invalid:
class: CoreMedia
name: "PersistentTrackIDInvalid"
# Make sure we don't miss any constants if new ones are introduced in a later version
(k?CM.*):
class: CoreMedia
name: 'Constant__#{g[0]}'