coremedia

package
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package coremedia provides purego-based Go bindings for the macOS CoreMedia framework.

Apple documentation: https://developer.apple.com/documentation/coremedia

Index

Constants

View Source
const (
	KCMAttachmentMode_ShouldNotPropagate = 0
	KCMAttachmentMode_ShouldPropagate    = 1
)
View Source
const (
	KCMAudioCodecType_AAC_AudibleProtected = 1633771875
	KCMAudioCodecType_AAC_LCProtected      = 1885430115
)
View Source
const (
	KCMAudioFormatDescriptionMask_All                    = 15
	KCMAudioFormatDescriptionMask_ChannelLayout          = 4
	KCMAudioFormatDescriptionMask_Extensions             = 8
	KCMAudioFormatDescriptionMask_MagicCookie            = 2
	KCMAudioFormatDescriptionMask_StreamBasicDescription = 1
)
View Source
const (
	KCMBlockBufferAlwaysCopyDataFlag       = 2
	KCMBlockBufferAssureMemoryNowFlag      = 1
	KCMBlockBufferDontOptimizeDepthFlag    = 4
	KCMBlockBufferPermitEmptyReferenceFlag = 8
)
View Source
const (
	KCMBlockBufferBadCustomBlockSourceErr      = -12702
	KCMBlockBufferBadLengthParameterErr        = -12704
	KCMBlockBufferBadOffsetParameterErr        = -12703
	KCMBlockBufferBadPointerParameterErr       = -12705
	KCMBlockBufferBlockAllocationFailedErr     = -12701
	KCMBlockBufferEmptyBBufErr                 = -12706
	KCMBlockBufferInsufficientSpaceErr         = -12708
	KCMBlockBufferNoErr                        = 0
	KCMBlockBufferStructureAllocationFailedErr = -12700
	KCMBlockBufferUnallocatedBlockErr          = -12707
)
View Source
const (
	KCMBufferQueueError_AllocationFailed                     = -12760
	KCMBufferQueueError_BadTriggerDuration                   = -12765
	KCMBufferQueueError_CannotModifyQueueFromTriggerCallback = -12766
	KCMBufferQueueError_EnqueueAfterEndOfData                = -12763
	KCMBufferQueueError_InvalidBuffer                        = -12769
	KCMBufferQueueError_InvalidCMBufferCallbacksStruct       = -12762
	KCMBufferQueueError_InvalidTriggerCondition              = -12767
	KCMBufferQueueError_InvalidTriggerToken                  = -12768
	KCMBufferQueueError_QueueIsFull                          = -12764
	KCMBufferQueueError_RequiredParameterMissing             = -12761
)
View Source
const (
	KCMBufferQueueTrigger_WhenBufferCountBecomesGreaterThan                                       = 11
	KCMBufferQueueTrigger_WhenBufferCountBecomesLessThan                                          = 10
	KCMBufferQueueTrigger_WhenDataBecomesReady                                                    = 7
	KCMBufferQueueTrigger_WhenDurationBecomesGreaterThan                                          = 3
	KCMBufferQueueTrigger_WhenDurationBecomesGreaterThanOrEqualTo                                 = 4
	KCMBufferQueueTrigger_WhenDurationBecomesGreaterThanOrEqualToAndBufferCountBecomesGreaterThan = 12
	KCMBufferQueueTrigger_WhenDurationBecomesLessThan                                             = 1
	KCMBufferQueueTrigger_WhenDurationBecomesLessThanOrEqualTo                                    = 2
	KCMBufferQueueTrigger_WhenEndOfDataReached                                                    = 8
	KCMBufferQueueTrigger_WhenMaxPresentationTimeStampChanges                                     = 6
	KCMBufferQueueTrigger_WhenMinPresentationTimeStampChanges                                     = 5
	KCMBufferQueueTrigger_WhenReset                                                               = 9
)
View Source
const (
	KCMClockError_AllocationFailed         = -12747
	KCMClockError_InvalidParameter         = -12746
	KCMClockError_MissingRequiredParameter = -12745
	KCMClockError_UnsupportedOperation     = -12756
)
View Source
const (
	KCMClosedCaptionFormatType_ATSC   = 1635017571
	KCMClosedCaptionFormatType_CEA608 = 1664495672
	KCMClosedCaptionFormatType_CEA708 = 1664561208
)
View Source
const (
	KCMFormatDescriptionBridgeError_AllocationFailed                   = -12713
	KCMFormatDescriptionBridgeError_IncompatibleFormatDescription      = -12716
	KCMFormatDescriptionBridgeError_InvalidFormatDescription           = -12715
	KCMFormatDescriptionBridgeError_InvalidParameter                   = -12712
	KCMFormatDescriptionBridgeError_InvalidSerializedSampleDescription = -12714
	KCMFormatDescriptionBridgeError_InvalidSlice                       = -12719
	KCMFormatDescriptionBridgeError_UnsupportedSampleDescriptionFlavor = -12717
)
View Source
const (
	KCMFormatDescriptionError_AllocationFailed  = -12711
	KCMFormatDescriptionError_InvalidParameter  = -12710
	KCMFormatDescriptionError_ValueNotAvailable = -12718
)
View Source
const (
	KCMMPEG2VideoProfile_HDV_1080i50               = 1751414323
	KCMMPEG2VideoProfile_HDV_1080i60               = 1751414322
	KCMMPEG2VideoProfile_HDV_1080p24               = 1751414326
	KCMMPEG2VideoProfile_HDV_1080p25               = 1751414327
	KCMMPEG2VideoProfile_HDV_1080p30               = 1751414328
	KCMMPEG2VideoProfile_HDV_720p24                = 1751414324
	KCMMPEG2VideoProfile_HDV_720p25                = 1751414325
	KCMMPEG2VideoProfile_HDV_720p30                = 1751414321
	KCMMPEG2VideoProfile_HDV_720p50                = 1751414369
	KCMMPEG2VideoProfile_HDV_720p60                = 1751414329
	KCMMPEG2VideoProfile_XDCAM_EX_1080i50_VBR35    = 2019849827
	KCMMPEG2VideoProfile_XDCAM_EX_1080i60_VBR35    = 2019849826
	KCMMPEG2VideoProfile_XDCAM_EX_1080p24_VBR35    = 2019849828
	KCMMPEG2VideoProfile_XDCAM_EX_1080p25_VBR35    = 2019849829
	KCMMPEG2VideoProfile_XDCAM_EX_1080p30_VBR35    = 2019849830
	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_HD422_1080i50_CBR50 = 2019833187
	KCMMPEG2VideoProfile_XDCAM_HD422_1080i60_CBR50 = 2019833186
	KCMMPEG2VideoProfile_XDCAM_HD422_1080p24_CBR50 = 2019833188
	KCMMPEG2VideoProfile_XDCAM_HD422_1080p25_CBR50 = 2019833189
	KCMMPEG2VideoProfile_XDCAM_HD422_1080p30_CBR50 = 2019833190
	KCMMPEG2VideoProfile_XDCAM_HD422_540p          = 2019846194
	KCMMPEG2VideoProfile_XDCAM_HD422_720p24_CBR50  = 2019833140
	KCMMPEG2VideoProfile_XDCAM_HD422_720p25_CBR50  = 2019833141
	KCMMPEG2VideoProfile_XDCAM_HD422_720p30_CBR50  = 2019833137
	KCMMPEG2VideoProfile_XDCAM_HD422_720p50_CBR50  = 2019833185
	KCMMPEG2VideoProfile_XDCAM_HD422_720p60_CBR50  = 2019833145
	KCMMPEG2VideoProfile_XDCAM_HD_1080i50_VBR35    = 2019849779
	KCMMPEG2VideoProfile_XDCAM_HD_1080i60_VBR35    = 2019849778
	KCMMPEG2VideoProfile_XDCAM_HD_1080p24_VBR35    = 2019849782
	KCMMPEG2VideoProfile_XDCAM_HD_1080p25_VBR35    = 2019849783
	KCMMPEG2VideoProfile_XDCAM_HD_1080p30_VBR35    = 2019849784
	KCMMPEG2VideoProfile_XDCAM_HD_540p             = 2019846244
	KCMMPEG2VideoProfile_XF                        = 2019981873
)
View Source
const (
	KCMMediaType_Audio             = 1936684398
	KCMMediaType_ClosedCaption     = 1668047728
	KCMMediaType_Metadata          = 1835365473
	KCMMediaType_Muxed             = 1836415096
	KCMMediaType_Subtitle          = 1935832172
	KCMMediaType_TaggedBufferGroup = 1952606066
	KCMMediaType_Text              = 1952807028
	KCMMediaType_TimeCode          = 1953325924
	KCMMediaType_Video             = 1986618469
)
View Source
const (
	KCMMemoryPoolError_AllocationFailed = -15490
	KCMMemoryPoolError_InvalidParameter = -15491
)
View Source
const (
	KCMMetadataDataTypeRegistryError_AllocationFailed            = -16310
	KCMMetadataDataTypeRegistryError_BadDataTypeIdentifier       = -16312
	KCMMetadataDataTypeRegistryError_DataTypeAlreadyRegistered   = -16313
	KCMMetadataDataTypeRegistryError_MultipleConformingBaseTypes = -16315
	KCMMetadataDataTypeRegistryError_RequiredParameterMissing    = -16311
	KCMMetadataDataTypeRegistryError_RequiresConformingBaseType  = -16314
)
View Source
const (
	KCMMetadataFormatType_Boxed = 1835360888
	KCMMetadataFormatType_EMSG  = 1701671783
	KCMMetadataFormatType_ICY   = 1768126752
	KCMMetadataFormatType_ID3   = 1768174368
)
View Source
const (
	KCMMetadataIdentifierError_AllocationFailed         = -16300
	KCMMetadataIdentifierError_BadIdentifier            = -16307
	KCMMetadataIdentifierError_BadKey                   = -16302
	KCMMetadataIdentifierError_BadKeyLength             = -16303
	KCMMetadataIdentifierError_BadKeySpace              = -16306
	KCMMetadataIdentifierError_BadKeyType               = -16304
	KCMMetadataIdentifierError_BadNumberKey             = -16305
	KCMMetadataIdentifierError_NoKeyValueAvailable      = -16308
	KCMMetadataIdentifierError_RequiredParameterMissing = -16301
)
View Source
const (
	KCMMuxedStreamType_DV                            = 1685463072
	KCMMuxedStreamType_EmbeddedDeviceScreenRecording = 1769173536
	KCMMuxedStreamType_MPEG1System                   = 1836069235
	KCMMuxedStreamType_MPEG2Program                  = 1836069488
	KCMMuxedStreamType_MPEG2Transport                = 1836069492
)
View Source
const (
	KCMPixelFormat_16BE555                  = 16
	KCMPixelFormat_16BE565                  = 1110783541
	KCMPixelFormat_16LE555                  = 1278555445
	KCMPixelFormat_16LE5551                 = 892679473
	KCMPixelFormat_16LE565                  = 1278555701
	KCMPixelFormat_24RGB                    = 24
	KCMPixelFormat_32ARGB                   = 32
	KCMPixelFormat_32BGRA                   = 1111970369
	KCMPixelFormat_422YpCbCr10              = 1983000880
	KCMPixelFormat_422YpCbCr16              = 1983000886
	KCMPixelFormat_422YpCbCr8               = 846624121
	KCMPixelFormat_422YpCbCr8_yuvs          = 2037741171
	KCMPixelFormat_4444YpCbCrA8             = 1983131704
	KCMPixelFormat_444YpCbCr10              = 1983131952
	KCMPixelFormat_444YpCbCr8               = 1983066168
	KCMPixelFormat_8IndexedGray_WhiteIsZero = 40
)
View Source
const (
	KCMSampleBufferError_AllocationFailed             = -12730
	KCMSampleBufferError_AlreadyHasDataBuffer         = -12732
	KCMSampleBufferError_ArrayTooSmall                = -12737
	KCMSampleBufferError_BufferHasNoSampleSizes       = -12735
	KCMSampleBufferError_BufferHasNoSampleTimingInfo  = -12736
	KCMSampleBufferError_BufferNotReady               = -12733
	KCMSampleBufferError_CannotSubdivide              = -12739
	KCMSampleBufferError_DataCanceled                 = -16751
	KCMSampleBufferError_DataFailed                   = -16750
	KCMSampleBufferError_InvalidEntryCount            = -12738
	KCMSampleBufferError_InvalidMediaFormat           = -12743
	KCMSampleBufferError_InvalidMediaTypeForOperation = -12741
	KCMSampleBufferError_InvalidSampleData            = -12742
	KCMSampleBufferError_Invalidated                  = -12744
	KCMSampleBufferError_RequiredParameterMissing     = -12731
	KCMSampleBufferError_SampleIndexOutOfRange        = -12734
	KCMSampleBufferError_SampleTimingInfoInvalid      = -12740
)
View Source
const (
	KCMSimpleQueueError_AllocationFailed         = -12770
	KCMSimpleQueueError_ParameterOutOfRange      = -12772
	KCMSimpleQueueError_QueueIsFull              = -12773
	KCMSimpleQueueError_RequiredParameterMissing = -12771
)
View Source
const (
	KCMSubtitleFormatType_3GText = 1954034535
	KCMSubtitleFormatType_WebVTT = 2004251764
)
View Source
const (
	KCMSyncError_AllocationFailed         = -12754
	KCMSyncError_InvalidParameter         = -12753
	KCMSyncError_MissingRequiredParameter = -12752
	KCMSyncError_RateMustBeNonZero        = -12755
)
View Source
const (
	KCMTextDisplayFlag_allSubtitlesForced          = 2147483648
	KCMTextDisplayFlag_continuousKaraoke           = 2048
	KCMTextDisplayFlag_fillTextRegion              = 262144
	KCMTextDisplayFlag_forcedSubtitlesPresent      = 1073741824
	KCMTextDisplayFlag_obeySubtitleFormatting      = 536870912
	KCMTextDisplayFlag_scrollDirectionMask         = 384
	KCMTextDisplayFlag_scrollDirection_bottomToTop = 0
	KCMTextDisplayFlag_scrollDirection_leftToRight = 384
	KCMTextDisplayFlag_scrollDirection_rightToLeft = 128
	KCMTextDisplayFlag_scrollDirection_topToBottom = 256
	KCMTextDisplayFlag_scrollIn                    = 32
	KCMTextDisplayFlag_scrollOut                   = 64
	KCMTextDisplayFlag_writeTextVertically         = 131072
)
View Source
const (
	KCMTextFormatType_3GText = 1954034535
	KCMTextFormatType_QTText = 1952807028
)
View Source
const (
	KCMTextJustification_bottom_right = -1
	KCMTextJustification_centered     = 1
	KCMTextJustification_left_top     = 0
)
View Source
const (
	KCMTimeCodeFlag_24HourMax  = 2
	KCMTimeCodeFlag_DropFrame  = 1
	KCMTimeCodeFlag_NegTimesOK = 4
)
View Source
const (
	KCMTimeCodeFormatType_Counter32  = 1668166450
	KCMTimeCodeFormatType_Counter64  = 1668167220
	KCMTimeCodeFormatType_TimeCode32 = 1953325924
	KCMTimeCodeFormatType_TimeCode64 = 1952658996
)
View Source
const (
	KCMTimebaseError_AllocationFailed         = -12750
	KCMTimebaseError_InvalidParameter         = -12749
	KCMTimebaseError_MissingRequiredParameter = -12748
	KCMTimebaseError_ReadOnly                 = -12757
	KCMTimebaseError_TimerIntervalTooShort    = -12751
)
View Source
const (
	KCMVideoCodecType_422YpCbCr8          = 846624121
	KCMVideoCodecType_AV1                 = 1635135537
	KCMVideoCodecType_Animation           = 1919706400
	KCMVideoCodecType_AppleProRes422      = 1634755438
	KCMVideoCodecType_AppleProRes422HQ    = 1634755432
	KCMVideoCodecType_AppleProRes422LT    = 1634755443
	KCMVideoCodecType_AppleProRes422Proxy = 1634755439
	KCMVideoCodecType_AppleProRes4444     = 1634743400
	KCMVideoCodecType_AppleProRes4444XQ   = 1634743416
	KCMVideoCodecType_AppleProResRAW      = 1634759278
	KCMVideoCodecType_AppleProResRAWHQ    = 1634759272
	KCMVideoCodecType_Cinepak             = 1668704612
	KCMVideoCodecType_DVCNTSC             = 1685480224
	KCMVideoCodecType_DVCPAL              = 1685480304
	KCMVideoCodecType_DVCPROHD1080i50     = 1685481525
	KCMVideoCodecType_DVCPROHD1080i60     = 1685481526
	KCMVideoCodecType_DVCPROHD1080p25     = 1685481522
	KCMVideoCodecType_DVCPROHD1080p30     = 1685481523
	KCMVideoCodecType_DVCPROHD720p50      = 1685481585
	KCMVideoCodecType_DVCPROHD720p60      = 1685481584
	KCMVideoCodecType_DVCPro50NTSC        = 1685468526
	KCMVideoCodecType_DVCPro50PAL         = 1685468528
	KCMVideoCodecType_DVCProPAL           = 1685483632
	KCMVideoCodecType_DepthHEVC           = 1684369512
	KCMVideoCodecType_DisparityHEVC       = 1684632424
	KCMVideoCodecType_DolbyVisionHEVC     = 1685481521
	KCMVideoCodecType_H263                = 1748121139
	KCMVideoCodecType_H264                = 1635148593
	KCMVideoCodecType_HEVC                = 1752589105
	KCMVideoCodecType_HEVCWithAlpha       = 1836415073
	KCMVideoCodecType_JPEG                = 1785750887
	KCMVideoCodecType_JPEG_OpenDML        = 1684890161
	KCMVideoCodecType_JPEG_XL             = 1786276963
	KCMVideoCodecType_MPEG1Video          = 1836069238
	KCMVideoCodecType_MPEG2Video          = 1836069494
	KCMVideoCodecType_MPEG4Video          = 1836070006
	KCMVideoCodecType_SorensonVideo       = 1398165809
	KCMVideoCodecType_SorensonVideo3      = 1398165811
	KCMVideoCodecType_VP9                 = 1987063865
)
View Source
const (
	KCMBlockBufferCustomBlockSourceVersion = 0
)
View Source
const (
	KCMMediaType_AuxiliaryPicture = 1635088502
)
View Source
const (
	KCMPersistentTrackID_Invalid = 0
)
View Source
const (
	KCMSampleBufferFlag_AudioBufferList_Assure16ByteAlignment = 1
)
View Source
const (
	KCMTaggedBufferGroupFormatType_TaggedBufferGroup = 1952606066
)

Variables

This section is empty.

Functions

func CMAudioDeviceClockCreate

func CMAudioDeviceClockCreate(allocator unsafe.Pointer, deviceUID unsafe.Pointer, clockOut unsafe.Pointer) int

func CMAudioDeviceClockCreateFromAudioDeviceID

func CMAudioDeviceClockCreateFromAudioDeviceID(allocator unsafe.Pointer, deviceID uint, clockOut unsafe.Pointer) int

func CMAudioDeviceClockGetAudioDevice

func CMAudioDeviceClockGetAudioDevice(clock unsafe.Pointer, deviceUIDOut unsafe.Pointer, deviceIDOut *uint, trackingDefaultDeviceOut *uint8) int

@function CMAudioDeviceClockGetAudioDevice @abstract Queries which CoreAudio device the clock is tracking. @discussion If a non-NULL deviceUID has been set, CMAudioDeviceClockGetAudioDevice returns the set UID, its associated ID, and *trackingDefaultDeviceOut == false. If a deviceID has been set directly, CMAudioDeviceClockGetAudioDevice returns NULL UID, the set device ID, and *trackingDefaultDeviceOut == false. If a NULL deviceUID has been set (which means "track the default device"), CMAudioDeviceClockGetAudioDevice returns NULL UID, the ID of the current default device, and *trackingDefaultDeviceOut == true.

func CMAudioDeviceClockSetAudioDeviceID

func CMAudioDeviceClockSetAudioDeviceID(clock unsafe.Pointer, deviceID uint) int

func CMAudioDeviceClockSetAudioDeviceUID

func CMAudioDeviceClockSetAudioDeviceUID(clock unsafe.Pointer, deviceUID unsafe.Pointer) int

func CMAudioFormatDescriptionCopyAsBigEndianSoundDescriptionBlockBuffer

func CMAudioFormatDescriptionCopyAsBigEndianSoundDescriptionBlockBuffer(allocator unsafe.Pointer, audioFormatDescription unsafe.Pointer, flavor unsafe.Pointer, blockBufferOut unsafe.Pointer) int

@function CMAudioFormatDescriptionCopyAsBigEndianSoundDescriptionBlockBuffer @abstract Copies the contents of a CMAudioFormatDescription to a CMBlockBuffer in big-endian byte ordering. @discussion On return, the caller owns the returned CMBlockBuffer, and must release it when done with it. Note that the dataRefIndex field of the SampleDescription is intentionally filled with garbage values (0xFFFF). The caller must overwrite these values with a valid dataRefIndex if writing the SampleDescription to a QuickTime/ISO file. @param allocator Allocator to use for allocating the CMBlockBuffer object. May be NULL. @param audioFormatDescription CMAudioFormatDescription to be copied. @param flavor kCMSoundDescriptionFlavor constant or NULL for QuickTimeMovie flavor. @param blockBufferOut Receives new CMBlockBuffer containing SoundDescription data structure in big-endian byte ordering.

func CMAudioFormatDescriptionCreate

func CMAudioFormatDescriptionCreate(allocator unsafe.Pointer, asbd *coreaudiotypes.AudioStreamBasicDescription, layoutSize uint, layout *coreaudiotypes.AudioChannelLayout, magicCookieSize uint, magicCookie unsafe.Pointer, extensions unsafe.Pointer, formatDescriptionOut unsafe.Pointer) int

func CMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionBlockBuffer

func CMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionBlockBuffer(allocator unsafe.Pointer, soundDescriptionBlockBuffer unsafe.Pointer, flavor unsafe.Pointer, formatDescriptionOut unsafe.Pointer) int

@function CMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionBlockBuffer @abstract Creates a CMAudioFormatDescription from a big-endian SoundDescription data structure in a CMBlockBuffer. @param allocator Allocator to use for allocating the CMAudioFormatDescription object. May be NULL. @param soundDescriptionBlockBuffer CMBlockBuffer containing SoundDescription data structure in big-endian byte ordering. @param flavor kCMSoundDescriptionFlavor constant or NULL for QuickTimeMovie flavor. @param formatDescriptionOut Receives new CMAudioFormatDescription.

func CMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionData

func CMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionData(allocator unsafe.Pointer, soundDescriptionData *uint8, size uint, flavor unsafe.Pointer, formatDescriptionOut unsafe.Pointer) int

@function CMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionData @abstract Creates a CMAudioFormatDescription from a big-endian SoundDescription data structure. @param allocator Allocator to use for allocating the CMAudioFormatDescription object. May be NULL. @param soundDescriptionData SoundDescription data structure in big-endian byte ordering. @param size Size of SoundDescription data structure. @param flavor kCMSoundDescriptionFlavor constant or NULL for QuickTimeMovie flavor. @param formatDescriptionOut Receives new CMAudioFormatDescription.

func CMAudioFormatDescriptionCreateSummary

func CMAudioFormatDescriptionCreateSummary(allocator unsafe.Pointer, formatDescriptionArray unsafe.Pointer, flags uint32, formatDescriptionOut unsafe.Pointer) int

@function CMAudioFormatDescriptionCreateSummary @abstract Creates a summary audio format description from an array of audio format descriptions. @discussion The summary format description will be canonical LPCM and deep enough in sample rate, channel layout and channel count to sensibly contain the result of decoding and mixing the constituent format descriptions.

func CMAudioFormatDescriptionEqual

func CMAudioFormatDescriptionEqual(formatDescription unsafe.Pointer, otherFormatDescription unsafe.Pointer, equalityMask uint32, equalityMaskOut *uint32) uint8

func CMAudioFormatDescriptionGetChannelLayout

func CMAudioFormatDescriptionGetChannelLayout(desc unsafe.Pointer, sizeOut *uint) *coreaudiotypes.AudioChannelLayout

func CMAudioFormatDescriptionGetFormatList

func CMAudioFormatDescriptionGetFormatList(desc unsafe.Pointer, sizeOut *uint) *coreaudiotypes.AudioFormatListItem

func CMAudioFormatDescriptionGetMagicCookie

func CMAudioFormatDescriptionGetMagicCookie(desc unsafe.Pointer, sizeOut *uint) unsafe.Pointer

func CMAudioFormatDescriptionGetMostCompatibleFormat

func CMAudioFormatDescriptionGetMostCompatibleFormat(desc unsafe.Pointer) *coreaudiotypes.AudioFormatListItem

func CMAudioFormatDescriptionGetRichestDecodableFormat

func CMAudioFormatDescriptionGetRichestDecodableFormat(desc unsafe.Pointer) *coreaudiotypes.AudioFormatListItem

func CMAudioFormatDescriptionGetStreamBasicDescription

func CMAudioFormatDescriptionGetStreamBasicDescription(desc unsafe.Pointer) *coreaudiotypes.AudioStreamBasicDescription

func CMAudioSampleBufferCreateReadyWithPacketDescriptions

func CMAudioSampleBufferCreateReadyWithPacketDescriptions(allocator unsafe.Pointer, dataBuffer unsafe.Pointer, formatDescription unsafe.Pointer, numSamples int, presentationTimeStamp CMTime, packetDescriptions *coreaudiotypes.AudioStreamPacketDescription, sampleBufferOut unsafe.Pointer) int

func CMAudioSampleBufferCreateWithPacketDescriptions

func CMAudioSampleBufferCreateWithPacketDescriptions(allocator unsafe.Pointer, dataBuffer unsafe.Pointer, dataReady uint8, makeDataReadyCallback unsafe.Pointer, makeDataReadyRefcon unsafe.Pointer, formatDescription unsafe.Pointer, numSamples int, presentationTimeStamp CMTime, packetDescriptions *coreaudiotypes.AudioStreamPacketDescription, sampleBufferOut unsafe.Pointer) int

func CMAudioSampleBufferCreateWithPacketDescriptionsAndMakeDataReadyHandler

func CMAudioSampleBufferCreateWithPacketDescriptionsAndMakeDataReadyHandler(allocator unsafe.Pointer, dataBuffer unsafe.Pointer, dataReady uint8, formatDescription unsafe.Pointer, numSamples int, presentationTimeStamp CMTime, packetDescriptions *coreaudiotypes.AudioStreamPacketDescription, sampleBufferOut unsafe.Pointer, makeDataReadyHandler func(unsafe.Pointer) int) int

func CMBlockBufferAccessDataBytes

func CMBlockBufferAccessDataBytes(theBuffer unsafe.Pointer, offset uint, length uint, temporaryBlock unsafe.Pointer, returnedPointerOut string) int

@function CMBlockBufferAccessDataBytes @abstract Accesses potentially noncontiguous data in a CMBlockBuffer. @discussion Used for accessing potentially noncontiguous data, this routine will return a pointer directly into the given CMBlockBuffer if possible, otherwise the data will be assembled and copied into the given temporary block and its pointer will be returned. @param theBuffer CMBlockBuffer to operate on. Must not be NULL @param offset Offset within the CMBlockBuffer's offset range. @param length Desired number of bytes to access at offset @param temporaryBlock A piece of memory, assumed to be at least length bytes in size. Must not be NULL @param returnedPointerOut Receives NULL if the desired amount of data could not be accessed at the given offset. Receives non-NULL if it could. The value returned will either be a direct pointer into the CMBlockBuffer or temporaryBlock Must not be NULL. @result Returns kCMBlockBufferNoErr if the desired amount of data could be accessed at the given offset.

func CMBlockBufferAppendBufferReference

func CMBlockBufferAppendBufferReference(theBuffer unsafe.Pointer, targetBBuf unsafe.Pointer, offsetToData uint, dataLength uint, flags uint32) int

@function CMBlockBufferAppendBufferReference @abstract Adds a CMBlockBuffer reference to an existing CMBlockBuffer. @discussion Adds a buffer reference to (a possibly subset portion of) another CMBlockBuffer to an existing CMBlockBuffer. The CMBlockBuffer's total data length will be increased by the specified dataLength. Note that append operations are not thread safe, so care must be taken when appending to BlockBuffers that are used by multiple threads. @param theBuffer CMBlockBuffer to which the new CMBlockBuffer reference will be added. Must not be NULL @param targetBBuf CMBlockBuffer to refer to. This parameter must not be NULL. Unless the kCMBlockBufferPermitEmptyReferenceFlag is passed, it must not be empty and it must have a data length at least large enough to supply the data subset specified (i.e. offsetToData+dataLength bytes). @param offsetToData Offset within the target CMBlockBuffer at which the CMBlockBuffer should refer to data. @param dataLength Number of relevant data bytes, starting at offsetToData, within the target CMBlockBuffer. If zero, the target buffer's total available dataLength (starting at offsetToData) will be referenced. @param flags Feature and control flags @result Returns kCMBlockBufferNoErr if successful.

func CMBlockBufferAppendMemoryBlock

func CMBlockBufferAppendMemoryBlock(theBuffer unsafe.Pointer, memoryBlock unsafe.Pointer, blockLength uint, blockAllocator unsafe.Pointer, customBlockSource *CMBlockBufferCustomBlockSource, offsetToData uint, dataLength uint, flags uint32) int

@function CMBlockBufferAppendMemoryBlock @abstract Adds a memoryBlock to an existing CMBlockBuffer. @discussion Adds a memoryBlock to an existing CMBlockBuffer. The memory block may be statically allocated, dynamically allocated using the given allocator or not yet allocated. The CMBlockBuffer's total data length will be increased by the specified dataLength. If the kCMBlockBufferAssureMemoryNowFlag is set in the flags parameter, the memory block is allocated immediately using the blockAllocator or customBlockSource. Note that append operations are not thread safe, so care must be taken when appending to BlockBuffers that are used by multiple threads. @param theBuffer CMBlockBuffer to which the new memoryBlock will be added. Must not be NULL @param memoryBlock Block of memory to hold buffered data. If NULL, a memory block will be allocated when needed (via a call to CMBlockBufferAssureBlockMemory()) using the provided blockAllocator or customBlockSource. If non-NULL, the block will be used and will be deallocated when the CMBlockBuffer is finalized (i.e. released for the last time). @param blockLength Overall length of the memory block in bytes. Must not be zero. This is the size of the supplied memory block or the size to allocate if memoryBlock is NULL. @param blockAllocator Allocator to be used for allocating the memoryBlock, if memoryBlock is NULL. If memoryBlock is non-NULL, this allocator will be used to deallocate it if provided. Passing NULL will cause the default allocator (as set at the time of the call) to be used. Pass kCFAllocatorNull if no deallocation is desired. @param customBlockSource If non-NULL, it will be used for the allocation and freeing of the memory block (the blockAllocator parameter is ignored). If provided, and the memoryBlock parameter is NULL, its Allocate() routine must be non-NULL. Allocate will be called once, if successful, when the memoryBlock is allocated. Free() will be called once when the CMBlockBuffer is disposed. @param offsetToData Offset within the memoryBlock at which the CMBlockBuffer should refer to data. @param dataLength Number of relevant data bytes, starting at offsetToData, within the memory block. @param flags Feature and control flags @result Returns kCMBlockBufferNoErr if successful.

func CMBlockBufferAssureBlockMemory

func CMBlockBufferAssureBlockMemory(theBuffer unsafe.Pointer) int

@function CMBlockBufferAssureBlockMemory @abstract Assures all memory blocks in a CMBlockBuffer are allocated. @discussion Traverses the possibly complex CMBlockBuffer, allocating the memory for any constituent memory blocks that are not yet allocated. @param theBuffer CMBlockBuffer to operate on. Must not be NULL @result Returns kCMBlockBufferNoErr if successful.

func CMBlockBufferCopyDataBytes

func CMBlockBufferCopyDataBytes(theSourceBuffer unsafe.Pointer, offsetToData uint, dataLength uint, destination unsafe.Pointer) int

@function CMBlockBufferCopyDataBytes @abstract Copies bytes from a CMBlockBuffer into a provided memory area. @discussion This function is used to copy bytes out of a CMBlockBuffer into a provided piece of memory. It deals with the possibility of the desired range of data being noncontiguous. The function assumes that the memory at the destination is sufficient to hold the data. If length bytes of data are not available in the CMBlockBuffer, an error is returned and the contents of the destination are undefined. @param theSourceBuffer The buffer from which data will be copied into the destination @param offsetToData Offset within the source CMBlockBuffer at which the copy should begin. @param dataLength Number of bytes to copy, starting at offsetToData, within the source CMBlockBuffer. Must not be zero. @param destination Memory into which the data should be copied. @result Returns kCMBlockBufferNoErr if the copy succeeded, returns an error otherwise.

func CMBlockBufferCreateContiguous

func CMBlockBufferCreateContiguous(structureAllocator unsafe.Pointer, sourceBuffer unsafe.Pointer, blockAllocator unsafe.Pointer, customBlockSource *CMBlockBufferCustomBlockSource, offsetToData uint, dataLength uint, flags uint32, blockBufferOut unsafe.Pointer) int

@function CMBlockBufferCreateContiguous @abstract Produces a CMBlockBuffer containing a contiguous copy of or reference to the data specified by the parameters. @discussion Produces a CMBlockBuffer containing a contiguous copy of or reference to the data specified by the parameters. The resulting new CMBlockBuffer may contain an allocated copy of the data, or may contain a contiguous CMBlockBuffer reference. If the kCMBlockBufferAlwaysCopyDataFlag is set in the flags parameter, the resulting CMBlockBuffer will contain an allocated copy of the data rather than a reference to sourceBuffer. @param structureAllocator Allocator to use for allocating the CMBlockBuffer object. NULL will cause the default allocator to be used. @param sourceBuffer CMBlockBuffer from which data will be copied or referenced. Must not be NULL nor empty, @param blockAllocator Allocator to be used for allocating the memoryBlock if a contiguous copy of the data is to be made. Passing NULL will cause the default allocator (as set at the time of the call) to be used. @param customBlockSource If non-NULL, it will be used for the allocation and freeing of the memory block (the blockAllocator parameter is ignored). If provided, and the memoryBlock parameter is NULL, its Allocate() routine must be non-NULL. Allocate will be called once, if successful, when the memoryBlock is allocated. Free() will be called once when the CMBlockBuffer is disposed. @param offsetToData Offset within the source CMBlockBuffer at which the new CMBlockBuffer should obtain data. @param dataLength Number of relevant data bytes, starting at offsetToData, within the source CMBlockBuffer. If zero, the target buffer's total available dataLength (starting at offsetToData) will be referenced. @param flags Feature and control flags @param blockBufferOut Receives newly-created CMBlockBuffer object with a retain count of 1. Must not be NULL. @result Returns kCMBlockBufferNoErr if successful

func CMBlockBufferCreateEmpty

func CMBlockBufferCreateEmpty(structureAllocator unsafe.Pointer, subBlockCapacity uint32, flags uint32, blockBufferOut unsafe.Pointer) int

@function CMBlockBufferCreateEmpty @abstract Creates an empty CMBlockBuffer @discussion Creates an empty CMBlockBuffer, i.e. one which has no memory block nor reference to a CMBlockBuffer supplying bytes to it. It is ready to be populated using CMBlockBufferAppendMemoryBlock() and/or CMBlockBufferAppendBufferReference(). CMBlockBufferGetDataLength() will return zero for an empty CMBlockBuffer and CMBlockBufferGetDataPointer() and CMBlockBufferAssureBufferMemory() will fail. The memory for the CMBlockBuffer object will be allocated using the given allocator. If NULL is passed for the allocator, the default allocator is used. @param structureAllocator Allocator to use for allocating the CMBlockBuffer object. NULL will cause the default allocator to be used. @param subBlockCapacity Number of subBlocks the newBlockBuffer shall accommodate before expansion occurs. A value of zero means "do the reasonable default" @param flags Feature and control flags @param blockBufferOut Receives newly-created empty CMBlockBuffer object with retain count of 1. Must not be NULL. @result Returns kCMBlockBufferNoErr if successful.

func CMBlockBufferCreateWithBufferReference

func CMBlockBufferCreateWithBufferReference(structureAllocator unsafe.Pointer, bufferReference unsafe.Pointer, offsetToData uint, dataLength uint, flags uint32, blockBufferOut unsafe.Pointer) int

@function CMBlockBufferCreateWithBufferReference @abstract Creates a new CMBlockBuffer that refers to another CMBlockBuffer. @discussion Creates a new CMBlockBuffer that refers to (a possibly subset portion of) another CMBlockBuffer. The returned CMBlockBuffer may be further expanded using CMBlockBufferAppendMemoryBlock() and/or CMBlockBufferAppendBufferReference(). @param structureAllocator Allocator to use for allocating the CMBlockBuffer object. NULL will cause the default allocator to be used. @param bufferReference CMBlockBuffer to refer to. This parameter must not be NULL. Unless the kCMBlockBufferPermitEmptyReferenceFlag is passed, it must not be empty and it must have a data length at least large enough to supply the data subset specified (i.e. offsetToData+dataLength bytes). @param offsetToData Offset within the reference CMBlockBuffer at which the new CMBlockBuffer should refer to data. @param dataLength Number of relevant data bytes, starting at offsetToData, within the target CMBlockBuffer. @param flags Feature and control flags @param blockBufferOut Receives newly-created CMBlockBuffer object with a retain count of 1. Must not be NULL. @result Returns kCMBlockBufferNoErr if successful.

func CMBlockBufferCreateWithMemoryBlock

func CMBlockBufferCreateWithMemoryBlock(structureAllocator unsafe.Pointer, memoryBlock unsafe.Pointer, blockLength uint, blockAllocator unsafe.Pointer, customBlockSource *CMBlockBufferCustomBlockSource, offsetToData uint, dataLength uint, flags uint32, blockBufferOut unsafe.Pointer) int

@function CMBlockBufferCreateWithMemoryBlock @abstract Creates a new CMBlockBuffer backed by a memory block (or promise thereof). @discussion Creates a new CMBlockBuffer backed by a memory block. The memory block may be statically allocated, dynamically allocated using the given allocator (or customBlockSource) or not yet allocated. The returned CMBlockBuffer may be further expanded using CMBlockBufferAppendMemoryBlock() and/or CMBlockBufferAppendBufferReference(). If the kCMBlockBufferAssureMemoryNowFlag is set in the flags parameter, the memory block is allocated immediately using the blockAllocator or customBlockSource. @param structureAllocator Allocator to use for allocating the CMBlockBuffer object. NULL will cause the default allocator to be used. @param memoryBlock Block of memory to hold buffered data. If NULL, a memory block will be allocated when needed (via a call to CMBlockBufferAssureBlockMemory()) using the provided blockAllocator or customBlockSource. If non-NULL, the block will be used and will be deallocated when the new CMBlockBuffer is finalized (i.e. released for the last time). @param blockLength Overall length of the memory block in bytes. Must not be zero. This is the size of the supplied memory block or the size to allocate if memoryBlock is NULL. @param blockAllocator Allocator to be used for allocating the memoryBlock, if memoryBlock is NULL. If memoryBlock is non-NULL, this allocator will be used to deallocate it if provided. Passing NULL will cause the default allocator (as set at the time of the call) to be used. Pass kCFAllocatorNull if no deallocation is desired. @param customBlockSource If non-NULL, it will be used for the allocation and freeing of the memory block (the blockAllocator parameter is ignored). If provided, and the memoryBlock parameter is NULL, its Allocate() routine must be non-NULL. Allocate will be called once, if successful, when the memoryBlock is allocated. Free() will be called once when the CMBlockBuffer is disposed. @param offsetToData Offset within the memoryBlock at which the CMBlockBuffer should refer to data. @param dataLength Number of relevant data bytes, starting at offsetToData, within the memory block. @param flags Feature and control flags @param blockBufferOut Receives newly-created CMBlockBuffer object with a retain count of 1. Must not be NULL. @result Returns kCMBlockBufferNoErr if successful.

func CMBlockBufferFillDataBytes

func CMBlockBufferFillDataBytes(fillByte int8, destinationBuffer unsafe.Pointer, offsetIntoDestination uint, dataLength uint) int

@function CMBlockBufferFillDataBytes @abstract Fills a CMBlockBuffer with a given byte value, replacing bytes in the underlying data blocks @discussion This function is used to fill bytes in a CMBlockBuffer's memory blocks with a given byte value. It deals with the possibility of the destination range of data being noncontiguous. CMBlockBufferAssureBlockMemory() is called on the given CMBlockBuffer. If desired range is subsequently not accessible in the CMBlockBuffer, an error is returned and the contents of the CMBlockBuffer are untouched. @param fillByte The value with which to fill the specified data range @param destinationBuffer CMBlockBuffer whose range of bytes will be filled. @param offsetIntoDestination Offset within the destination CMBlockBuffer at which filling should begin. @param dataLength Number of bytes to be filled, starting at offsetIntoDestination, in the destinationBuffer. If zero, the destinationBuffer's total available dataLength (starting at offsetToData) will be filled. @result Returns kCMBlockBufferNoErr if the fill succeeded, returns an error otherwise.

func CMBlockBufferGetDataLength

func CMBlockBufferGetDataLength(theBuffer unsafe.Pointer) uint

@function CMBlockBufferGetDataLength @abstract Obtains the total data length reachable via a CMBlockBuffer. @discussion Obtains the total data length reachable via a CMBlockBuffer. This total is the sum of the dataLengths of the CMBlockBuffer's memoryBlocks and buffer references. Note that the dataLengths are the _portions_ of those constituents that this CMBlockBuffer subscribes to. This CMBlockBuffer presents a contiguous range of offsets from zero to its totalDataLength as returned by this routine. @param theBuffer CMBlockBuffer to examine. @result Returns the total data length available via this CMBlockBuffer, or zero if it is empty, NULL, or somehow invalid.

func CMBlockBufferGetDataPointer

func CMBlockBufferGetDataPointer(theBuffer unsafe.Pointer, offset uint, lengthAtOffsetOut *uint, totalLengthOut *uint, dataPointerOut string) int

@function CMBlockBufferGetDataPointer @abstract Gains access to the data represented by a CMBlockBuffer. @discussion Gains access to the data represented by a CMBlockBuffer. A pointer into a memory block is returned which corresponds to the offset within the CMBlockBuffer. The number of bytes addressable at the pointer can also be returned. This length-at-offset may be smaller than the number of bytes actually available starting at the offset if the dataLength of the CMBlockBuffer is covered by multiple memory blocks (a noncontiguous CMBlockBuffer). The data pointer returned will remain valid as long as the original CMBlockBuffer is referenced - once the CMBlockBuffer is released for the last time, any pointers into it will be invalid. @param theBuffer CMBlockBuffer to operate on. Must not be NULL @param offset Offset within the buffer's offset range. @param lengthAtOffsetOut On return, contains the amount of data available at the specified offset. May be NULL. @param totalLengthOut On return, contains the block buffer's total data length (from offset 0). May be NULL. The caller can compare (offset+lengthAtOffset) with totalLength to determine whether the entire CMBlockBuffer has been referenced and whether it is possible to access the CMBlockBuffer's data with a contiguous reference. @param dataPointerOut On return, contains a pointer to the data byte at the specified offset; lengthAtOffset bytes are available at this address. May be NULL. @result Returns kCMBlockBufferNoErr if data was accessible at the specified offset within the given CMBlockBuffer, false otherwise.

func CMBlockBufferGetTypeID

func CMBlockBufferGetTypeID() uint

@function CMBlockBufferGetTypeID @abstract Obtains the CoreFoundation type ID for the CMBlockBuffer type. @discussion Obtains the CoreFoundation type ID for the CMBlockBuffer type. @result Returns the CFTypeID corresponding to CMBlockBuffer.

func CMBlockBufferIsEmpty

func CMBlockBufferIsEmpty(theBuffer unsafe.Pointer) uint8

@function CMBlockBufferIsEmpty @abstract Indicates whether the given CMBlockBuffer is empty. @discussion Indicates whether the given CMBlockBuffer is empty, i.e., devoid of any memoryBlocks or CMBlockBuffer references. Note that a CMBlockBuffer containing a not-yet allocated memoryBlock is not considered empty. @param theBuffer CMBlockBuffer to examine. Must not be NULL @result Returns the result of the emptiness test. Will return false if the CMBlockBuffer is NULL.

func CMBlockBufferIsRangeContiguous

func CMBlockBufferIsRangeContiguous(theBuffer unsafe.Pointer, offset uint, length uint) uint8

@function CMBlockBufferIsRangeContiguous @abstract Determines whether the specified range within the given CMBlockBuffer is contiguous. @discussion Determines whether the specified range within the given CMBlockBuffer is contiguous. if CMBlockBufferGetDataPointer() were to be called with the same parameters, the returned pointer would address the desired number of bytes. @param theBuffer CMBlockBuffer to examine. Must not be NULL @param offset Offset within the buffer's offset range. @param length Desired number of bytes to access at offset. If zero, the number of bytes available at offset (dataLength – offset), contiguous or not, is used. @result Returns true if the specified range is contiguous within the CMBlockBuffer, false otherwise. Also returns false if the CMBlockBuffer is NULL or empty.

func CMBlockBufferReplaceDataBytes

func CMBlockBufferReplaceDataBytes(sourceBytes unsafe.Pointer, destinationBuffer unsafe.Pointer, offsetIntoDestination uint, dataLength uint) int

@function CMBlockBufferReplaceDataBytes @abstract Copies bytes from a given memory block into a CMBlockBuffer, replacing bytes in the underlying data blocks @discussion This function is used to replace bytes in a CMBlockBuffer's memory blocks with those from a provided piece of memory. It deals with the possibility of the destination range of data being noncontiguous. CMBlockBufferAssureBlockMemory() is called on the given CMBlockBuffer. If desired range is subsequently not accessible in the CMBlockBuffer, an error is returned and the contents of the CMBlockBuffer are untouched. @param sourceBytes Memory block from which bytes are copied into the CMBlockBuffer @param destinationBuffer CMBlockBuffer whose range of bytes will be replaced by the sourceBytes. @param offsetIntoDestination Offset within the destination CMBlockBuffer at which replacement should begin. @param dataLength Number of bytes to be replaced, starting at offsetIntoDestination, in the destinationBuffer. @result Returns kCMBlockBufferNoErr if the replacement succeeded, returns an error otherwise.

func CMBufferQueueCallForEachBuffer

func CMBufferQueueCallForEachBuffer(queue unsafe.Pointer, callback unsafe.Pointer, refcon unsafe.Pointer) int

func CMBufferQueueContainsEndOfData

func CMBufferQueueContainsEndOfData(queue unsafe.Pointer) uint8

@function CMBufferQueueContainsEndOfData @abstract Returns whether or not a CMBufferQueue has been marked with EOD. @result Whether or not the CMBufferQueue has been marked with EOD. If queue is NULL, true is returned (a NULL queue is considered to be empty, and permanently at EOD).

func CMBufferQueueCopyHead

func CMBufferQueueCopyHead(queue unsafe.Pointer) unsafe.Pointer

@function CMBufferQueueCopyHead @abstract Retrieves & retains the next-to-dequeue buffer from a CMBufferQueue but leaves it in the queue. @discussion This follows CF "Copy" semantics -- it retains the returned buffer. Note that with non-FIFO queues it's not guaranteed that the next dequeue will return this particular buffer (if an intervening Enqueue adds a buffer that will dequeue next). @result The retained buffer. Will be NULL if the queue is empty.

func CMBufferQueueCreate

func CMBufferQueueCreate(allocator unsafe.Pointer, capacity int, callbacks *CMBufferCallbacks, queueOut unsafe.Pointer) int

@function CMBufferQueueCreate @abstract Creates a CMBufferQueue object. @discussion On return, the caller owns the returned CMBufferQueue, and must release it when done with it.

func CMBufferQueueCreateWithHandlers

func CMBufferQueueCreateWithHandlers(allocator unsafe.Pointer, capacity int, handlers *CMBufferHandlers, queueOut unsafe.Pointer) int

@function CMBufferQueueCreateWithHandlers @abstract Creates a CMBufferQueue object. @discussion On return, the caller owns the returned CMBufferQueue, and must release it when done with it.

func CMBufferQueueDequeueAndRetain

func CMBufferQueueDequeueAndRetain(queue unsafe.Pointer) unsafe.Pointer

@function CMBufferQueueDequeueAndRetain @abstract Dequeues a buffer from a CMBufferQueue. @discussion The buffer is released by the queue, but it is also retained for the client. Buffer ownership is thereby transferred from queue to client. The client need not retain the buffer, but is responsible to release it when done with it. @result The dequeued buffer. Will be NULL if the queue is empty.

func CMBufferQueueDequeueIfDataReadyAndRetain

func CMBufferQueueDequeueIfDataReadyAndRetain(queue unsafe.Pointer) unsafe.Pointer

@function CMBufferQueueDequeueIfDataReadyAndRetain @abstract Dequeues a buffer from a CMBufferQueue if it is ready. @discussion The buffer is released by the queue, but it is also retained for the client. Buffer ownership is thereby transferred from queue to client. The client need not retain the buffer, but is responsible to release it when done with it. @result The dequeued buffer. Will be NULL if the queue is empty, or if the buffer to be dequeued is not yet ready.

func CMBufferQueueEnqueue

func CMBufferQueueEnqueue(queue unsafe.Pointer, buf unsafe.Pointer) int

@function CMBufferQueueEnqueue @abstract Enqueues a buffer onto a CMBufferQueue. @discussion The buffer is retained by the queue, so the client can safely release the buffer if it has no further use for it. If the compare callback is non-NULL, this API performs an insertion sort using that compare operation. If the validation callback is non-NULL, this API calls it; if it returns a nonzero OSStatus, the buffer will not be enqueued and this API will return the same error OSStatus.

func CMBufferQueueGetBufferCount

func CMBufferQueueGetBufferCount(queue unsafe.Pointer) int

@function CMBufferQueueGetBufferCount @abstract Gets the number of buffers in the queue.

func CMBufferQueueGetHead

func CMBufferQueueGetHead(queue unsafe.Pointer) unsafe.Pointer

@function CMBufferQueueGetHead @abstract Retrieves the next-to-dequeue buffer from a CMBufferQueue but leaves it in the queue. @discussion This follows CF "Get" semantics -- it does not retain the returned buffer. Note that with non-FIFO queues it's not guaranteed that the next dequeue will return this particular buffer (if an intervening Enqueue adds a buffer that will dequeue next). This function is deprecated in favor of CMBufferQueueCopyHead() which returns a retained buffer. When adopting CMBufferQueueCopyHead(), existing CFRetain() call on the buffer returned from this function must be removed. @result The buffer. Will be NULL if the queue is empty. Deprecated: since macOS 15.0.

func CMBufferQueueGetTotalSize

func CMBufferQueueGetTotalSize(queue unsafe.Pointer) uint

@function CMBufferQueueGetTotalSize @abstract Gets the total size of all sample buffers of a CMBufferQueue. @discussion The total size of the CMBufferQueue is the sum of all the individual buffer sizes, as reported by the getTotalSize callback (provided to CMBufferQueueCreate). If there are no buffers in the queue, 0 will be returned.

func CMBufferQueueGetTypeID

func CMBufferQueueGetTypeID() uint

@function CMBufferQueueGetTypeID @abstract Returns the CFTypeID of CMBufferQueue objects. @discussion You can check if a CFTypeRef object is actually a CMBufferQueue by comparing CFGetTypeID(object) with CMBufferQueueGetTypeID(). @result CFTypeID of CMBufferQueue objects.

func CMBufferQueueInstallTrigger

func CMBufferQueueInstallTrigger(queue unsafe.Pointer, callback unsafe.Pointer, refcon unsafe.Pointer, condition int32, time_ CMTime, triggerTokenOut unsafe.Pointer) int

@function CMBufferQueueInstallTrigger @abstract Installs a trigger on a CMBufferQueue. @discussion The returned trigger token can be passed to CMBufferQueueTestTrigger and CMBufferQueueRemoveTrigger. The triggerTokenOut parameter can be NULL (client doesn't need to test or remove trigger), and the callback parameter can be NULL (client doesn't need callbacks, but rather will explicitly test the trigger). One of these two parameters must be non-NULL, however, since an untestable trigger that does not perform a callback is meaningless. If the trigger condition is already true, CMBufferQueueInstallTrigger will call the callback. If it does this, it will first write the trigger token to *triggerTokenOut.

func CMBufferQueueInstallTriggerHandler

func CMBufferQueueInstallTriggerHandler(queue unsafe.Pointer, condition int32, time_ CMTime, triggerTokenOut unsafe.Pointer, handler func(unsafe.Pointer)) int

@function CMBufferQueueInstallTriggerHandler @abstract Installs a trigger on a CMBufferQueue. @discussion The returned trigger token can be passed to CMBufferQueueTestTrigger and CMBufferQueueRemoveTrigger. The triggerTokenOut parameter can be NULL (client doesn't need to test or remove trigger), and the handler parameter can be NULL (client doesn't need callbacks, but rather will explicitly test the trigger). One of these two parameters must be non-NULL, however, since an untestable trigger that does not perform a callback is meaningless. If the trigger condition is already true, CMBufferQueueInstallTrigger will call the handler. If it does this, it will first write the trigger token to *triggerTokenOut.

func CMBufferQueueInstallTriggerHandlerWithIntegerThreshold

func CMBufferQueueInstallTriggerHandlerWithIntegerThreshold(queue unsafe.Pointer, condition int32, threshold int, triggerTokenOut unsafe.Pointer, handler func(unsafe.Pointer)) int

@function CMBufferQueueInstallTriggerHandlerWithIntegerThreshold @abstract Installs a trigger on a CMBufferQueue. @discussion This function behaves the same way as CMBufferQueueInstallTriggerHandler() except the trigger is evaluated against the integer value rather than the time value.

func CMBufferQueueInstallTriggerWithIntegerThreshold

func CMBufferQueueInstallTriggerWithIntegerThreshold(queue unsafe.Pointer, callback unsafe.Pointer, refcon unsafe.Pointer, condition int32, threshold int, triggerTokenOut unsafe.Pointer) int

@function CMBufferQueueInstallTriggerWithIntegerThreshold @abstract Installs a trigger on a CMBufferQueue. @discussion This function behaves the same way as CMBufferQueueInstallTrigger() except the trigger is evaluated against the integer value rather than the time value.

func CMBufferQueueIsAtEndOfData

func CMBufferQueueIsAtEndOfData(queue unsafe.Pointer) uint8

@function CMBufferQueueIsAtEndOfData @abstract Returns whether or not a CMBufferQueue has been marked with EOD, and is now empty. @result Whether or not the CMBufferQueue has been marked with EOD, and is now empty. If queue is NULL, true is returned (a NULL queue is considered to be empty, and permanently at EOD).

func CMBufferQueueIsEmpty

func CMBufferQueueIsEmpty(queue unsafe.Pointer) uint8

@function CMBufferQueueIsEmpty @abstract Returns whether or not a CMBufferQueue is empty. @result Whether or not the CMBufferQueue is empty. If queue is NULL, true is returned.

func CMBufferQueueMarkEndOfData

func CMBufferQueueMarkEndOfData(queue unsafe.Pointer) int

@function CMBufferQueueMarkEndOfData @abstract Marks a CMBufferQueue with EOD. @discussion All subsequent Enqueues will be rejected until CMBufferQueueReset is called. Subsequent Dequeues will succeed as long as the queue is not empty.

func CMBufferQueueRemoveTrigger

func CMBufferQueueRemoveTrigger(queue unsafe.Pointer, triggerToken unsafe.Pointer) int

@function CMBufferQueueRemoveTrigger @abstract Removes a previously installed trigger from a CMBufferQueue. @discussion Triggers will automatically be removed when a queue is finalized. However, if more than one module has access to a queue, it may be hard for an individual module to know when the queue is finalized since other modules may retain it. To address this concern, modules should remove their triggers before they themselves are finalized.

func CMBufferQueueReset

func CMBufferQueueReset(queue unsafe.Pointer) int

@function CMBufferQueueReset @abstract Resets a CMBufferQueue. Empties the queue, and clears any EOD mark. @discussion All buffers in the queue are released. Triggers are not removed, however, and will be called appropriately as the queue duration goes to zero.

func CMBufferQueueResetWithCallback

func CMBufferQueueResetWithCallback(queue unsafe.Pointer, callback unsafe.Pointer, refcon unsafe.Pointer) int

func CMBufferQueueSetValidationCallback

func CMBufferQueueSetValidationCallback(queue unsafe.Pointer, callback unsafe.Pointer, refcon unsafe.Pointer) int

@function CMBufferQueueSetValidationCallback @abstract Sets a function that CMBufferQueueEnqueue will call to validate buffers before adding them to the queue.

func CMBufferQueueSetValidationHandler

func CMBufferQueueSetValidationHandler(queue unsafe.Pointer, handler func(unsafe.Pointer, unsafe.Pointer) int) int

@function CMBufferQueueSetValidationHandler @abstract Sets a block that CMBufferQueueEnqueue will call to validate buffers before adding them to the queue. @discussion Both a validation callback and a validation handler can be set at the same time, in which case they will both be called when enqueueing buffers. They both need to return noErr for the buffer to be enqueued.

func CMBufferQueueTestTrigger

func CMBufferQueueTestTrigger(queue unsafe.Pointer, triggerToken unsafe.Pointer) uint8

@function CMBufferQueueTestTrigger @abstract Tests whether the trigger condition is true. @discussion Whereas the trigger callback will only be called when the condition goes from false to true, CMBufferQueueTestTrigger always returns the condition's current status. The triggerToken must be one that has been installed on this queue.

func CMClockConvertHostTimeToSystemUnits

func CMClockConvertHostTimeToSystemUnits(hostTime CMTime) uint64

func CMClockGetAnchorTime

func CMClockGetAnchorTime(clock unsafe.Pointer, clockTimeOut *CMTime, referenceClockTimeOut *CMTime) int

func CMClockGetHostTimeClock

func CMClockGetHostTimeClock() unsafe.Pointer

func CMClockGetTypeID

func CMClockGetTypeID() uint

func CMClockInvalidate

func CMClockInvalidate(clock unsafe.Pointer)

func CMClockMightDrift

func CMClockMightDrift(clock unsafe.Pointer, otherClock unsafe.Pointer) uint8

func CMClosedCaptionFormatDescriptionCopyAsBigEndianClosedCaptionDescriptionBlockBuffer

func CMClosedCaptionFormatDescriptionCopyAsBigEndianClosedCaptionDescriptionBlockBuffer(allocator unsafe.Pointer, closedCaptionFormatDescription unsafe.Pointer, flavor unsafe.Pointer, blockBufferOut unsafe.Pointer) int

@function CMClosedCaptionFormatDescriptionCopyAsBigEndianClosedCaptionDescriptionBlockBuffer @abstract Copies the contents of a CMClosedCaptionFormatDescription to a CMBlockBuffer in big-endian byte ordering. @discussion On return, the caller owns the returned CMBlockBuffer, and must release it when done with it. Note that the dataRefIndex field of the SampleDescription is intentionally filled with garbage values (0xFFFF). The caller must overwrite these values with a valid dataRefIndex if writing the SampleDescription to a QuickTime/ISO file. @param allocator Allocator to use for allocating the CMBlockBuffer object. May be NULL. @param closedCaptionFormatDescription CMClosedCaptionFormatDescription to be copied. @param flavor Reserved for future use. Pass NULL for QuickTime Movie or ISO flavor. @param blockBufferOut Receives new CMBlockBuffer containing ClosedCaptionDescription data structure in big-endian byte ordering.

func CMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionBlockBuffer

func CMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionBlockBuffer(allocator unsafe.Pointer, closedCaptionDescriptionBlockBuffer unsafe.Pointer, flavor unsafe.Pointer, formatDescriptionOut unsafe.Pointer) int

@function CMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionBlockBuffer @abstract Creates a CMClosedCaptionFormatDescription from a big-endian ClosedCaptionDescription data structure in a CMBlockBuffer. @param allocator Allocator to use for allocating the CMClosedCaptionFormatDescription object. May be NULL. @param closedCaptionDescriptionBlockBuffer CMBlockBuffer containing ClosedCaptionDescription data structure in big-endian byte ordering. @param flavor Reserved for future use. Pass NULL for QuickTime Movie or ISO flavor. @param formatDescriptionOut Receives new CMClosedCaptionFormatDescription.

func CMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionData

func CMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionData(allocator unsafe.Pointer, closedCaptionDescriptionData *uint8, size uint, flavor unsafe.Pointer, formatDescriptionOut unsafe.Pointer) int

@function CMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionData @abstract Creates a CMClosedCaptionFormatDescription from a big-endian ClosedCaptionDescription data structure. @param allocator Allocator to use for allocating the CMClosedCaptionFormatDescription object. May be NULL. @param closedCaptionDescriptionData ClosedCaptionDescription data structure in big-endian byte ordering. @param size Size of ClosedCaptionDescription data structure. @param flavor Reserved for future use. Pass NULL for QuickTime Movie or ISO flavor. @param formatDescriptionOut Receives new CMClosedCaptionFormatDescription.

func CMCopyDictionaryOfAttachments

func CMCopyDictionaryOfAttachments(allocator unsafe.Pointer, target unsafe.Pointer, attachmentMode uint32) unsafe.Pointer

@function CMCopyDictionaryOfAttachments @abstract Returns all attachments of a CMAttachmentBearer @discussion CMCopyDictionaryOfAttachments is a convenience call that returns all attachments with their corresponding keys in a new CFDictionary that the caller must dispose by calling CFRelease. Given a CVBufferRef, CMCopyDictionaryOfAttachments is similar to CVBufferGetAttachments, except that CVBufferGetAttachments returns a CFDictionary that may change if attachments are added later. @param allocator Allocator for the new dictionary; pass kCFAllocatorDefault or NULL to use the default allocator. @param target Target CMAttachmentBearer. @result A CFDictionary with all buffer attachments identified by there keys. If no attachment is present, NULL is returned. Returns NULL for invalid attachment mode.

func CMDoesBigEndianSoundDescriptionRequireLegacyCBRSampleTableLayout

func CMDoesBigEndianSoundDescriptionRequireLegacyCBRSampleTableLayout(soundDescriptionBlockBuffer unsafe.Pointer, flavor unsafe.Pointer) uint8

@function CMDoesBigEndianSoundDescriptionRequireLegacyCBRSampleTableLayout @abstract Examine a big-endian SoundDescription data structure in a CMBlockBuffer, and report whether the sample tables will need to use the legacy CBR layout. @param soundDescriptionBlockBuffer CMBlockBuffer containing SoundDescription data structure in big-endian byte ordering. @param flavor kCMSoundDescriptionFlavor constant or NULL for QuickTimeMovie flavor.

func CMFormatDescriptionCreate

func CMFormatDescriptionCreate(allocator unsafe.Pointer, mediaType uint, mediaSubType uint, extensions unsafe.Pointer, formatDescriptionOut unsafe.Pointer) int

func CMFormatDescriptionEqual

func CMFormatDescriptionEqual(formatDescription unsafe.Pointer, otherFormatDescription unsafe.Pointer) uint8

func CMFormatDescriptionEqualIgnoringExtensionKeys

func CMFormatDescriptionEqualIgnoringExtensionKeys(formatDescription unsafe.Pointer, otherFormatDescription unsafe.Pointer, formatDescriptionExtensionKeysToIgnore unsafe.Pointer, sampleDescriptionExtensionAtomKeysToIgnore unsafe.Pointer) uint8

func CMFormatDescriptionGetExtension

func CMFormatDescriptionGetExtension(desc unsafe.Pointer, extensionKey unsafe.Pointer) unsafe.Pointer

func CMFormatDescriptionGetExtensions

func CMFormatDescriptionGetExtensions(desc unsafe.Pointer) unsafe.Pointer

func CMFormatDescriptionGetMediaSubType

func CMFormatDescriptionGetMediaSubType(desc unsafe.Pointer) uint

func CMFormatDescriptionGetMediaType

func CMFormatDescriptionGetMediaType(desc unsafe.Pointer) uint

func CMFormatDescriptionGetTypeID

func CMFormatDescriptionGetTypeID() uint

func CMGetAttachment

func CMGetAttachment(target unsafe.Pointer, key unsafe.Pointer, attachmentModeOut *uint32) unsafe.Pointer

@function CMGetAttachment @abstract Returns a specific attachment of a CMAttachmentBearer @discussion You can attach any CF object to a CMAttachmentBearer to store additional information. CMGetAttachment retrieves an attachment identified by a key. Given a CVBufferRef, CMGetAttachment is equivalent to CVBufferGetAttachment. @param target Target CMAttachmentBearer. @param key Key in form of a CFString identifying the desired attachment. @param attachmentModeOut Returns the mode of the attachment, if desired. May be NULL. @result If found the attachment object; else NULL.

func CMMemoryPoolCreate

func CMMemoryPoolCreate(options unsafe.Pointer) unsafe.Pointer

@function CMMemoryPoolCreate @abstract Creates a new CMMemoryPool.

func CMMemoryPoolFlush

func CMMemoryPoolFlush(pool unsafe.Pointer)

@function CMMemoryPoolFlush @abstract Deallocates all memory the pool was holding for recycling.

func CMMemoryPoolGetAllocator

func CMMemoryPoolGetAllocator(pool unsafe.Pointer) unsafe.Pointer

@function CMMemoryPoolGetAllocator @abstract Returns the pool's CFAllocator.

func CMMemoryPoolGetTypeID

func CMMemoryPoolGetTypeID() uint

func CMMemoryPoolInvalidate

func CMMemoryPoolInvalidate(pool unsafe.Pointer)

@function CMMemoryPoolInvalidate @abstract Stops the pool from recycling. @discussion When CMMemoryPoolInvalidate is called the pool's allocator stops recycling memory. The pool deallocates any memory it was holding for recycling. This also happens when the retain count of the CMMemoryPool drops to zero, except that under GC it may be delayed.

func CMMetadataCreateIdentifierForKeyAndKeySpace

func CMMetadataCreateIdentifierForKeyAndKeySpace(allocator unsafe.Pointer, key unsafe.Pointer, keySpace unsafe.Pointer, identifierOut unsafe.Pointer) int

func CMMetadataCreateKeyFromIdentifier

func CMMetadataCreateKeyFromIdentifier(allocator unsafe.Pointer, identifier unsafe.Pointer, keyOut unsafe.Pointer) int

func CMMetadataCreateKeyFromIdentifierAsCFData

func CMMetadataCreateKeyFromIdentifierAsCFData(allocator unsafe.Pointer, identifier unsafe.Pointer, keyOut unsafe.Pointer) int

func CMMetadataCreateKeySpaceFromIdentifier

func CMMetadataCreateKeySpaceFromIdentifier(allocator unsafe.Pointer, identifier unsafe.Pointer, keySpaceOut unsafe.Pointer) int

func CMMetadataDataTypeRegistryDataTypeConformsToDataType

func CMMetadataDataTypeRegistryDataTypeConformsToDataType(dataType unsafe.Pointer, conformsToDataType unsafe.Pointer) uint8

func CMMetadataDataTypeRegistryDataTypeIsBaseDataType

func CMMetadataDataTypeRegistryDataTypeIsBaseDataType(dataType unsafe.Pointer) uint8

func CMMetadataDataTypeRegistryDataTypeIsRegistered

func CMMetadataDataTypeRegistryDataTypeIsRegistered(dataType unsafe.Pointer) uint8

func CMMetadataDataTypeRegistryGetBaseDataTypeForConformingDataType

func CMMetadataDataTypeRegistryGetBaseDataTypeForConformingDataType(dataType unsafe.Pointer) unsafe.Pointer

func CMMetadataDataTypeRegistryGetBaseDataTypes

func CMMetadataDataTypeRegistryGetBaseDataTypes() unsafe.Pointer

func CMMetadataDataTypeRegistryGetConformingDataTypes

func CMMetadataDataTypeRegistryGetConformingDataTypes(dataType unsafe.Pointer) unsafe.Pointer

func CMMetadataDataTypeRegistryGetDataTypeDescription

func CMMetadataDataTypeRegistryGetDataTypeDescription(dataType unsafe.Pointer) unsafe.Pointer

func CMMetadataDataTypeRegistryRegisterDataType

func CMMetadataDataTypeRegistryRegisterDataType(dataType unsafe.Pointer, description unsafe.Pointer, conformingDataTypes unsafe.Pointer) int

func CMMetadataFormatDescriptionCopyAsBigEndianMetadataDescriptionBlockBuffer

func CMMetadataFormatDescriptionCopyAsBigEndianMetadataDescriptionBlockBuffer(allocator unsafe.Pointer, metadataFormatDescription unsafe.Pointer, flavor unsafe.Pointer, blockBufferOut unsafe.Pointer) int

@function CMMetadataFormatDescriptionCopyAsBigEndianMetadataDescriptionBlockBuffer @abstract Copies the contents of a CMMetadataFormatDescription to a CMBlockBuffer in big-endian byte ordering. @discussion On return, the caller owns the returned CMBlockBuffer, and must release it when done with it. Note that the dataRefIndex field of the SampleDescription is intentionally filled with garbage values (0xFFFF). The caller must overwrite these values with a valid dataRefIndex if writing the SampleDescription to a QuickTime/ISO file. @param allocator Allocator to use for allocating the CMBlockBuffer object. May be NULL. @param metadataFormatDescription CMMetadataFormatDescriptionRef to be copied. @param flavor Reserved for future use. Pass NULL for QuickTime Movie or ISO flavor. @param blockBufferOut Receives new CMBlockBuffer containing MetadataDescription data structure in big-endian byte ordering.

func CMMetadataFormatDescriptionCreateByMergingMetadataFormatDescriptions

func CMMetadataFormatDescriptionCreateByMergingMetadataFormatDescriptions(allocator unsafe.Pointer, sourceDescription unsafe.Pointer, otherSourceDescription unsafe.Pointer, formatDescriptionOut unsafe.Pointer) int

func CMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionBlockBuffer

func CMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionBlockBuffer(allocator unsafe.Pointer, metadataDescriptionBlockBuffer unsafe.Pointer, flavor unsafe.Pointer, formatDescriptionOut unsafe.Pointer) int

@function CMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionBlockBuffer @abstract Creates a CMMetadataFormatDescription from a big-endian MetadataDescription data structure in a CMBlockBuffer. @param allocator Allocator to use for allocating the CMMetadataFormatDescription object. May be NULL. @param metadataDescriptionBlockBuffer CMBlockBuffer containing MetadataDescription data structure in big-endian byte ordering. @param flavor Reserved for future use. Pass NULL for QuickTime Movie or ISO flavor. @param formatDescriptionOut Receives new CMMetadataFormatDescriptionRef.

func CMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionData

func CMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionData(allocator unsafe.Pointer, metadataDescriptionData *uint8, size uint, flavor unsafe.Pointer, formatDescriptionOut unsafe.Pointer) int

@function CMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionData @abstract Creates a CMMetadataFormatDescription from a big-endian MetadataDescription data structure. @param allocator Allocator to use for allocating the CMMetadataFormatDescription object. May be NULL. @param metadataDescriptionData MetadataDescription data structure in big-endian byte ordering. @param size Size of MetadataDescription data structure. @param flavor Reserved for future use. Pass NULL for QuickTime Movie or ISO flavor. @param formatDescriptionOut Receives new CMMetadataFormatDescriptionRef.

func CMMetadataFormatDescriptionCreateWithKeys

func CMMetadataFormatDescriptionCreateWithKeys(allocator unsafe.Pointer, metadataType uint, keys unsafe.Pointer, formatDescriptionOut unsafe.Pointer) int

func CMMetadataFormatDescriptionCreateWithMetadataFormatDescriptionAndMetadataSpecifications

func CMMetadataFormatDescriptionCreateWithMetadataFormatDescriptionAndMetadataSpecifications(allocator unsafe.Pointer, sourceDescription unsafe.Pointer, metadataSpecifications unsafe.Pointer, formatDescriptionOut unsafe.Pointer) int

func CMMetadataFormatDescriptionCreateWithMetadataSpecifications

func CMMetadataFormatDescriptionCreateWithMetadataSpecifications(allocator unsafe.Pointer, metadataType uint, metadataSpecifications unsafe.Pointer, formatDescriptionOut unsafe.Pointer) int

func CMMetadataFormatDescriptionGetIdentifiers

func CMMetadataFormatDescriptionGetIdentifiers(desc unsafe.Pointer) unsafe.Pointer

func CMMetadataFormatDescriptionGetKeyWithLocalID

func CMMetadataFormatDescriptionGetKeyWithLocalID(desc unsafe.Pointer, localKeyID uint) unsafe.Pointer

func CMMuxedFormatDescriptionCreate

func CMMuxedFormatDescriptionCreate(allocator unsafe.Pointer, muxType uint, extensions unsafe.Pointer, formatDescriptionOut unsafe.Pointer) int

func CMPropagateAttachments

func CMPropagateAttachments(source unsafe.Pointer, destination unsafe.Pointer)

@function CMPropagateAttachments @abstract Copy all propagatable attachments from one buffer to another. @discussion CMPropagateAttachments is a convenience call that copies all attachments with a mode of kCMAttachmentMode_ShouldPropagate from one buffer to another. Given a CVBufferRef, CMPropagateAttachments is equivalent to CVBufferPropagateAttachments. @param source CMAttachmentBearer to copy attachments from. @param destination CMAttachmentBearer to copy attachments to.

func CMRemoveAllAttachments

func CMRemoveAllAttachments(target unsafe.Pointer)

@function CMRemoveAllAttachments @abstract Removes all attachments of a CMAttachmentBearer @discussion While CMRemoveAttachment removes a specific attachment identified by a key CMRemoveAllAttachments removes all attachments of a buffer and decrements their retain counts. Given a CVBufferRef, CMRemoveAllAttachments is equivalent to CVBufferRemoveAllAttachments. @param target Target CMAttachmentBearer.

func CMRemoveAttachment

func CMRemoveAttachment(target unsafe.Pointer, key unsafe.Pointer)

@function CMRemoveAttachment @abstract Removes a specific attachment of a CMAttachmentBearer @discussion CMRemoveAttachment removes an attachment identified by a key. If found the attachment is removed and the retain count decremented. Given a CVBufferRef, CMRemoveAttachment is equivalent to CVBufferRemoveAttachment. @param target Target CMAttachmentBearer. @param key Key in form of a CFString identifying the desired attachment.

func CMSampleBufferCallBlockForEachSample

func CMSampleBufferCallBlockForEachSample(sbuf unsafe.Pointer, handler func(unsafe.Pointer, int) unsafe.Pointer) int

func CMSampleBufferCallForEachSample

func CMSampleBufferCallForEachSample(sbuf unsafe.Pointer, callback unsafe.Pointer, refcon unsafe.Pointer) int

func CMSampleBufferCopyPCMDataIntoAudioBufferList

func CMSampleBufferCopyPCMDataIntoAudioBufferList(sbuf unsafe.Pointer, frameOffset int32, numFrames int32, bufferList *coreaudiotypes.AudioBufferList) int

func CMSampleBufferCopySampleBufferForRange

func CMSampleBufferCopySampleBufferForRange(allocator unsafe.Pointer, sbuf unsafe.Pointer, sampleRange corefoundation.CFRange, sampleBufferOut unsafe.Pointer) int

func CMSampleBufferCreate

func CMSampleBufferCreate(allocator unsafe.Pointer, dataBuffer unsafe.Pointer, dataReady uint8, makeDataReadyCallback unsafe.Pointer, makeDataReadyRefcon unsafe.Pointer, formatDescription unsafe.Pointer, numSamples int, numSampleTimingEntries int, sampleTimingArray *CMSampleTimingInfo, numSampleSizeEntries int, sampleSizeArray *uint, sampleBufferOut unsafe.Pointer) int

func CMSampleBufferCreateCopy

func CMSampleBufferCreateCopy(allocator unsafe.Pointer, sbuf unsafe.Pointer, sampleBufferOut unsafe.Pointer) int

func CMSampleBufferCreateCopyWithNewTiming

func CMSampleBufferCreateCopyWithNewTiming(allocator unsafe.Pointer, originalSBuf unsafe.Pointer, numSampleTimingEntries int, sampleTimingArray *CMSampleTimingInfo, sampleBufferOut unsafe.Pointer) int

func CMSampleBufferCreateForImageBuffer

func CMSampleBufferCreateForImageBuffer(allocator unsafe.Pointer, imageBuffer unsafe.Pointer, dataReady uint8, makeDataReadyCallback unsafe.Pointer, makeDataReadyRefcon unsafe.Pointer, formatDescription unsafe.Pointer, sampleTiming *CMSampleTimingInfo, sampleBufferOut unsafe.Pointer) int

func CMSampleBufferCreateForImageBufferWithMakeDataReadyHandler

func CMSampleBufferCreateForImageBufferWithMakeDataReadyHandler(allocator unsafe.Pointer, imageBuffer unsafe.Pointer, dataReady uint8, formatDescription unsafe.Pointer, sampleTiming *CMSampleTimingInfo, sampleBufferOut unsafe.Pointer, makeDataReadyHandler func(unsafe.Pointer) int) int

func CMSampleBufferCreateForTaggedBufferGroup

func CMSampleBufferCreateForTaggedBufferGroup(allocator unsafe.Pointer, taggedBufferGroup unsafe.Pointer, sbufPTS CMTime, sbufDuration CMTime, formatDescription unsafe.Pointer, sBufOut unsafe.Pointer) int

@function CMSampleBufferCreateForTaggedBufferGroup @abstract Creates a new CMSampleBuffer object with the specified CMTaggedBufferGroup. @param allocator CFAllocator with which to create the CMSampleBuffer object. Pass kCFAllocatorDefault to use the default allocator. @param taggedBufferGroup The CMTaggedBufferGroup to be stored in the sample buffer. The CMSampleBuffer will retain the CMTaggedBufferGroup internally. @param sbufPTS Media time PTS of the sample buffer. @param sbufDuration Media time duration of the sample buffer. Can be kCMTimeInvalid if not known or not defined. @param formatDescription A CMTaggedBufferGroupFormatDescription describing the CMTaggedBufferGroup. You may create this with CMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroup. If you are creating a lot of CMSampleBuffers containing matching CMTaggedBufferGroups, it is more efficient to create the CMTaggedBufferGroupFormatDescription once and use it for all of the CMSampleBuffers. You may call CMTaggedBufferGroupFormatDescriptionMatchesTaggedBufferGroup to confirm that a reused CMTaggedBufferGroupFormatDescription matches a new CMTaggedBufferGroup. @param sBufOut Returned newly created CMSampleBuffer. @result OSStatus with error or noErr if successful.

func CMSampleBufferCreateReady

func CMSampleBufferCreateReady(allocator unsafe.Pointer, dataBuffer unsafe.Pointer, formatDescription unsafe.Pointer, numSamples int, numSampleTimingEntries int, sampleTimingArray *CMSampleTimingInfo, numSampleSizeEntries int, sampleSizeArray *uint, sampleBufferOut unsafe.Pointer) int

func CMSampleBufferCreateReadyWithImageBuffer

func CMSampleBufferCreateReadyWithImageBuffer(allocator unsafe.Pointer, imageBuffer unsafe.Pointer, formatDescription unsafe.Pointer, sampleTiming *CMSampleTimingInfo, sampleBufferOut unsafe.Pointer) int

func CMSampleBufferCreateWithMakeDataReadyHandler

func CMSampleBufferCreateWithMakeDataReadyHandler(allocator unsafe.Pointer, dataBuffer unsafe.Pointer, dataReady uint8, formatDescription unsafe.Pointer, numSamples int, numSampleTimingEntries int, sampleTimingArray *CMSampleTimingInfo, numSampleSizeEntries int, sampleSizeArray *uint, sampleBufferOut unsafe.Pointer, makeDataReadyHandler func(unsafe.Pointer) int) int

func CMSampleBufferDataIsReady

func CMSampleBufferDataIsReady(sbuf unsafe.Pointer) uint8

func CMSampleBufferGetAudioBufferListWithRetainedBlockBuffer

func CMSampleBufferGetAudioBufferListWithRetainedBlockBuffer(sbuf unsafe.Pointer, bufferListSizeNeededOut *uint, bufferListOut *coreaudiotypes.AudioBufferList, bufferListSize uint, blockBufferStructureAllocator unsafe.Pointer, blockBufferBlockAllocator unsafe.Pointer, flags uint32, blockBufferOut unsafe.Pointer) int

func CMSampleBufferGetAudioStreamPacketDescriptions

func CMSampleBufferGetAudioStreamPacketDescriptions(sbuf unsafe.Pointer, packetDescriptionsSize uint, packetDescriptionsOut *coreaudiotypes.AudioStreamPacketDescription, packetDescriptionsSizeNeededOut *uint) int

func CMSampleBufferGetAudioStreamPacketDescriptionsPtr

func CMSampleBufferGetAudioStreamPacketDescriptionsPtr(sbuf unsafe.Pointer, packetDescriptionsPointerOut *coreaudiotypes.AudioStreamPacketDescription, packetDescriptionsSizeOut *uint) int

func CMSampleBufferGetDataBuffer

func CMSampleBufferGetDataBuffer(sbuf unsafe.Pointer) unsafe.Pointer

func CMSampleBufferGetFormatDescription

func CMSampleBufferGetFormatDescription(sbuf unsafe.Pointer) unsafe.Pointer

func CMSampleBufferGetImageBuffer

func CMSampleBufferGetImageBuffer(sbuf unsafe.Pointer) unsafe.Pointer

func CMSampleBufferGetNumSamples

func CMSampleBufferGetNumSamples(sbuf unsafe.Pointer) int

func CMSampleBufferGetOutputSampleTimingInfoArray

func CMSampleBufferGetOutputSampleTimingInfoArray(sbuf unsafe.Pointer, timingArrayEntries int, timingArrayOut *CMSampleTimingInfo, timingArrayEntriesNeededOut *int) int

func CMSampleBufferGetSampleAttachmentsArray

func CMSampleBufferGetSampleAttachmentsArray(sbuf unsafe.Pointer, createIfNecessary uint8) unsafe.Pointer

func CMSampleBufferGetSampleSize

func CMSampleBufferGetSampleSize(sbuf unsafe.Pointer, sampleIndex int) uint

func CMSampleBufferGetSampleSizeArray

func CMSampleBufferGetSampleSizeArray(sbuf unsafe.Pointer, sizeArrayEntries int, sizeArrayOut *uint, sizeArrayEntriesNeededOut *int) int

func CMSampleBufferGetSampleTimingInfo

func CMSampleBufferGetSampleTimingInfo(sbuf unsafe.Pointer, sampleIndex int, timingInfoOut *CMSampleTimingInfo) int

func CMSampleBufferGetSampleTimingInfoArray

func CMSampleBufferGetSampleTimingInfoArray(sbuf unsafe.Pointer, numSampleTimingEntries int, timingArrayOut *CMSampleTimingInfo, timingArrayEntriesNeededOut *int) int

func CMSampleBufferGetTaggedBufferGroup

func CMSampleBufferGetTaggedBufferGroup(sbuf unsafe.Pointer) unsafe.Pointer

@function CMSampleBufferGetTaggedBufferGroup @abstract Returns a CMSampleBuffer's TaggedBufferGroup of media data. @param sbuf CMSampleBuffer being interrogated. @discussion The caller does not own the returned CMTaggedBufferGroup, and must retain it explicitly if the caller needs to maintain a reference to it. @result CMTaggedBufferGroup of media data. The result will be NULL if the CMSampleBuffer does not contain a CMTaggedBufferGroup, or if there is some other error.

func CMSampleBufferGetTotalSampleSize

func CMSampleBufferGetTotalSampleSize(sbuf unsafe.Pointer) uint

func CMSampleBufferGetTypeID

func CMSampleBufferGetTypeID() uint

func CMSampleBufferHasDataFailed

func CMSampleBufferHasDataFailed(sbuf unsafe.Pointer, statusOut *int) uint8

func CMSampleBufferInvalidate

func CMSampleBufferInvalidate(sbuf unsafe.Pointer) int

func CMSampleBufferIsValid

func CMSampleBufferIsValid(sbuf unsafe.Pointer) uint8

func CMSampleBufferMakeDataReady

func CMSampleBufferMakeDataReady(sbuf unsafe.Pointer) int

func CMSampleBufferSetDataBuffer

func CMSampleBufferSetDataBuffer(sbuf unsafe.Pointer, dataBuffer unsafe.Pointer) int

func CMSampleBufferSetDataBufferFromAudioBufferList

func CMSampleBufferSetDataBufferFromAudioBufferList(sbuf unsafe.Pointer, blockBufferStructureAllocator unsafe.Pointer, blockBufferBlockAllocator unsafe.Pointer, flags uint32, bufferList *coreaudiotypes.AudioBufferList) int

func CMSampleBufferSetDataFailed

func CMSampleBufferSetDataFailed(sbuf unsafe.Pointer, status int) int

func CMSampleBufferSetDataReady

func CMSampleBufferSetDataReady(sbuf unsafe.Pointer) int

func CMSampleBufferSetInvalidateCallback

func CMSampleBufferSetInvalidateCallback(sbuf unsafe.Pointer, invalidateCallback unsafe.Pointer, invalidateRefCon uint64) int

func CMSampleBufferSetInvalidateHandler

func CMSampleBufferSetInvalidateHandler(sbuf unsafe.Pointer, invalidateHandler func(unsafe.Pointer)) int

func CMSampleBufferSetOutputPresentationTimeStamp

func CMSampleBufferSetOutputPresentationTimeStamp(sbuf unsafe.Pointer, outputPresentationTimeStamp CMTime) int

func CMSampleBufferTrackDataReadiness

func CMSampleBufferTrackDataReadiness(sbuf unsafe.Pointer, sampleBufferToTrack unsafe.Pointer) int

func CMSetAttachment

func CMSetAttachment(target unsafe.Pointer, key unsafe.Pointer, value unsafe.Pointer, attachmentMode uint32)

@function CMSetAttachment @abstract Sets or adds a attachment of a CMAttachmentBearer @discussion You can attach any CF object to a CMAttachmentBearer object to store additional information. CMSetAttachment stores an attachment identified by a key. If the key doesn't exist, the attachment will be added. If the key does exist, the existing attachment will be replaced. In both cases the retain count of the attachment will be incremented. The value can be any CFType but nil has no defined behavior. Given a CVBufferRef, CMSetAttachment is equivalent to CVBufferSetAttachment. @param target Target CMAttachmentBearer. @param key Key in form of a CFString identifying the desired attachment. @param value Attachment in form af a CF object. @param attachmentMode Specifies which attachment mode is desired for this attachment. A particular attachment key may only exist in a single mode at a time.

func CMSetAttachments

func CMSetAttachments(target unsafe.Pointer, theAttachments unsafe.Pointer, attachmentMode uint32)

@function CMSetAttachments @abstract Sets a set of attachments for a CMAttachmentBearer @discussion CMSetAttachments is a convenience call that in turn calls CMSetAttachment for each key and value in the given dictionary. All key value pairs must be in the root level of the dictionary. Given a CVBufferRef, CMSetAttachments is equivalent to CVBufferSetAttachments. @param target Target CMAttachmentBearer.

func CMSimpleQueueCreate

func CMSimpleQueueCreate(allocator unsafe.Pointer, capacity int32, queueOut unsafe.Pointer) int

func CMSimpleQueueDequeue

func CMSimpleQueueDequeue(queue unsafe.Pointer) unsafe.Pointer

func CMSimpleQueueEnqueue

func CMSimpleQueueEnqueue(queue unsafe.Pointer, element unsafe.Pointer) int

func CMSimpleQueueGetCapacity

func CMSimpleQueueGetCapacity(queue unsafe.Pointer) int32

func CMSimpleQueueGetCount

func CMSimpleQueueGetCount(queue unsafe.Pointer) int32

func CMSimpleQueueGetHead

func CMSimpleQueueGetHead(queue unsafe.Pointer) unsafe.Pointer

func CMSimpleQueueGetTypeID

func CMSimpleQueueGetTypeID() uint

func CMSimpleQueueReset

func CMSimpleQueueReset(queue unsafe.Pointer) int

func CMSwapBigEndianClosedCaptionDescriptionToHost

func CMSwapBigEndianClosedCaptionDescriptionToHost(closedCaptionDescriptionData *uint8, closedCaptionDescriptionSize uint) int

@function CMSwapBigEndianClosedCaptionDescriptionToHost @abstract Converts a ClosedCaptionDescription data structure from big-endian to host-endian in place. @param closedCaptionDescriptionData ClosedCaptionDescription data structure in big-endian byte ordering to be converted to host-endian byte ordering. @param closedCaptionDescriptionSize Size of ClosedCaptionDescription data structure.

func CMSwapBigEndianImageDescriptionToHost

func CMSwapBigEndianImageDescriptionToHost(imageDescriptionData *uint8, imageDescriptionSize uint) int

@function CMSwapBigEndianImageDescriptionToHost @abstract Converts an ImageDescription data structure from big-endian to host-endian in place. @param imageDescriptionData ImageDescription data structure in big-endian byte ordering to be converted to host-endian byte ordering. @param imageDescriptionSize Size of ImageDescription data structure.

func CMSwapBigEndianMetadataDescriptionToHost

func CMSwapBigEndianMetadataDescriptionToHost(metadataDescriptionData *uint8, metadataDescriptionSize uint) int

@function CMSwapBigEndianMetadataDescriptionToHost @abstract Converts a MetadataDescription data structure from big-endian to host-endian in place. @param metadataDescriptionData MetadataDescription data structure in big-endian byte ordering to be converted to host-endian byte ordering. @param metadataDescriptionSize Size of MetadataDescription data structure.

func CMSwapBigEndianSoundDescriptionToHost

func CMSwapBigEndianSoundDescriptionToHost(soundDescriptionData *uint8, soundDescriptionSize uint) int

@function CMSwapBigEndianSoundDescriptionToHost @abstract Converts a SoundDescription data structure from big-endian to host-endian in place. @param soundDescriptionData SoundDescription data structure in big-endian byte ordering to be converted to host-endian byte ordering. @param soundDescriptionSize Size of SoundDescription data structure.

func CMSwapBigEndianTextDescriptionToHost

func CMSwapBigEndianTextDescriptionToHost(textDescriptionData *uint8, textDescriptionSize uint) int

@function CMSwapBigEndianTextDescriptionToHost @abstract Converts a TextDescription data structure from big-endian to host-endian in place. @param textDescriptionData TextDescription data structure in big-endian byte ordering to be converted to host-endian byte ordering. @param textDescriptionSize Size of TextDescription data structure.

func CMSwapBigEndianTimeCodeDescriptionToHost

func CMSwapBigEndianTimeCodeDescriptionToHost(timeCodeDescriptionData *uint8, timeCodeDescriptionSize uint) int

@function CMSwapBigEndianTimeCodeDescriptionToHost @abstract Converts a TimeCodeDescription data structure from big-endian to host-endian in place. @param timeCodeDescriptionData TimeCodeDescription data structure in big-endian byte ordering to be converted to host-endian byte ordering. @param timeCodeDescriptionSize Size of TimeCodeDescription data structure.

func CMSwapHostEndianClosedCaptionDescriptionToBig

func CMSwapHostEndianClosedCaptionDescriptionToBig(closedCaptionDescriptionData *uint8, closedCaptionDescriptionSize uint) int

@function CMSwapHostEndianClosedCaptionDescriptionToBig @abstract Converts a ClosedCaptionDescription data structure from host-endian to big-endian in place. @param closedCaptionDescriptionData ClosedCaptionDescription data structure in host-endian byte ordering to be converted to big-endian byte ordering. @param closedCaptionDescriptionSize Size of ClosedCaptionDescription data structure.

func CMSwapHostEndianImageDescriptionToBig

func CMSwapHostEndianImageDescriptionToBig(imageDescriptionData *uint8, imageDescriptionSize uint) int

@function CMSwapHostEndianImageDescriptionToBig @abstract Converts an ImageDescription data structure from host-endian to big-endian in place. @param imageDescriptionData ImageDescription data structure in host-endian byte ordering to be converted to big-endian byte ordering. @param imageDescriptionSize Size of ImageDescription data structure.

func CMSwapHostEndianMetadataDescriptionToBig

func CMSwapHostEndianMetadataDescriptionToBig(metadataDescriptionData *uint8, metadataDescriptionSize uint) int

@function CMSwapHostEndianMetadataDescriptionToBig @abstract Converts a MetadataDescription data structure from host-endian to big-endian in place. @param metadataDescriptionData MetadataDescription data structure in host-endian byte ordering to be converted to big-endian byte ordering. @param metadataDescriptionSize Size of MetadataDescription data structure.

func CMSwapHostEndianSoundDescriptionToBig

func CMSwapHostEndianSoundDescriptionToBig(soundDescriptionData *uint8, soundDescriptionSize uint) int

@function CMSwapHostEndianSoundDescriptionToBig @abstract Converts a SoundDescription data structure from host-endian to big-endian in place. @param soundDescriptionData SoundDescription data structure in host-endian byte ordering to be converted to big-endian byte ordering. @param soundDescriptionSize Size of SoundDescription data structure.

func CMSwapHostEndianTextDescriptionToBig

func CMSwapHostEndianTextDescriptionToBig(textDescriptionData *uint8, textDescriptionSize uint) int

@function CMSwapHostEndianTextDescriptionToBig @abstract Converts a TextDescription data structure from host-endian to big-endian in place. @param textDescriptionData TextDescription data structure in host-endian byte ordering to be converted to big-endian byte ordering. @param textDescriptionSize Size of TextDescription data structure.

func CMSwapHostEndianTimeCodeDescriptionToBig

func CMSwapHostEndianTimeCodeDescriptionToBig(timeCodeDescriptionData *uint8, timeCodeDescriptionSize uint) int

@function CMSwapHostEndianTimeCodeDescriptionToBig @abstract Converts a TimeCodeDescription data structure from host-endian to big-endian in place. @param timeCodeDescriptionData TimeCodeDescription data structure in host-endian byte ordering to be converted to big-endian byte ordering. @param timeCodeDescriptionSize Size of TimeCodeDescription data structure.

func CMSyncGetRelativeRate

func CMSyncGetRelativeRate(ofClockOrTimebase unsafe.Pointer, relativeToClockOrTimebase unsafe.Pointer) float64

func CMSyncGetRelativeRateAndAnchorTime

func CMSyncGetRelativeRateAndAnchorTime(ofClockOrTimebase unsafe.Pointer, relativeToClockOrTimebase unsafe.Pointer, outRelativeRate *float64, outOfClockOrTimebaseAnchorTime *CMTime, outRelativeToClockOrTimebaseAnchorTime *CMTime) int

func CMSyncMightDrift

func CMSyncMightDrift(clockOrTimebase1 unsafe.Pointer, clockOrTimebase2 unsafe.Pointer) uint8

func CMTagCategoryEqualToTagCategory

func CMTagCategoryEqualToTagCategory(tag1 CMTag, tag2 CMTag) uint8

@function CMTagCategoryEqualToTagCategory @abstract Tests if the CMTagCategory fields of two CMTags are equal. @discussion Function evaluates if two tag categories are structurally equivalent. This can also be performed using the == operator with the fields but this inline can be useful if one wants to catch invocations. @param tag1 First CMTag to test. @param tag2 Second CMTag to test. @result Boolean indicating if the tag categories are equal.

func CMTagCategoryValueEqualToValue

func CMTagCategoryValueEqualToValue(tag1 CMTag, tag2 CMTag) uint8

@function CMTagCategoryValueEqualToValue @abstract Compares two CMTagCategory values for equality. @discussion Equality can also be tested by comparing the values with == but this is provided for consistency with other tests here. @param tag1 First CMTag to test for equality. @param tag2 Second CMTag to test for equality. @result Boolean indicating if the tag values are equal.

func CMTagCollectionAddTag

func CMTagCollectionAddTag(tagCollection unsafe.Pointer, tagToAdd CMTag) int

@function CMTagCollectionAddTag @abstract Adds a tag to a mutable tag collection guaranteeing it is only added once. @discussion This routine adds a CMTag to a CMMutableTagCollection. If the CMTag already exists in the tag collection, the tag is not added again. If the tag doesn't exist in the tag collection, the tag collection is updated to contain the tag. Note that there is no ordering for tags within a tag collection. @param tagCollection CMMutableTagCollectionRef to which to add a tag. @param tagToAdd A CMTag to add to the tag collection. @result OSStatus indicating if the operation succeeded. Returns noErr if the tag was already in the collection.

func CMTagCollectionAddTagsFromArray

func CMTagCollectionAddTagsFromArray(tagCollection unsafe.Pointer, tags *CMTag, tagCount int) int

@function CMTagCollectionAddTagsFromArray @abstract Adds all tags specified in a C array to a mutable tag collection. Tags already existing in tagCollection will not be added. @param tagCollection CMMutableTagCollectionRef to which to add tags. @param tags The address of a buffer of CMTags. @param tagCount CMItemCount of the number of tags in 'tags' array. @result OSStatus indicating if the operation succeeded.

func CMTagCollectionAddTagsFromCollection

func CMTagCollectionAddTagsFromCollection(tagCollection unsafe.Pointer, collectionWithTagsToAdd unsafe.Pointer) int

@function CMTagCollectionAddTagsFromCollection @abstract Add all tags from one tag collection to a mutable tag collection. Tags already existing in tagCollection will not be added. @param tagCollection CMMutableTagCollectionRef to which to add tags. @param collectionWithTagsToAdd CMTagCollectionRef from which to copy all tags. @result OSStatus indicating if the operation succeeded.

func CMTagCollectionApply

func CMTagCollectionApply(tagCollection unsafe.Pointer, applier unsafe.Pointer, context_ unsafe.Pointer)

@function CMTagCollectionApply @abstract Iterate over a tag collection calling the provided callback. @discussion Iterates over the CMTags of the tag collection executing the callback with each tag. @param tagCollection CMTagCollectionRef to iterate. @param applier The CMTagCollectionApplierFunction callback to call with each tag. @param context A void * or NULL to pass to applier.

func CMTagCollectionContainsCategory

func CMTagCollectionContainsCategory(tagCollection unsafe.Pointer, category CMTagCategory) uint8

@function CMTagCollectionContainsCategory @abstract Tests if a CMTagCategory is used by any CMTags within the tag container. @param tagCollection CMTagCollectionRef to check. @param category CMTagCategory whose value should be checked for containment in tagCollection. @result Returns true if tagCollection contains at least one CMTag with the specified category, false otherwise.

func CMTagCollectionContainsSpecifiedTags

func CMTagCollectionContainsSpecifiedTags(tagCollection unsafe.Pointer, containedTags *CMTag, containedTagCount int) uint8

@function CMTagCollectionContainsSpecifiedTags @abstract Checks if all the specified tags are contained in a tag collection. @discussion Tests if the tags specified by a buffer of CMTags are contained within another tag collection in its entirety. Partial containment will report false. Complete containment will report true. @param tagCollection CMTagCollectionRef to check. @param containedTags The non-NULL address to a CMTag array whose CMTags should be checked for containment in tagCollection. @param containedTagCount The number of CMTag elements in the buffer containedTags. Zero is allowed but will report true. @result Returns true if all CMTags in a buffer of CMTags are contained within the CMTagCollection, false otherwise.

func CMTagCollectionContainsTag

func CMTagCollectionContainsTag(tagCollection unsafe.Pointer, tag CMTag) uint8

@function CMTagCollectionContainsTag @abstract Checks if the tag collection contains a specific tag. @param tagCollection CMTagCollection to check. @param tag CMTag to find. @result Returns true if the indicated CMTag is contained within the CMTagCollection, false otherwise.

func CMTagCollectionContainsTagsOfCollection

func CMTagCollectionContainsTagsOfCollection(tagCollection unsafe.Pointer, containedTagCollection unsafe.Pointer) uint8

@function CMTagCollectionContainsTagsOfCollection @abstract Checks if all the tags in a tag collection are present in another tag collection. @discussion Tests if a collection of tags specified by a CMTagCollection are contained within another tag collection in its entirety. Partial containment will report false. Complete containment will report true. @param tagCollection CMTagCollectionRef used to check. @param containedTagCollection CMTagCollectionRef whose contents should be checked for containment in tagCollection. @result Returns true if all CMTags in a collection are contained within the specified CMTagCollection, false otherwise.

func CMTagCollectionCopyAsData

func CMTagCollectionCopyAsData(tagCollection unsafe.Pointer, allocator unsafe.Pointer) unsafe.Pointer

@function CMTagCollectionCopyAsData @abstract Returns a CFDataRef version of a CMTagCollection. @discussion This is useful when putting CMTagCollections in CF container types. @param tagCollection CMTagCollection to serialize as a CFData. @param allocator CFAllocator with which to create a CFData. Pass kCFAllocatorDefault to use the default allocator. @result A CFDataRef holding the serialized contents of the CMTagCollection. The client is responsible for releasing the returned CFData.

func CMTagCollectionCopyAsDictionary

func CMTagCollectionCopyAsDictionary(tagCollection unsafe.Pointer, allocator unsafe.Pointer) unsafe.Pointer

@function CMTagCollectionCopyAsDictionary @abstract Returns a CFDictionary representation of a CMTagCollection. @discussion This is useful when putting CMTagCollections in CF container types. @param tagCollection CMTagCollection to serialize as a CFDictionary. @param allocator CFAllocator with which to create a dictionary. Pass kCFAllocatorDefault to use the default allocator. @result A CFDictionaryRef holding the serialized contents of the CMTagCollection. The client is responsible for releasing the returned CFDictionary.

func CMTagCollectionCopyDescription

func CMTagCollectionCopyDescription(allocator unsafe.Pointer, tagCollection unsafe.Pointer) unsafe.Pointer

@function CMTagCollectionCopyDescription @abstract Creates a CFString with a description of a CMTagCollection. @discussion This can be used from within CFShow on a CMTagCollection object. It is also useful from other client debugging code. The caller owns the returned CFString, and is responsible for releasing it. Descriptions are not localized so are likely suitable only for debugging. @param allocator CFAllocator to use in creating the description string. @param tagCollection CMTagCollectionRef to describe. @result The created CFString description.

func CMTagCollectionCopyTagsOfCategories

func CMTagCollectionCopyTagsOfCategories(allocator unsafe.Pointer, tagCollection unsafe.Pointer, categories *CMTagCategory, categoriesCount int, collectionWithTagsOfCategories unsafe.Pointer) int

@function CMTagCollectionCopyTagsOfCategories @abstract Copies all tags belonging to a specified list of CMTagCategory from one tag collection to a newly created tag collection. @discussion This routine copies all tags belonging to a specified list of CMTagCategory from one tag collection to a newly created tag collection. @param allocator CFAllocatorRef to use in allocations of the operation. @param tagCollection CMTagCollectionRef from which to copy tags. @param categories A non-NULL address of a buffer containing a list of CMTagCategory. @param categoriesCount The number of CMTagCategory the buffer 'categories' is holding. @param collectionWithTagsOfCategories The address of a CMTagCollectionRef that contains all tags copied from 'tagCollection'. The client is responsible for releasing the returned CMTagCollection. @result OSStatus indicating if the operation succeeded.

func CMTagCollectionCountTagsWithFilterFunction

func CMTagCollectionCountTagsWithFilterFunction(tagCollection unsafe.Pointer, filterApplier unsafe.Pointer, context_ unsafe.Pointer) int

@function CMTagCollectionCountTagsWithFilterFunction @abstract Count the number of tags satisfying a callback. @discussion Iterates over the CMTags of the tag collection calling the supplied callback and incrementing a counter for each tag satisfying the callback. Returns this counter value upon completing iteration. @param tagCollection CMTagCollectionRef to iterate. @param filterApplier The CMTagCollectionTagFilterFunction callback to call with each tag. @param context A void * or NULL to pass to applier. @result CMItemCount indicating the number of CMTags satisfying 'filterApplier'.

func CMTagCollectionCreate

func CMTagCollectionCreate(allocator unsafe.Pointer, tags *CMTag, tagCount int, newCollectionOut unsafe.Pointer) int

@function CMTagCollectionCreate @abstract Creates a CMTagCollectionRef described by a number of parameters. @discussion This can be used to construct a CMTagCollectionRef from zero or more CMTags. @param allocator CFAllocator to use to create the collection and internal data structures. @param tags Zero or more CMTag structs to copy into the collection. May pass NULL if tagCount is also zero (0). @param tagCount Number of tags in the 'tags' array. @param newCollectionOut Address of a location to return the newly created CMTagCollectionRef. The client is responsible for releasing the returned CMTagCollection. @result OSStatus with error or noErr if successful.

func CMTagCollectionCreateCopy

func CMTagCollectionCreateCopy(tagCollection unsafe.Pointer, allocator unsafe.Pointer, newCollectionCopyOut unsafe.Pointer) int

@function CMTagCollectionCreateCopy @abstract Creates a duplicate CMTagCollectionRef. @discussion This can be used to construct a CMTagCollectionRef that contains all the same tags as another collection. @param tagCollection CMTagCollectionRef used to create the copy. @param allocator CFAllocator used to create the copy. @param newCollectionCopyOut Address of a location to return the newly created CMTagCollectionRef. The client is responsible for releasing the returned CMTagCollection. @result OSStatus with error or noErr if successful.

func CMTagCollectionCreateDifference

func CMTagCollectionCreateDifference(tagCollectionMinuend unsafe.Pointer, tagCollectionSubtrahend unsafe.Pointer, tagCollectionOut unsafe.Pointer) int

func CMTagCollectionCreateExclusiveOr

func CMTagCollectionCreateExclusiveOr(tagCollection1 unsafe.Pointer, tagCollection2 unsafe.Pointer, tagCollectionOut unsafe.Pointer) int

@function CMTagCollectionCreateExclusiveOr @abstract Calculates the exclusive OR of two tag collections to produce a new tag collection. @discussion This routine determines tags that are in only one of two source tag collections and adds only those to produce a new tag collection. If both source tag collections have no tags in common, the produced tag collection will contain a union of both source tag collections. If both source tag collections have the same tags, the produced tag collection will be empty. @param tagCollection1 CMTagCollectionRef to use in the xor operation. @param tagCollection2 CMTagCollectionRef to use in the xor operation. @param tagCollectionOut The address of a CMTagCollectionRef that contains the xor of the tags from the two tag collections. The client is responsible for releasing the returned CMTagCollection. @result OSStatus indicating if the operation succeeded.

func CMTagCollectionCreateFromData

func CMTagCollectionCreateFromData(data unsafe.Pointer, allocator unsafe.Pointer, newCollectionOut unsafe.Pointer) int

@function CMTagCollectionCreateFromData @abstract Reconstitutes a CMTagCollection from a CFData previously created by CMTagCollectionCopyAsData. @discussion This is useful when getting CMTagCollection from CF container types. If the CFData does not have the requisite keyed values, newCollectionOut will contain NULL. @param data A CFData from which to create a CMTagCollection. @param allocator CFAllocator to use in allocation CMTagCollectionRef. Pass kCFAllocatorDefault to use the default allocator. @param newCollectionOut Address of an CMTagCollectionRef to return the newly created tag collection. The client is responsible for releasing the returned CMTagCollection. @result OSStatus with error or noErr if successful.

func CMTagCollectionCreateFromDictionary

func CMTagCollectionCreateFromDictionary(dict unsafe.Pointer, allocator unsafe.Pointer, newCollectionOut unsafe.Pointer) int

@function CMTagCollectionCreateFromDictionary @abstract Reconstitutes a CMTagCollection from a CFDictionary previously created by CMTagCollectionCopyAsDictionary. @discussion This is useful when getting CMTagCollection from CF container types. If the CFDictionary does not have the requisite keyed values, newCollectionOut will contain NULL. @param dict A CFDictionary from which to create a CMTagCollection. @param allocator CFAllocator to use in allocation CMTagCollectionRef @param newCollectionOut Address of an CMTagCollectionRef to return the newly created tag collection. The client is responsible for releasing the returned CMTagCollection. @result OSStatus with error or noErr if successful.

func CMTagCollectionCreateIntersection

func CMTagCollectionCreateIntersection(tagCollection1 unsafe.Pointer, tagCollection2 unsafe.Pointer, tagCollectionOut unsafe.Pointer) int

@function CMTagCollectionCreateIntersection @abstract Calculates the intersection of two tag collections to produce a new tag collection. @discussion This routine creates an intersection of two tag collection by finding common tags among two source tag collections and produces a new tag collection containing those common tags. @param tagCollection1 CMTagCollectionRef to use in the intersection operation. @param tagCollection2 CMTagCollectionRef to use in the intersection operation. @param tagCollectionOut The address of a CMTagCollectionRef that contains all tags that are common to 'tagCollection1' and 'tagCollection2'. The client is responsible for releasing the returned CMTagCollection. @result OSStatus indicating if the operation succeeded.

func CMTagCollectionCreateMutable

func CMTagCollectionCreateMutable(allocator unsafe.Pointer, capacity int, newMutableCollectionOut unsafe.Pointer) int

@function CMTagCollectionCreateMutable @abstract Creates a CMMutableTagCollectionRef. @discussion This can be used to construct a mutable CMTagCollectionRef with a capacity limit or without a capacity limit. A capacity greater than zero indicates a maximum number of CMTags the collection can contain. The actual number of tags may be less than this value depending upon how many tags have been added to the collection. If capacity is 0, the mutable collection can contain any number of tags. @param allocator CFAllocator to use to create the collection and internal data structures. @param capacity Capacity limit set to zero to indicate no limit or a value greater than zero for a limit. @param newMutableCollectionOut Address of a location to return the newly created CMMutabbleTagCollectionRef. The client is responsible for releasing the returned CMMutableTagCollection. @result OSStatus with error, or noErr if successful.

func CMTagCollectionCreateMutableCopy

func CMTagCollectionCreateMutableCopy(tagCollection unsafe.Pointer, allocator unsafe.Pointer, newMutableCollectionCopyOut unsafe.Pointer) int

@function CMTagCollectionCreateMutableCopy @abstract Creates a duplicate mutable CMTagCollectionRef. @discussion This can be used to construct a CMMutableTagCollectionRef that contains all the same tags as another collection. @param tagCollection CMTagCollectionRef used to create the copy. @param allocator CFAllocator used to create the copy. @param newMutableCollectionCopyOut Address of a location to return the newly created CMMutableTagCollectionRef. The client is responsible for releasing the returned CMMutableTagCollection. @result OSStatus with error or noErr if successful.

func CMTagCollectionCreateUnion

func CMTagCollectionCreateUnion(tagCollection1 unsafe.Pointer, tagCollection2 unsafe.Pointer, tagCollectionOut unsafe.Pointer) int

@function CMTagCollectionCreateUnion @abstract Calculates the union of two tag collections to produce a new tag collection. @discussion This routine creates an union of two tag collection by adding all tags from two tag collections and produces a new tag collection containing all the tags. Duplicate tags will not be added twice. Note that if no tags are common among the source tag collections, the new tag collection will contain as many tags as the sum of the number of tags in each source tag collection. If two source tag collections contain the same tags, the resulting tag collection will have the same number of tags as each source tag collection. @param tagCollection1 CMTagCollectionRef to use in the union operation. @param tagCollection2 CMTagCollectionRef to use in the union operation. @param tagCollectionOut The address of a CMTagCollectionRef that contains all tags that are common to 'tagCollection1' and 'tagCollection2'. The client is responsible for releasing the returned CMTagCollection. @result OSStatus indicating if the operation succeeded.

func CMTagCollectionGetCount

func CMTagCollectionGetCount(tagCollection unsafe.Pointer) int

@function CMTagCollectionGetCount @abstract Returns the number of CMTags held in the CMTagCollectionRef. @param tagCollection CMTagCollectionRef to evaluate for the tag count. @result CMItemCount holding the count.

func CMTagCollectionGetCountOfCategory

func CMTagCollectionGetCountOfCategory(tagCollection unsafe.Pointer, category CMTagCategory) int

@function CMTagCollectionGetCountOfCategory @abstract Counts an returns the number of tags in the tag collection matching the specified category. @discussion Returns the count of tags having the specified category. It will return 0 if there are no tags. @param tagCollection CMTagCollectionRef to evaluate. @param category CMTagCategory to check for. @result Returns the count of tags having the specified category.

func CMTagCollectionGetTags

func CMTagCollectionGetTags(tagCollection unsafe.Pointer, tagBuffer *CMTag, tagBufferCount int, numberOfTagsCopied *int) int

@function CMTagCollectionGetTags @abstract Retrieve all CMTags and copy into a supplied buffer. @discussion The function retrieves a specified number of CMTags from the CMTagCollectionRef and copies them to a supplied buffer. The routine populates a provided sized buffer with each CMTag in the collection. If the provided buffer is smaller than needed to retrieve all tags, the routine will fill the buffer, return the number actually copied and return kCMTagCollectionError_ExhaustedBufferSize. If the provided buffer is larger than the number of CMTags in the collection to retrieve, the routine will fill the buffer with the number of available CMTags, return the number copied and fill the remainder of the buffer with kCMTagInvalid while returning noErr. @param tagCollection CMTagCollectionRef to iterate. @param tagBuffer A non-NULL address of a buffer to fill with CMTags with CMTagCategory 'category'. @param tagBufferCount The number of CMTags the buffer 'tagBuffer' can hold. @param numberOfTagsCopied The address of a CMItemCount that is filled with the number of tags retrieved, may be NULL. @result OSStatus with an error or noErr if successful.

func CMTagCollectionGetTagsWithCategory

func CMTagCollectionGetTagsWithCategory(tagCollection unsafe.Pointer, category CMTagCategory, tagBuffer *CMTag, tagBufferCount int, numberOfTagsCopied *int) int

@function CMTagCollectionGetTagsWithCategory @abstract Retrieve CMTags having a specified CMTagCategory and copy to a supplied buffer. @discussion Populates a provided buffer with each CMTag in the collection that has the specified CMTagCategory. If the provided buffer is smaller than needed, the routine will fill the buffer, return the number of CMTags actually copied and return kCMTagCollectionError_ExhaustedBufferSize. If the provided buffer is larger than needed, it will fill the buffer with the number of available CMTags, return the number copied and fill the remainder of the buffer with kCMTagInvalid. @param tagCollection CMTagCollectionRef to iterate. @param category CMTagCategory to match. @param tagBuffer A non-NULL address of a buffer to fill with CMTags with CMTagCategory 'category'. @param tagBufferCount The number of CMTags the buffer 'tagBuffer' can hold. @param numberOfTagsCopied The address of a CMItemCount that is filled with the number of tags retrieved, may be NULL. @result OSStatus with an error or noErr if successful.

func CMTagCollectionGetTagsWithFilterFunction

func CMTagCollectionGetTagsWithFilterFunction(tagCollection unsafe.Pointer, tagBuffer *CMTag, tagBufferCount int, numberOfTagsCopied *int, filter unsafe.Pointer, context_ unsafe.Pointer) int

@function CMTagCollectionGetTagsWithFilterFunction @abstract Retrieve CMTags satisfying a callback function and copy them to a supplied buffer. @discussion Applies a CMTagCollectionTagFilterFunction predicate and populates a provided buffer with each CMTag that for each tag when the filter returns true. If the provided buffer is smaller than the number of tags the predicate satisfies, the routine will fill the buffer, return the copy CMTags actually copied and return kCMTagCollectionError_ExhaustedBufferSize. If the provided buffer is larger than needed, it will fill the buffer with the number of available CMTags, fill the remainder of the buffer with kCMTagInvalid and return a result of noErr. @param tagCollection CMTagCollectionRef to iterate. @param tagBuffer A non-NULL address of a buffer to fill with CMTags with CMTagCategory 'category'. @param tagBufferCount The number of CMTags the buffer 'tagBuffer' can hold. @param numberOfTagsCopied The address of a CMItemCount that is filled with the number of tags retrieved, may be NULL. @param filter The CMTagCollectionTagFilterFunction callback to call with each tag. @param context A void * or NULL to pass to filter. @result OSStatus with an error or noErr if successful.

func CMTagCollectionGetTypeID

func CMTagCollectionGetTypeID() uint

@function CMTagCollectionGetTypeID @abstract Obtains the CoreFoundation type ID for the CMTagCollection type. @discussion Obtains the CoreFoundation type ID for the CMTagCollection type. @result Returns the CFTypeID corresponding to CMTagCollection.

func CMTagCollectionIsEmpty

func CMTagCollectionIsEmpty(tagCollection unsafe.Pointer) uint8

@function CMTagCollectionIsEmpty @abstract Reports if the tag collection contains no tags. @discussion This is a convenience name for set like use but is the same as the expression: CMTagCollectionIsEmptyGetCount() == 0. @param tagCollection CMTagCollectionRef to iterate. @result True if there are no tags, false otherwise.

func CMTagCollectionRemoveAllTags

func CMTagCollectionRemoveAllTags(tagCollection unsafe.Pointer) int

@function CMTagCollectionRemoveAllTags @abstract Removes all tags from a mutable tag collection. @discussion This routine removes all CMTags from a CMMutableTagCollection producing an empty collection. @param tagCollection CMMutableTagCollectionRef from which to remove all tags. @result OSStatus indicating if the operation succeeded.

func CMTagCollectionRemoveAllTagsOfCategory

func CMTagCollectionRemoveAllTagsOfCategory(tagCollection unsafe.Pointer, category CMTagCategory) int

@function CMTagCollectionRemoveAllTagsOfCategory @abstract Removes all tags having a specified category from a mutable tag collection. @discussion This routine removes all CMTags having a specified CMTagCategory from a CMMutableTagCollection perhaps producing an empty collection. @param tagCollection CMMutableTagCollectionRef from which to remove all tags. @param category CMTagCategory to match. @result OSStatus indicating if the operation succeeded.

func CMTagCollectionRemoveTag

func CMTagCollectionRemoveTag(tagCollection unsafe.Pointer, tagToRemove CMTag) int

@function CMTagCollectionRemoveTag @abstract Removes one tag from a mutable tag collection. @discussion This routine removes a CMTag if present from a CMMutableTagCollection. If the CMTag exists in the tag collection, the tag collection is updated to no longer contain the tag. If the tag doesn't exist in the tag collection, the tag collection is left unchanged. The OSStatus will return kCMTagCollectionError_TagNotFound if the tag does not exist in the collection or if the tag collection is empty. @param tagCollection CMMutableTagCollectionRef from which to remove a tag. @param tagToRemove A CMTag to match to the tag collection. @result OSStatus indicating if the operation succeeded.

func CMTagCompare

func CMTagCompare(tag1 CMTag, tag2 CMTag) corefoundation.CFComparisonResult

@function CMTagCompare @abstract Compares two CMTags in an ordered fashion returning a CFComparisonResult based upon the ordering of the tags. @discussion The entirety of a CMTag can be compared against a second CMTag in an ordered way. The details of how the comparison is performed is an internal implementation detail. The comparison is performed as tag1 COMPARISON tag2 where COMPARISON is the ordering operation. The ordering will be stable under a release of the framework but may change in the future. Therefore, an ordered CMTag array serialized in one version of the framework should not be assumed to be ordered the same in another version of the framework. This is best handled by retrieving the original array of CMTags and then reinserting with the new order. @param tag1 First CMTag to compare in ordered fashion. @param tag2 Second CMTag to compare in ordered fashion. @result The CFComparisonResult indicating the order of tag1 compared to tag2.

func CMTagCopyAsDictionary

func CMTagCopyAsDictionary(tag CMTag, allocator unsafe.Pointer) unsafe.Pointer

@function CMTagCopyAsDictionary @abstract Returns a CFDictionary version of a CMTag. @discussion This is useful when putting CMTag in CF container types. The caller owns the returned CFDictionary, and is responsible for releasing it. @param tag The CMTag from which to create the dictionary. @param allocator CFAllocator with which to create a dictionary. Pass kCFAllocatorDefault to use the default allocator. @result A CFDictionary version of the CMTag.

func CMTagCopyDescription

func CMTagCopyDescription(allocator unsafe.Pointer, tag CMTag) unsafe.Pointer

@function CMTagCopyDescription @abstract Creates a CFString with a description of a CMTag (just like CFCopyDescription). @discussion This can be used from within CFShow on an object that contains CMTag fields. It is also useful from other client debugging code. The caller owns the returned CFString, and is responsible for releasing it. Descriptions are not localized so are likely suitable only for debugging. @param allocator CFAllocator to use in creating the description string. Pass kCFAllocatorDefault to use the default allocator. @param tag CMTag to describe. @result The created CFString description.

func CMTagEqualToTag

func CMTagEqualToTag(tag1 CMTag, tag2 CMTag) uint8

@function CMTagEqualToTag @abstract Tests if two CMTags are equal. @discussion Function evaluates if two tags are structurally equivalent. It performs a field by field comparison. @param tag1 First CMTag to test for equality. @param tag2 Second CMTag to test for equality. @result Returns true if the two tags are equal, false otherwise.

func CMTagGetFlagsValue

func CMTagGetFlagsValue(tag CMTag) uint64

@function CMTagGetFlagsValue @abstract Returns the 64 bits of flags as an unsigned 64-bit integer carried by the CMTag. @discussion This should only be called on a CMTag with a data type of kCMTagDataType_Flags. Calling it with a CMTag having another data type is undefined. @param tag CMTag to evaluate. @result Unsigned 64-bit integer holding the flags value.

func CMTagGetFloat64Value

func CMTagGetFloat64Value(tag CMTag) float64

@function CMTagGetFloat64Value @abstract Returns the 64-bit floating point value carried by the CMTag. @discussion This should only be called on a CMTag with a data type of kCMTagDataType_Float64. Calling it with a CMTag having another data type is undefined. @param tag CMTag to evaluate. @result 64-bit float.

func CMTagGetOSTypeValue

func CMTagGetOSTypeValue(tag CMTag) uint

@function CMTagGetOSTypeValue @abstract Returns the single OSType value carried by the CMTag. @discussion This should only be called on a CMTag with a data type of kCMTagDataType_OSType. Calling it with a CMTag having another data type is undefined. @param tag CMTag to evaluate. @result OSType.

func CMTagGetSInt64Value

func CMTagGetSInt64Value(tag CMTag) int64

@function CMTagGetSInt64Value @abstract Returns the signed 64-bit value carried by the CMTag. @discussion This should only be called on a CMTag with a data type of kCMTagDataType_SInt64. Calling it with a CMTag having another data type is undefined. @param tag CMTag to evaluate. @result Signed 64-bit integer.

func CMTagGetValue

func CMTagGetValue(tag CMTag) uint64

@function CMTagGetValue @abstract Returns the raw 64-bit CMTagValue field of the CMTag. @discussion The CMTagValue is returned without consideration for the encoded data type. @param tag CMTag to access. @result CMTagValue of the tag.

func CMTagHasCategory

func CMTagHasCategory(tag CMTag, category CMTagCategory) uint8

@function CMTagHasCategory @abstract Returns true if the CMTag has the specified CMTagCategory. @param tag CMTag to evaluate. @param category CMTagCategory to check for. @result CMTagCategory of the tag.

func CMTagHasFlagsValue

func CMTagHasFlagsValue(tag CMTag) uint8

@function CMTagHasFlagsValue @abstract Checks if the tag represents an flags value. @param tag CMTag to evaluate. @result Returns true if the CMTag carries 64 bits of flags indicated by a data type of kCMTagDataType_Flags, false otherwise.

func CMTagHasFloat64Value

func CMTagHasFloat64Value(tag CMTag) uint8

@function CMTagHasFloat64Value @abstract Checks if the tag represents a 64-bit float value. @param tag CMTag to evaluate. @result Returns true if the CMTag carries a 64-bit float indicated by a data type of kCMTagDataType_Float64, false otherwise.

func CMTagHasOSTypeValue

func CMTagHasOSTypeValue(tag CMTag) uint8

@function CMTagHasOSTypeValue @abstract Checks if the tag represents an OSType value. @param tag CMTag to evaluate. @result Returns true if the CMTag carries an OSType indicated by a data type of kCMTagDataType_OSType, false otherwise.

func CMTagHasSInt64Value

func CMTagHasSInt64Value(tag CMTag) uint8

@function CMTagHasSInt64Value @abstract Checks if the tag represents a signed 64-bit value. @param tag CMTag to evaluate. @result Returns true if the CMTag carries a signed 64-bit value indicated by a data type of kCMTagDataType_SInt64, false otherwise.

func CMTagHash

func CMTagHash(tag CMTag) uint

@function CMTagHash @abstract Calculates a hash code for the CMTag. @param tag CMTag to hash. @result The created CFHashCode.

func CMTagIsValid

func CMTagIsValid(tag CMTag) uint8

@function CMTagIsValid @abstract Tests if a CMTag is valid. @param tag The CMTag to evaluate. @result Returns false if the tag's dataType is kCMTagDataType_Invalid, true otherwise.

func CMTaggedBufferGroupCreate

func CMTaggedBufferGroupCreate(allocator unsafe.Pointer, tagCollections unsafe.Pointer, buffers unsafe.Pointer, groupOut unsafe.Pointer) int

@function CMTaggedBufferGroupCreate @abstract Creates a new tagged buffer group. @param allocator The CFAllocator to use for allocating this buffer group. May be NULL. @param tagCollections A CFArray of CMTagCollections for the buffers. @param buffers A CFArray of buffers, each of type CMSampleBuffer or CVPixelBuffer. The group will retain these sample buffers and pixel buffers. The number of tagCollections must match the number of buffers. @param groupOut The newly created group will be placed here. The caller has a responsibility to call CFRelease on it. @result Returns noErr on success.

func CMTaggedBufferGroupCreateCombined

func CMTaggedBufferGroupCreateCombined(allocator unsafe.Pointer, taggedBufferGroups unsafe.Pointer, groupOut unsafe.Pointer) int

@function CMTaggedBufferGroupCreateCombined @abstract Creates a new tagged buffer group by combining all the tagged buffer groups in an array. @param allocator The CFAllocator to use for allocating this buffer group. May be NULL. @param taggedBufferGroups A CFArray of CMTaggedBufferGroups. @param groupOut The newly created group will be placed here. The caller has a responsibility to call CFRelease on it. @result Returns noErr on success.

func CMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroup

func CMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroup(allocator unsafe.Pointer, taggedBufferGroup unsafe.Pointer, formatDescriptionOut unsafe.Pointer) int

func CMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroupWithExtensions

func CMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroupWithExtensions(allocator unsafe.Pointer, taggedBufferGroup unsafe.Pointer, extensions unsafe.Pointer, formatDescriptionOut unsafe.Pointer) int

func CMTaggedBufferGroupFormatDescriptionMatchesTaggedBufferGroup

func CMTaggedBufferGroupFormatDescriptionMatchesTaggedBufferGroup(desc unsafe.Pointer, taggedBufferGroup unsafe.Pointer) uint8

func CMTaggedBufferGroupGetCMSampleBufferAtIndex

func CMTaggedBufferGroupGetCMSampleBufferAtIndex(group unsafe.Pointer, index int) unsafe.Pointer

@function CMTaggedBufferGroupGetCMSampleBufferAtIndex @abstract Returns a CMSampleBuffer from a CMTaggedBufferGroup by sequential indexing. @param group The CMTaggedBufferGroupRef to retrieve the CMSampleBuffer from. @param index An index from 0 to count-1. @result Returns the CMSampleBuffer, or NULL on failure (including if the buffer at this index is not a CMSampleBuffer).

func CMTaggedBufferGroupGetCMSampleBufferForTag

func CMTaggedBufferGroupGetCMSampleBufferForTag(group unsafe.Pointer, tag CMTag, indexOut *int) unsafe.Pointer

@function CMTaggedBufferGroupGetCMSampleBufferForTag @abstract Returns a CMSampleBuffer from a CMTaggedBufferGroup by looking for a unique match for the provided tag. @param group The CMTaggedBufferGroupRef to retrieve the CMSampleBuffer from. @param tag The tag to look up. If more than one buffer's tag collection includes this tag, the lookup will fail. @param indexOut On success, index of the returned CMSampleBuffer. May be NULL. @result Returns the CMSampleBuffer, or NULL on failure (including if the buffer at this index is not a CMSampleBuffer).

func CMTaggedBufferGroupGetCMSampleBufferForTagCollection

func CMTaggedBufferGroupGetCMSampleBufferForTagCollection(group unsafe.Pointer, tagCollection unsafe.Pointer, indexOut *int) unsafe.Pointer

@function CMTaggedBufferGroupGetCMSampleBufferForTagCollection @abstract Returns a CMSampleBuffer from a CMTaggedBufferGroup by looking for a unique match for the provided tag collection. @param group The CMTaggedBufferGroupRef to retrieve the CMSampleBuffer from. @param tagCollection The tag collection to look up. If more than one buffer's tag collection includes this tag collection, the lookup will fail. @param indexOut On success, index of the returned CMSampleBuffer. May be NULL. @result Returns the CMSampleBuffer, or NULL on failure (including if the buffer at this index is not a CMSampleBuffer).

func CMTaggedBufferGroupGetCVPixelBufferAtIndex

func CMTaggedBufferGroupGetCVPixelBufferAtIndex(group unsafe.Pointer, index int) unsafe.Pointer

@function CMTaggedBufferGroupGetCVPixelBufferAtIndex @abstract Returns a CVPixelBuffer from a CMTaggedBufferGroup by sequential indexing. @param group The CMTaggedBufferGroupRef to retrieve the CVPixelBuffer from. @param index An index from 0 to count-1. @result Returns the CVPixelBuffer, or NULL on failure (including if the buffer at this index is not a CVPixelBuffer).

func CMTaggedBufferGroupGetCVPixelBufferForTag

func CMTaggedBufferGroupGetCVPixelBufferForTag(group unsafe.Pointer, tag CMTag, indexOut *int) unsafe.Pointer

@function CMTaggedBufferGroupGetCVPixelBufferForTag @abstract Returns a CVPixelBuffer from a CMTaggedBufferGroup by looking for a unique match for the provided tag. @param group The CMTaggedBufferGroupRef to retrieve the CVPixelBuffer from. @param tag The tag to look up. If more than one buffer's tag collection includes this tag, the lookup will fail. @param indexOut On success, index of the returned CVPixelBuffer. May be NULL. @result Returns the CVPixelBuffer, or NULL on failure (including if the buffer at this index is not a CVPixelBuffer).

func CMTaggedBufferGroupGetCVPixelBufferForTagCollection

func CMTaggedBufferGroupGetCVPixelBufferForTagCollection(group unsafe.Pointer, tagCollection unsafe.Pointer, indexOut *int) unsafe.Pointer

@function CMTaggedBufferGroupGetCVPixelBufferForTagCollection @abstract Returns a CVPixelBuffer from a CMTaggedBufferGroup by looking for a unique match for the provided tag collection. @param group The CMTaggedBufferGroupRef to retrieve the CVPixelBuffer from. @param tagCollection The tag collection to look up. If more than one buffer's tag collection includes this tag collection, the lookup will fail. @param indexOut On success, index of the returned CVPixelBuffer. May be NULL. @result Returns the CVPixelBuffer, or NULL on failure (including if the buffer at this index is not a CVPixelBuffer).

func CMTaggedBufferGroupGetCount

func CMTaggedBufferGroupGetCount(group unsafe.Pointer) int

@function CMTaggedBufferGroupGetCount @abstract Returns the number of buffers in a CMTaggedBufferGroup. @param group The CMTaggedBufferGroupRef to retrieve the count from. @result Returns the number of buffers, or 0 on failure or if the group is empty.

func CMTaggedBufferGroupGetNumberOfMatchesForTagCollection

func CMTaggedBufferGroupGetNumberOfMatchesForTagCollection(group unsafe.Pointer, tagCollection unsafe.Pointer) int

@function CMTaggedBufferGroupGetNumberOfMatchesForTagCollection @abstract Returns the number of matches that a tag collection has in a CMTaggedBufferGroup. @discussion If the returned count is less than or greater than 1, buffer lookups using this tag collection will fail and return NULL, since the lookups must be unique and unambiguous. @param group The CMTaggedBufferGroupRef to examine. @param tagCollection The tag collection to look up. @result Returns the number of entries in the CMTaggedBufferGroup that match tagCollection.

func CMTaggedBufferGroupGetTagCollectionAtIndex

func CMTaggedBufferGroupGetTagCollectionAtIndex(group unsafe.Pointer, index int) unsafe.Pointer

@function CMTaggedBufferGroupGetTagCollectionAtIndex @abstract Returns a CMTagCollection from a CMTaggedBufferGroup by sequential indexing. @param group The CMTaggedBufferGroupRef to retrieve the tag collection from. @param index An index from 0 to count-1. @result Returns the tag collection, or NULL on failure.

func CMTaggedBufferGroupGetTypeID

func CMTaggedBufferGroupGetTypeID() uint

func CMTextFormatDescriptionCopyAsBigEndianTextDescriptionBlockBuffer

func CMTextFormatDescriptionCopyAsBigEndianTextDescriptionBlockBuffer(allocator unsafe.Pointer, textFormatDescription unsafe.Pointer, flavor unsafe.Pointer, blockBufferOut unsafe.Pointer) int

@function CMTextFormatDescriptionCopyAsBigEndianTextDescriptionBlockBuffer @abstract Copies the contents of a CMTextFormatDescription to a CMBlockBuffer in big-endian byte ordering. @discussion On return, the caller owns the returned CMBlockBuffer, and must release it when done with it. Note that the dataRefIndex field of the SampleDescription is intentionally filled with garbage values (0xFFFF). The caller must overwrite these values with a valid dataRefIndex if writing the SampleDescription to a QuickTime/ISO file. @param allocator Allocator to use for allocating the CMBlockBuffer object. May be NULL. @param textFormatDescription CMTextFormatDescription to be copied. @param flavor Reserved for future use. Pass NULL for QuickTime Movie or ISO flavor. @param blockBufferOut Receives new CMBlockBuffer containing TextDescription data structure in big-endian byte ordering.

func CMTextFormatDescriptionCreateFromBigEndianTextDescriptionBlockBuffer

func CMTextFormatDescriptionCreateFromBigEndianTextDescriptionBlockBuffer(allocator unsafe.Pointer, textDescriptionBlockBuffer unsafe.Pointer, flavor unsafe.Pointer, mediaType uint, formatDescriptionOut unsafe.Pointer) int

@function CMTextFormatDescriptionCreateFromBigEndianTextDescriptionBlockBuffer @abstract Creates a CMTextFormatDescription from a big-endian TextDescription data structure in a CMBlockBuffer. @param allocator Allocator to use for allocating the CMTextFormatDescription object. May be NULL. @param textDescriptionBlockBuffer CMBlockBuffer containing TextDescription data structure in big-endian byte ordering. @param flavor Reserved for future use. Pass NULL for QuickTime Movie or ISO flavor. @param mediaType Pass kCMMediaType_Text or kCMMediaType_Subtitle. @param formatDescriptionOut Receives new CMTextFormatDescription.

func CMTextFormatDescriptionCreateFromBigEndianTextDescriptionData

func CMTextFormatDescriptionCreateFromBigEndianTextDescriptionData(allocator unsafe.Pointer, textDescriptionData *uint8, size uint, flavor unsafe.Pointer, mediaType uint, formatDescriptionOut unsafe.Pointer) int

@function CMTextFormatDescriptionCreateFromBigEndianTextDescriptionData @abstract Creates a CMTextFormatDescription from a big-endian TextDescription data structure. @param allocator Allocator to use for allocating the CMTextFormatDescription object. May be NULL. @param textDescriptionData TextDescription data structure in big-endian byte ordering. @param size Size of TextDescription data structure. @param flavor Reserved for future use. Pass NULL for QuickTime Movie or ISO flavor. @param mediaType Pass kCMMediaType_Text or kCMMediaType_Subtitle. @param formatDescriptionOut Receives new CMTextFormatDescription.

func CMTextFormatDescriptionGetDefaultStyle

func CMTextFormatDescriptionGetDefaultStyle(desc unsafe.Pointer, localFontIDOut *uint16, boldOut *uint8, italicOut *uint8, underlineOut *uint8, fontSizeOut *float64, colorComponentsOut *float64) int

func CMTextFormatDescriptionGetDefaultTextBox

func CMTextFormatDescriptionGetDefaultTextBox(desc unsafe.Pointer, originIsAtTopLeft uint8, heightOfTextTrack float64, defaultTextBoxOut *corefoundation.CGRect) int

func CMTextFormatDescriptionGetDisplayFlags

func CMTextFormatDescriptionGetDisplayFlags(desc unsafe.Pointer, displayFlagsOut *uint32) int

func CMTextFormatDescriptionGetFontName

func CMTextFormatDescriptionGetFontName(desc unsafe.Pointer, localFontID uint16, fontNameOut unsafe.Pointer) int

func CMTextFormatDescriptionGetJustification

func CMTextFormatDescriptionGetJustification(desc unsafe.Pointer, horizontaJustificationlOut *int8, verticalJustificationOut *int8) int

func CMTimeCodeFormatDescriptionCopyAsBigEndianTimeCodeDescriptionBlockBuffer

func CMTimeCodeFormatDescriptionCopyAsBigEndianTimeCodeDescriptionBlockBuffer(allocator unsafe.Pointer, timeCodeFormatDescription unsafe.Pointer, flavor unsafe.Pointer, blockBufferOut unsafe.Pointer) int

@function CMTimeCodeFormatDescriptionCopyAsBigEndianTimeCodeDescriptionBlockBuffer @abstract Copies the contents of a CMTimeCodeFormatDescription to a CMBlockBuffer in big-endian byte ordering. @discussion On return, the caller owns the returned CMBlockBuffer, and must release it when done with it. Note that the dataRefIndex field of the SampleDescription is intentionally filled with garbage values (0xFFFF). The caller must overwrite these values with a valid dataRefIndex if writing the SampleDescription to a QuickTime/ISO file. @param allocator Allocator to use for allocating the CMBlockBuffer object. May be NULL. @param timeCodeFormatDescription CMTimeCodeFormatDescription to be copied. @param flavor Reserved for future use. Pass NULL for QuickTime Movie or ISO flavor. @param blockBufferOut Receives new CMBlockBuffer containing TimeCodeDescription data structure in big-endian byte ordering.

func CMTimeCodeFormatDescriptionCreate

func CMTimeCodeFormatDescriptionCreate(allocator unsafe.Pointer, timeCodeFormatType uint, frameDuration CMTime, frameQuanta uint32, flags uint32, extensions unsafe.Pointer, formatDescriptionOut unsafe.Pointer) int

func CMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionBlockBuffer

func CMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionBlockBuffer(allocator unsafe.Pointer, timeCodeDescriptionBlockBuffer unsafe.Pointer, flavor unsafe.Pointer, formatDescriptionOut unsafe.Pointer) int

@function CMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionBlockBuffer @abstract Creates a CMTimeCodeFormatDescription from a big-endian TimeCodeDescription data structure in a CMBlockBuffer. @param allocator Allocator to use for allocating the CMTimeCodeFormatDescription object. May be NULL. @param timeCodeDescriptionBlockBuffer CMBlockBuffer containing TimeCodeDescription data structure in big-endian byte ordering. @param flavor Reserved for future use. Pass NULL for QuickTime Movie or ISO flavor. @param formatDescriptionOut Receives new CMTimeCodeFormatDescription.

func CMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionData

func CMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionData(allocator unsafe.Pointer, timeCodeDescriptionData *uint8, size uint, flavor unsafe.Pointer, formatDescriptionOut unsafe.Pointer) int

@function CMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionData @abstract Creates a CMTimeCodeFormatDescription from a big-endian TimeCodeDescription data structure. @param allocator Allocator to use for allocating the CMTimeCodeFormatDescription object. May be NULL. @param timeCodeDescriptionData TimeCodeDescription data structure in big-endian byte ordering. @param size Size of TimeCodeDescription data structure. @param flavor Reserved for future use. Pass NULL for QuickTime Movie or ISO flavor. @param formatDescriptionOut Receives new CMTimeCodeFormatDescription.

func CMTimeCodeFormatDescriptionGetFrameQuanta

func CMTimeCodeFormatDescriptionGetFrameQuanta(timeCodeFormatDescription unsafe.Pointer) uint32

func CMTimeCodeFormatDescriptionGetTimeCodeFlags

func CMTimeCodeFormatDescriptionGetTimeCodeFlags(desc unsafe.Pointer) uint32

func CMTimeCompare

func CMTimeCompare(time1 CMTime, time2 CMTime) int32

func CMTimeCopyAsDictionary

func CMTimeCopyAsDictionary(time_ CMTime, allocator unsafe.Pointer) unsafe.Pointer

func CMTimeCopyDescription

func CMTimeCopyDescription(allocator unsafe.Pointer, time_ CMTime) unsafe.Pointer

func CMTimeGetSeconds

func CMTimeGetSeconds(time_ CMTime) float64

func CMTimeMappingCopyAsDictionary

func CMTimeMappingCopyAsDictionary(mapping CMTimeMapping, allocator unsafe.Pointer) unsafe.Pointer

@function CMTimeMappingCopyAsDictionary @abstract Returns a CFDictionary version of a CMTimeMapping. @discussion This is useful when putting CMTimeMappings in CF container types. @result A CFDictionary version of the CMTimeMapping.

func CMTimeMappingCopyDescription

func CMTimeMappingCopyDescription(allocator unsafe.Pointer, mapping CMTimeMapping) unsafe.Pointer

@function CMTimeMappingCopyDescription @abstract Creates a CFString with a description of a CMTimeMapping (just like CFCopyDescription). @discussion This is used from within CFShow on an object that contains CMTimeMapping fields. It is also useful from other client debugging code. The caller owns the returned CFString and is responsible for releasing it. @result The created CFString description.

func CMTimeMappingShow

func CMTimeMappingShow(mapping CMTimeMapping)

@function CMTimeMappingShow @abstract Prints a description of a CMTimeMapping (just like CFShow). @discussion This is most useful from within gdb.

func CMTimeRangeContainsTime

func CMTimeRangeContainsTime(range_ CMTimeRange, time_ CMTime) uint8

@function CMTimeRangeContainsTime @abstract Indicates whether a time is contained within a time range. @discussion This function returns a Boolean value that indicates whether the time specified by the <i>time</i> parameter is contained within the range specified by the <i>range</i> parameter. @result Returns true if the specified time is contained within the specified time range, false if it is not.

func CMTimeRangeContainsTimeRange

func CMTimeRangeContainsTimeRange(range_ CMTimeRange, otherRange CMTimeRange) uint8

@function CMTimeRangeContainsTimeRange @abstract Indicates whether a time range is contained within a time range. @discussion This function returns a Boolean value that indicates whether the time range specified by the <i>range</i> parameter contains the range specified by the <i>otherRange</i> parameter. @result Returns true if the second time range is contained within the first time range, false if it is not.

func CMTimeRangeCopyAsDictionary

func CMTimeRangeCopyAsDictionary(range_ CMTimeRange, allocator unsafe.Pointer) unsafe.Pointer

@function CMTimeRangeCopyAsDictionary @abstract Returns a CFDictionary version of a CMTimeRange. @discussion This is useful when putting CMTimeRanges in CF container types. @result A CFDictionary version of the CMTimeRange.

func CMTimeRangeCopyDescription

func CMTimeRangeCopyDescription(allocator unsafe.Pointer, range_ CMTimeRange) unsafe.Pointer

@function CMTimeRangeCopyDescription @abstract Creates a CFString with a description of a CMTimeRange (just like CFCopyDescription). @discussion This is used from within CFShow on an object that contains CMTimeRange fields. It is also useful from other client debugging code. The caller owns the returned CFString and is responsible for releasing it. @result The created CFString description.

func CMTimeRangeEqual

func CMTimeRangeEqual(range1 CMTimeRange, range2 CMTimeRange) uint8

@function CMTimeRangeEqual @abstract Returns a Boolean value that indicates whether two CMTimeRanges are identical. @discussion This function returns a Boolean value that indicates whether the time ranges specified by the <i>range1</i> and <i>range2</i> parameters are identical. @result Returns true if the two time ranges are identical, false if they differ.

func CMTimeRangeShow

func CMTimeRangeShow(range_ CMTimeRange)

@function CMTimeRangeShow @abstract Prints a description of the CMTimeRange (just like CFShow). @discussion This is most useful from within gdb.

func CMTimeShow

func CMTimeShow(time_ CMTime)

func CMTimebaseAddTimer

func CMTimebaseAddTimer(timebase unsafe.Pointer, timer unsafe.Pointer, runloop unsafe.Pointer) int

func CMTimebaseAddTimerDispatchSource

func CMTimebaseAddTimerDispatchSource(timebase unsafe.Pointer, timerSource *foundation.NSObject) int

func CMTimebaseCopyMaster deprecated

func CMTimebaseCopyMaster(timebase unsafe.Pointer) unsafe.Pointer

Deprecated: since macOS 10.11.

func CMTimebaseCopyMasterClock deprecated

func CMTimebaseCopyMasterClock(timebase unsafe.Pointer) unsafe.Pointer

Deprecated: since macOS 10.11.

func CMTimebaseCopyMasterTimebase deprecated

func CMTimebaseCopyMasterTimebase(timebase unsafe.Pointer) unsafe.Pointer

Deprecated: since macOS 10.11.

func CMTimebaseCopySource

func CMTimebaseCopySource(timebase unsafe.Pointer) unsafe.Pointer

func CMTimebaseCopySourceClock

func CMTimebaseCopySourceClock(timebase unsafe.Pointer) unsafe.Pointer

func CMTimebaseCopySourceTimebase

func CMTimebaseCopySourceTimebase(timebase unsafe.Pointer) unsafe.Pointer

func CMTimebaseCopyUltimateMasterClock deprecated

func CMTimebaseCopyUltimateMasterClock(timebase unsafe.Pointer) unsafe.Pointer

Deprecated: since macOS 10.11.

func CMTimebaseCopyUltimateSourceClock

func CMTimebaseCopyUltimateSourceClock(timebase unsafe.Pointer) unsafe.Pointer

func CMTimebaseCreateWithMasterClock deprecated

func CMTimebaseCreateWithMasterClock(allocator unsafe.Pointer, masterClock unsafe.Pointer, timebaseOut unsafe.Pointer) int

Deprecated: since macOS 10.10.

func CMTimebaseCreateWithMasterTimebase deprecated

func CMTimebaseCreateWithMasterTimebase(allocator unsafe.Pointer, masterTimebase unsafe.Pointer, timebaseOut unsafe.Pointer) int

Deprecated: since macOS 10.10.

func CMTimebaseCreateWithSourceClock

func CMTimebaseCreateWithSourceClock(allocator unsafe.Pointer, sourceClock unsafe.Pointer, timebaseOut unsafe.Pointer) int

func CMTimebaseCreateWithSourceTimebase

func CMTimebaseCreateWithSourceTimebase(allocator unsafe.Pointer, sourceTimebase unsafe.Pointer, timebaseOut unsafe.Pointer) int

func CMTimebaseGetEffectiveRate

func CMTimebaseGetEffectiveRate(timebase unsafe.Pointer) float64

func CMTimebaseGetMaster deprecated

func CMTimebaseGetMaster(timebase unsafe.Pointer) unsafe.Pointer

Deprecated: since macOS 10.11.

func CMTimebaseGetMasterClock deprecated

func CMTimebaseGetMasterClock(timebase unsafe.Pointer) unsafe.Pointer

Deprecated: since macOS 10.11.

func CMTimebaseGetMasterTimebase deprecated

func CMTimebaseGetMasterTimebase(timebase unsafe.Pointer) unsafe.Pointer

Deprecated: since macOS 10.11.

func CMTimebaseGetRate

func CMTimebaseGetRate(timebase unsafe.Pointer) float64

func CMTimebaseGetTimeAndRate

func CMTimebaseGetTimeAndRate(timebase unsafe.Pointer, timeOut *CMTime, rateOut *float64) int

func CMTimebaseGetTypeID

func CMTimebaseGetTypeID() uint

func CMTimebaseGetUltimateMasterClock deprecated

func CMTimebaseGetUltimateMasterClock(timebase unsafe.Pointer) unsafe.Pointer

Deprecated: since macOS 10.11.

func CMTimebaseNotificationBarrier

func CMTimebaseNotificationBarrier(timebase unsafe.Pointer) int

@function CMTimebaseNotificationBarrier @abstract Requests that the timebase wait until it is not posting any notifications.

func CMTimebaseRemoveTimer

func CMTimebaseRemoveTimer(timebase unsafe.Pointer, timer unsafe.Pointer) int

func CMTimebaseRemoveTimerDispatchSource

func CMTimebaseRemoveTimerDispatchSource(timebase unsafe.Pointer, timerSource *foundation.NSObject) int

func CMTimebaseSetAnchorTime

func CMTimebaseSetAnchorTime(timebase unsafe.Pointer, timebaseTime CMTime, immediateSourceTime CMTime) int

func CMTimebaseSetMasterClock deprecated

func CMTimebaseSetMasterClock(timebase unsafe.Pointer, newMasterClock unsafe.Pointer) int

Deprecated: since macOS 10.10.

func CMTimebaseSetMasterTimebase deprecated

func CMTimebaseSetMasterTimebase(timebase unsafe.Pointer, newMasterTimebase unsafe.Pointer) int

Deprecated: since macOS 10.10.

func CMTimebaseSetRate

func CMTimebaseSetRate(timebase unsafe.Pointer, rate float64) int

func CMTimebaseSetRateAndAnchorTime

func CMTimebaseSetRateAndAnchorTime(timebase unsafe.Pointer, rate float64, timebaseTime CMTime, immediateSourceTime CMTime) int

func CMTimebaseSetSourceClock

func CMTimebaseSetSourceClock(timebase unsafe.Pointer, newSourceClock unsafe.Pointer) int

func CMTimebaseSetSourceTimebase

func CMTimebaseSetSourceTimebase(timebase unsafe.Pointer, newSourceTimebase unsafe.Pointer) int

func CMTimebaseSetTime

func CMTimebaseSetTime(timebase unsafe.Pointer, time_ CMTime) int

func CMTimebaseSetTimerDispatchSourceNextFireTime

func CMTimebaseSetTimerDispatchSourceNextFireTime(timebase unsafe.Pointer, timerSource *foundation.NSObject, fireTime CMTime, flags uint32) int

func CMTimebaseSetTimerDispatchSourceToFireImmediately

func CMTimebaseSetTimerDispatchSourceToFireImmediately(timebase unsafe.Pointer, timerSource *foundation.NSObject) int

func CMTimebaseSetTimerNextFireTime

func CMTimebaseSetTimerNextFireTime(timebase unsafe.Pointer, timer unsafe.Pointer, fireTime CMTime, flags uint32) int

func CMTimebaseSetTimerToFireImmediately

func CMTimebaseSetTimerToFireImmediately(timebase unsafe.Pointer, timer unsafe.Pointer) int

func CMVideoFormatDescriptionCopyAsBigEndianImageDescriptionBlockBuffer

func CMVideoFormatDescriptionCopyAsBigEndianImageDescriptionBlockBuffer(allocator unsafe.Pointer, videoFormatDescription unsafe.Pointer, stringEncoding uint, flavor unsafe.Pointer, blockBufferOut unsafe.Pointer) int

@function CMVideoFormatDescriptionCopyAsBigEndianImageDescriptionBlockBuffer @abstract Copies the contents of a CMVideoFormatDescription to a CMBlockBuffer in big-endian byte ordering. @discussion On return, the caller owns the returned CMBlockBuffer, and must release it when done with it. Note that the dataRefIndex field of the SampleDescription is intentionally filled with garbage values (0xFFFF). The caller must overwrite these values with a valid dataRefIndex if writing the SampleDescription to a QuickTime/ISO file. @param allocator Allocator to use for allocating the CMBlockBuffer object. May be NULL. @param videoFormatDescription CMVideoFormatDescription to be copied. @param stringEncoding Pass CFStringGetSystemEncoding() or GetApplicationTextEncoding(). @param flavor kCMImageDescriptionFlavor constant or NULL for QuickTimeMovie flavor. @param blockBufferOut Receives new CMBlockBuffer containing ImageDescription data structure in big-endian byte ordering.

func CMVideoFormatDescriptionCopyTagCollectionArray

func CMVideoFormatDescriptionCopyTagCollectionArray(formatDescription unsafe.Pointer, tagCollectionsOut unsafe.Pointer) int

@function CMVideoFormatDescriptionCopyTagCollectionArray @abstract Copies the multi-image encoding properties as an array of CMTagCollections. @param formatDescription CMVideoFormatDescription being interrogated. @param tagCollectionsOut Returned TagCollections with CMTags such as kCMTagCategory_VideoLayerID and kCMTagCategory_StereoViewType. @discussion On return, the caller owns the returned CFArrayRef and must release it when done with it. This function copies the VideoLayerIDs and LeftAndRightViewIDs from hvcC and 3D Reference Displays Info SEI in the formatDescription. The returned values can be used to enable the multi-image decoding with kVTDecompressionPropertyKey_RequestedMVHEVCVideoLayerIDs. It also gives the eye mapping information for the pixel buffers of the decoded CMTaggedBufferGroups. @result Array of CMTagCollections. The result will be NULL if the CMVideoFormatDescription does not contain multi-image encoding parameters, or if there is some other error.

func CMVideoFormatDescriptionCreate

func CMVideoFormatDescriptionCreate(allocator unsafe.Pointer, codecType uint, width int32, height int32, extensions unsafe.Pointer, formatDescriptionOut unsafe.Pointer) int

func CMVideoFormatDescriptionCreateForImageBuffer

func CMVideoFormatDescriptionCreateForImageBuffer(allocator unsafe.Pointer, imageBuffer unsafe.Pointer, formatDescriptionOut unsafe.Pointer) int

func CMVideoFormatDescriptionCreateFromBigEndianImageDescriptionBlockBuffer

func CMVideoFormatDescriptionCreateFromBigEndianImageDescriptionBlockBuffer(allocator unsafe.Pointer, imageDescriptionBlockBuffer unsafe.Pointer, stringEncoding uint, flavor unsafe.Pointer, formatDescriptionOut unsafe.Pointer) int

@function CMVideoFormatDescriptionCreateFromBigEndianImageDescriptionBlockBuffer @abstract Creates a CMVideoFormatDescription from a big-endian ImageDescription data structure in a CMBlockBuffer. @param allocator Allocator to use for allocating the CMVideoFormatDescription object. May be NULL. @param imageDescriptionBlockBuffer CMBlockBuffer containing ImageDescription data structure in big-endian byte ordering. @param stringEncoding Pass CFStringGetSystemEncoding() or GetApplicationTextEncoding(). @param flavor kCMImageDescriptionFlavor constant or NULL for QuickTimeMovie flavor. @param formatDescriptionOut Receives new CMVideoFormatDescription.

func CMVideoFormatDescriptionCreateFromBigEndianImageDescriptionData

func CMVideoFormatDescriptionCreateFromBigEndianImageDescriptionData(allocator unsafe.Pointer, imageDescriptionData *uint8, size uint, stringEncoding uint, flavor unsafe.Pointer, formatDescriptionOut unsafe.Pointer) int

@function CMVideoFormatDescriptionCreateFromBigEndianImageDescriptionData @abstract Creates a CMVideoFormatDescription from a big-endian ImageDescription data structure. @param allocator Allocator to use for allocating the CMVideoFormatDescription object. May be NULL. @param imageDescriptionData ImageDescription data structure in big-endian byte ordering. @param size Size of ImageDescription data structure. @param stringEncoding Pass CFStringGetSystemEncoding() or GetApplicationTextEncoding(). @param flavor kCMImageDescriptionFlavor constant or NULL for QuickTimeMovie flavor. @param formatDescriptionOut Receives new CMVideoFormatDescription.

func CMVideoFormatDescriptionCreateFromH264ParameterSets

func CMVideoFormatDescriptionCreateFromH264ParameterSets(allocator unsafe.Pointer, parameterSetCount uint, parameterSetPointers unsafe.Pointer, parameterSetSizes *uint, nALUnitHeaderLength int, formatDescriptionOut unsafe.Pointer) int

func CMVideoFormatDescriptionCreateFromHEVCParameterSets

func CMVideoFormatDescriptionCreateFromHEVCParameterSets(allocator unsafe.Pointer, parameterSetCount uint, parameterSetPointers unsafe.Pointer, parameterSetSizes *uint, nALUnitHeaderLength int, extensions unsafe.Pointer, formatDescriptionOut unsafe.Pointer) int

func CMVideoFormatDescriptionGetCleanAperture

func CMVideoFormatDescriptionGetCleanAperture(videoDesc unsafe.Pointer, originIsAtTopLeft uint8) corefoundation.CGRect

func CMVideoFormatDescriptionGetExtensionKeysCommonWithImageBuffers

func CMVideoFormatDescriptionGetExtensionKeysCommonWithImageBuffers() unsafe.Pointer

func CMVideoFormatDescriptionGetH264ParameterSetAtIndex

func CMVideoFormatDescriptionGetH264ParameterSetAtIndex(videoDesc unsafe.Pointer, parameterSetIndex uint, parameterSetPointerOut *uint8, parameterSetSizeOut *uint, parameterSetCountOut *uint, nALUnitHeaderLengthOut *int32) int

func CMVideoFormatDescriptionGetHEVCParameterSetAtIndex

func CMVideoFormatDescriptionGetHEVCParameterSetAtIndex(videoDesc unsafe.Pointer, parameterSetIndex uint, parameterSetPointerOut *uint8, parameterSetSizeOut *uint, parameterSetCountOut *uint, nALUnitHeaderLengthOut *int32) int

func CMVideoFormatDescriptionGetPresentationDimensions

func CMVideoFormatDescriptionGetPresentationDimensions(videoDesc unsafe.Pointer, usePixelAspectRatio uint8, useCleanAperture uint8) corefoundation.CGSize

func CMVideoFormatDescriptionMatchesImageBuffer

func CMVideoFormatDescriptionMatchesImageBuffer(desc unsafe.Pointer, imageBuffer unsafe.Pointer) uint8

func KCMFormatDescriptionAlphaChannelMode_PremultipliedAlpha

func KCMFormatDescriptionAlphaChannelMode_PremultipliedAlpha() uintptr

func KCMFormatDescriptionAlphaChannelMode_StraightAlpha

func KCMFormatDescriptionAlphaChannelMode_StraightAlpha() uintptr

func KCMFormatDescriptionCameraCalibrationExtrinsicOriginSource_StereoCameraSystemBaseline

func KCMFormatDescriptionCameraCalibrationExtrinsicOriginSource_StereoCameraSystemBaseline() uintptr

func KCMFormatDescriptionCameraCalibrationLensAlgorithmKind_ParametricLens

func KCMFormatDescriptionCameraCalibrationLensAlgorithmKind_ParametricLens() uintptr

func KCMFormatDescriptionCameraCalibrationLensDomain_Color

func KCMFormatDescriptionCameraCalibrationLensDomain_Color() uintptr

func KCMFormatDescriptionCameraCalibrationLensRole_Left

func KCMFormatDescriptionCameraCalibrationLensRole_Left() uintptr

func KCMFormatDescriptionCameraCalibrationLensRole_Mono

func KCMFormatDescriptionCameraCalibrationLensRole_Mono() uintptr

func KCMFormatDescriptionCameraCalibrationLensRole_Right

func KCMFormatDescriptionCameraCalibrationLensRole_Right() uintptr

func KCMFormatDescriptionCameraCalibration_ExtrinsicOrientationQuaternion

func KCMFormatDescriptionCameraCalibration_ExtrinsicOrientationQuaternion() uintptr

func KCMFormatDescriptionCameraCalibration_ExtrinsicOriginSource

func KCMFormatDescriptionCameraCalibration_ExtrinsicOriginSource() uintptr

func KCMFormatDescriptionCameraCalibration_IntrinsicMatrix

func KCMFormatDescriptionCameraCalibration_IntrinsicMatrix() uintptr

func KCMFormatDescriptionCameraCalibration_IntrinsicMatrixProjectionOffset

func KCMFormatDescriptionCameraCalibration_IntrinsicMatrixProjectionOffset() uintptr

func KCMFormatDescriptionCameraCalibration_IntrinsicMatrixReferenceDimensions

func KCMFormatDescriptionCameraCalibration_IntrinsicMatrixReferenceDimensions() uintptr

func KCMFormatDescriptionCameraCalibration_LensAlgorithmKind

func KCMFormatDescriptionCameraCalibration_LensAlgorithmKind() uintptr

The following keys are required in each kCMFormatDescriptionExtension_CameraCalibrationDataLensCollection dictionary. @constant kCMFormatDescriptionCameraCalibration_LensAlgorithmKind @abstract Specifies the camera calibration methodology. @discussion If the algorithm kind is ParametricLens, the camera lens collection requires camera intrinsic and extrinsic parameters. @constant kCMFormatDescriptionCameraCalibration_LensDomain @abstract Specifies the kind of lens (e.g., color). @constant kCMFormatDescriptionCameraCalibration_LensIdentifier @abstract Specifies a unique number associated with a lens. @constant kCMFormatDescriptionCameraCalibration_LensRole @abstract Specifies the particular use of the lens in the camera system (e.g., left or right for a stereo system). @discussion For a stereoscopic camera system, one lens should have the left role and another should have the right role. @constant kCMFormatDescriptionCameraCalibration_LensDistortions @abstract 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. @discussion The values are in a CFArray of four CFNumbers in k1, k2, p1 and p2 order. @constant kCMFormatDescriptionCameraCalibration_LensFrameAdjustmentsPolynomialX @abstract 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`. @discussion 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]. @constant kCMFormatDescriptionCameraCalibration_LensFrameAdjustmentsPolynomialY @abstract 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`. @discussion 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]. @constant kCMFormatDescriptionCameraCalibration_RadialAngleLimit @abstract Specifies the outer limit of the calibration validity in degrees of angle eccentric from the optical axis. @discussion The value is linked to radial distortion corrections with k1 and k2. @constant kCMFormatDescriptionCameraCalibration_IntrinsicMatrix @abstract Specifies the 3x3 camera intrinsic matrix for camera calibration. @discussion 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. @constant kCMFormatDescriptionCameraCalibration_IntrinsicMatrixProjectionOffset @abstract Specifies the offset of the point of perspective relative to the rectilinear projection. @constant kCMFormatDescriptionCameraCalibration_IntrinsicMatrixReferenceDimensions @abstract Specifies the image dimensions to which the camera’s intrinsic matrix values are relative. @discussion Values are width and height in a CFDictionary. Dictionary keys are compatible with CGSize dictionary, namely "Width" and "Height". @constant kCMFormatDescriptionCameraCalibration_ExtrinsicOriginSource @abstract Identifies how the origin of the camera system's extrinsics are determined. @discussion 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. @constant kCMFormatDescriptionCameraCalibration_ExtrinsicOrientationQuaternion @abstract 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. @discussion The values are in a CFArray of three CFNumbers in ix, iy, and iz order.

func KCMFormatDescriptionCameraCalibration_LensDistortions

func KCMFormatDescriptionCameraCalibration_LensDistortions() uintptr

func KCMFormatDescriptionCameraCalibration_LensDomain

func KCMFormatDescriptionCameraCalibration_LensDomain() uintptr

func KCMFormatDescriptionCameraCalibration_LensFrameAdjustmentsPolynomialX

func KCMFormatDescriptionCameraCalibration_LensFrameAdjustmentsPolynomialX() uintptr

func KCMFormatDescriptionCameraCalibration_LensFrameAdjustmentsPolynomialY

func KCMFormatDescriptionCameraCalibration_LensFrameAdjustmentsPolynomialY() uintptr

func KCMFormatDescriptionCameraCalibration_LensIdentifier

func KCMFormatDescriptionCameraCalibration_LensIdentifier() uintptr

func KCMFormatDescriptionCameraCalibration_LensRole

func KCMFormatDescriptionCameraCalibration_LensRole() uintptr

func KCMFormatDescriptionCameraCalibration_RadialAngleLimit

func KCMFormatDescriptionCameraCalibration_RadialAngleLimit() uintptr

func KCMFormatDescriptionChromaLocation_Bottom

func KCMFormatDescriptionChromaLocation_Bottom() uintptr

func KCMFormatDescriptionChromaLocation_BottomLeft

func KCMFormatDescriptionChromaLocation_BottomLeft() uintptr

func KCMFormatDescriptionChromaLocation_Center

func KCMFormatDescriptionChromaLocation_Center() uintptr

func KCMFormatDescriptionChromaLocation_DV420

func KCMFormatDescriptionChromaLocation_DV420() uintptr

func KCMFormatDescriptionChromaLocation_Left

func KCMFormatDescriptionChromaLocation_Left() uintptr

func KCMFormatDescriptionChromaLocation_Top

func KCMFormatDescriptionChromaLocation_Top() uintptr

func KCMFormatDescriptionChromaLocation_TopLeft

func KCMFormatDescriptionChromaLocation_TopLeft() uintptr

func KCMFormatDescriptionColorPrimaries_DCI_P3

func KCMFormatDescriptionColorPrimaries_DCI_P3() uintptr

func KCMFormatDescriptionColorPrimaries_EBU_3213

func KCMFormatDescriptionColorPrimaries_EBU_3213() uintptr

func KCMFormatDescriptionColorPrimaries_ITU_R_709_2

func KCMFormatDescriptionColorPrimaries_ITU_R_709_2() uintptr

func KCMFormatDescriptionColorPrimaries_ITU_R_2020

func KCMFormatDescriptionColorPrimaries_ITU_R_2020() uintptr

func KCMFormatDescriptionColorPrimaries_P3_D65

func KCMFormatDescriptionColorPrimaries_P3_D65() uintptr

func KCMFormatDescriptionColorPrimaries_P22

func KCMFormatDescriptionColorPrimaries_P22() uintptr

func KCMFormatDescriptionColorPrimaries_SMPTE_C

func KCMFormatDescriptionColorPrimaries_SMPTE_C() uintptr

func KCMFormatDescriptionConformsToMPEG2VideoProfile

func KCMFormatDescriptionConformsToMPEG2VideoProfile() uintptr

func KCMFormatDescriptionExtensionKey_MetadataKeyTable

func KCMFormatDescriptionExtensionKey_MetadataKeyTable() uintptr

func KCMFormatDescriptionExtension_AlphaChannelMode

func KCMFormatDescriptionExtension_AlphaChannelMode() uintptr

func KCMFormatDescriptionExtension_AlternativeTransferCharacteristics

func KCMFormatDescriptionExtension_AlternativeTransferCharacteristics() uintptr

func KCMFormatDescriptionExtension_AmbientViewingEnvironment

func KCMFormatDescriptionExtension_AmbientViewingEnvironment() uintptr

func KCMFormatDescriptionExtension_AuxiliaryTypeInfo

func KCMFormatDescriptionExtension_AuxiliaryTypeInfo() uintptr

func KCMFormatDescriptionExtension_BitsPerComponent

func KCMFormatDescriptionExtension_BitsPerComponent() uintptr

func KCMFormatDescriptionExtension_BytesPerRow

func KCMFormatDescriptionExtension_BytesPerRow() uintptr

func KCMFormatDescriptionExtension_CameraCalibrationDataLensCollection

func KCMFormatDescriptionExtension_CameraCalibrationDataLensCollection() uintptr

@constant kCMFormatDescriptionExtension_CameraCalibrationDataLensCollection @abstract Specifies intrinsic and extrinsic parameters for single or multiple lenses. @discussion 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 kCMFormatDescriptionCameraCalibration_LensRole key and its value.

func KCMFormatDescriptionExtension_ChromaLocationBottomField

func KCMFormatDescriptionExtension_ChromaLocationBottomField() uintptr

func KCMFormatDescriptionExtension_ChromaLocationTopField

func KCMFormatDescriptionExtension_ChromaLocationTopField() uintptr

func KCMFormatDescriptionExtension_CleanAperture

func KCMFormatDescriptionExtension_CleanAperture() uintptr

func KCMFormatDescriptionExtension_ColorPrimaries

func KCMFormatDescriptionExtension_ColorPrimaries() uintptr

func KCMFormatDescriptionExtension_ContainsAlphaChannel

func KCMFormatDescriptionExtension_ContainsAlphaChannel() uintptr

func KCMFormatDescriptionExtension_ContentColorVolume

func KCMFormatDescriptionExtension_ContentColorVolume() uintptr

func KCMFormatDescriptionExtension_ContentLightLevelInfo

func KCMFormatDescriptionExtension_ContentLightLevelInfo() uintptr

func KCMFormatDescriptionExtension_ConvertedFromExternalSphericalTags

func KCMFormatDescriptionExtension_ConvertedFromExternalSphericalTags() uintptr

@constant kCMFormatDescriptionExtension_ConvertedFromExternalSphericalTags @abstract Indicates that the image description contains projected media data converted from an external format @discussion This format description extension is included if boxes containing external stereoscopic or spherical projection information were parsed.

func KCMFormatDescriptionExtension_Depth

func KCMFormatDescriptionExtension_Depth() uintptr

func KCMFormatDescriptionExtension_FieldCount

func KCMFormatDescriptionExtension_FieldCount() uintptr

func KCMFormatDescriptionExtension_FieldDetail

func KCMFormatDescriptionExtension_FieldDetail() uintptr

func KCMFormatDescriptionExtension_FormatName

func KCMFormatDescriptionExtension_FormatName() uintptr

func KCMFormatDescriptionExtension_FullRangeVideo

func KCMFormatDescriptionExtension_FullRangeVideo() uintptr

func KCMFormatDescriptionExtension_GammaLevel

func KCMFormatDescriptionExtension_GammaLevel() uintptr

func KCMFormatDescriptionExtension_HasAdditionalViews

func KCMFormatDescriptionExtension_HasAdditionalViews() uintptr

@constant kCMFormatDescriptionExtension_HasAdditionalViews @abstract Indicates that one or more additional views may be present beyond stereo left and stereo right eyes (e.g,. a “centerline” view). @discussion The value is a CFBoolean holding presence of additional eye views in the stream.

func KCMFormatDescriptionExtension_HasLeftStereoEyeView

func KCMFormatDescriptionExtension_HasLeftStereoEyeView() uintptr

@constant kCMFormatDescriptionExtension_HasLeftStereoEyeView @abstract Indicates the stereo left eye is present in video frames. @discussion The value is a CFBoolean holding presence of left eye view in the stream.

func KCMFormatDescriptionExtension_HasRightStereoEyeView

func KCMFormatDescriptionExtension_HasRightStereoEyeView() uintptr

@constant kCMFormatDescriptionExtension_HasRightStereoEyeView @abstract Indicates the stereo right eye is present in video frames. @discussion The value is a CFBoolean holding presence of right eye view in the stream.

func KCMFormatDescriptionExtension_HeroEye

func KCMFormatDescriptionExtension_HeroEye() uintptr

@constant kCMFormatDescriptionExtension_HeroEye @abstract Indicates which of the two eyes should be used as the primary when rendering in 2D. It is usually perpendicular to the target image surface. @constant kCMFormatDescriptionHeroEye_Left Indicates the left eye is the hero eye. @constant kCMFormatDescriptionHeroEye_Right Indicates the right eye is the hero eye. @discussion The value is a CFString holding one of the kCMFormatDescriptionHeroEye_* constants.

func KCMFormatDescriptionExtension_HorizontalDisparityAdjustment

func KCMFormatDescriptionExtension_HorizontalDisparityAdjustment() uintptr

@constant kCMFormatDescriptionExtension_HorizontalDisparityAdjustment @abstract Indicates a relative shift of the left and right images, which changes the zero parallax plane. @discussion The value encoded in normalized image space is a CFNumber holding a signed 32-bit integer measured over the range of -10000 to 10000 mapping to the uniform range [-1.0...1.0]. The interval of 0.0 to 1.0 or 0 to 10000 maps onto the stereo eye view image width. The negative interval 0.0 to -1.0 or 0 to -10000 similarly map onto the stereo eye view image width. The default value of 0 is interpreted if this property is not set. If the property is not set, NULL may be set and retrieved. The NULL value should be interpreted as meaning 0. This property is optional and should only be specified if a disparity adjustment including 0 is known.

func KCMFormatDescriptionExtension_HorizontalFieldOfView

func KCMFormatDescriptionExtension_HorizontalFieldOfView() uintptr

func KCMFormatDescriptionExtension_ICCProfile

func KCMFormatDescriptionExtension_ICCProfile() uintptr

func KCMFormatDescriptionExtension_LogTransferFunction

func KCMFormatDescriptionExtension_LogTransferFunction() uintptr

@constant kCMFormatDescriptionExtension_LogTransferFunction Indicates that the transfer function or gamma of the content is a log format and identifies the specific log curve. @discussion The value is a CFString holding fully specified reverse DNS identifier. Content captured in Apple Log will have this key set to kCMFormatDescriptionLogTransferFunction_AppleLog. @constant kCMFormatDescriptionLogTransferFunction_AppleLog Indicates the Apple Log identifier. @discussion You can download the Apple Log Profile White Paper from the Apple Developer Downloads website.

func KCMFormatDescriptionExtension_MasteringDisplayColorVolume

func KCMFormatDescriptionExtension_MasteringDisplayColorVolume() uintptr

func KCMFormatDescriptionExtension_OriginalCompressionSettings

func KCMFormatDescriptionExtension_OriginalCompressionSettings() uintptr

@define kCMFormatDescriptionExtension_OriginalCompressionSettings @abstract This extension contains a media-type-specific dictionary of settings used to produce a compressed media buffer. @discussion This extension is valid for format descriptions of all media types, but the contents of the dictionary are defined in a media-specific way. The dictionary and its contents are valid property list objects. This means that dictionary keys are all CFStrings, and the values are all either CFNumber, CFString, CFBoolean, CFArray, CFDictionary, CFDate, or CFData.

func KCMFormatDescriptionExtension_PixelAspectRatio

func KCMFormatDescriptionExtension_PixelAspectRatio() uintptr

func KCMFormatDescriptionExtension_ProjectionKind

func KCMFormatDescriptionExtension_ProjectionKind() uintptr

@constant `kCMFormatDescriptionExtension_ProjectionKind` @abstract Indicates the projection that should be applied to presented decoded video frames. @constant `kCMFormatDescriptionProjectionKind_Rectilinear` Indicates rectilinear projection. Generally less than 90 degree field of view with no barrel distortion. @constant `kCMFormatDescriptionProjectionKind_Equirectangular` Indicates equirectangular projection of a 360 degree sphere to a rectangular plane, where longitude and latitude of the sphere are mapped linearly to the x,y axes of the plane. @constant `kCMFormatDescriptionProjectionKind_HalfEquirectangular` Indicates half equirectangular projection of a 180 degree hemisphere to a rectangular plane, where longitude and latitude of the sphere are mapped linearly to the x,y axes of the plane @constant `kCMFormatDescriptionProjectionKind_ParametricImmersive` Indicates a projection described mathematically by a model of camera lens calibration parameters. Parameters may be found in lens calibration metadata in kCMFormatDescriptionExtension_CameraCalibrationDataLensCollection with algorithm_kind being parametric lens @constant `kCMFormatDescriptionProjectionKind_AppleImmersiveVideo` Indicates a proprietary projection used for Apple Immersive Video. @discussion The value is a CFString holding one of the kCMFormatDescriptionProjectionKind_* constants.

func KCMFormatDescriptionExtension_ProtectedContentOriginalFormat

func KCMFormatDescriptionExtension_ProtectedContentOriginalFormat() uintptr

func KCMFormatDescriptionExtension_RevisionLevel

func KCMFormatDescriptionExtension_RevisionLevel() uintptr

func KCMFormatDescriptionExtension_SampleDescriptionExtensionAtoms

func KCMFormatDescriptionExtension_SampleDescriptionExtensionAtoms() uintptr

@define kCMFormatDescriptionExtension_SampleDescriptionExtensionAtoms @abstract Sample description extension atoms that were not translated into other entries in the extensions dictionary. @discussion This key is used by sample description bridges to hold sample description extension atoms that they do not recognize. The extension is a CFDictionary mapping CFStrings of the four-char-code atom types to either CFDatas containing the atom payload or (to represent multiple atoms of a specific type) to CFArrays of CFData containing those payloads.

func KCMFormatDescriptionExtension_SpatialQuality

func KCMFormatDescriptionExtension_SpatialQuality() uintptr

func KCMFormatDescriptionExtension_StereoCameraBaseline

func KCMFormatDescriptionExtension_StereoCameraBaseline() uintptr

@constant kCMFormatDescriptionExtension_StereoCameraBaseline @abstract Indicates the distance between centers of the lenses of the camera system. @discussion The value is a CFNumber holding an unsigned 32-bit integer that is interpreted in micrometers or thousandths of a millimeter (e.g., 63123 is 63.123 millimeters). This property is optional and should only be specified if the distance is known.

func KCMFormatDescriptionExtension_TemporalQuality

func KCMFormatDescriptionExtension_TemporalQuality() uintptr

func KCMFormatDescriptionExtension_TransferFunction

func KCMFormatDescriptionExtension_TransferFunction() uintptr

func KCMFormatDescriptionExtension_Vendor

func KCMFormatDescriptionExtension_Vendor() uintptr

func KCMFormatDescriptionExtension_VerbatimISOSampleEntry

func KCMFormatDescriptionExtension_VerbatimISOSampleEntry() uintptr

@define kCMFormatDescriptionExtension_VerbatimISOSampleEntry @abstract Preserves the original ISOSampleEntry data. @discussion This extension is used to ensure that roundtrips from ISO Sample Entry (ie. AudioSampleEntry or VisualSampleEntry) to CMFormatDescriptions back to ISO Sample Entry preserve the exact original sample descriptions. IMPORTANT: If you make a modified clone of a CMFormatDescription, you must delete this extension from the clone, or your modifications could be lost.

func KCMFormatDescriptionExtension_VerbatimImageDescription

func KCMFormatDescriptionExtension_VerbatimImageDescription() uintptr

func KCMFormatDescriptionExtension_VerbatimSampleDescription

func KCMFormatDescriptionExtension_VerbatimSampleDescription() uintptr

@define kCMFormatDescriptionExtension_VerbatimSampleDescription @abstract Preserves the original SampleDescription data. @discussion This extension is used to ensure that roundtrips from sample descriptions to CMFormatDescriptions back to sample descriptions preserve the exact original sample descriptions. IMPORTANT: If you make a modified clone of a CMFormatDescription, you must delete this extension from the clone, or your modifications could be lost.

func KCMFormatDescriptionExtension_Version

func KCMFormatDescriptionExtension_Version() uintptr

func KCMFormatDescriptionExtension_ViewPackingKind

func KCMFormatDescriptionExtension_ViewPackingKind() uintptr

@constant `kCMFormatDescriptionExtension_ViewPackingKind` @abstract Indicates the packing type of stereoscopic video frames. @constant `kCMFormatDescriptionViewPackingKind_SideBySide` Indicates that frames are packed side-by-side. @constant `kCMFormatDescriptionViewPackingKind_OverUnder` Indicates that frames are packed over under. @discussion The value is a CFString holding one of the kCMFormatDescriptionViewPackingKind_* constants.

func KCMFormatDescriptionExtension_YCbCrMatrix

func KCMFormatDescriptionExtension_YCbCrMatrix() uintptr

func KCMFormatDescriptionFieldDetail_SpatialFirstLineEarly

func KCMFormatDescriptionFieldDetail_SpatialFirstLineEarly() uintptr

func KCMFormatDescriptionFieldDetail_SpatialFirstLineLate

func KCMFormatDescriptionFieldDetail_SpatialFirstLineLate() uintptr

func KCMFormatDescriptionFieldDetail_TemporalBottomFirst

func KCMFormatDescriptionFieldDetail_TemporalBottomFirst() uintptr

func KCMFormatDescriptionFieldDetail_TemporalTopFirst

func KCMFormatDescriptionFieldDetail_TemporalTopFirst() uintptr

func KCMFormatDescriptionHeroEye_Left

func KCMFormatDescriptionHeroEye_Left() uintptr

func KCMFormatDescriptionHeroEye_Right

func KCMFormatDescriptionHeroEye_Right() uintptr

func KCMFormatDescriptionKey_CleanApertureHeight

func KCMFormatDescriptionKey_CleanApertureHeight() uintptr

func KCMFormatDescriptionKey_CleanApertureHeightRational

func KCMFormatDescriptionKey_CleanApertureHeightRational() uintptr

func KCMFormatDescriptionKey_CleanApertureHorizontalOffset

func KCMFormatDescriptionKey_CleanApertureHorizontalOffset() uintptr

func KCMFormatDescriptionKey_CleanApertureHorizontalOffsetRational

func KCMFormatDescriptionKey_CleanApertureHorizontalOffsetRational() uintptr

func KCMFormatDescriptionKey_CleanApertureVerticalOffset

func KCMFormatDescriptionKey_CleanApertureVerticalOffset() uintptr

func KCMFormatDescriptionKey_CleanApertureVerticalOffsetRational

func KCMFormatDescriptionKey_CleanApertureVerticalOffsetRational() uintptr

func KCMFormatDescriptionKey_CleanApertureWidth

func KCMFormatDescriptionKey_CleanApertureWidth() uintptr

func KCMFormatDescriptionKey_CleanApertureWidthRational

func KCMFormatDescriptionKey_CleanApertureWidthRational() uintptr

func KCMFormatDescriptionKey_PixelAspectRatioHorizontalSpacing

func KCMFormatDescriptionKey_PixelAspectRatioHorizontalSpacing() uintptr

func KCMFormatDescriptionKey_PixelAspectRatioVerticalSpacing

func KCMFormatDescriptionKey_PixelAspectRatioVerticalSpacing() uintptr

func KCMFormatDescriptionLogTransferFunction_AppleLog

func KCMFormatDescriptionLogTransferFunction_AppleLog() uintptr

func KCMFormatDescriptionProjectionKind_AppleImmersiveVideo

func KCMFormatDescriptionProjectionKind_AppleImmersiveVideo() uintptr

func KCMFormatDescriptionProjectionKind_Equirectangular

func KCMFormatDescriptionProjectionKind_Equirectangular() uintptr

func KCMFormatDescriptionProjectionKind_HalfEquirectangular

func KCMFormatDescriptionProjectionKind_HalfEquirectangular() uintptr

func KCMFormatDescriptionProjectionKind_ParametricImmersive

func KCMFormatDescriptionProjectionKind_ParametricImmersive() uintptr

func KCMFormatDescriptionProjectionKind_Rectilinear

func KCMFormatDescriptionProjectionKind_Rectilinear() uintptr

func KCMFormatDescriptionTransferFunction_ITU_R_709_2

func KCMFormatDescriptionTransferFunction_ITU_R_709_2() uintptr

func KCMFormatDescriptionTransferFunction_ITU_R_2020

func KCMFormatDescriptionTransferFunction_ITU_R_2020() uintptr

func KCMFormatDescriptionTransferFunction_ITU_R_2100_HLG

func KCMFormatDescriptionTransferFunction_ITU_R_2100_HLG() uintptr

func KCMFormatDescriptionTransferFunction_Linear

func KCMFormatDescriptionTransferFunction_Linear() uintptr

func KCMFormatDescriptionTransferFunction_SMPTE_240M_1995

func KCMFormatDescriptionTransferFunction_SMPTE_240M_1995() uintptr

func KCMFormatDescriptionTransferFunction_SMPTE_ST_428_1

func KCMFormatDescriptionTransferFunction_SMPTE_ST_428_1() uintptr

func KCMFormatDescriptionTransferFunction_SMPTE_ST_2084_PQ

func KCMFormatDescriptionTransferFunction_SMPTE_ST_2084_PQ() uintptr

func KCMFormatDescriptionTransferFunction_UseGamma

func KCMFormatDescriptionTransferFunction_UseGamma() uintptr

func KCMFormatDescriptionTransferFunction_sRGB

func KCMFormatDescriptionTransferFunction_sRGB() uintptr

func KCMFormatDescriptionVendor_Apple

func KCMFormatDescriptionVendor_Apple() uintptr

func KCMFormatDescriptionViewPackingKind_OverUnder

func KCMFormatDescriptionViewPackingKind_OverUnder() uintptr

func KCMFormatDescriptionViewPackingKind_SideBySide

func KCMFormatDescriptionViewPackingKind_SideBySide() uintptr

func KCMFormatDescriptionYCbCrMatrix_ITU_R_601_4

func KCMFormatDescriptionYCbCrMatrix_ITU_R_601_4() uintptr

func KCMFormatDescriptionYCbCrMatrix_ITU_R_709_2

func KCMFormatDescriptionYCbCrMatrix_ITU_R_709_2() uintptr

func KCMFormatDescriptionYCbCrMatrix_ITU_R_2020

func KCMFormatDescriptionYCbCrMatrix_ITU_R_2020() uintptr

func KCMFormatDescriptionYCbCrMatrix_SMPTE_240M_1995

func KCMFormatDescriptionYCbCrMatrix_SMPTE_240M_1995() uintptr

func KCMHEVCTemporalLevelInfoKey_ConstraintIndicatorFlags

func KCMHEVCTemporalLevelInfoKey_ConstraintIndicatorFlags() uintptr

func KCMHEVCTemporalLevelInfoKey_LevelIndex

func KCMHEVCTemporalLevelInfoKey_LevelIndex() uintptr

func KCMHEVCTemporalLevelInfoKey_ProfileCompatibilityFlags

func KCMHEVCTemporalLevelInfoKey_ProfileCompatibilityFlags() uintptr

func KCMHEVCTemporalLevelInfoKey_ProfileIndex

func KCMHEVCTemporalLevelInfoKey_ProfileIndex() uintptr

func KCMHEVCTemporalLevelInfoKey_ProfileSpace

func KCMHEVCTemporalLevelInfoKey_ProfileSpace() uintptr

func KCMHEVCTemporalLevelInfoKey_TemporalLevel

func KCMHEVCTemporalLevelInfoKey_TemporalLevel() uintptr

func KCMHEVCTemporalLevelInfoKey_TierFlag

func KCMHEVCTemporalLevelInfoKey_TierFlag() uintptr

func KCMImageDescriptionFlavor_3GPFamily

func KCMImageDescriptionFlavor_3GPFamily() uintptr

@constant kCMImageDescriptionFlavor_3GPFamily @abstract Chooses the 3GP family sample description format. @discussion This implies kCMImageDescriptionFlavor_ISOFamily and adds additional rules specific to the 3GP family.

func KCMImageDescriptionFlavor_ISOFamily

func KCMImageDescriptionFlavor_ISOFamily() uintptr

@constant kCMImageDescriptionFlavor_ISOFamily @abstract Chooses the ISO family sample description format, used in MP4

func KCMImageDescriptionFlavor_ISOFamilyWithAppleExtensions

func KCMImageDescriptionFlavor_ISOFamilyWithAppleExtensions() uintptr

@constant kCMImageDescriptionFlavor_ISOFamilyWithAppleExtensions @abstract Chooses the ISO family sample description format with use of Apple extensions where appropriate for M4V and M4A. @discussion This implies kCMImageDescriptionFlavor_ISOFamily and adds additional rules specific to the .m4a, .m4b, and .m4v file formats.

func KCMImageDescriptionFlavor_QuickTimeMovie

func KCMImageDescriptionFlavor_QuickTimeMovie() uintptr

@constant kCMImageDescriptionFlavor_QuickTimeMovie @abstract Chooses the QuickTime Movie Image Description format. @discussion Passing NULL is equivalent to passing this constant.

func KCMMemoryPoolOption_AgeOutPeriod

func KCMMemoryPoolOption_AgeOutPeriod() uintptr

@const kCMMemoryPoolOption_AgeOutPeriod @abstract Specifies how long memory should be allowed to hang out in the pool before being deallocated. @discussion Pass this in the options dictionary to CMMemoryPoolCreate.

func KCMMetadataBaseDataType_AffineTransformF64

func KCMMetadataBaseDataType_AffineTransformF64() uintptr

func KCMMetadataBaseDataType_BMP

func KCMMetadataBaseDataType_BMP() uintptr

func KCMMetadataBaseDataType_DimensionsF32

func KCMMetadataBaseDataType_DimensionsF32() uintptr

func KCMMetadataBaseDataType_ExtendedRasterRectangleValue

func KCMMetadataBaseDataType_ExtendedRasterRectangleValue() uintptr

func KCMMetadataBaseDataType_Float32

func KCMMetadataBaseDataType_Float32() uintptr

func KCMMetadataBaseDataType_Float64

func KCMMetadataBaseDataType_Float64() uintptr

func KCMMetadataBaseDataType_GIF

func KCMMetadataBaseDataType_GIF() uintptr

func KCMMetadataBaseDataType_JPEG

func KCMMetadataBaseDataType_JPEG() uintptr

func KCMMetadataBaseDataType_JSON

func KCMMetadataBaseDataType_JSON() uintptr

func KCMMetadataBaseDataType_PNG

func KCMMetadataBaseDataType_PNG() uintptr

func KCMMetadataBaseDataType_PerspectiveTransformF64

func KCMMetadataBaseDataType_PerspectiveTransformF64() uintptr

func KCMMetadataBaseDataType_PointF32

func KCMMetadataBaseDataType_PointF32() uintptr

func KCMMetadataBaseDataType_PolygonF32

func KCMMetadataBaseDataType_PolygonF32() uintptr

func KCMMetadataBaseDataType_PolylineF32

func KCMMetadataBaseDataType_PolylineF32() uintptr

func KCMMetadataBaseDataType_RasterRectangleValue

func KCMMetadataBaseDataType_RasterRectangleValue() uintptr

func KCMMetadataBaseDataType_RawData

func KCMMetadataBaseDataType_RawData() uintptr

func KCMMetadataBaseDataType_RectF32

func KCMMetadataBaseDataType_RectF32() uintptr

func KCMMetadataBaseDataType_SInt8

func KCMMetadataBaseDataType_SInt8() uintptr

func KCMMetadataBaseDataType_SInt16

func KCMMetadataBaseDataType_SInt16() uintptr

func KCMMetadataBaseDataType_SInt32

func KCMMetadataBaseDataType_SInt32() uintptr

func KCMMetadataBaseDataType_SInt64

func KCMMetadataBaseDataType_SInt64() uintptr

func KCMMetadataBaseDataType_UInt8

func KCMMetadataBaseDataType_UInt8() uintptr

func KCMMetadataBaseDataType_UInt16

func KCMMetadataBaseDataType_UInt16() uintptr

func KCMMetadataBaseDataType_UInt32

func KCMMetadataBaseDataType_UInt32() uintptr

func KCMMetadataBaseDataType_UInt64

func KCMMetadataBaseDataType_UInt64() uintptr

func KCMMetadataBaseDataType_UTF8

func KCMMetadataBaseDataType_UTF8() uintptr

func KCMMetadataBaseDataType_UTF16

func KCMMetadataBaseDataType_UTF16() uintptr

func KCMMetadataDataType_QuickTimeMetadataDirection

func KCMMetadataDataType_QuickTimeMetadataDirection() uintptr

func KCMMetadataDataType_QuickTimeMetadataLocation_ISO6709

func KCMMetadataDataType_QuickTimeMetadataLocation_ISO6709() uintptr

@const kCMMetadataDataType_Location_ISO6709 A string supplying location information in ISO-6709 format. Conforms to kCMMetadataBaseDataType_UTF8. @const kCMMetadataDataType_Direction A string supplying degrees offset from magnetic North. Conforms to kCMMetadataBaseDataType_UTF8.

func KCMMetadataDataType_QuickTimeMetadataMilliLux

func KCMMetadataDataType_QuickTimeMetadataMilliLux() uintptr

@const kCMMetadataDataType_QuickTimeMetadataMilliLux 1/1000 of a Lux. An unsigned value between 0 - 100,000,000. Conforms to kCMMetadataBaseDataType_UInt32.

func KCMMetadataDataType_QuickTimeMetadataUUID

func KCMMetadataDataType_QuickTimeMetadataUUID() uintptr

@const kCMMetadataDataType_QuickTimeMetadataUUID A string supplying a universally unique identifier. Conforms to kCMMetadataBaseDataType_UTF8.

func KCMMetadataFormatDescriptionKey_ConformingDataTypes

func KCMMetadataFormatDescriptionKey_ConformingDataTypes() uintptr

func KCMMetadataFormatDescriptionKey_DataType

func KCMMetadataFormatDescriptionKey_DataType() uintptr

func KCMMetadataFormatDescriptionKey_DataTypeNamespace

func KCMMetadataFormatDescriptionKey_DataTypeNamespace() uintptr

func KCMMetadataFormatDescriptionKey_LanguageTag

func KCMMetadataFormatDescriptionKey_LanguageTag() uintptr

func KCMMetadataFormatDescriptionKey_LocalID

func KCMMetadataFormatDescriptionKey_LocalID() uintptr

func KCMMetadataFormatDescriptionKey_Namespace

func KCMMetadataFormatDescriptionKey_Namespace() uintptr

func KCMMetadataFormatDescriptionKey_SetupData

func KCMMetadataFormatDescriptionKey_SetupData() uintptr

func KCMMetadataFormatDescriptionKey_StructuralDependency

func KCMMetadataFormatDescriptionKey_StructuralDependency() uintptr

func KCMMetadataFormatDescriptionKey_Value

func KCMMetadataFormatDescriptionKey_Value() uintptr

func KCMMetadataFormatDescriptionMetadataSpecificationKey_DataType

func KCMMetadataFormatDescriptionMetadataSpecificationKey_DataType() uintptr

func KCMMetadataFormatDescriptionMetadataSpecificationKey_ExtendedLanguageTag

func KCMMetadataFormatDescriptionMetadataSpecificationKey_ExtendedLanguageTag() uintptr

func KCMMetadataFormatDescriptionMetadataSpecificationKey_Identifier

func KCMMetadataFormatDescriptionMetadataSpecificationKey_Identifier() uintptr

func KCMMetadataFormatDescriptionMetadataSpecificationKey_SetupData

func KCMMetadataFormatDescriptionMetadataSpecificationKey_SetupData() uintptr

func KCMMetadataFormatDescriptionMetadataSpecificationKey_StructuralDependency

func KCMMetadataFormatDescriptionMetadataSpecificationKey_StructuralDependency() uintptr

func KCMMetadataFormatDescription_StructuralDependencyKey_DependencyIsInvalidFlag

func KCMMetadataFormatDescription_StructuralDependencyKey_DependencyIsInvalidFlag() uintptr

func KCMMetadataIdentifier_QuickTimeMetadataDirection_Facing

func KCMMetadataIdentifier_QuickTimeMetadataDirection_Facing() uintptr

func KCMMetadataIdentifier_QuickTimeMetadataDisplayMaskRectangleMono

func KCMMetadataIdentifier_QuickTimeMetadataDisplayMaskRectangleMono() uintptr

@const kCMMetadataIdentifier_QuickTimeMetadataDisplayMaskRectangleMono Display mask rectangle for monoscopic video Expected data type is kCMMetadataBaseDataType_RasterRectangleValue.

func KCMMetadataIdentifier_QuickTimeMetadataDisplayMaskRectangleStereoLeft

func KCMMetadataIdentifier_QuickTimeMetadataDisplayMaskRectangleStereoLeft() uintptr

@const kCMMetadataIdentifier_QuickTimeMetadataDisplayMaskRectangleStereoLeft Display mask rectangle for stereoscopic video's left eye view Expected data type is kCMMetadataBaseDataType_RasterRectangleValue or kCMMetadataBaseDataType_ExtendedRasterRectangleValue.

func KCMMetadataIdentifier_QuickTimeMetadataDisplayMaskRectangleStereoRight

func KCMMetadataIdentifier_QuickTimeMetadataDisplayMaskRectangleStereoRight() uintptr

@const kCMMetadataIdentifier_QuickTimeMetadataDisplayMaskRectangleStereoRight Display mask rectangle for stereoscopic video's right eye view Expected data type is kCMMetadataBaseDataType_RasterRectangleValue or kCMMetadataBaseDataType_ExtendedRasterRectangleValue.

func KCMMetadataIdentifier_QuickTimeMetadataLivePhotoStillImageTransform

func KCMMetadataIdentifier_QuickTimeMetadataLivePhotoStillImageTransform() uintptr

@const kCMMetadataIdentifier_QuickTimeMetadataLivePhotoStillImageTransform A perspective transform that can be used to adjust a Live Photo still image to match the Live Photo movie. Expected data type is kCMMetadataBaseDataType_PerspectiveTransformF64.

func KCMMetadataIdentifier_QuickTimeMetadataLivePhotoStillImageTransformReferenceDimensions

func KCMMetadataIdentifier_QuickTimeMetadataLivePhotoStillImageTransformReferenceDimensions() uintptr

@const kCMMetadataIdentifier_QuickTimeMetadataLivePhotoStillImageTransformReferenceDimensions The dimensions of the image used to generate kCMMetadataIdentifier_QuickTimeMetadataLivePhotoStillImageTransform. Expected data type is kCMMetadataBaseDataType_DimensionsF32.

func KCMMetadataIdentifier_QuickTimeMetadataLocation_ISO6709

func KCMMetadataIdentifier_QuickTimeMetadataLocation_ISO6709() uintptr

@const kCMMetadataIdentifier_QuickTimeMetadataLocation_ISO6709 Location information in ISO-6709 format. @const kCMMetadataIdentifier_QuickTimeMetadataDirection_Facing Direction the observer is facing.

func KCMMetadataIdentifier_QuickTimeMetadataPreferredAffineTransform

func KCMMetadataIdentifier_QuickTimeMetadataPreferredAffineTransform() uintptr

@const kCMMetadataIdentifier_QuickTimeMetadataPreferredAffineTransform An affine transform that can be used in place of a track matrix for displaying a video track, to better reflect the current orientation of a video camera with respect to a scene. For example, if the camera is rotated after a recording has started, the presence of this metadata will allow a player to adjust its rendering at the time the rotation occurred.

func KCMMetadataIdentifier_QuickTimeMetadataPresentationImmersiveMedia

func KCMMetadataIdentifier_QuickTimeMetadataPresentationImmersiveMedia() uintptr

@const kCMMetadataIdentifier_QuickTimeMetadataPresentationImmersiveMedia Presentation data associated with Apple Immersive Video's video frames. Data is a JSON-encoding of ImmersiveMediaSupport framework's PresentationDescriptor object. Expected data type is kCMMetadataBaseDataType_RawData.

func KCMMetadataIdentifier_QuickTimeMetadataSceneIlluminance

func KCMMetadataIdentifier_QuickTimeMetadataSceneIlluminance() uintptr

@const kCMMetadataIdentifier_QuickTimeMetadataSceneIlluminance Scene illuminance measured in units of Lux. Expected data type is kCMMetadataDataType_QuickTimeMetadataMilliLux.

func KCMMetadataIdentifier_QuickTimeMetadataSegmentIdentifier

func KCMMetadataIdentifier_QuickTimeMetadataSegmentIdentifier() uintptr

@const kCMMetadataIdentifier_QuickTimeMetadataSegmentIdentifier A segment identifier, used to support movies where pause/resume has been used. Expected data type is kCMMetadataDataType_QuickTimeMetadataUUID.

func KCMMetadataIdentifier_QuickTimeMetadataSpatialAudioMix

func KCMMetadataIdentifier_QuickTimeMetadataSpatialAudioMix() uintptr

@const kCMMetadataIdentifier_QuickTimeMetadataSpatialAudioMix Data associated with a Spatial Audio capture that contains an analysis of a First Order Ambisonics audio stream which is used for playback.

func KCMMetadataIdentifier_QuickTimeMetadataVideoOrientation

func KCMMetadataIdentifier_QuickTimeMetadataVideoOrientation() uintptr

@const kCMMetadataIdentifier_QuickTimeMetadataVideoOrientation Video orientation as defined by TIFF/EXIF, which is enumerated by CGImagePropertyOrientation (see <ImageIO/CGImageProperties.h>).

func KCMMetadataKeySpace_HLSDateRange

func KCMMetadataKeySpace_HLSDateRange() uintptr

func KCMMetadataKeySpace_ID3

func KCMMetadataKeySpace_ID3() uintptr

func KCMMetadataKeySpace_ISOUserData

func KCMMetadataKeySpace_ISOUserData() uintptr

func KCMMetadataKeySpace_Icy

func KCMMetadataKeySpace_Icy() uintptr

func KCMMetadataKeySpace_QuickTimeMetadata

func KCMMetadataKeySpace_QuickTimeMetadata() uintptr

func KCMMetadataKeySpace_QuickTimeUserData

func KCMMetadataKeySpace_QuickTimeUserData() uintptr

func KCMMetadataKeySpace_iTunes

func KCMMetadataKeySpace_iTunes() uintptr

func KCMSampleAttachmentKey_AudioIndependentSampleDecoderRefreshCount

func KCMSampleAttachmentKey_AudioIndependentSampleDecoderRefreshCount() uintptr

func KCMSampleAttachmentKey_CryptorSubsampleAuxiliaryData

func KCMSampleAttachmentKey_CryptorSubsampleAuxiliaryData() uintptr

@constant kCMSampleAttachmentKey_CryptorSubsampleAuxiliaryData @abstract Describes the ranges of protected and unprotected data within a protected CMSampleBuffer @discussion The attachment is CFData containing one or more "BytesOfClearData"/"BytesOfProtectedData" pairs as appears in the 'senc' box (see ISO/IEC 23001-7 section 7.2.2). The "BytesOfClearData” and the "BytesOfProtectedData” fields are 32-bit integers. Both are native endian in the CFData. This attachment is not present if the CMSampleBuffer contains unprotected content.

func KCMSampleAttachmentKey_DependsOnOthers

func KCMSampleAttachmentKey_DependsOnOthers() uintptr

func KCMSampleAttachmentKey_DisplayImmediately

func KCMSampleAttachmentKey_DisplayImmediately() uintptr

func KCMSampleAttachmentKey_DoNotDisplay

func KCMSampleAttachmentKey_DoNotDisplay() uintptr

func KCMSampleAttachmentKey_EarlierDisplayTimesAllowed

func KCMSampleAttachmentKey_EarlierDisplayTimesAllowed() uintptr

func KCMSampleAttachmentKey_HDR10PlusPerFrameData

func KCMSampleAttachmentKey_HDR10PlusPerFrameData() uintptr

@constant kCMSampleAttachmentKey_HDR10PlusPerFrameData @abstract HDR10+ per frame metadata @discussion The attachment is CFData containing HDR10+ metadata within an User Data Registered ITU-T T-35 SEI message (see ISO/IEC 23008-2-2020 section D.3.6) as little endian in the CFData. This attachment will override any HDR10+ metadata stored within the compressed data. The data shall start with the field itu_t_t35_country_code with the value 0xb5.

func KCMSampleAttachmentKey_HEVCStepwiseTemporalSubLayerAccess

func KCMSampleAttachmentKey_HEVCStepwiseTemporalSubLayerAccess() uintptr

func KCMSampleAttachmentKey_HEVCSyncSampleNALUnitType

func KCMSampleAttachmentKey_HEVCSyncSampleNALUnitType() uintptr

func KCMSampleAttachmentKey_HEVCTemporalLevelInfo

func KCMSampleAttachmentKey_HEVCTemporalLevelInfo() uintptr

@constant kCMSampleAttachmentKey_HEVCTemporalLevelInfo @abstract Indicates a video frame's level within a hierarchical frame dependency structure. @discussion When present, the temporal level attachments among a group of video frames provide information about where inter-frame dependencies may and may not exist. The temporal level attachment, if present, is a positive CFNumber, and indicates that this video frame does not depend on any video frame with a greater temporal level. The attachment may be absent if no such information is available.

func KCMSampleAttachmentKey_HEVCTemporalSubLayerAccess

func KCMSampleAttachmentKey_HEVCTemporalSubLayerAccess() uintptr

func KCMSampleAttachmentKey_HasRedundantCoding

func KCMSampleAttachmentKey_HasRedundantCoding() uintptr

func KCMSampleAttachmentKey_IsDependedOnByOthers

func KCMSampleAttachmentKey_IsDependedOnByOthers() uintptr

func KCMSampleAttachmentKey_NotSync

func KCMSampleAttachmentKey_NotSync() uintptr

func KCMSampleAttachmentKey_PartialSync

func KCMSampleAttachmentKey_PartialSync() uintptr

func KCMSampleAttachmentKey_PostDecodeProcessingMetadata

func KCMSampleAttachmentKey_PostDecodeProcessingMetadata() uintptr

@constant kCMSampleAttachmentKey_PostDecodeProcessingMetadata @abstract Represents the sequence and frame level metadata for post decode processing. @discussion This attachment is used to pass sequence and frame level metadata from a format reader to a decoder or RAW processor. It should be a CFDictionary that conforms to CFPropertyList.

func KCMSampleBufferAttachmentKey_CameraIntrinsicMatrix

func KCMSampleBufferAttachmentKey_CameraIntrinsicMatrix() uintptr

@constant kCMSampleBufferAttachmentKey_CameraIntrinsicMatrix @abstract Indicates the 3x3 camera intrinsic matrix applied to the current sample buffer. @discussion Camera intrinsic matrix is a CFData containing a matrix_float3x3, which is column-major. It has the following contents: fx 0 ox 0 fy oy 0 0 1 fx and fy are the focal length in pixels. For square pixels, they will have the same value. ox and oy are the coordinates of the principal point. The origin is the upper left of the frame.

func KCMSampleBufferAttachmentKey_DisplayEmptyMediaImmediately

func KCMSampleBufferAttachmentKey_DisplayEmptyMediaImmediately() uintptr

@constant kCMSampleBufferAttachmentKey_DisplayEmptyMediaImmediately @abstract Tells that the empty marker should be dequeued immediately regardless of its timestamp. @discussion Marker sample buffers with this attachment in addition to kCMSampleBufferAttachmentKey_EmptyMedia are used to tell that the empty sample buffer should be dequeued immediately regardless of its timestamp. This attachment should only be used with sample buffers with the kCMSampleBufferAttachmentKey_EmptyMedia attachment.

func KCMSampleBufferAttachmentKey_DrainAfterDecoding

func KCMSampleBufferAttachmentKey_DrainAfterDecoding() uintptr

func KCMSampleBufferAttachmentKey_DroppedFrameReason

func KCMSampleBufferAttachmentKey_DroppedFrameReason() uintptr

@constant kCMSampleBufferAttachmentKey_DroppedFrameReason @abstract Indicates the reason the current video frame was dropped. @discussion Sample buffers with this attachment contain no image or data buffer. They mark a dropped video frame. This attachment identifies the reason for the droppage.

func KCMSampleBufferAttachmentKey_DroppedFrameReasonInfo

func KCMSampleBufferAttachmentKey_DroppedFrameReasonInfo() uintptr

@constant kCMSampleBufferAttachmentKey_DroppedFrameReasonInfo @abstract Indicates additional information regarding the dropped video frame. @discussion Sample buffers with this attachment contain no image or data buffer. They mark a dropped video frame. If present, this attachment provides additional information about the kCMSampleBufferAttachmentKey_DroppedFrameReason.

func KCMSampleBufferAttachmentKey_EmptyMedia

func KCMSampleBufferAttachmentKey_EmptyMedia() uintptr

@constant kCMSampleBufferAttachmentKey_EmptyMedia @abstract Marks an intentionally empty interval in the sequence of samples. @discussion The sample buffer's output presentation timestamp indicates when the empty interval begins. Marker sample buffers with this attachment are used to announce the arrival of empty edits.

func KCMSampleBufferAttachmentKey_EndsPreviousSampleDuration

func KCMSampleBufferAttachmentKey_EndsPreviousSampleDuration() uintptr

@constant kCMSampleBufferAttachmentKey_EndsPreviousSampleDuration @abstract Indicates that sample buffer's decode timestamp may be used to define the previous sample buffer's duration. @discussion Marker sample buffers with this attachment may be used in situations where sample buffers are transmitted before their duration is known. In such situations, normally the recipient may use each sample buffer's timestamp to calculate the duration of the previous sample buffer. The marker sample buffer with this attachment is sent to provide the timestamp for calculating the final sample buffer's duration.

func KCMSampleBufferAttachmentKey_FillDiscontinuitiesWithSilence

func KCMSampleBufferAttachmentKey_FillDiscontinuitiesWithSilence() uintptr

@constant kCMSampleBufferAttachmentKey_FillDiscontinuitiesWithSilence @abstract Fill the difference between discontiguous sample buffers with silence. @discussion If a sample buffer enters a buffer queue and the presentation time stamp between the previous buffer and the buffer with this attachment are discontiguous, handle the discontinuity by generating silence for the time difference.

func KCMSampleBufferAttachmentKey_ForceKeyFrame

func KCMSampleBufferAttachmentKey_ForceKeyFrame() uintptr

@constant kCMSampleBufferAttachmentKey_ForceKeyFrame @abstract Indicates that the current or next video sample buffer should be forced to be encoded as a key frame. @discussion A value of kCFBooleanTrue for kCMSampleBufferAttachmentKey_ForceKeyFrame indicates that the current or next video sample buffer processed in the stream should be forced to be encoded as a key frame. If this attachment is present and kCFBooleanTrue on a sample buffer with a video frame, that video frame will be forced to become a key frame. If the sample buffer for which this is present and kCFBooleanTrue does not have a valid video frame, the next sample buffer processed that contains a valid video frame will be encoded as a key frame. Usual care should be taken when setting attachments on sample buffers whose orgins and destinations are ambiguous. For example, CMSetAttachment() is not thread-safe, and CMSampleBuffers may be used in multiple sample buffer streams in a given system. This can lead to crashes during concurrent access and/or unexpected behavior on alternate sample buffer streams. Therefore, unless the orgin and destination of a sample buffer is known, the general recommended practice is to synthesize an empty sample buffer with this attachment alone and insert it into the sample buffer stream ahead of the concrete sample buffer rather than setting this attachment on the concrete sample buffer itself.

func KCMSampleBufferAttachmentKey_GradualDecoderRefresh

func KCMSampleBufferAttachmentKey_GradualDecoderRefresh() uintptr

@constant kCMSampleBufferAttachmentKey_GradualDecoderRefresh @abstract Indicates the decoder refresh count. @discussion Sample buffers with this attachment may be used to identify the audio decoder refresh count.

func KCMSampleBufferAttachmentKey_PermanentEmptyMedia

func KCMSampleBufferAttachmentKey_PermanentEmptyMedia() uintptr

@constant kCMSampleBufferAttachmentKey_PermanentEmptyMedia @abstract Marks the end of the sequence of samples. @discussion Marker sample buffers with this attachment in addition to kCMSampleBufferAttachmentKey_EmptyMedia are used to indicate that no further samples are expected.

func KCMSampleBufferAttachmentKey_PostNotificationWhenConsumed

func KCMSampleBufferAttachmentKey_PostNotificationWhenConsumed() uintptr

func KCMSampleBufferAttachmentKey_ResetDecoderBeforeDecoding

func KCMSampleBufferAttachmentKey_ResetDecoderBeforeDecoding() uintptr

func KCMSampleBufferAttachmentKey_ResumeOutput

func KCMSampleBufferAttachmentKey_ResumeOutput() uintptr

func KCMSampleBufferAttachmentKey_Reverse

func KCMSampleBufferAttachmentKey_Reverse() uintptr

@constant kCMSampleBufferAttachmentKey_Reverse @abstract Indicates that the decoded contents of the sample buffer should be reversed. If this attachment is not present, the sample buffer should be played forwards as usual. Reversal occurs after trimming and speed multipliers.

func KCMSampleBufferAttachmentKey_SampleReferenceByteOffset

func KCMSampleBufferAttachmentKey_SampleReferenceByteOffset() uintptr

@constant kCMSampleBufferAttachmentKey_SampleReferenceByteOffset @abstract Indicates the byte offset at which the sample data begins. @discussion This key is only used for CMSampleBuffers representing sample references. Such CMSampleBuffers: - have dataBuffer == NULL and imageBuffer == NULL - have dataReady == true and no makeDataReadyCallback - have a non-NULL formatDescription - have numSamples > 0 - have numSampleTimingEntries > 0 and numSampleSizeEntries > 0

func KCMSampleBufferAttachmentKey_SampleReferenceURL

func KCMSampleBufferAttachmentKey_SampleReferenceURL() uintptr

@constant kCMSampleBufferAttachmentKey_SampleReferenceURL @abstract Indicates the URL where the sample data is. @discussion This key is only used for CMSampleBuffers representing sample references. Such CMSampleBuffers: - have dataBuffer == NULL and imageBuffer == NULL - have dataReady == true and no makeDataReadyCallback - have a non-NULL formatDescription - have numSamples > 0 - have numSampleTimingEntries > 0 and numSampleSizeEntries > 0

func KCMSampleBufferAttachmentKey_SpeedMultiplier

func KCMSampleBufferAttachmentKey_SpeedMultiplier() uintptr

@constant kCMSampleBufferAttachmentKey_SpeedMultiplier @abstract The factor by which the sample buffer's presentation should be accelerated (eg, in a scaled edit). @discussion For normal playback the speed multiplier would be 1.0 (which is used if this attachment is not present); for double-speed playback the speed multiplier would be 2.0, which would halve the output duration. Speed-multiplication factors take effect after trimming; see CMSampleBufferGetOutputDuration. Note that this attachment principally provides information about the duration-stretching effect: by default, it should be implemented by rate conversion, but other attachments may specify richer stretching operations -- for example, scaling without pitch shift, or pitch shift without changing duration. Sequences of speed-multiplied sample buffers should have explicit OutputPresentationTimeStamp attachments to clarify when each should be output.

func KCMSampleBufferAttachmentKey_StillImageLensStabilizationInfo

func KCMSampleBufferAttachmentKey_StillImageLensStabilizationInfo() uintptr

@constant kCMSampleBufferAttachmentKey_StillImageLensStabilizationInfo @abstract Indicates information about the lens stabilization applied to the current still image buffer. @discussion Sample buffers that have been captured with a lens stabilization module may have an attachment of kCMSampleBufferAttachmentKey_StillImageLensStabilizationInfo which has information about the stabilization status during the capture. This key will not be present in CMSampleBuffers coming from cameras without a lens stabilization module.

func KCMSampleBufferAttachmentKey_TransitionID

func KCMSampleBufferAttachmentKey_TransitionID() uintptr

@constant kCMSampleBufferAttachmentKey_TransitionID @abstract Marks a transition from one source of buffers (eg. song) to another @discussion For example, during gapless playback of a list of songs, this attachment marks the first buffer from the next song. If this attachment is on a buffer containing no samples, the first following buffer that contains samples is the buffer that contains the first samples from the next song. The value of this attachment is a CFTypeRef. This transition identifier should be unique within a playlist, so each transition in a playlist is uniquely identifiable. A CFNumberRef counter that increments with each transition is a simple example.

func KCMSampleBufferAttachmentKey_TrimDurationAtEnd

func KCMSampleBufferAttachmentKey_TrimDurationAtEnd() uintptr

@constant kCMSampleBufferAttachmentKey_TrimDurationAtEnd @abstract The duration that should be removed at the end of the sample buffer, after decoding. @discussion If this attachment is not present, the trim duration is zero (nothing removed). This is a CMTime in CFDictionary format as made by CMTimeCopyAsDictionary; use CMTimeMakeFromDictionary to convert to CMTime.

func KCMSampleBufferAttachmentKey_TrimDurationAtStart

func KCMSampleBufferAttachmentKey_TrimDurationAtStart() uintptr

@constant kCMSampleBufferAttachmentKey_TrimDurationAtStart @abstract The duration that should be removed at the beginning of the sample buffer, after decoding. @discussion If this attachment is not present, the trim duration is zero (nothing removed). This is a CMTime in CFDictionary format as made by CMTimeCopyAsDictionary; use CMTimeMakeFromDictionary to convert to CMTime. In cases where all the output after decoding the sample buffer is to be discarded (eg, the samples are only being decoded to prime the decoder) the usual convention is to set kCMSampleBufferAttachmentKey_TrimDurationAtStart to the whole duration and not to set a kCMSampleBufferAttachmentKey_TrimDurationAtEnd attachment. Note that setting or removing kCMSampleBufferAttachmentKey_TrimDurationAtStart from a sample buffer will not adjust an explicitly-set OutputPresentationTimeStamp.

func KCMSampleBufferConduitNotificationParameter_MaxUpcomingOutputPTS

func KCMSampleBufferConduitNotificationParameter_MaxUpcomingOutputPTS() uintptr

func KCMSampleBufferConduitNotificationParameter_MinUpcomingOutputPTS

func KCMSampleBufferConduitNotificationParameter_MinUpcomingOutputPTS() uintptr

func KCMSampleBufferConduitNotificationParameter_ResumeTag

func KCMSampleBufferConduitNotificationParameter_ResumeTag() uintptr

func KCMSampleBufferConduitNotificationParameter_UpcomingOutputPTSRangeMayOverlapQueuedOutputPTSRange

func KCMSampleBufferConduitNotificationParameter_UpcomingOutputPTSRangeMayOverlapQueuedOutputPTSRange() uintptr

func KCMSampleBufferConduitNotification_InhibitOutputUntil

func KCMSampleBufferConduitNotification_InhibitOutputUntil() uintptr

@constant kCMSampleBufferConduitNotification_InhibitOutputUntil @abstract Posted on a conduit of CMSampleBuffers (eg, a CMBufferQueue) to announce a coming discontinuity and specify a tag value that will be attached to the first CMSampleBuffer following the discontinuity. @discussion The first CMSampleBuffer following the discontinuity should have a kCMSampleBufferAttachmentKey_ResumeOutput attachment with value containing the same CFNumber as this notification's payload's kCMSampleBufferConduitNotificationParameter_ResumeTag. The consumer should discard output data until it receives this CMSampleBuffer. If multiple kCMSampleBufferConduitNotification_InhibitOutputUntil notifications are received, the last one indicates the tag to trigger resuming.

func KCMSampleBufferConduitNotification_ResetOutput

func KCMSampleBufferConduitNotification_ResetOutput() uintptr

@constant kCMSampleBufferConduitNotification_ResetOutput @abstract Posted on a conduit of CMSampleBuffers (eg, a CMBufferQueue) to request invalidation of pending output data.

func KCMSampleBufferConduitNotification_UpcomingOutputPTSRangeChanged

func KCMSampleBufferConduitNotification_UpcomingOutputPTSRangeChanged() uintptr

@constant kCMSampleBufferConduitNotification_UpcomingOutputPTSRangeChanged @abstract Posted on a conduit of video CMSampleBuffers (eg, a CMBufferQueue) to report information about the range of upcoming CMSampleBuffer output presentation timestamps.

func KCMSampleBufferConsumerNotification_BufferConsumed

func KCMSampleBufferConsumerNotification_BufferConsumed() uintptr

@constant kCMSampleBufferConsumerNotification_BufferConsumed @abstract Posted when a CMSampleBuffer that has kCMSampleBufferAttachmentKey_PostNotificationWhenConsumed is consumed. @discussion After an object consumes a CMSampleBuffer that has a kCMSampleBufferAttachmentKey_PostNotificationWhenConsumed attachment, it should post kCMSampleBufferConsumerNotification_BufferConsumed with itself as the notifyingObject and the attachment value as the payload. Such an attachment value must be a CFDictionary but the contents are client-defined. Note that a NULL refcon cannot be attached to a CMSampleBuffer.

func KCMSampleBufferDroppedFrameReasonInfo_CameraModeSwitch

func KCMSampleBufferDroppedFrameReasonInfo_CameraModeSwitch() uintptr

@constant kCMSampleBufferDroppedFrameReasonInfo_CameraModeSwitch @abstract A discontinuity was caused by a camera mode switch. @discussion The value of kCMSampleBufferAttachmentKey_DroppedFrameReasonInfo if the module providing sample buffers has experienced a discontinuity due to a camera mode switch. Short discontinuities of this type can occur when the session is configured for still image capture on some devices.

func KCMSampleBufferDroppedFrameReason_Discontinuity

func KCMSampleBufferDroppedFrameReason_Discontinuity() uintptr

@constant kCMSampleBufferDroppedFrameReason_Discontinuity @abstract An unknown number of frames were dropped @discussion The value of kCMSampleBufferAttachmentKey_DroppedFrameReason if the module providing sample buffers has experienced a discontinuity, and an unknown number of frames have been lost. This condition is typically caused by the system being too busy.

func KCMSampleBufferDroppedFrameReason_FrameWasLate

func KCMSampleBufferDroppedFrameReason_FrameWasLate() uintptr

@constant kCMSampleBufferDroppedFrameReason_FrameWasLate @abstract The frame was dropped because it was late @discussion The value of kCMSampleBufferAttachmentKey_DroppedFrameReason if a video capture client has indicated that late video frames should be dropped and the current frame is late. This condition is typically caused by the client's processing taking too long.

func KCMSampleBufferDroppedFrameReason_OutOfBuffers

func KCMSampleBufferDroppedFrameReason_OutOfBuffers() uintptr

@constant kCMSampleBufferDroppedFrameReason_OutOfBuffers @abstract The frame was dropped because the module providing frames is out of buffers @discussion The value of kCMSampleBufferAttachmentKey_DroppedFrameReason if the module providing sample buffers has run out of source buffers. This condition is typically caused by the client holding onto buffers for too long and can be alleviated by returning buffers to the provider.

func KCMSampleBufferLensStabilizationInfo_Active

func KCMSampleBufferLensStabilizationInfo_Active() uintptr

@constant kCMSampleBufferLensStabilizationInfo_Active @abstract The lens stabilization module was active for the duration this buffer.

func KCMSampleBufferLensStabilizationInfo_Off

func KCMSampleBufferLensStabilizationInfo_Off() uintptr

@constant kCMSampleBufferLensStabilizationInfo_Off @abstract The lens stabilization module was not used during this capture. @discussion The value of kCMSampleBufferAttachmentKey_StillImageLensStabilizationInfo if the lens stabilization module was not used for this capture.

func KCMSampleBufferLensStabilizationInfo_OutOfRange

func KCMSampleBufferLensStabilizationInfo_OutOfRange() uintptr

@constant kCMSampleBufferLensStabilizationInfo_OutOfRange @abstract The motion of the device or duration of the capture was outside of what the stabilization mechanism could support. @discussion The value of kCMSampleBufferAttachmentKey_StillImageLensStabilizationInfo if the module stabilizing the lens was unable to compensate for the movement.

func KCMSampleBufferLensStabilizationInfo_Unavailable

func KCMSampleBufferLensStabilizationInfo_Unavailable() uintptr

@constant kCMSampleBufferLensStabilizationInfo_Unavailable @abstract The lens stabilization module was unavailable for use. @discussion The value of kCMSampleBufferAttachmentKey_StillImageLensStabilizationInfo if the lens stabilization module is unavailable to compensate for the motion of the device. The module may be available at a later time.

func KCMSampleBufferNotificationParameter_OSStatus

func KCMSampleBufferNotificationParameter_OSStatus() uintptr

func KCMSampleBufferNotification_DataBecameReady

func KCMSampleBufferNotification_DataBecameReady() uintptr

@constant kCMSampleBufferNotification_DataBecameReady @abstract Posted on a CMSampleBuffer by CMSampleBufferSetDataReady when the buffer becomes ready.

func KCMSampleBufferNotification_DataFailed

func KCMSampleBufferNotification_DataFailed() uintptr

@constant kCMSampleBufferNotification_DataFailed @abstract Posted on a CMSampleBuffer by CMSampleBufferSetDataFailed to report that the buffer will never become ready.

func KCMSoundDescriptionFlavor_3GPFamily

func KCMSoundDescriptionFlavor_3GPFamily() uintptr

@constant kCMSoundDescriptionFlavor_3GPFamily @abstract Chooses the 3GP family sample description format. @discussion This implies kCMSoundDescriptionFlavor_ISOFamily and adds additional rules specific to the 3GP family.

func KCMSoundDescriptionFlavor_ISOFamily

func KCMSoundDescriptionFlavor_ISOFamily() uintptr

@constant kCMSoundDescriptionFlavor_ISOFamily @abstract Chooses the ISO family sample description format, used in MP4, M4A, etc.

func KCMSoundDescriptionFlavor_QuickTimeMovie

func KCMSoundDescriptionFlavor_QuickTimeMovie() uintptr

@constant kCMSoundDescriptionFlavor_QuickTimeMovie @abstract Chooses the most backwards-compatible QuickTime Movie Sound Description format. @discussion A V1 sound description will be written if possible. If a V1 sound description is written for CBR or PCM audio, the sample tables will need to use the legacy CBR layout.

func KCMSoundDescriptionFlavor_QuickTimeMovieV2

func KCMSoundDescriptionFlavor_QuickTimeMovieV2() uintptr

@constant kCMSoundDescriptionFlavor_QuickTimeMovieV2 @abstract Chooses the QuickTime Movie Sound Description V2 format. @discussion A V2 sound description will be written. V2 Sound Descriptions contain no legacy CBR layout, and use 'lpcm' for all flavors of PCM.

func KCMTagCategoryKey

func KCMTagCategoryKey() uintptr

@constant kCMTagCategoryKey @discussion CFDictionary key for category field of a CMTag.

func KCMTagCollectionTagsArrayKey

func KCMTagCollectionTagsArrayKey() uintptr

@constant kCMTagCollectionTagsArrayKey @discussion CFDictionary key for a CFArray of serialized CMTag dictionaries of a CMTagCollection as used with CMTagCollectionCopyAsDictionary

func KCMTagDataTypeKey

func KCMTagDataTypeKey() uintptr

@constant kCMTagDataTypeKey @discussion CFDictionary key for dataType field of a CMTag.

func KCMTagValueKey

func KCMTagValueKey() uintptr

@constant kCMTagValueKey @discussion CFDictionary key for value field of a CMTag.

func KCMTextFormatDescriptionColor_Alpha

func KCMTextFormatDescriptionColor_Alpha() uintptr

func KCMTextFormatDescriptionColor_Blue

func KCMTextFormatDescriptionColor_Blue() uintptr

func KCMTextFormatDescriptionColor_Green

func KCMTextFormatDescriptionColor_Green() uintptr

func KCMTextFormatDescriptionColor_Red

func KCMTextFormatDescriptionColor_Red() uintptr

func KCMTextFormatDescriptionExtension_BackgroundColor

func KCMTextFormatDescriptionExtension_BackgroundColor() uintptr

func KCMTextFormatDescriptionExtension_DefaultFontName

func KCMTextFormatDescriptionExtension_DefaultFontName() uintptr

func KCMTextFormatDescriptionExtension_DefaultStyle

func KCMTextFormatDescriptionExtension_DefaultStyle() uintptr

func KCMTextFormatDescriptionExtension_DefaultTextBox

func KCMTextFormatDescriptionExtension_DefaultTextBox() uintptr

func KCMTextFormatDescriptionExtension_DisplayFlags

func KCMTextFormatDescriptionExtension_DisplayFlags() uintptr

func KCMTextFormatDescriptionExtension_FontTable

func KCMTextFormatDescriptionExtension_FontTable() uintptr

func KCMTextFormatDescriptionExtension_HorizontalJustification

func KCMTextFormatDescriptionExtension_HorizontalJustification() uintptr

func KCMTextFormatDescriptionExtension_TextJustification

func KCMTextFormatDescriptionExtension_TextJustification() uintptr

func KCMTextFormatDescriptionExtension_VerticalJustification

func KCMTextFormatDescriptionExtension_VerticalJustification() uintptr

func KCMTextFormatDescriptionRect_Bottom

func KCMTextFormatDescriptionRect_Bottom() uintptr

func KCMTextFormatDescriptionRect_Left

func KCMTextFormatDescriptionRect_Left() uintptr

func KCMTextFormatDescriptionRect_Right

func KCMTextFormatDescriptionRect_Right() uintptr

func KCMTextFormatDescriptionRect_Top

func KCMTextFormatDescriptionRect_Top() uintptr

func KCMTextFormatDescriptionStyle_Ascent

func KCMTextFormatDescriptionStyle_Ascent() uintptr

func KCMTextFormatDescriptionStyle_EndChar

func KCMTextFormatDescriptionStyle_EndChar() uintptr

func KCMTextFormatDescriptionStyle_Font

func KCMTextFormatDescriptionStyle_Font() uintptr

func KCMTextFormatDescriptionStyle_FontFace

func KCMTextFormatDescriptionStyle_FontFace() uintptr

func KCMTextFormatDescriptionStyle_FontSize

func KCMTextFormatDescriptionStyle_FontSize() uintptr

func KCMTextFormatDescriptionStyle_ForegroundColor

func KCMTextFormatDescriptionStyle_ForegroundColor() uintptr

func KCMTextFormatDescriptionStyle_Height

func KCMTextFormatDescriptionStyle_Height() uintptr

func KCMTextFormatDescriptionStyle_StartChar

func KCMTextFormatDescriptionStyle_StartChar() uintptr

func KCMTextMarkupAlignmentType_End

func KCMTextMarkupAlignmentType_End() uintptr

func KCMTextMarkupAlignmentType_Left

func KCMTextMarkupAlignmentType_Left() uintptr

func KCMTextMarkupAlignmentType_Middle

func KCMTextMarkupAlignmentType_Middle() uintptr

func KCMTextMarkupAlignmentType_Right

func KCMTextMarkupAlignmentType_Right() uintptr

func KCMTextMarkupAlignmentType_Start

func KCMTextMarkupAlignmentType_Start() uintptr

@abstract Values for kCMTextMarkupAttribute_Alignment. @const kCMTextMarkupAlignmentType_Start The text is visually aligned at its starting side. For horizontally written text, the alignment is left for left-to-right text and right for right-to-left text. For vertical text, alignment is always at the top. @const kCMTextMarkupAlignmentType_Middle The text is visually center-aligned (i.e., aligned between its starting and ending sides). @const kCMTextMarkupAlignmentType_End The text is visually aligned at its ending side. For horizontally written text, the alignment is right for left-to-right text and left for right-to-left text. For vertical text, alignment is always at the bottom. @const kCMTextMarkupAlignmentType_Left For horizontally written text, the text alignment is always visually left-aligned (i.e., left-to-right and right-to-left are treated uniformly). For vertical text, this is equivalent to kCMTextMarkupAlignmentType_Start. While readers should be prepared to account for kCMTextMarkupAlignmentType_Left being equivalent to kCMTextMarkupAlignmentType_Start for vertical text, authors are discouraged from using kCMTextMarkupAlignmentType_Left for vertical text. @const kCMTextMarkupAlignmentType_Right For horizontally written text, the text alignment is always visually right-aligned (i.e., left-to-right and right-to-left are treated uniformly). For vertical text, this is equivalent to kCMTextMarkupAlignmentType_End. While readers should be prepared to account for kCMTextMarkupAlignmentType_Right being equivalent to kCMTextMarkupAlignmentType_End for vertical text, authors are discouraged from using kCMTextMarkupAlignmentType_Right for vertical text.

func KCMTextMarkupAttribute_Alignment

func KCMTextMarkupAttribute_Alignment() uintptr

@const kCMTextMarkupAttribute_Alignment @abstract The alignment of text in the writing direction of the first line of text. @discussion Value must be a CFString. A CFString holding one of several values indicating the alignment in the writing direction of the first line of text of the cue. The writing direction is indicated by the value (or absence) of the kCMTextMarkupAttribute_VerticalLayout. If this attribute is missing, the kCMTextMarkupAlignmentType_Middle value should be used as the default. If used, this attribute must be applied to the entire attributed string (i.e., CFRangeMake(0, CFAttributedStringGetLength(...))).

func KCMTextMarkupAttribute_BackgroundColorARGB

func KCMTextMarkupAttribute_BackgroundColorARGB() uintptr

@const kCMTextMarkupAttribute_BackgroundColorARGB @abstract The background color for the shape holding the text. @discussion Value must be a CFArray of 4 CFNumbers representing alpha, red, green, and blue fields with values between 0.0 and 1.0. The red, green and blue components are interpreted in the sRGB color space. The alpha indicates the opacity from 0.0 for transparent to 1.0 for 100% opaque. The color applies to the geometry (e.g., a box) containing the text. The container's background color may have an alpha of 0 so it is not displayed even though the text is displayed. The color behind individual characters is optionally controllable with the kCMTextMarkupAttribute_CharacterBackgroundColorARGB attribute. If used, this attribute must be applied to the entire attributed string (i.e., CFRangeMake(0, CFAttributedStringGetLength(...))).

func KCMTextMarkupAttribute_BaseFontSizePercentageRelativeToVideoHeight

func KCMTextMarkupAttribute_BaseFontSizePercentageRelativeToVideoHeight() uintptr

@const kCMTextMarkupAttribute_BaseFontSizePercentageRelativeToVideoHeight @abstract The base font size expressed as a percentage of the video height. @discussion Value must be a non-negative CFNumber. This is a number holding a percentage of the height of the video frame. For example, a value of 5 indicates that the base font size should be 5% of the height of the video.

func KCMTextMarkupAttribute_BoldStyle

func KCMTextMarkupAttribute_BoldStyle() uintptr

@const kCMTextMarkupAttribute_BoldStyle @abstract Allows the setting of a bold style to be applied. @discussion Value must be a CFBoolean. The default is kCFBooleanFalse. If this attribute is kCFBooleanTrue, the text will be drawn with a bold style. Other styles such as italic may or may not be used as well.

func KCMTextMarkupAttribute_CharacterBackgroundColorARGB

func KCMTextMarkupAttribute_CharacterBackgroundColorARGB() uintptr

@const kCMTextMarkupAttribute_CharacterBackgroundColorARGB @abstract The background color behind individual text characters. @discussion Value must be a CFArray of 4 CFNumbers representing alpha, red, green, and blue fields with values between 0.0 and 1.0. The red, green and blue components are interpreted in the sRGB color space. The alpha indicates the opacity from 0.0 for transparent to 1.0 for 100% opaque.

func KCMTextMarkupAttribute_CharacterEdgeStyle

func KCMTextMarkupAttribute_CharacterEdgeStyle() uintptr

@const kCMTextMarkupAttribute_CharacterEdgeStyle @abstract Allows the setting of the style of character edges at render time. @discussion Value must be a CFString. This controls the shape of the edges of drawn characters. Set a value of something other than kCMTextMarkupEdgeStyle_None to draw using an alternative shape for edges of characters from the set of constants prefixed with "kCMTextMarkupEdgeStyle_". These correspond to text edge styles available with Media Accessibility preferences (see <MediaAccessibility/MACaptionAppearance.h>) although the values are not enumerated integers here. The absence of this attribute should be treated as though kCMTextMarkupCharacterEdgeStyle_None is specified.

func KCMTextMarkupAttribute_FontFamilyName

func KCMTextMarkupAttribute_FontFamilyName() uintptr

@const kCMTextMarkupAttribute_FontFamilyName @abstract The name of the font. @discussion Value must be a CFString holding the family name of an installed font (e.g., "Helvetica") that is used to render and/or measure text. When vended by legible output, an attributed string will have at most one of kCMTextMarkupAttribute_FontFamilyName or kCMTextMarkupAttribute_GenericFontFamilyName associated with each character.

func KCMTextMarkupAttribute_FontFamilyNameList

func KCMTextMarkupAttribute_FontFamilyNameList() uintptr

@const kCMTextMarkupAttribute_FontFamilyNameList @abstract The array of font name(s) and if that name is a generic or a platform name. @discussion Value must be a CFArray holding CFDictionaries that are used to render and/or measure text. Each dictionary entry has a font family name and a font kind value. The font kind value can be either 0 for generic font family or 1 for platform font family corresponding to the font family name. The CFArray value can hold multiple font names as a fallback where the author prefers specific fonts. If the renderer does not support the first font entry, it tries the following. For example, the array includes InexistantFont and Times New Roman font names, it is expected the renderer to select the "Times New Roman" font for drawing caption.

func KCMTextMarkupAttribute_ForegroundColorARGB

func KCMTextMarkupAttribute_ForegroundColorARGB() uintptr

@const kCMTextMarkupAttribute_ForegroundColorARGB @abstract The foreground color for text. @discussion Value must be a CFArray of 4 CFNumbers representing alpha, red, green, and blue fields with values between 0.0 and 1.0. The red, green and blue components are interpreted in the sRGB color space. The alpha indicates the opacity from 0.0 for transparent to 1.0 for 100% opaque.

func KCMTextMarkupAttribute_GenericFontFamilyName

func KCMTextMarkupAttribute_GenericFontFamilyName() uintptr

@const kCMTextMarkupAttribute_GenericFontFamilyName @abstract The attribute holding a generic font family identifier. @discussion Value must be a CFString holding a generic font family name that is one of the kCMTextMarkupGenericFontName_* constants. Generic fonts must be mapped to the family name of an installed font (e.g., kCMTextMarkupGenericFontName_SansSerif -> "Helvetica") before rendering and/or measuring text. When vended by legible output, an attributed string will have at most one of kCMTextMarkupAttribute_FontFamilyName or kCMTextMarkupAttribute_GenericFontFamilyName associated with each character. Overview of Generic Font Family Names ===================================== Some media formats allow the specification of font family names to be used to style text they carry. Sometimes, an external specification (e.g., CSS) may be used to style the text carried by the media format. In either case, the specification may be concrete, indicating an installed platform font (e.g., "Times New Roman", Helvetica). It may be abstract, indicating a category of font to use (e.g., serif, sans-serif). This abstract designation is often termed a "generic font family". CSS for example allows a 'font-family' property specification such as this: font-family: Helvetica, sans-serif; This uses both the concrete family name "Helvetica" and the generic family name "sans-serif". Generic font families may be common across media formats (e.g., both CSS and 3GPP timed text allow "sans-serif" and "serif"). Other formats may have generic font identifiers that do not align exactly (e.g., TTML allows "monospaceSerif and "monospaceSansSerif" in addition to "monospace"). Some formats might not carry names but have numeric values mapping to a generic font identifier. Simply put, different formats use different ways to express their generic fonts. The use of generic font families is also important for media accessibility. The Media Accessibility framework can map eight categories of abstract fonts to an installed font. Users may choose to override each of these categories to a different installed font. This remapping should work if the content or external styling indicates a generic font. It should not however try to remap a concrete font like "Helvetica". Consequently, it is important to distinguish between the generic and concrete fonts expressed by the author. To accommodate what is expressible in media formats and to support media accessibility overrides, generic font families can be specified with the kCMTextMarkupAttribute_GenericFontFamilyName attribute which carries the identifier for one of the various generic font specification forms supported across media formats. These generic font identifiers are the kCMTextMarkupGenericFontName_* prefixed constants also defined here. New identifers may be added in the future. Concrete fonts are specified using the kCMTextMarkupAttribute_FontFamilyName attribute also defined in this header.

func KCMTextMarkupAttribute_ItalicStyle

func KCMTextMarkupAttribute_ItalicStyle() uintptr

@const kCMTextMarkupAttribute_ItalicStyle @abstract Allows the setting of an italic style to be applied. @discussion Value must be a CFBoolean. The default is kCFBooleanFalse. If this attribute is kCFBooleanTrue, the text will be rendered with an italic style. Other styles such as bold may or may not be used as well.

func KCMTextMarkupAttribute_OrthogonalLinePositionPercentageRelativeToWritingDirection

func KCMTextMarkupAttribute_OrthogonalLinePositionPercentageRelativeToWritingDirection() uintptr

@const kCMTextMarkupAttribute_OrthogonalLinePositionPercentageRelativeToWritingDirection @abstract The placement of the block of text's first line specified as a percentage in the direction orthogonal to the writing direction. @discussion Value must be a non-negative CFNumber. A CFNumber expressing the position of the center of the cue relative to the writing direction. The line position is orthogonal (or perpendicular) to the writing direction (i.e., for a horizontal writing direction, it is vertical and for a vertical writing direction, is is horizontal). This attribute expresses the line position as a percentage of the dimensions of the video frame in the relevant direction. For example, 0% is the top of the video frame and 100% is the bottom of the video frame for horizontal writing layout. If used, this attribute must be applied to the entire attributed string (i.e., CFRangeMake(0, CFAttributedStringGetLength(...))).

func KCMTextMarkupAttribute_RelativeFontSize

func KCMTextMarkupAttribute_RelativeFontSize() uintptr

@const kCMTextMarkupAttribute_RelativeFontSize @abstract The font size expressed as a percentage of the current default font size. @discussion Value must be a non-negative CFNumber. This is a number holding a percentage of the size of the calculated default font size. A value of 120 indicates 20% larger than the default font size. A value of 80 indicates 80% of the default font size. The value 100 indicates no size difference and is the default.

func KCMTextMarkupAttribute_TextPositionPercentageRelativeToWritingDirection

func KCMTextMarkupAttribute_TextPositionPercentageRelativeToWritingDirection() uintptr

@const kCMTextMarkupAttribute_TextPositionPercentageRelativeToWritingDirection @abstract The placement of the block of text specified as a percentage in the writing direction. @discussion Value must be a non-negative CFNumber. A CFNumber expressing the position of the center of the text in the writing direction as a percentage of the video dimensions in the writing direction. For horizontal cues, this is the horizontal position. For vertical, it is the vertical position. The percentage is calculated from the edge of the frame where the text begins (so for left-to-right English, it is the left edge). If used, this attribute must be applied to the entire attributed string (i.e., CFRangeMake(0, CFAttributedStringGetLength(...))).

func KCMTextMarkupAttribute_UnderlineStyle

func KCMTextMarkupAttribute_UnderlineStyle() uintptr

@const kCMTextMarkupAttribute_UnderlineStyle @abstract Allows the setting of an underline to be applied at render time. @discussion Value must be a CFBoolean. The default is kCFBooleanFalse. If this attribute is kCFBooleanTrue, the text will be rendered with an underline. Other styles such as bold may or may not be used as well.

func KCMTextMarkupAttribute_VerticalLayout

func KCMTextMarkupAttribute_VerticalLayout() uintptr

@const kCMTextMarkupAttribute_VerticalLayout @abstract The kind of vertical layout of the text block. @discussion Value must be a CFString. A CFString holding one of several values indicating the progression direction for new vertical lines of text. If this attribute is present, it indicates the writing direction is vertical. The attribute value indicates whether new vertical text lines are added from left to right or from right to left. If this attribute is missing, the writing direction is horizontal. If used, this attribute must be applied to the entire attributed string (i.e., CFRangeMake(0, CFAttributedStringGetLength(...))).

func KCMTextMarkupAttribute_WritingDirectionSizePercentage

func KCMTextMarkupAttribute_WritingDirectionSizePercentage() uintptr

@const kCMTextMarkupAttribute_WritingDirectionSizePercentage @abstract The dimension (e.g., width) of the bounding box containing the text expressed as a percentage. @discussion Value must be a non-negative CFNumber. A CFNumber expressing the width of the bounding box for text layout as a percentage of the video frame's dimension in the writing direction. For a horizontal writing direction, it is the width. For a vertical writing direction, it is the horizontal writing direction. If used, this attribute must be applied to the entire attributed string (i.e., CFRangeMake(0, CFAttributedStringGetLength(...))).

func KCMTextMarkupCharacterEdgeStyle_Depressed

func KCMTextMarkupCharacterEdgeStyle_Depressed() uintptr

func KCMTextMarkupCharacterEdgeStyle_DropShadow

func KCMTextMarkupCharacterEdgeStyle_DropShadow() uintptr

func KCMTextMarkupCharacterEdgeStyle_None

func KCMTextMarkupCharacterEdgeStyle_None() uintptr

@abstract Values for kCMTextMarkupAttribute_CharacterEdgeStyle. @const kCMTextMarkupCharacterEdgeStyle_None The character edge style indicating no edge style. @const kCMTextMarkupCharacterEdgeStyle_Raised The character edge style indicating a raised edge style should be drawn. @const kCMTextMarkupCharacterEdgeStyle_Depressed The character edge style indicating a depressed edge style should be drawn. @const kCMTextMarkupCharacterEdgeStyle_Uniform The character edge style indicating a uniform border around the character should be drawn. @const kCMTextMarkupCharacterEdgeStyle_DropShadow The character edge style indicating a drop shadow should be drawn.

func KCMTextMarkupCharacterEdgeStyle_Raised

func KCMTextMarkupCharacterEdgeStyle_Raised() uintptr

func KCMTextMarkupCharacterEdgeStyle_Uniform

func KCMTextMarkupCharacterEdgeStyle_Uniform() uintptr

func KCMTextMarkupGenericFontName_Casual

func KCMTextMarkupGenericFontName_Casual() uintptr

func KCMTextMarkupGenericFontName_Cursive

func KCMTextMarkupGenericFontName_Cursive() uintptr

func KCMTextMarkupGenericFontName_Default

func KCMTextMarkupGenericFontName_Default() uintptr

@abstract Values for kCMTextMarkupAttribute_GenericFontFamilyName. @const kCMTextMarkupGenericFontName_Default The generic font name indicating the default font. The default font may also be chosen if no font family is specified (i.e., no kCMTextMarkupAttribute_FontFamilyName or kCMTextMarkupAttribute_GenericFontFamilyName is specified). @const kCMTextMarkupGenericFontName_Serif The generic font name indicating a font with serifs. The font may be proportional or monospaced. E.g., Times New Roman @const kCMTextMarkupGenericFontName_SansSerif The generic font name indicating a font without serifs. The font may be proportional or monospaced. E.g., Helvetica @const kCMTextMarkupGenericFontName_Monospace The generic font name indicating a monospaced font, with or without serifs. E.g., Courier @const kCMTextMarkupGenericFontName_ProportionalSerif The generic font name indicating a proportional font with serifs. @const kCMTextMarkupGenericFontName_ProportionalSansSerif The generic font name indicating a proportional font without serifs. @const kCMTextMarkupGenericFontName_MonospaceSerif The generic font name indicating a monospaced font with serifs. @const kCMTextMarkupGenericFontName_MonospaceSansSerif The generic font name indicating a monospaced font without serifs. @const kCMTextMarkupGenericFontName_Casual The generic font name indicating a "casual" font. E.g., Dom or Impress @const kCMTextMarkupGenericFontName_Cursive The generic font name indicating a cursive font. E.g., Coronet or Marigold @const kCMTextMarkupGenericFontName_Fantasy The generic font name indicating a "fantasy" font. @const kCMTextMarkupGenericFontName_SmallCapital The generic font name indicating a font with lowercase letters set as small capitals. E.g., Engravers Gothic

func KCMTextMarkupGenericFontName_Fantasy

func KCMTextMarkupGenericFontName_Fantasy() uintptr

func KCMTextMarkupGenericFontName_Monospace

func KCMTextMarkupGenericFontName_Monospace() uintptr

func KCMTextMarkupGenericFontName_MonospaceSansSerif

func KCMTextMarkupGenericFontName_MonospaceSansSerif() uintptr

func KCMTextMarkupGenericFontName_MonospaceSerif

func KCMTextMarkupGenericFontName_MonospaceSerif() uintptr

func KCMTextMarkupGenericFontName_ProportionalSansSerif

func KCMTextMarkupGenericFontName_ProportionalSansSerif() uintptr

func KCMTextMarkupGenericFontName_ProportionalSerif

func KCMTextMarkupGenericFontName_ProportionalSerif() uintptr

func KCMTextMarkupGenericFontName_SansSerif

func KCMTextMarkupGenericFontName_SansSerif() uintptr

func KCMTextMarkupGenericFontName_Serif

func KCMTextMarkupGenericFontName_Serif() uintptr

func KCMTextMarkupGenericFontName_SmallCapital

func KCMTextMarkupGenericFontName_SmallCapital() uintptr

func KCMTextVerticalLayout_LeftToRight

func KCMTextVerticalLayout_LeftToRight() uintptr

@abstract Values for kCMTextMarkupAttribute_VerticalLayout. @const kCMTextVerticalLayout_LeftToRight Newly added vertical lines are added from the left toward the right. @const kCMTextVerticalLayout_RightToLeft Newly added vertical lines are added from the right toward the left.

func KCMTextVerticalLayout_RightToLeft

func KCMTextVerticalLayout_RightToLeft() uintptr

func KCMTimeCodeFormatDescriptionExtension_SourceReferenceName

func KCMTimeCodeFormatDescriptionExtension_SourceReferenceName() uintptr

func KCMTimeCodeFormatDescriptionKey_LangCode

func KCMTimeCodeFormatDescriptionKey_LangCode() uintptr

func KCMTimeCodeFormatDescriptionKey_Value

func KCMTimeCodeFormatDescriptionKey_Value() uintptr

func KCMTimeEpochKey

func KCMTimeEpochKey() uintptr

@constant kCMTimeEpochKey @discussion CFDictionary key for epoch field of CMTime (CFNumber containing int64_t)

func KCMTimeFlagsKey

func KCMTimeFlagsKey() uintptr

@constant kCMTimeFlagsKey @discussion CFDictionary key for flags field of CMTime (CFNumber containing uint32_t)

func KCMTimeMappingSourceKey

func KCMTimeMappingSourceKey() uintptr

@constant kCMTimeMappingSourceKey @discussion CFDictionary key for source field of a CMTimeMapping (CMTimeRange)

func KCMTimeMappingTargetKey

func KCMTimeMappingTargetKey() uintptr

@constant kCMTimeMappingTargetKey @discussion CFDictionary key for target field of a CMTimeMapping (CMTimeRange)

func KCMTimeRangeDurationKey

func KCMTimeRangeDurationKey() uintptr

@constant kCMTimeRangeDurationKey @discussion CFDictionary key for timescale field of a CMTimeRange (CMTime)

func KCMTimeRangeStartKey

func KCMTimeRangeStartKey() uintptr

@constant kCMTimeRangeStartKey @discussion CFDictionary key for start field of a CMTimeRange (CMTime)

func KCMTimeScaleKey

func KCMTimeScaleKey() uintptr

@constant kCMTimeScaleKey @discussion CFDictionary key for timescale field of CMTime (CFNumber containing int32_t)

func KCMTimeValueKey

func KCMTimeValueKey() uintptr

@constant kCMTimeValueKey @discussion CFDictionary key for value field of CMTime (CFNumber containing int64_t)

func KCMTimebaseNotificationKey_EventTime

func KCMTimebaseNotificationKey_EventTime() uintptr

func KCMTimebaseNotification_EffectiveRateChanged

func KCMTimebaseNotification_EffectiveRateChanged() uintptr

func KCMTimebaseNotification_TimeJumped

func KCMTimebaseNotification_TimeJumped() uintptr

func SymbolAvailable

func SymbolAvailable(symbol string) bool

SymbolAvailable reports whether the named C symbol was bound when the library loaded. Calling a generated wrapper whose symbol is unavailable dereferences a nil function variable and panics.

Types

type Acl_entry_id_t

type Acl_entry_id_t int64
const (
	ACL_FIRST_ENTRY Acl_entry_id_t = 0
	ACL_NEXT_ENTRY  Acl_entry_id_t = -1
	ACL_LAST_ENTRY  Acl_entry_id_t = -2
)

func (Acl_entry_id_t) String

func (e Acl_entry_id_t) String() string

type Acl_flag_t

type Acl_flag_t int64
const (
	ACL_FLAG_DEFER_INHERIT      Acl_flag_t = 1
	ACL_FLAG_NO_INHERIT         Acl_flag_t = 131072
	ACL_ENTRY_INHERITED         Acl_flag_t = 16
	ACL_ENTRY_FILE_INHERIT      Acl_flag_t = 32
	ACL_ENTRY_DIRECTORY_INHERIT Acl_flag_t = 64
	ACL_ENTRY_LIMIT_INHERIT     Acl_flag_t = 128
	ACL_ENTRY_ONLY_INHERIT      Acl_flag_t = 256
)

func (Acl_flag_t) String

func (e Acl_flag_t) String() string

type Acl_perm_t

type Acl_perm_t int64
const (
	ACL_READ_DATA           Acl_perm_t = 2
	ACL_LIST_DIRECTORY      Acl_perm_t = 2
	ACL_WRITE_DATA          Acl_perm_t = 4
	ACL_ADD_FILE            Acl_perm_t = 4
	ACL_EXECUTE             Acl_perm_t = 8
	ACL_SEARCH              Acl_perm_t = 8
	ACL_DELETE              Acl_perm_t = 16
	ACL_APPEND_DATA         Acl_perm_t = 32
	ACL_ADD_SUBDIRECTORY    Acl_perm_t = 32
	ACL_DELETE_CHILD        Acl_perm_t = 64
	ACL_READ_ATTRIBUTES     Acl_perm_t = 128
	ACL_WRITE_ATTRIBUTES    Acl_perm_t = 256
	ACL_READ_EXTATTRIBUTES  Acl_perm_t = 512
	ACL_WRITE_EXTATTRIBUTES Acl_perm_t = 1024
	ACL_READ_SECURITY       Acl_perm_t = 2048
	ACL_WRITE_SECURITY      Acl_perm_t = 4096
	ACL_CHANGE_OWNER        Acl_perm_t = 8192
	ACL_SYNCHRONIZE         Acl_perm_t = 1048576
)

func (Acl_perm_t) String

func (e Acl_perm_t) String() string

type Acl_tag_t

type Acl_tag_t int64
const (
	ACL_UNDEFINED_TAG  Acl_tag_t = 0
	ACL_EXTENDED_ALLOW Acl_tag_t = 1
	ACL_EXTENDED_DENY  Acl_tag_t = 2
)

func (Acl_tag_t) String

func (e Acl_tag_t) String() string

type Acl_type_t

type Acl_type_t int64
const (
	ACL_TYPE_EXTENDED Acl_type_t = 256
	ACL_TYPE_ACCESS   Acl_type_t = 0
	ACL_TYPE_DEFAULT  Acl_type_t = 1
	ACL_TYPE_AFS      Acl_type_t = 2
	ACL_TYPE_CODA     Acl_type_t = 3
	ACL_TYPE_NTFS     Acl_type_t = 4
	ACL_TYPE_NWFS     Acl_type_t = 5
)

func (Acl_type_t) String

func (e Acl_type_t) String() string

type CGLCPContextPriorityRequest

type CGLCPContextPriorityRequest int64
const (
	KCGLCPContextPriorityRequestHigh   CGLCPContextPriorityRequest = 0
	KCGLCPContextPriorityRequestNormal CGLCPContextPriorityRequest = 1
	KCGLCPContextPriorityRequestLow    CGLCPContextPriorityRequest = 2
)

func (CGLCPContextPriorityRequest) String

type CMBlockBufferCustomBlockSource

type CMBlockBufferCustomBlockSource struct {
	Version       uint32
	AllocateBlock unsafe.Pointer
	FreeBlock     unsafe.Pointer
	RefCon        unsafe.Pointer
}

@typedef CMBlockBufferCustomBlockSource @discussion Used with functions that accept a memory block allocator, this structure allows a client to provide a custom facility for obtaining the memory block to be used in a CMBlockBuffer. The AllocateBlock function must be non-zero if the CMBlockBuffer code will need to call for allocation (not required if a previously-obtained memory block is provided to the CMBlockBuffer API). The FreeBlock() routine, if non-NULL, will be called once when the CMBlockBuffer is disposed. It will not be called if no memory block is ever allocated or supplied. The refCon will be passed to both the AllocateBlock and FreeBlock() calls. The client is responsible for its disposal (if any) during the FreeBlock() callback. Note that for 64-bit architectures, this struct contains misaligned function pointers. To avoid link-time issues, it is recommended that clients fill CMBlockBufferCustomBlockSource's function pointer fields by using assignment statements, rather than declaring them as global or static structs. The functions that accept CMBlockBufferCustomBlockSource pointers copy the fields and do not require the struct to stay valid after they return.

type CMBufferCallbacks

type CMBufferCallbacks struct {
	Version                     uint32
	Refcon                      unsafe.Pointer
	GetDecodeTimeStamp          unsafe.Pointer
	GetPresentationTimeStamp    unsafe.Pointer
	GetDuration                 unsafe.Pointer
	IsDataReady                 unsafe.Pointer
	Compare                     unsafe.Pointer
	DataBecameReadyNotification unsafe.Pointer
	GetSize                     unsafe.Pointer
}

@typedef CMBufferCallbacks @abstract Callbacks provided to CMBufferQueueCreate, for use by the queue in interrogating the buffers that it will see. @discussion With the exception of isDataReady, all these callbacks must always return the same result for the same arguments. A buffer's duration, timestamps, or position relative to other buffers must not appear to change while it is in the queue. Once isDataReady has returned true for a given CMBuffer, it must always return true for that CMBuffer. Durations must always be positive.

func CMBufferQueueGetCallbacksForSampleBuffersSortedByOutputPTS

func CMBufferQueueGetCallbacksForSampleBuffersSortedByOutputPTS() *CMBufferCallbacks

@function CMBufferQueueGetCallbacksForOutputPTSSortedSampleBuffers @abstract Returns a pointer to a callback struct for CMSampleBuffers sorted by output presentation timestamp, provided as a convenience.

func CMBufferQueueGetCallbacksForUnsortedSampleBuffers

func CMBufferQueueGetCallbacksForUnsortedSampleBuffers() *CMBufferCallbacks

@function CMBufferQueueGetCallbacksForUnsortedSampleBuffers @abstract Returns a pointer to a callback struct for unsorted CMSampleBuffers, provided as a convenience.

type CMBufferHandlers

type CMBufferHandlers struct {
	Version                     uint
	GetDecodeTimeStamp          func(unsafe.Pointer) CMTime
	GetPresentationTimeStamp    func(unsafe.Pointer) CMTime
	GetDuration                 func(unsafe.Pointer) CMTime
	IsDataReady                 func(unsafe.Pointer) uint8
	Compare                     func(unsafe.Pointer, unsafe.Pointer) corefoundation.CFComparisonResult
	DataBecameReadyNotification unsafe.Pointer
	GetSize                     func(unsafe.Pointer) uint
}

type CMPackingType

type CMPackingType int64
const (
	KCMPackingType_None       CMPackingType = 1852796517
	KCMPackingType_SideBySide CMPackingType = 1936286821
	KCMPackingType_OverUnder  CMPackingType = 1870030194
)

func (CMPackingType) String

func (e CMPackingType) String() string

type CMProjectionType

type CMProjectionType int64
const (
	KCMProjectionType_Rectangular         CMProjectionType = 1919247220
	KCMProjectionType_Equirectangular     CMProjectionType = 1701934441
	KCMProjectionType_HalfEquirectangular CMProjectionType = 1751478645
	KCMProjectionType_Fisheye             CMProjectionType = 1718186856
	KCMProjectionType_ParametricImmersive CMProjectionType = 1886546285
)

func (CMProjectionType) String

func (e CMProjectionType) String() string

type CMSampleTimingInfo

type CMSampleTimingInfo struct {
	Duration              CMTime
	PresentationTimeStamp CMTime
	DecodeTimeStamp       CMTime
}

@typedef CMSampleTimingInfo @abstract Collection of timing info for a sample in a CMSampleBuffer. A single CMSampleTimingInfo struct can describe every individual sample in a CMSampleBuffer, if the samples all have the same duration and are in presentation order with no gaps.

func KCMTimingInfoInvalid

func KCMTimingInfoInvalid() CMSampleTimingInfo

type CMStereoViewComponents

type CMStereoViewComponents int64
const (
	KCMStereoView_None     CMStereoViewComponents = 0
	KCMStereoView_LeftEye  CMStereoViewComponents = 1
	KCMStereoView_RightEye CMStereoViewComponents = 2
)

func (CMStereoViewComponents) String

func (e CMStereoViewComponents) String() string

type CMStereoViewInterpretationOptions

type CMStereoViewInterpretationOptions int64
const (
	KCMStereoViewInterpretation_Default             CMStereoViewInterpretationOptions = 0
	KCMStereoViewInterpretation_StereoOrderReversed CMStereoViewInterpretationOptions = 1
	KCMStereoViewInterpretation_AdditionalViews     CMStereoViewInterpretationOptions = 2
)

func (CMStereoViewInterpretationOptions) String

type CMTag

type CMTag struct {
	Category CMTagCategory
	DataType CMTagDataType
	Value    uint64
}

@typedef CMTag @abstract An efficient structure used to label something about a resource or other media construct. @discussion A structure holding a CMTagCategory, CMTagDataType, and a CMTagValue serving to represent a particular tag that might be assigned to or associated with another resource. There is only one of each of the category, the dataType and the value so any notion of "has" is about the respective singular element. CMTags are a value type. No lifetime management such as allocation or retain and release semantics are needed. CMTags can be passed by value, returned by value and stored in other structures or arrays or on the stack. CMTags carry a single value that can be carried in 64 bits. This can include data types such as signed 64-bit integers, floating point values fitting in 64 bits, up to 64 bit of flags, and other data types fitting within 64 bits. Signaling of the data type is carried in the CMTagDataType. The data types can be extended through registration with the CoreMedia team. A CMTag value should not be used to carry pointers. If such a reference is needed, it is okay to carry an index into an out-of-band data structure that itself has a memory reference or an object reference. @field category CMTagCategory for the tag. @field dataType CMTagDataType for the tag indicating the data type of the value. @field value CMTagValue for the value of the CMTag (e.g., a signed 64-bit integer.)

func CMTagCollectionApplyUntil

func CMTagCollectionApplyUntil(tagCollection unsafe.Pointer, applier unsafe.Pointer, context_ unsafe.Pointer) CMTag

@function CMTagCollectionApplyUntil @abstract Iterate over a tag collection until the callback is satisfied. @discussion Function iterates over the CMTags of the tag collection until the function returns true and then returns the CMTag at that position. Once the callback is satisfied by returning true, CMTagCollectionApplyUntil() stops iteration and returns the CMTag that evaluated to true. If no CMTags satisfy the callback, the value kCMTagInvalid will be returned. @param tagCollection CMTagCollectionRef to iterate. @param applier The CMTagCollectionTagFilterFunction callback to call with each tag. @param context A void * or NULL to pass to applier. @result CMTag having the value of the first tag the callback returned true for or kCMTagInvalid if none was found.

func CMTagMakeFromDictionary

func CMTagMakeFromDictionary(dict unsafe.Pointer) CMTag

@function CMTagMakeFromDictionary @abstract Reconstitutes a CMTag struct from a CFDictionary previously created by CMTagCopyAsDictionary. @discussion This is useful when getting CMTag from CF container types. If the CFDictionary does not have the requisite keyed values, kCMTagInvalid is returned. @param dict A CFDictionary from which to create a CMTag. @result The created CMTag.

func CMTagMakeWithFlagsValue

func CMTagMakeWithFlagsValue(category CMTagCategory, flagsForTag uint64) CMTag

@function CMTagMakeWithFlagsValue @abstract Create a CMTag holding a 64 bits of flags. @discussion This function creates a valid CMTag with the data type kCMTagDataType_Flags and has an unsigned 64-bit integer value holding the flags. @param category CMTagCategory for the created CMTag. @param flagsForTag An unsigned 64-bit integer to encode in the returned CMTag. @result A CMTag.

func CMTagMakeWithFloat64Value

func CMTagMakeWithFloat64Value(category CMTagCategory, value float64) CMTag

@function CMTagMakeWithFloat64Value @abstract Create a CMTag holding a 64-bit float. @discussion This function creates a valid CMTag with the data type kCMTagDataType_Float64 and have a 64-bit floating point value. @param category CMTagCategory for the created CMTag. @param value A 64-bit float to encode in the returned CMTag. @result A CMTag.

func CMTagMakeWithOSTypeValue

func CMTagMakeWithOSTypeValue(category CMTagCategory, value uint) CMTag

@function CMTagMakeWithOSTypeValue @abstract Create a CMTag holding an OSType. @discussion This function creates a valid CMTag with the data type kCMTagDataType_OSType and have an OSType value. @param category CMTagCategory for the created CMTag. @param value An OSType to encode in the returned CMTag. @result A CMTag.

func CMTagMakeWithSInt64Value

func CMTagMakeWithSInt64Value(category CMTagCategory, value int64) CMTag

@function CMTagMakeWithSInt64Value @abstract Create a CMTag holding a signed 64-bit integer. @discussion This function creates a valid CMTag with the data type kCMTagDataType_SInt64 and have a signed 64-bit integer value. @param category CMTagCategory for the created CMTag. @param value A signed 64-bit integer to encode in the returned CMTag. @result A CMTag.

func KCMTagInvalid

func KCMTagInvalid() CMTag

@constant kCMTagInvalid @abstract CMTag with an unspecified or "null" value.

func KCMTagMediaSubTypeMebx

func KCMTagMediaSubTypeMebx() CMTag

@constant kCMTagMediaSubTypeMebx @abstract A CMTag of category kCMTagCategory_MediaType and the value kCMMetadataFormatType_Boxed (OSType).

func KCMTagMediaTypeAudio

func KCMTagMediaTypeAudio() CMTag

@constant kCMTagMediaTypeAudio @abstract A CMTag of category kCMTagCategory_MediaType and the value kCMMediaType_Audio (OSType).

func KCMTagMediaTypeMetadata

func KCMTagMediaTypeMetadata() CMTag

@constant kCMTagMediaTypeMetadata @abstract A CMTag of category kCMTagCategory_MediaType and the value kCMMediaType_Metadata (OSType).

func KCMTagMediaTypeVideo

func KCMTagMediaTypeVideo() CMTag

@constant kCMTagMediaTypeVideo @abstract A CMTag of category kCMTagCategory_MediaType and the value kCMMediaType_Video (OSType).

func KCMTagPackingTypeNone

func KCMTagPackingTypeNone() CMTag

@constant kCMTagPackingTypeNone @abstract A CMTag of category kCMTagCategory_PackingType and the value kCMTagPackingType_None (OStype).

func KCMTagPackingTypeOverUnder

func KCMTagPackingTypeOverUnder() CMTag

@constant kCMTagPackingTypeOverUnder @abstract A CMTag of category kCMTagCategory_PackingType and the value kCMTagPackingType_OverUnder (OStype).

func KCMTagPackingTypeSideBySide

func KCMTagPackingTypeSideBySide() CMTag

@constant kCMTagPackingTypeSideBySide @abstract A CMTag of category kCMTagCategory_PackingType and the value kCMTagPackingType_SideBySide (OStype).

func KCMTagProjectionTypeEquirectangular

func KCMTagProjectionTypeEquirectangular() CMTag

@constant kCMTagProjectionTypeEquirectangular @abstract A CMTag of category kCMTagCategory_ProjectionType and the value kCMTagProjectionType_Equirectangular (OSType).

func KCMTagProjectionTypeFisheye

func KCMTagProjectionTypeFisheye() CMTag

@constant kCMTagProjectionTypeFisheye @abstract A CMTag of category kCMTagCategory_ProjectionType and the value kCMTagProjectionType_Fisheye (OSType).

func KCMTagProjectionTypeHalfEquirectangular

func KCMTagProjectionTypeHalfEquirectangular() CMTag

@constant kCMTagProjectionTypeHalfEquirectangular @abstract A CMTag of category kCMTagCategory_ProjectionType and the value kCMProjectionType_HalfEquirectangular (OSType).

func KCMTagProjectionTypeParametricImmersive

func KCMTagProjectionTypeParametricImmersive() CMTag

@constant kCMTagProjectionTypeParametricImmersive @abstract A CMTag of category kCMTagCategory_ProjectionType and the value kCMTagProjectionType_ParametricImmersive (OSType).

func KCMTagProjectionTypeRectangular

func KCMTagProjectionTypeRectangular() CMTag

@constant kCMTagProjectionTypeRectangular @abstract A CMTag of category kCMTagCategory_ProjectionType and the value kCMTagProjectionType_Rectangular (OSType).

func KCMTagStereoInterpretationOrderReversed

func KCMTagStereoInterpretationOrderReversed() CMTag

@constant kCMTagStereoInterpretationOrderReversed @abstract A CMTag of category kCMTagCategory_StereoViewInterpretation and the value of kCMStereoViewInterpretation_StereoOrderReversed (Flags).

func KCMTagStereoLeftAndRightEye

func KCMTagStereoLeftAndRightEye() CMTag

@constant kCMTagStereoLeftAndRightEye @abstract A CMTag of category kCMTagCategory_StereoView and the value of the bitwise OR of kCMTagStereoViewComponent_LeftEye and kCMTagStereoViewComponent_RightEye (Flags).

func KCMTagStereoLeftEye

func KCMTagStereoLeftEye() CMTag

@constant kCMTagStereoLeftEye @abstract A CMTag of category kCMTagCategory_StereoView and the value kCMTagStereoViewComponent_LeftEye (Flags).

func KCMTagStereoNone

func KCMTagStereoNone() CMTag

@constant kCMTagStereoNone @abstract A CMTag of category kCMTagCategory_StereoView and the value of kCMTagStereoViewComponent_None. (Flags)

func KCMTagStereoRightEye

func KCMTagStereoRightEye() CMTag

@constant kCMTagStereoRightEye @abstract A CMTag of category kCMTagCategory_StereoView and the value kCMTagStereoViewComponent_RightEye (Flags).

type CMTagCategory

type CMTagCategory int64
const (
	KCMTagCategory_Undefined                CMTagCategory = 0
	KCMTagCategory_MediaType                CMTagCategory = 1835297121
	KCMTagCategory_MediaSubType             CMTagCategory = 1836283234
	KCMTagCategory_TrackID                  CMTagCategory = 1953653099
	KCMTagCategory_ChannelID                CMTagCategory = 1986226286
	KCMTagCategory_VideoLayerID             CMTagCategory = 1986814329
	KCMTagCategory_PixelFormat              CMTagCategory = 1885960294
	KCMTagCategory_PackingType              CMTagCategory = 1885430635
	KCMTagCategory_ProjectionType           CMTagCategory = 1886547818
	KCMTagCategory_StereoView               CMTagCategory = 1702454643
	KCMTagCategory_StereoViewInterpretation CMTagCategory = 1702455664
)

func CMTagGetCategory

func CMTagGetCategory(tag CMTag) CMTagCategory

@function CMTagGetCategory @abstract Returns the CMTagCategory field of the CMTag. @param tag CMTag to access. @result CMTagCategory of the tag.

func (CMTagCategory) String

func (e CMTagCategory) String() string

type CMTagCollectionError

type CMTagCollectionError int64
const (
	KCMTagCollectionError_ParamErr                        CMTagCollectionError = -15740
	KCMTagCollectionError_AllocationFailed                CMTagCollectionError = -15741
	KCMTagCollectionError_InternalError                   CMTagCollectionError = -15742
	KCMTagCollectionError_InvalidTag                      CMTagCollectionError = -15743
	KCMTagCollectionError_InvalidTagCollectionDictionary  CMTagCollectionError = -15744
	KCMTagCollectionError_InvalidTagCollectionData        CMTagCollectionError = -15745
	KCMTagCollectionError_TagNotFound                     CMTagCollectionError = -15746
	KCMTagCollectionError_InvalidTagCollectionDataVersion CMTagCollectionError = -15747
	KCMTagCollectionError_ExhaustedBufferSize             CMTagCollectionError = -15748
	KCMTagCollectionError_NotYetImplemented               CMTagCollectionError = -15749
)

func (CMTagCollectionError) String

func (e CMTagCollectionError) String() string

type CMTagDataType

type CMTagDataType int64
const (
	KCMTagDataType_Invalid CMTagDataType = 0
	KCMTagDataType_SInt64  CMTagDataType = 2
	KCMTagDataType_Float64 CMTagDataType = 3
	KCMTagDataType_OSType  CMTagDataType = 5
	KCMTagDataType_Flags   CMTagDataType = 7
)

func CMTagGetValueDataType

func CMTagGetValueDataType(tag CMTag) CMTagDataType

@function CMTagGetValueDataType @abstract Returns the dataType field of the CMTag. @param tag CMTag from which to extract the data type. @result kCMTagDataType_* value.

func (CMTagDataType) String

func (e CMTagDataType) String() string

type CMTagError

type CMTagError int64
const (
	KCMTagError_ParamErr         CMTagError = -15730
	KCMTagError_AllocationFailed CMTagError = -15731
)

func (CMTagError) String

func (e CMTagError) String() string

type CMTaggedBufferGroupError

type CMTaggedBufferGroupError int64
const (
	KCMTaggedBufferGroupError_ParamErr         CMTaggedBufferGroupError = -15780
	KCMTaggedBufferGroupError_AllocationFailed CMTaggedBufferGroupError = -15781
	KCMTaggedBufferGroupError_InternalError    CMTaggedBufferGroupError = -15782
)

func (CMTaggedBufferGroupError) String

func (e CMTaggedBufferGroupError) String() string

type CMTime

type CMTime struct {
	Value     int64
	Timescale int32
	Flags     CMTimeFlags
	Epoch     int64
}

@typedef CMTime @abstract Rational time value represented as int64/int32.

func CMBufferQueueGetDuration

func CMBufferQueueGetDuration(queue unsafe.Pointer) CMTime

@function CMBufferQueueGetDuration @abstract Gets the duration of a CMBufferQueue. @discussion The duration of the CMBufferQueue is the sum of all the individual buffer durations, as reported by the getDuration callback (provided to CMBufferQueueCreate). If there are no buffers in the queue, kCMTimeZero will be returned.

func CMBufferQueueGetEndPresentationTimeStamp

func CMBufferQueueGetEndPresentationTimeStamp(queue unsafe.Pointer) CMTime

@function CMBufferQueueGetEndPresentationTimeStamp @abstract Gets the greatest end presentation timestamp of a CMBufferQueue. @discussion This is the maximum end time (PTS + duration) of buffers in the queue. If the getPresentationTimeStamp callback is NULL, kCMTimeInvalid will be returned.

func CMBufferQueueGetFirstDecodeTimeStamp

func CMBufferQueueGetFirstDecodeTimeStamp(queue unsafe.Pointer) CMTime

@function CMBufferQueueGetFirstDecodeTimeStamp @abstract Gets the decode timestamp of the first buffer in a CMBufferQueue. @discussion This API is is a faster alternative to GetMinDecodeTimeStamp, but only gives the same answer if your queue is in decode order. If the getDecodeTimeStamp callback is NULL, kCMTimeInvalid will be returned.

func CMBufferQueueGetFirstPresentationTimeStamp

func CMBufferQueueGetFirstPresentationTimeStamp(queue unsafe.Pointer) CMTime

@function CMBufferQueueGetFirstPresentationTimeStamp @abstract Gets the presentation timestamp of the first buffer in a CMBufferQueue. @discussion This API is is a faster alternative to GetMinPresentationTimeStamp, but only works if you know your queue is sorted by presentation timestamp. If the getPresentationTimeStamp callback is NULL, kCMTimeInvalid will be returned.

func CMBufferQueueGetMaxPresentationTimeStamp

func CMBufferQueueGetMaxPresentationTimeStamp(queue unsafe.Pointer) CMTime

@function CMBufferQueueGetMaxPresentationTimeStamp @abstract Gets the greatest presentation timestamp of a CMBufferQueue. @discussion If the getPresentationTimeStamp callback is NULL, kCMTimeInvalid will be returned.

func CMBufferQueueGetMinDecodeTimeStamp

func CMBufferQueueGetMinDecodeTimeStamp(queue unsafe.Pointer) CMTime

@function CMBufferQueueGetMinDecodeTimeStamp @abstract Gets the earliest decode timestamp of a CMBufferQueue. @discussion The search for earliest decode timstamp is performed in this API. If you know your queue is in decode order, GetFirstDecodeTimeStamp is a faster alternative. If the getDecodeTimeStamp callback is NULL, kCMTimeInvalid will be returned.

func CMBufferQueueGetMinPresentationTimeStamp

func CMBufferQueueGetMinPresentationTimeStamp(queue unsafe.Pointer) CMTime

@function CMBufferQueueGetMinPresentationTimeStamp @abstract Gets the earliest presentation timestamp of a CMBufferQueue. @discussion The search for earliest presentation timstamp is performed in this API. If you know your queue is sorted by presentation time, GetFirstPresentationTimeStamp is a faster alternative. If the getPresentationTimeStamp callback is NULL, kCMTimeInvalid will be returned.

func CMClockGetTime

func CMClockGetTime(clock unsafe.Pointer) CMTime

func CMClockMakeHostTimeFromSystemUnits

func CMClockMakeHostTimeFromSystemUnits(hostTime uint64) CMTime

func CMSampleBufferGetDecodeTimeStamp

func CMSampleBufferGetDecodeTimeStamp(sbuf unsafe.Pointer) CMTime

func CMSampleBufferGetDuration

func CMSampleBufferGetDuration(sbuf unsafe.Pointer) CMTime

func CMSampleBufferGetOutputDecodeTimeStamp

func CMSampleBufferGetOutputDecodeTimeStamp(sbuf unsafe.Pointer) CMTime

func CMSampleBufferGetOutputDuration

func CMSampleBufferGetOutputDuration(sbuf unsafe.Pointer) CMTime

func CMSampleBufferGetOutputPresentationTimeStamp

func CMSampleBufferGetOutputPresentationTimeStamp(sbuf unsafe.Pointer) CMTime

func CMSampleBufferGetPresentationTimeStamp

func CMSampleBufferGetPresentationTimeStamp(sbuf unsafe.Pointer) CMTime

func CMSyncConvertTime

func CMSyncConvertTime(time_ CMTime, fromClockOrTimebase unsafe.Pointer, toClockOrTimebase unsafe.Pointer) CMTime

func CMSyncGetTime

func CMSyncGetTime(clockOrTimebase unsafe.Pointer) CMTime

func CMTimeAbsoluteValue

func CMTimeAbsoluteValue(time_ CMTime) CMTime

func CMTimeAdd

func CMTimeAdd(lhs CMTime, rhs CMTime) CMTime

func CMTimeClampToRange

func CMTimeClampToRange(time_ CMTime, range_ CMTimeRange) CMTime

@function CMTimeClampToRange @abstract For a given CMTime and CMTimeRange, returns the nearest CMTime inside that time range. @result A CMTime structure inside the given time range. @discussion Times inside the given time range will be returned unmodified. Times before the start and after the end time of the time range will return the start and end time of the range respectively. If the CMTimeRange argument is empty, an invalid CMTime will be returned. If the given CMTime is invalid, the returned CMTime will be invalid,

func CMTimeCodeFormatDescriptionGetFrameDuration

func CMTimeCodeFormatDescriptionGetFrameDuration(timeCodeFormatDescription unsafe.Pointer) CMTime

func CMTimeConvertScale

func CMTimeConvertScale(time_ CMTime, newTimescale int32, method CMTimeRoundingMethod) CMTime

func CMTimeFoldIntoRange

func CMTimeFoldIntoRange(time_ CMTime, foldRange CMTimeRange) CMTime

func CMTimeMake

func CMTimeMake(value int64, timescale int32) CMTime

func CMTimeMakeFromDictionary

func CMTimeMakeFromDictionary(dictionaryRepresentation unsafe.Pointer) CMTime

func CMTimeMakeWithEpoch

func CMTimeMakeWithEpoch(value int64, timescale int32, epoch int64) CMTime

func CMTimeMakeWithSeconds

func CMTimeMakeWithSeconds(seconds float64, preferredTimescale int32) CMTime

func CMTimeMapDurationFromRangeToRange

func CMTimeMapDurationFromRangeToRange(dur CMTime, fromRange CMTimeRange, toRange CMTimeRange) CMTime

@function CMTimeMapDurationFromRangeToRange @abstract Translates a duration through a mapping from CMTimeRange to CMTimeRange. @result A CMTime structure representing the translated duration. @discussion The duration will be scaled in proportion to the ratio between the ranges' durations: result = dur*(toRange.duration/fromRange.duration) If dur does not have the epoch zero, an invalid CMTime will be returned.

func CMTimeMapTimeFromRangeToRange

func CMTimeMapTimeFromRangeToRange(t CMTime, fromRange CMTimeRange, toRange CMTimeRange) CMTime

@function CMTimeMapTimeFromRangeToRange @abstract Translates a time through a mapping from CMTimeRange to CMTimeRange. @result A CMTime structure representing the translated time. @discussion The start and end time of fromRange will be mapped to the start and end time of toRange respectively. Other times will be mapped linearly, using the formula: result = (t-fromRange.start)*(toRange.duration/fromRange.duration)+toRange.start If either CMTimeRange argument is empty, an invalid CMTime will be returned. If t does not have the same epoch as fromRange.start, an invalid CMTime will be returned. If both fromRange and toRange have duration kCMTimePositiveInfinity, t will be offset relative to the differences between their starts, but not scaled.

func CMTimeMaximum

func CMTimeMaximum(time1 CMTime, time2 CMTime) CMTime

func CMTimeMinimum

func CMTimeMinimum(time1 CMTime, time2 CMTime) CMTime

func CMTimeMultiply

func CMTimeMultiply(time_ CMTime, multiplier int32) CMTime

func CMTimeMultiplyByFloat64

func CMTimeMultiplyByFloat64(time_ CMTime, multiplier float64) CMTime

func CMTimeMultiplyByRatio

func CMTimeMultiplyByRatio(time_ CMTime, multiplier int32, divisor int32) CMTime

func CMTimeRangeGetEnd

func CMTimeRangeGetEnd(range_ CMTimeRange) CMTime

@function CMTimeRangeGetEnd @abstract Returns a CMTime structure representing the end of a time range. @result A CMTime structure representing the end of the specified time range. @discussion This function returns a CMTime structure that indicates the end of the time range specified by the <i>range</i> parameter. CMTimeRangeContainsTime(range, CMTimeRangeGetEnd(range)) is always false.

func CMTimeSubtract

func CMTimeSubtract(lhs CMTime, rhs CMTime) CMTime

func CMTimebaseGetTime

func CMTimebaseGetTime(timebase unsafe.Pointer) CMTime

func CMTimebaseGetTimeWithTimeScale

func CMTimebaseGetTimeWithTimeScale(timebase unsafe.Pointer, timescale int32, method CMTimeRoundingMethod) CMTime

func KCMTimeIndefinite

func KCMTimeIndefinite() CMTime

func KCMTimeInvalid

func KCMTimeInvalid() CMTime

func KCMTimeNegativeInfinity

func KCMTimeNegativeInfinity() CMTime

func KCMTimePositiveInfinity

func KCMTimePositiveInfinity() CMTime

func KCMTimeZero

func KCMTimeZero() CMTime

type CMTimeFlags

type CMTimeFlags int64
const (
	KCMTimeFlags_Valid                 CMTimeFlags = 1
	KCMTimeFlags_HasBeenRounded        CMTimeFlags = 2
	KCMTimeFlags_PositiveInfinity      CMTimeFlags = 4
	KCMTimeFlags_NegativeInfinity      CMTimeFlags = 8
	KCMTimeFlags_Indefinite            CMTimeFlags = 16
	KCMTimeFlags_ImpliedValueFlagsMask CMTimeFlags = 28
)

func (CMTimeFlags) String

func (e CMTimeFlags) String() string

type CMTimeMapping

type CMTimeMapping struct {
	Source CMTimeRange
	Target CMTimeRange
}

@typedef CMTimeMapping @abstract A CMTimeMapping specifies the mapping of a segment of one time line (called "source") into another time line (called "target"). @discussion When used for movie edit lists, the source time line is the media and the target time line is the track/movie. @field source The time range on the source time line. For an empty edit, source.start is an invalid CMTime, in which case source.duration shall be ignored. Otherwise, source.start is the starting time within the source, and source.duration is the duration of the source timeline to be mapped to the target time range. @field target The time range on the target time line. If target.duration and source.duration are different, then the source segment should be played at rate source.duration/target.duration to fit.

func CMTimeMappingMake

func CMTimeMappingMake(source CMTimeRange, target CMTimeRange) CMTimeMapping

@function CMTimeMappingMake @abstract Make a valid CMTimeMapping with source and target. @result The resulting CMTimeMapping. @discussion The source and target parameters must have durations whose epoch is 0; otherwise an invalid time mapping will be returned.

func CMTimeMappingMakeEmpty

func CMTimeMappingMakeEmpty(target CMTimeRange) CMTimeMapping

@function CMTimeMappingMakeEmpty @abstract Make a valid CMTimeMapping with an empty source. @result The resulting CMTimeMapping. @discussion The target parameter must have a duration whose epoch is 0; otherwise an invalid time mapping will be returned.

func CMTimeMappingMakeFromDictionary

func CMTimeMappingMakeFromDictionary(dictionaryRepresentation unsafe.Pointer) CMTimeMapping

@function CMTimeMappingMakeFromDictionary @abstract Reconstitutes a CMTimeMapping struct from a CFDictionary previously created by CMTimeMappingCopyAsDictionary. @discussion This is useful when getting CMTimeMappings from CF container types. If the CFDictionary does not have the requisite keyed values, an invalid time mapping is returned. @result The created CMTimeMapping.

func KCMTimeMappingInvalid

func KCMTimeMappingInvalid() CMTimeMapping

type CMTimeRange

type CMTimeRange struct {
	Start    CMTime
	Duration CMTime
}

@typedef CMTimeRange @abstract A time range represented as two CMTime structures.

func CMTimeRangeFromTimeToTime

func CMTimeRangeFromTimeToTime(start CMTime, end CMTime) CMTimeRange

@function CMTimeRangeFromTimeToTime @abstract Make a valid CMTimeRange with the given starting and ending times. @result The resulting CMTimeRange.

func CMTimeRangeGetIntersection

func CMTimeRangeGetIntersection(range_ CMTimeRange, otherRange CMTimeRange) CMTimeRange

@function CMTimeRangeGetIntersection @abstract Returns the intersection of two CMTimeRanges. @discussion This function returns a CMTimeRange structure that represents the intersection of the time ranges specified by the <i>range</i> and <i>otherRange</i> parameters. This is the largest range that both ranges include. @result The intersection of the two CMTimeRanges.

func CMTimeRangeGetUnion

func CMTimeRangeGetUnion(range_ CMTimeRange, otherRange CMTimeRange) CMTimeRange

@function CMTimeRangeGetUnion @abstract Returns the union of two CMTimeRanges. @discussion This function returns a CMTimeRange structure that represents the union of the time ranges specified by the <i>range</i> and <i>otherRange</i> parameters. This is the smallest range that includes all times that are in either range. @result The union of the two CMTimeRanges.

func CMTimeRangeMake

func CMTimeRangeMake(start CMTime, duration CMTime) CMTimeRange

@function CMTimeRangeMake @abstract Make a valid CMTimeRange with start and duration. @result The resulting CMTimeRange. @discussion The duration parameter must have an epoch of 0; otherwise an invalid time range will be returned.

func CMTimeRangeMakeFromDictionary

func CMTimeRangeMakeFromDictionary(dictionaryRepresentation unsafe.Pointer) CMTimeRange

@function CMTimeRangeMakeFromDictionary @abstract Reconstitutes a CMTimeRange struct from a CFDictionary previously created by CMTimeRangeCopyAsDictionary. @discussion This is useful when getting CMTimeRanges from CF container types. If the CFDictionary does not have the requisite keyed values, an invalid time range is returned. @result The created CMTimeRange.

func KCMTimeRangeInvalid

func KCMTimeRangeInvalid() CMTimeRange

func KCMTimeRangeZero

func KCMTimeRangeZero() CMTimeRange

type CMTimeRoundingMethod

type CMTimeRoundingMethod int64
const (
	KCMTimeRoundingMethod_RoundHalfAwayFromZero       CMTimeRoundingMethod = 1
	KCMTimeRoundingMethod_RoundTowardZero             CMTimeRoundingMethod = 2
	KCMTimeRoundingMethod_RoundAwayFromZero           CMTimeRoundingMethod = 3
	KCMTimeRoundingMethod_QuickTime                   CMTimeRoundingMethod = 4
	KCMTimeRoundingMethod_RoundTowardPositiveInfinity CMTimeRoundingMethod = 5
	KCMTimeRoundingMethod_RoundTowardNegativeInfinity CMTimeRoundingMethod = 6
	KCMTimeRoundingMethod_Default                     CMTimeRoundingMethod = 1
)

func (CMTimeRoundingMethod) String

func (e CMTimeRoundingMethod) String() string

type CMVideoDimensions

type CMVideoDimensions struct {
	Width  int32
	Height int32
}

@typedef CMVideoDimensions Type used for video dimensions, units are pixels

func CMVideoFormatDescriptionGetDimensions

func CMVideoFormatDescriptionGetDimensions(videoDesc unsafe.Pointer) CMVideoDimensions

type Clockid_t

type Clockid_t int64

func (Clockid_t) String

func (e Clockid_t) String() string

type Dispatch_autorelease_frequency_t

type Dispatch_autorelease_frequency_t uint64
const (
	DISPATCH_AUTORELEASE_FREQUENCY_INHERIT   Dispatch_autorelease_frequency_t = 0
	DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM Dispatch_autorelease_frequency_t = 1
	DISPATCH_AUTORELEASE_FREQUENCY_NEVER     Dispatch_autorelease_frequency_t = 2
)

func (Dispatch_autorelease_frequency_t) String

type Dispatch_block_flags_t

type Dispatch_block_flags_t uint64
const (
	DISPATCH_BLOCK_BARRIER           Dispatch_block_flags_t = 1
	DISPATCH_BLOCK_DETACHED          Dispatch_block_flags_t = 2
	DISPATCH_BLOCK_ASSIGN_CURRENT    Dispatch_block_flags_t = 4
	DISPATCH_BLOCK_NO_QOS_CLASS      Dispatch_block_flags_t = 8
	DISPATCH_BLOCK_INHERIT_QOS_CLASS Dispatch_block_flags_t = 16
	DISPATCH_BLOCK_ENFORCE_QOS_CLASS Dispatch_block_flags_t = 32
)

func (Dispatch_block_flags_t) String

func (e Dispatch_block_flags_t) String() string

type EvCmd

type EvCmd int64
const (
	EVNOP   EvCmd = 0
	EVHIDE  EvCmd = 1
	EVSHOW  EvCmd = 2
	EVMOVE  EvCmd = 3
	EVLEVEL EvCmd = 4
)

func (EvCmd) String

func (e EvCmd) String() string

type Filesec_property_t

type Filesec_property_t int64
const (
	FILESEC_OWNER         Filesec_property_t = 1
	FILESEC_GROUP         Filesec_property_t = 2
	FILESEC_UUID          Filesec_property_t = 3
	FILESEC_MODE          Filesec_property_t = 4
	FILESEC_ACL           Filesec_property_t = 5
	FILESEC_GRPUUID       Filesec_property_t = 6
	FILESEC_ACL_RAW       Filesec_property_t = 100
	FILESEC_ACL_ALLOCSIZE Filesec_property_t = 101
)

func (Filesec_property_t) String

func (e Filesec_property_t) String() string

type Idtype_t

type Idtype_t int64
const (
	P_ALL  Idtype_t = 0
	P_PID  Idtype_t = 1
	P_PGID Idtype_t = 2
)

func (Idtype_t) String

func (e Idtype_t) String() string

type Ipc_info_object_type_t

type Ipc_info_object_type_t int64
const (
	IPC_OTYPE_NONE                 Ipc_info_object_type_t = 0
	IPC_OTYPE_THREAD_CONTROL       Ipc_info_object_type_t = 1
	IPC_OTYPE_TASK_CONTROL         Ipc_info_object_type_t = 2
	IPC_OTYPE_HOST                 Ipc_info_object_type_t = 3
	IPC_OTYPE_HOST_PRIV            Ipc_info_object_type_t = 4
	IPC_OTYPE_PROCESSOR            Ipc_info_object_type_t = 5
	IPC_OTYPE_PROCESSOR_SET        Ipc_info_object_type_t = 6
	IPC_OTYPE_PROCESSOR_SET_NAME   Ipc_info_object_type_t = 7
	IPC_OTYPE_TIMER                Ipc_info_object_type_t = 8
	IPC_OTYPE_PORT_SUBST_ONCE      Ipc_info_object_type_t = 9
	IPC_OTYPE_MIG                  Ipc_info_object_type_t = 10
	IPC_OTYPE_MEMORY_OBJECT        Ipc_info_object_type_t = 11
	IPC_OTYPE_XMM_PAGER            Ipc_info_object_type_t = 12
	IPC_OTYPE_XMM_KERNEL           Ipc_info_object_type_t = 13
	IPC_OTYPE_XMM_REPLY            Ipc_info_object_type_t = 14
	IPC_OTYPE_UND_REPLY            Ipc_info_object_type_t = 15
	IPC_OTYPE_HOST_NOTIFY          Ipc_info_object_type_t = 16
	IPC_OTYPE_HOST_SECURITY        Ipc_info_object_type_t = 17
	IPC_OTYPE_LEDGER               Ipc_info_object_type_t = 18
	IPC_OTYPE_MAIN_DEVICE          Ipc_info_object_type_t = 19
	IPC_OTYPE_TASK_NAME            Ipc_info_object_type_t = 20
	IPC_OTYPE_SUBSYSTEM            Ipc_info_object_type_t = 21
	IPC_OTYPE_IO_DONE_QUEUE        Ipc_info_object_type_t = 22
	IPC_OTYPE_SEMAPHORE            Ipc_info_object_type_t = 23
	IPC_OTYPE_LOCK_SET             Ipc_info_object_type_t = 24
	IPC_OTYPE_CLOCK                Ipc_info_object_type_t = 25
	IPC_OTYPE_CLOCK_CTRL           Ipc_info_object_type_t = 26
	IPC_OTYPE_IOKIT_IDENT          Ipc_info_object_type_t = 27
	IPC_OTYPE_NAMED_ENTRY          Ipc_info_object_type_t = 28
	IPC_OTYPE_IOKIT_CONNECT        Ipc_info_object_type_t = 29
	IPC_OTYPE_IOKIT_OBJECT         Ipc_info_object_type_t = 30
	IPC_OTYPE_UPL                  Ipc_info_object_type_t = 31
	IPC_OTYPE_MEM_OBJ_CONTROL      Ipc_info_object_type_t = 32
	IPC_OTYPE_AU_SESSIONPORT       Ipc_info_object_type_t = 33
	IPC_OTYPE_FILEPORT             Ipc_info_object_type_t = 34
	IPC_OTYPE_LABELH               Ipc_info_object_type_t = 35
	IPC_OTYPE_TASK_RESUME          Ipc_info_object_type_t = 36
	IPC_OTYPE_VOUCHER              Ipc_info_object_type_t = 37
	IPC_OTYPE_VOUCHER_ATTR_CONTROL Ipc_info_object_type_t = 38
	IPC_OTYPE_WORK_INTERVAL        Ipc_info_object_type_t = 39
	IPC_OTYPE_UX_HANDLER           Ipc_info_object_type_t = 40
	IPC_OTYPE_UEXT_OBJECT          Ipc_info_object_type_t = 41
	IPC_OTYPE_ARCADE_REG           Ipc_info_object_type_t = 42
	IPC_OTYPE_EVENTLINK            Ipc_info_object_type_t = 43
	IPC_OTYPE_TASK_INSPECT         Ipc_info_object_type_t = 44
	IPC_OTYPE_TASK_READ            Ipc_info_object_type_t = 45
	IPC_OTYPE_THREAD_INSPECT       Ipc_info_object_type_t = 46
	IPC_OTYPE_THREAD_READ          Ipc_info_object_type_t = 47
	IPC_OTYPE_SUID_CRED            Ipc_info_object_type_t = 48
	IPC_OTYPE_HYPERVISOR           Ipc_info_object_type_t = 49
	IPC_OTYPE_TASK_ID_TOKEN        Ipc_info_object_type_t = 50
	IPC_OTYPE_TASK_FATAL           Ipc_info_object_type_t = 51
	IPC_OTYPE_KCDATA               Ipc_info_object_type_t = 52
	IPC_OTYPE_EXCLAVES_RESOURCE    Ipc_info_object_type_t = 53
	IPC_OTYPE_THREAD_RESUME        Ipc_info_object_type_t = 54
	IPC_OTYPE_UNKNOWN              Ipc_info_object_type_t = 4294967295
)

func (Ipc_info_object_type_t) String

func (e Ipc_info_object_type_t) String() string

type Launch_data_type_t

type Launch_data_type_t int64
const (
	LAUNCH_DATA_DICTIONARY Launch_data_type_t = 1
	LAUNCH_DATA_ARRAY      Launch_data_type_t = 2
	LAUNCH_DATA_FD         Launch_data_type_t = 3
	LAUNCH_DATA_INTEGER    Launch_data_type_t = 4
	LAUNCH_DATA_REAL       Launch_data_type_t = 5
	LAUNCH_DATA_BOOL       Launch_data_type_t = 6
	LAUNCH_DATA_STRING     Launch_data_type_t = 7
	LAUNCH_DATA_OPAQUE     Launch_data_type_t = 8
	LAUNCH_DATA_ERRNO      Launch_data_type_t = 9
	LAUNCH_DATA_MACHPORT   Launch_data_type_t = 10
)

func (Launch_data_type_t) String

func (e Launch_data_type_t) String() string

type MDLabelDomain

type MDLabelDomain int64

@typedef MDLabelDomain @abstract These constants are used to specify a domain to MDLabelCreate().

const (
	KMDLabelUserDomain  MDLabelDomain = 0
	KMDLabelLocalDomain MDLabelDomain = 1
)

func (MDLabelDomain) String

func (e MDLabelDomain) String() string

type MDQueryOptionFlags

type MDQueryOptionFlags int64
const (
	KMDQuerySynchronous        MDQueryOptionFlags = 1
	KMDQueryWantsUpdates       MDQueryOptionFlags = 4
	KMDQueryAllowFSTranslation MDQueryOptionFlags = 8
)

func (MDQueryOptionFlags) String

func (e MDQueryOptionFlags) String() string

type MDQuerySortOptionFlags

type MDQuerySortOptionFlags int64

@enum MDQuerySortOptionFlags @constant kMDQueryReverseSortOrderFlag Sort the attribute in reverse order.

const (
	KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)

func (MDQuerySortOptionFlags) String

func (e MDQuerySortOptionFlags) String() string

type Mach_vm_range_flags_t

type Mach_vm_range_flags_t int64
const (
	MACH_VM_RANGE_NONE Mach_vm_range_flags_t = 0
)

func (Mach_vm_range_flags_t) String

func (e Mach_vm_range_flags_t) String() string

type Mach_vm_range_flavor_t

type Mach_vm_range_flavor_t int64
const (
	MACH_VM_RANGE_FLAVOR_INVALID Mach_vm_range_flavor_t = 0
	MACH_VM_RANGE_FLAVOR_V1      Mach_vm_range_flavor_t = 1
)

func (Mach_vm_range_flavor_t) String

func (e Mach_vm_range_flavor_t) String() string

type Mach_vm_range_tag_t

type Mach_vm_range_tag_t int64
const (
	MACH_VM_RANGE_DEFAULT Mach_vm_range_tag_t = 0
	MACH_VM_RANGE_DATA    Mach_vm_range_tag_t = 1
	MACH_VM_RANGE_FIXED   Mach_vm_range_tag_t = 2
)

func (Mach_vm_range_tag_t) String

func (e Mach_vm_range_tag_t) String() string

type Mpo_flags_t

type Mpo_flags_t int64
const (
	MPO_PORT                            Mpo_flags_t = 0
	MPO_SERVICE_PORT                    Mpo_flags_t = 1024
	MPO_CONNECTION_PORT                 Mpo_flags_t = 2048
	MPO_REPLY_PORT                      Mpo_flags_t = 4096
	MPO_WEAK_REPLY_PORT                 Mpo_flags_t = 16384
	MPO_NOTIFICATION_PORT               Mpo_flags_t = 17408
	MPO_EXCEPTION_PORT                  Mpo_flags_t = 32768
	MPO_CONNECTION_PORT_WITH_PORT_ARRAY Mpo_flags_t = 65536
)

func (Mpo_flags_t) String

func (e Mpo_flags_t) String() string

type NXMouseButton

type NXMouseButton int64
const (
	NX_OneButton   NXMouseButton = 0
	NX_LeftButton  NXMouseButton = 1
	NX_RightButton NXMouseButton = 2
)

func (NXMouseButton) String

func (e NXMouseButton) String() string

type OpaqueCMBlockBuffer

type OpaqueCMBlockBuffer struct{}

@typedef CMBlockBufferRef @discussion A reference to a CMBlockBuffer, a CF object that adheres to retain/release semantics. When CFRelease() is performed on the last reference to the CMBlockBuffer, any referenced BlockBuffers are released and eligible memory blocks are deallocated. These operations are recursive, so one release could result in many follow on releses. OpaqueCMBlockBuffer is an opaque type.

type OpaqueCMBufferQueue

type OpaqueCMBufferQueue struct{}

@typedef CMBufferQueueRef @abstract A reference to a CMBufferQueue, a CF object that implements a queue of timed buffers. C struct: opaqueCMBufferQueue OpaqueCMBufferQueue is an opaque type.

type OpaqueCMBufferQueueTriggerToken

type OpaqueCMBufferQueueTriggerToken struct{}

@typedef CMBufferQueueTriggerToken @abstract A reference to a CMBufferQueueTrigger object. It is not a CF type; do not CFRetain or CFRelease it. @discussion A trigger is a callback function that the queue calls every time the triggering condition becomes true. Trigger conditions include things like queue duration, queue buffer count, etc. Trigger callbacks are called from within CMBufferQueue routines that modify the trigger condition (eg. Enqueue/Dequeue/Reset). Trigger callbacks cannot modify the queue that called them; they can, however, interrogate it. Trigger callbacks should not block waiting for other threads to modify or interrogate the queue either. In fact, trigger callbacks should perform as little processing as possible, preferably arranging for processing to occur by signalling a semaphore, rescheduling a runloop timer, calling dispatch_async(), etc. Clients can install as many triggers as they like. The order in which they are called is non-deterministic. Triggers with a NULL callback are valid, since even though no trigger callback will be called, the trigger condition can still be explicitly tested. The CMBufferQueueTriggerToken is returned from CMBufferQueueInstallTrigger, so clients can remove it later if necessary. Triggers will automatically be removed when the queue is finalized. Note that if more than one module has access to a queue, it may be hard for an individual module to know when the queue is finalized since other modules may retain it. To address this concern, modules should remove their triggers before they themselves are finalized. C struct: opaqueCMBufferQueueTriggerToken OpaqueCMBufferQueueTriggerToken is an opaque type.

type OpaqueCMClock

type OpaqueCMClock struct{}

OpaqueCMClock is an opaque type.

type OpaqueCMFormatDescription

type OpaqueCMFormatDescription struct{}

@typedef CMFormatDescriptionRef @abstract A reference to a CMFormatDescription, a CF object describing media of a particular type (audio, video, muxed, etc). C struct: opaqueCMFormatDescription OpaqueCMFormatDescription is an opaque type.

type OpaqueCMMemoryPool

type OpaqueCMMemoryPool struct{}

OpaqueCMMemoryPool is an opaque type.

type OpaqueCMSampleBuffer

type OpaqueCMSampleBuffer struct{}

@typedef CMSampleBufferRef @abstract A reference to a CMSampleBuffer, a CF object containing zero or more compressed (or uncompressed) samples of a particular media type (audio, video, muxed, etc). C struct: opaqueCMSampleBuffer OpaqueCMSampleBuffer is an opaque type.

type OpaqueCMSimpleQueue

type OpaqueCMSimpleQueue struct{}

@typedef CMSimpleQueueRef @abstract A reference to a CMSimpleQueue, a CF object that implements a simple lockless queue of (void *) elements. C struct: opaqueCMSimpleQueue OpaqueCMSimpleQueue is an opaque type.

type OpaqueCMTagCollection

type OpaqueCMTagCollection struct{}

@typedef CMTagCollectionRef @discussion A reference to a CMTagCollection, a CF object that adheres to retain/release semantics. This value type represents an unordered collection of zero or more CMTags. This type is roughly analogous to CFSetRef in that it is unordered and has operations for Boolean set math. It is however optimized for the storage of CMTag structures. OpaqueCMTagCollection is an opaque type.

type OpaqueCMTaggedBufferGroup

type OpaqueCMTaggedBufferGroup struct{}

@typedef CMTaggedBufferGroup @abstract An object gathering zero or more buffers (CMSampleBuffer, CVPixelBuffer) each with a CMTagCollection. OpaqueCMTaggedBufferGroup is an opaque type.

type OpaqueCMTimebase

type OpaqueCMTimebase struct{}

OpaqueCMTimebase is an opaque type.

type Os_clockid_t

type Os_clockid_t int64
const (
	OS_CLOCK_MACH_ABSOLUTE_TIME Os_clockid_t = 32
)

func (Os_clockid_t) String

func (e Os_clockid_t) String() string

type PMPageToPaperMappingType

type PMPageToPaperMappingType int64
const (
	KPMPageToPaperMappingNone       PMPageToPaperMappingType = 1
	KPMPageToPaperMappingScaleToFit PMPageToPaperMappingType = 2
)

func (PMPageToPaperMappingType) String

func (e PMPageToPaperMappingType) String() string

type Ptrauth_key

type Ptrauth_key int64
const (
	Ptrauth_key_none                     Ptrauth_key = -1
	Ptrauth_key_asia                     Ptrauth_key = 0
	Ptrauth_key_asib                     Ptrauth_key = 1
	Ptrauth_key_asda                     Ptrauth_key = 2
	Ptrauth_key_asdb                     Ptrauth_key = 3
	Ptrauth_key_process_independent_code Ptrauth_key = 0
	Ptrauth_key_process_dependent_code   Ptrauth_key = 1
	Ptrauth_key_process_independent_data Ptrauth_key = 2
	Ptrauth_key_process_dependent_data   Ptrauth_key = 3
	Ptrauth_key_return_address           Ptrauth_key = 1
	Ptrauth_key_frame_pointer            Ptrauth_key = 3
	Ptrauth_key_function_pointer         Ptrauth_key = 0
	Ptrauth_key_block_function           Ptrauth_key = 0
	Ptrauth_key_cxx_vtable_pointer       Ptrauth_key = 2
	Ptrauth_key_method_list_pointer      Ptrauth_key = 2
	Ptrauth_key_objc_isa_pointer         Ptrauth_key = 2
	Ptrauth_key_objc_super_pointer       Ptrauth_key = 2
	Ptrauth_key_objc_sel_pointer         Ptrauth_key = 3
	Ptrauth_key_objc_class_ro_pointer    Ptrauth_key = 2
	Ptrauth_key_block_descriptor_pointer Ptrauth_key = 2
	Ptrauth_key_init_fini_pointer        Ptrauth_key = 0
)

func (Ptrauth_key) String

func (e Ptrauth_key) String() string

type Qos_class_t

type Qos_class_t uint32
const (
	QOS_CLASS_USER_INTERACTIVE Qos_class_t = 33
	QOS_CLASS_USER_INITIATED   Qos_class_t = 25
	QOS_CLASS_DEFAULT          Qos_class_t = 21
	QOS_CLASS_UTILITY          Qos_class_t = 17
	QOS_CLASS_BACKGROUND       Qos_class_t = 9
	QOS_CLASS_UNSPECIFIED      Qos_class_t = 0
)

func (Qos_class_t) String

func (e Qos_class_t) String() string

type Virtual_memory_guard_exception_code_t

type Virtual_memory_guard_exception_code_t int64
const (
	KGUARD_EXC_DEALLOC_GAP                   Virtual_memory_guard_exception_code_t = 1
	KGUARD_EXC_RECLAIM_COPYIO_FAILURE        Virtual_memory_guard_exception_code_t = 2
	KGUARD_EXC_RECLAIM_INDEX_FAILURE         Virtual_memory_guard_exception_code_t = 4
	KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE    Virtual_memory_guard_exception_code_t = 8
	KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE    Virtual_memory_guard_exception_code_t = 9
	KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE         Virtual_memory_guard_exception_code_t = 10
	KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE         Virtual_memory_guard_exception_code_t = 11
	KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION  Virtual_memory_guard_exception_code_t = 12
	KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY    Virtual_memory_guard_exception_code_t = 13
	KGUARD_EXC_SEC_ACCESS_FAULT              Virtual_memory_guard_exception_code_t = 98
	KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT        Virtual_memory_guard_exception_code_t = 99
	KGUARD_EXC_SEC_COPY_DENIED               Virtual_memory_guard_exception_code_t = 100
	KGUARD_EXC_SEC_SHARING_DENIED            Virtual_memory_guard_exception_code_t = 101
	KGUARD_EXC_MTE_SYNC_FAULT                Virtual_memory_guard_exception_code_t = 200
	KGUARD_EXC_MTE_ASYNC_USER_FAULT          Virtual_memory_guard_exception_code_t = 201
	KGUARD_EXC_MTE_ASYNC_KERN_FAULT          Virtual_memory_guard_exception_code_t = 202
	KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT Virtual_memory_guard_exception_code_t = 203
	KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT Virtual_memory_guard_exception_code_t = 204
)

func (Virtual_memory_guard_exception_code_t) String

type Xpc_listener_create_flags_t

type Xpc_listener_create_flags_t int64
const (
	XPC_LISTENER_CREATE_NONE             Xpc_listener_create_flags_t = 0
	XPC_LISTENER_CREATE_INACTIVE         Xpc_listener_create_flags_t = 1
	XPC_LISTENER_CREATE_FORCE_MACH       Xpc_listener_create_flags_t = 2
	XPC_LISTENER_CREATE_FORCE_XPCSERVICE Xpc_listener_create_flags_t = 4
)

func (Xpc_listener_create_flags_t) String

type Xpc_session_create_flags_t

type Xpc_session_create_flags_t int64
const (
	XPC_SESSION_CREATE_NONE            Xpc_session_create_flags_t = 0
	XPC_SESSION_CREATE_INACTIVE        Xpc_session_create_flags_t = 1
	XPC_SESSION_CREATE_MACH_PRIVILEGED Xpc_session_create_flags_t = 2
)

func (Xpc_session_create_flags_t) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL