Documentation
¶
Overview ¶
Package coremedia provides Go bindings for the CoreMedia framework.
Represent time-based audio-visual assets with essential data types.
The Core Media framework defines the media pipeline used by AVFoundation and other high-level media frameworks found on Apple platforms. Use Core Media’s low-level data types and interfaces to efficiently process media samples and manage queues of media data.
Sample Processing ¶
- CMSampleBuffer: An object that contains zero or more media samples of a uniform media type. (CMSampleTimingInfo, CMBufferGetSizeCallback, CMItemIndex, CMItemCount, CMPersistentTrackID)
- CMBlockBuffer: An object the system uses to move blocks of memory through a processing system. (CMBlockBufferFlags, CMBlockBufferCustomBlockSource)
- CMTaggedBufferGroup: Objective-C types and interfaces for working with Core Media tagged buffer groups. (CMTaggedBufferGroupFormatType)
- CMFormatDescription: A media format descriptor that describes the samples in a sample buffer. (CMSoundDescriptionFlavor, CMImageDescriptionFlavor, CMMetadataDescriptionFlavor, CMTextDescriptionFlavor, CMTimeCodeDescriptionFlavor)
- CMAttachment: Add supporting metadata to sample buffers. (CMAttachmentMode)
Time Representation ¶
- CMTime: A structure that represents time. (CMTimeRoundingMethod, CMTime, CMTimeValue, CMTimeScale, CMTimeEpoch)
- CMTimeRange: A structure that represents a range of time. (CMTimeRange)
- CMTimeMapping: A structure that maps a segment of a source time range to a target time range. (CMTimeMapping)
Metadata ¶
- CMTag: Types and interfaces for working with Core Media tags. (CMTag)
- CMProjectionType: Constants describing the projection surface information in a 3D video buffer or channel.
- CMStereoViewComponents: Constants describing the stereo views contained within a buffer or channel.
- CMStereoViewInterpretationOptions: Create a set of stereo view interpretation options from a constant.
- CMPackingType: The type of packing within each video frame, if any.
Queues ¶
- CMBufferQueue: A queue of timed buffers. (CMBufferCallbacks, CMBufferQueueTriggerHandler, CMBufferQueueTriggerToken, CMBufferQueueTriggerCallback, CMBufferQueueTriggerCondition)
Variables ¶
Functions ¶
Code generated from Apple documentation. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func BindFunc(fptr any, name string) (err error)
- func CMAudioDeviceClockCreate(allocator corefoundation.CFAllocatorRef, deviceUID corefoundation.CFStringRef, ...) int32
- func CMAudioDeviceClockCreateFromAudioDeviceID(allocator corefoundation.CFAllocatorRef, deviceID uint32, clockOut *CMClockRef) int32
- func CMAudioDeviceClockGetAudioDevice(clock CMClockRef, deviceUIDOut *corefoundation.CFStringRef, ...) int32
- func CMAudioDeviceClockSetAudioDeviceID(clock CMClockRef, deviceID uint32) int32
- func CMAudioDeviceClockSetAudioDeviceUID(clock CMClockRef, deviceUID corefoundation.CFStringRef) int32
- func CMAudioFormatDescriptionCopyAsBigEndianSoundDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, ...) int32
- func CMAudioFormatDescriptionCreate(allocator corefoundation.CFAllocatorRef, ...) int32
- func CMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, ...) int32
- func CMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionData(allocator corefoundation.CFAllocatorRef, soundDescriptionData []byte, ...) int32
- func CMAudioFormatDescriptionCreateSummary(allocator corefoundation.CFAllocatorRef, ...) int32
- func CMAudioFormatDescriptionEqual(formatDescription CMAudioFormatDescriptionRef, ...) bool
- func CMAudioFormatDescriptionGetChannelLayout(desc CMAudioFormatDescriptionRef, sizeOut *uintptr) *coreaudiotypes.AudioChannelLayout
- func CMAudioFormatDescriptionGetFormatList(desc CMAudioFormatDescriptionRef, sizeOut *uintptr) *audiotoolbox.AudioFormatListItem
- func CMAudioFormatDescriptionGetMagicCookie(desc CMAudioFormatDescriptionRef, sizeOut *uintptr) unsafe.Pointer
- func CMAudioFormatDescriptionGetMostCompatibleFormat(desc CMAudioFormatDescriptionRef) *audiotoolbox.AudioFormatListItem
- func CMAudioFormatDescriptionGetRichestDecodableFormat(desc CMAudioFormatDescriptionRef) *audiotoolbox.AudioFormatListItem
- func CMAudioFormatDescriptionGetStreamBasicDescription(desc CMAudioFormatDescriptionRef) *coreaudiotypes.AudioStreamBasicDescription
- func CMAudioSampleBufferCreateReadyWithPacketDescriptions(allocator corefoundation.CFAllocatorRef, dataBuffer CMBlockBufferRef, ...) int32
- func CMAudioSampleBufferCreateWithPacketDescriptions(allocator corefoundation.CFAllocatorRef, dataBuffer CMBlockBufferRef, ...) int32
- func CMAudioSampleBufferCreateWithPacketDescriptionsAndMakeDataReadyHandler(allocator corefoundation.CFAllocatorRef, dataBuffer CMBlockBufferRef, ...) int32
- func CMBlockBufferAccessDataBytes(theBuffer CMBlockBufferRef, offset uintptr, length uintptr, ...) int32
- func CMBlockBufferAppendBufferReference(theBuffer CMBlockBufferRef, targetBBuf CMBlockBufferRef, offsetToData uintptr, ...) int32
- func CMBlockBufferAppendMemoryBlock(theBuffer CMBlockBufferRef, memoryBlock unsafe.Pointer, blockLength uintptr, ...) int32
- func CMBlockBufferAssureBlockMemory(theBuffer CMBlockBufferRef) int32
- func CMBlockBufferCopyDataBytes(theSourceBuffer CMBlockBufferRef, offsetToData uintptr, dataLength uintptr, ...) int32
- func CMBlockBufferCreateContiguous(structureAllocator corefoundation.CFAllocatorRef, ...) int32
- func CMBlockBufferCreateEmpty(structureAllocator corefoundation.CFAllocatorRef, subBlockCapacity uint32, ...) int32
- func CMBlockBufferCreateWithBufferReference(structureAllocator corefoundation.CFAllocatorRef, ...) int32
- func CMBlockBufferCreateWithMemoryBlock(structureAllocator corefoundation.CFAllocatorRef, memoryBlock unsafe.Pointer, ...) int32
- func CMBlockBufferFillDataBytes(fillByte int8, destinationBuffer CMBlockBufferRef, ...) int32
- func CMBlockBufferGetDataLength(theBuffer CMBlockBufferRef) uintptr
- func CMBlockBufferGetDataPointer(theBuffer CMBlockBufferRef, offset uintptr, lengthAtOffsetOut *uintptr, ...) int32
- func CMBlockBufferGetTypeID() uint
- func CMBlockBufferIsEmpty(theBuffer CMBlockBufferRef) bool
- func CMBlockBufferIsRangeContiguous(theBuffer CMBlockBufferRef, offset uintptr, length uintptr) bool
- func CMBlockBufferReplaceDataBytes(sourceBytes unsafe.Pointer, destinationBuffer CMBlockBufferRef, ...) int32
- func CMBufferQueueCallForEachBuffer(queue CMBufferQueueRef, callback func(unsafe.Pointer, unsafe.Pointer) int32, ...) int32
- func CMBufferQueueContainsEndOfData(queue CMBufferQueueRef) bool
- func CMBufferQueueCreate(allocator corefoundation.CFAllocatorRef, capacity CMItemCount, ...) int32
- func CMBufferQueueCreateWithHandlers(allocator corefoundation.CFAllocatorRef, capacity CMItemCount, ...) int32
- func CMBufferQueueEnqueue(queue CMBufferQueueRef, buf CMBufferRef) int32
- func CMBufferQueueGetTotalSize(queue CMBufferQueueRef) uintptr
- func CMBufferQueueGetTypeID() uint
- func CMBufferQueueInstallTrigger(queue CMBufferQueueRef, callback CMBufferQueueTriggerCallback, refcon uintptr, ...) int32
- func CMBufferQueueInstallTriggerHandler(queue CMBufferQueueRef, condition CMBufferQueueTriggerCondition, time CMTime, ...) int32
- func CMBufferQueueInstallTriggerHandlerWithIntegerThreshold(queue CMBufferQueueRef, condition CMBufferQueueTriggerCondition, ...) int32
- func CMBufferQueueInstallTriggerWithIntegerThreshold(queue CMBufferQueueRef, callback CMBufferQueueTriggerCallback, refcon uintptr, ...) int32
- func CMBufferQueueIsAtEndOfData(queue CMBufferQueueRef) bool
- func CMBufferQueueIsEmpty(queue CMBufferQueueRef) bool
- func CMBufferQueueMarkEndOfData(queue CMBufferQueueRef) int32
- func CMBufferQueueRemoveTrigger(queue CMBufferQueueRef, triggerToken CMBufferQueueTriggerToken) int32
- func CMBufferQueueReset(queue CMBufferQueueRef) int32
- func CMBufferQueueResetWithCallback(queue CMBufferQueueRef, callback func(unsafe.Pointer, unsafe.Pointer), ...) int32
- func CMBufferQueueSetValidationCallback(queue CMBufferQueueRef, callback CMBufferValidationCallback, refcon uintptr) int32
- func CMBufferQueueSetValidationHandler(queue CMBufferQueueRef, handler CMBufferValidationHandler) int32
- func CMBufferQueueTestTrigger(queue CMBufferQueueRef, triggerToken CMBufferQueueTriggerToken) bool
- func CMClockConvertHostTimeToSystemUnits(hostTime CMTime) uint64
- func CMClockGetAnchorTime(clock CMClockRef, clockTimeOut *CMTime, referenceClockTimeOut *CMTime) int32
- func CMClockGetTypeID() uint
- func CMClockInvalidate(clock CMClockRef)
- func CMClockMightDrift(clock CMClockRef, otherClock CMClockRef) bool
- func CMClosedCaptionFormatDescriptionCopyAsBigEndianClosedCaptionDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, ...) int32
- func CMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, ...) int32
- func CMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionData(allocator corefoundation.CFAllocatorRef, closedCaptionDescriptionData []byte, ...) int32
- func CMCopyDictionaryOfAttachments(allocator corefoundation.CFAllocatorRef, target CMAttachmentBearerRef, ...) corefoundation.CFDictionaryRef
- func CMDoesBigEndianSoundDescriptionRequireLegacyCBRSampleTableLayout(soundDescriptionBlockBuffer CMBlockBufferRef, flavor CMSoundDescriptionFlavor) bool
- func CMFormatDescriptionCreate(allocator corefoundation.CFAllocatorRef, mediaType CMMediaType, ...) int32
- func CMFormatDescriptionEqual(formatDescription CMFormatDescriptionRef, ...) bool
- func CMFormatDescriptionEqualIgnoringExtensionKeys(formatDescription CMFormatDescriptionRef, ...) bool
- func CMFormatDescriptionGetExtension(desc CMFormatDescriptionRef, extensionKey corefoundation.CFStringRef) corefoundation.CFPropertyListRef
- func CMFormatDescriptionGetExtensions(desc CMFormatDescriptionRef) corefoundation.CFDictionaryRef
- func CMFormatDescriptionGetMediaSubType(desc CMFormatDescriptionRef) uint32
- func CMFormatDescriptionGetTypeID() uint
- func CMGetAttachment(target CMAttachmentBearerRef, key corefoundation.CFStringRef, ...) corefoundation.CFTypeRef
- func CMMemoryPoolFlush(pool CMMemoryPoolRef)
- func CMMemoryPoolGetAllocator(pool CMMemoryPoolRef) corefoundation.CFAllocatorRef
- func CMMemoryPoolGetTypeID() uint
- func CMMemoryPoolInvalidate(pool CMMemoryPoolRef)
- func CMMetadataCreateIdentifierForKeyAndKeySpace(allocator corefoundation.CFAllocatorRef, key corefoundation.CFTypeRef, ...) int32
- func CMMetadataCreateKeyFromIdentifier(allocator corefoundation.CFAllocatorRef, identifier corefoundation.CFStringRef, ...) int32
- func CMMetadataCreateKeyFromIdentifierAsCFData(allocator corefoundation.CFAllocatorRef, identifier corefoundation.CFStringRef, ...) int32
- func CMMetadataCreateKeySpaceFromIdentifier(allocator corefoundation.CFAllocatorRef, identifier corefoundation.CFStringRef, ...) int32
- func CMMetadataDataTypeRegistryDataTypeConformsToDataType(dataType corefoundation.CFStringRef, ...) bool
- func CMMetadataDataTypeRegistryDataTypeIsBaseDataType(dataType corefoundation.CFStringRef) bool
- func CMMetadataDataTypeRegistryDataTypeIsRegistered(dataType corefoundation.CFStringRef) bool
- func CMMetadataDataTypeRegistryGetBaseDataTypeForConformingDataType(dataType corefoundation.CFStringRef) corefoundation.CFStringRef
- func CMMetadataDataTypeRegistryGetBaseDataTypes() corefoundation.CFArrayRef
- func CMMetadataDataTypeRegistryGetConformingDataTypes(dataType corefoundation.CFStringRef) corefoundation.CFArrayRef
- func CMMetadataDataTypeRegistryGetDataTypeDescription(dataType corefoundation.CFStringRef) corefoundation.CFStringRef
- func CMMetadataDataTypeRegistryRegisterDataType(dataType corefoundation.CFStringRef, description corefoundation.CFStringRef, ...) int32
- func CMMetadataFormatDescriptionCopyAsBigEndianMetadataDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, ...) int32
- func CMMetadataFormatDescriptionCreateByMergingMetadataFormatDescriptions(allocator corefoundation.CFAllocatorRef, ...) int32
- func CMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, ...) int32
- func CMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionData(allocator corefoundation.CFAllocatorRef, metadataDescriptionData []byte, ...) int32
- func CMMetadataFormatDescriptionCreateWithKeys(allocator corefoundation.CFAllocatorRef, metadataType CMMetadataFormatType, ...) int32
- func CMMetadataFormatDescriptionCreateWithMetadataFormatDescriptionAndMetadataSpecifications(allocator corefoundation.CFAllocatorRef, ...) int32
- func CMMetadataFormatDescriptionCreateWithMetadataSpecifications(allocator corefoundation.CFAllocatorRef, metadataType CMMetadataFormatType, ...) int32
- func CMMetadataFormatDescriptionGetIdentifiers(desc CMMetadataFormatDescriptionRef) corefoundation.CFArrayRef
- func CMMetadataFormatDescriptionGetKeyWithLocalID(desc CMMetadataFormatDescriptionRef, localKeyID uint32) corefoundation.CFDictionaryRef
- func CMMuxedFormatDescriptionCreate(allocator corefoundation.CFAllocatorRef, muxType CMMuxedStreamType, ...) int32
- func CMPropagateAttachments(source CMAttachmentBearerRef, destination CMAttachmentBearerRef)
- func CMRemoveAllAttachments(target CMAttachmentBearerRef)
- func CMRemoveAttachment(target CMAttachmentBearerRef, key corefoundation.CFStringRef)
- func CMSampleBufferCallBlockForEachSample(sbuf CMSampleBufferRef, handler func(uintptr, int) int32) int32
- func CMSampleBufferCallForEachSample(sbuf CMSampleBufferRef, ...) int32
- func CMSampleBufferCopyPCMDataIntoAudioBufferList(sbuf CMSampleBufferRef, frameOffset int32, numFrames int32, ...) int32
- func CMSampleBufferCopySampleBufferForRange(allocator corefoundation.CFAllocatorRef, sbuf CMSampleBufferRef, ...) int32
- func CMSampleBufferCreate(allocator corefoundation.CFAllocatorRef, dataBuffer CMBlockBufferRef, ...) int32
- func CMSampleBufferCreateCopy(allocator corefoundation.CFAllocatorRef, sbuf CMSampleBufferRef, ...) int32
- func CMSampleBufferCreateCopyWithNewTiming(allocator corefoundation.CFAllocatorRef, originalSBuf CMSampleBufferRef, ...) int32
- func CMSampleBufferCreateForImageBuffer(allocator corefoundation.CFAllocatorRef, ...) int32
- func CMSampleBufferCreateForImageBufferWithMakeDataReadyHandler(allocator corefoundation.CFAllocatorRef, ...) int32
- func CMSampleBufferCreateForTaggedBufferGroup(allocator corefoundation.CFAllocatorRef, ...) int32
- func CMSampleBufferCreateReady(allocator corefoundation.CFAllocatorRef, dataBuffer CMBlockBufferRef, ...) int32
- func CMSampleBufferCreateReadyWithImageBuffer(allocator corefoundation.CFAllocatorRef, ...) int32
- func CMSampleBufferCreateWithMakeDataReadyHandler(allocator corefoundation.CFAllocatorRef, dataBuffer CMBlockBufferRef, ...) int32
- func CMSampleBufferDataIsReady(sbuf CMSampleBufferRef) bool
- func CMSampleBufferGetAudioBufferListWithRetainedBlockBuffer(sbuf CMSampleBufferRef, bufferListSizeNeededOut *uintptr, ...) int32
- func CMSampleBufferGetAudioStreamPacketDescriptions(sbuf CMSampleBufferRef, packetDescriptionsSize uintptr, ...) int32
- func CMSampleBufferGetAudioStreamPacketDescriptionsPtr(sbuf CMSampleBufferRef, packetDescriptionsPointerOut *objc.ID, ...) int32
- func CMSampleBufferGetImageBuffer(sbuf CMSampleBufferRef) corevideo.CVImageBufferRef
- func CMSampleBufferGetOutputSampleTimingInfoArray(sbuf CMSampleBufferRef, timingArrayEntries CMItemCount, ...) int32
- func CMSampleBufferGetSampleAttachmentsArray(sbuf CMSampleBufferRef, createIfNecessary bool) corefoundation.CFArrayRef
- func CMSampleBufferGetSampleSize(sbuf CMSampleBufferRef, sampleIndex CMItemIndex) uintptr
- func CMSampleBufferGetSampleSizeArray(sbuf CMSampleBufferRef, sizeArrayEntries CMItemCount, sizeArrayOut *uintptr, ...) int32
- func CMSampleBufferGetSampleTimingInfo(sbuf CMSampleBufferRef, sampleIndex CMItemIndex, ...) int32
- func CMSampleBufferGetSampleTimingInfoArray(sbuf CMSampleBufferRef, numSampleTimingEntries CMItemCount, ...) int32
- func CMSampleBufferGetTotalSampleSize(sbuf CMSampleBufferRef) uintptr
- func CMSampleBufferGetTypeID() uint
- func CMSampleBufferHasDataFailed(sbuf CMSampleBufferRef, statusOut *int32) bool
- func CMSampleBufferInvalidate(sbuf CMSampleBufferRef) int32
- func CMSampleBufferIsValid(sbuf CMSampleBufferRef) bool
- func CMSampleBufferMakeDataReady(sbuf CMSampleBufferRef) int32
- func CMSampleBufferSetDataBuffer(sbuf CMSampleBufferRef, dataBuffer CMBlockBufferRef) int32
- func CMSampleBufferSetDataBufferFromAudioBufferList(sbuf CMSampleBufferRef, ...) int32
- func CMSampleBufferSetDataFailed(sbuf CMSampleBufferRef, status int32) int32
- func CMSampleBufferSetDataReady(sbuf CMSampleBufferRef) int32
- func CMSampleBufferSetInvalidateCallback(sbuf CMSampleBufferRef, invalidateCallback CMSampleBufferInvalidateCallback, ...) int32
- func CMSampleBufferSetInvalidateHandler(sbuf CMSampleBufferRef, invalidateHandler CMSampleBufferInvalidateHandler) int32
- func CMSampleBufferSetOutputPresentationTimeStamp(sbuf CMSampleBufferRef, outputPresentationTimeStamp CMTime) int32
- func CMSampleBufferTrackDataReadiness(sbuf CMSampleBufferRef, sampleBufferToTrack CMSampleBufferRef) int32
- func CMSetAttachment(target CMAttachmentBearerRef, key corefoundation.CFStringRef, ...)
- func CMSetAttachments(target CMAttachmentBearerRef, theAttachments corefoundation.CFDictionaryRef, ...)
- func CMSimpleQueueCreate(allocator corefoundation.CFAllocatorRef, capacity int32, ...) int32
- func CMSimpleQueueDequeue(queue CMSimpleQueueRef) unsafe.Pointer
- func CMSimpleQueueEnqueue(queue CMSimpleQueueRef, element unsafe.Pointer) int32
- func CMSimpleQueueGetCapacity(queue CMSimpleQueueRef) int32
- func CMSimpleQueueGetCount(queue CMSimpleQueueRef) int32
- func CMSimpleQueueGetHead(queue CMSimpleQueueRef) unsafe.Pointer
- func CMSimpleQueueGetTypeID() uint
- func CMSimpleQueueReset(queue CMSimpleQueueRef) int32
- func CMSwapBigEndianClosedCaptionDescriptionToHost(closedCaptionDescriptionData []byte, closedCaptionDescriptionSize uintptr) int32
- func CMSwapBigEndianImageDescriptionToHost(imageDescriptionData []byte, imageDescriptionSize uintptr) int32
- func CMSwapBigEndianMetadataDescriptionToHost(metadataDescriptionData []byte, metadataDescriptionSize uintptr) int32
- func CMSwapBigEndianSoundDescriptionToHost(soundDescriptionData []byte, soundDescriptionSize uintptr) int32
- func CMSwapBigEndianTextDescriptionToHost(textDescriptionData []byte, textDescriptionSize uintptr) int32
- func CMSwapBigEndianTimeCodeDescriptionToHost(timeCodeDescriptionData []byte, timeCodeDescriptionSize uintptr) int32
- func CMSwapHostEndianClosedCaptionDescriptionToBig(closedCaptionDescriptionData []byte, closedCaptionDescriptionSize uintptr) int32
- func CMSwapHostEndianImageDescriptionToBig(imageDescriptionData []byte, imageDescriptionSize uintptr) int32
- func CMSwapHostEndianMetadataDescriptionToBig(metadataDescriptionData []byte, metadataDescriptionSize uintptr) int32
- func CMSwapHostEndianSoundDescriptionToBig(soundDescriptionData []byte, soundDescriptionSize uintptr) int32
- func CMSwapHostEndianTextDescriptionToBig(textDescriptionData []byte, textDescriptionSize uintptr) int32
- func CMSwapHostEndianTimeCodeDescriptionToBig(timeCodeDescriptionData []byte, timeCodeDescriptionSize uintptr) int32
- func CMSyncGetRelativeRate(ofClockOrTimebase CMClockOrTimebaseRef, ...) float64
- func CMSyncGetRelativeRateAndAnchorTime(ofClockOrTimebase CMClockOrTimebaseRef, ...) int32
- func CMSyncMightDrift(clockOrTimebase1 CMClockOrTimebaseRef, clockOrTimebase2 CMClockOrTimebaseRef) bool
- func CMTagCollectionAddTag(tagCollection CMMutableTagCollectionRef, tagToAdd CMTag) int32
- func CMTagCollectionAddTagsFromArray(tagCollection CMMutableTagCollectionRef, tags *CMTag, tagCount CMItemCount) int32
- func CMTagCollectionAddTagsFromCollection(tagCollection CMMutableTagCollectionRef, ...) int32
- func CMTagCollectionApply(tagCollection CMTagCollectionRef, applier CMTagCollectionApplierFunction, ...)
- func CMTagCollectionContainsCategory(tagCollection CMTagCollectionRef, category CMTagCategory) bool
- func CMTagCollectionContainsSpecifiedTags(tagCollection CMTagCollectionRef, containedTags *CMTag, ...) bool
- func CMTagCollectionContainsTag(tagCollection CMTagCollectionRef, tag CMTag) bool
- func CMTagCollectionContainsTagsOfCollection(tagCollection CMTagCollectionRef, containedTagCollection CMTagCollectionRef) bool
- func CMTagCollectionCopyAsData(tagCollection CMTagCollectionRef, allocator corefoundation.CFAllocatorRef) corefoundation.CFDataRef
- func CMTagCollectionCopyAsDictionary(tagCollection CMTagCollectionRef, allocator corefoundation.CFAllocatorRef) corefoundation.CFDictionaryRef
- func CMTagCollectionCopyDescription(allocator corefoundation.CFAllocatorRef, tagCollection CMTagCollectionRef) corefoundation.CFStringRef
- func CMTagCollectionCopyTagsOfCategories(allocator corefoundation.CFAllocatorRef, tagCollection CMTagCollectionRef, ...) int32
- func CMTagCollectionCreate(allocator corefoundation.CFAllocatorRef, tags *CMTag, tagCount CMItemCount, ...) int32
- func CMTagCollectionCreateCopy(tagCollection CMTagCollectionRef, allocator corefoundation.CFAllocatorRef, ...) int32
- func CMTagCollectionCreateDifference(tagCollectionMinuend CMTagCollectionRef, ...) int32
- func CMTagCollectionCreateExclusiveOr(tagCollection1 CMTagCollectionRef, tagCollection2 CMTagCollectionRef, ...) int32
- func CMTagCollectionCreateFromData(data corefoundation.CFDataRef, allocator corefoundation.CFAllocatorRef, ...) int32
- func CMTagCollectionCreateFromDictionary(dict corefoundation.CFDictionaryRef, allocator corefoundation.CFAllocatorRef, ...) int32
- func CMTagCollectionCreateIntersection(tagCollection1 CMTagCollectionRef, tagCollection2 CMTagCollectionRef, ...) int32
- func CMTagCollectionCreateMutable(allocator corefoundation.CFAllocatorRef, capacity int, ...) int32
- func CMTagCollectionCreateMutableCopy(tagCollection CMTagCollectionRef, allocator corefoundation.CFAllocatorRef, ...) int32
- func CMTagCollectionCreateUnion(tagCollection1 CMTagCollectionRef, tagCollection2 CMTagCollectionRef, ...) int32
- func CMTagCollectionGetTags(tagCollection CMTagCollectionRef, tagBuffer *CMTag, tagBufferCount CMItemCount, ...) int32
- func CMTagCollectionGetTagsWithCategory(tagCollection CMTagCollectionRef, category CMTagCategory, tagBuffer *CMTag, ...) int32
- func CMTagCollectionGetTagsWithFilterFunction(tagCollection CMTagCollectionRef, tagBuffer *CMTag, tagBufferCount CMItemCount, ...) int32
- func CMTagCollectionGetTypeID() uint
- func CMTagCollectionIsEmpty(tagCollection CMTagCollectionRef) bool
- func CMTagCollectionRemoveAllTags(tagCollection CMMutableTagCollectionRef) int32
- func CMTagCollectionRemoveAllTagsOfCategory(tagCollection CMMutableTagCollectionRef, category CMTagCategory) int32
- func CMTagCollectionRemoveTag(tagCollection CMMutableTagCollectionRef, tagToRemove CMTag) int32
- func CMTagCompare(tag1 CMTag, tag2 CMTag) corefoundation.CFComparisonResult
- func CMTagCopyAsDictionary(tag CMTag, allocator corefoundation.CFAllocatorRef) corefoundation.CFDictionaryRef
- func CMTagCopyDescription(allocator corefoundation.CFAllocatorRef, tag CMTag) corefoundation.CFStringRef
- func CMTagEqualToTag(tag1 CMTag, tag2 CMTag) bool
- func CMTagGetFlagsValue(tag CMTag) uint64
- func CMTagGetFloat64Value(tag CMTag) float64
- func CMTagGetOSTypeValue(tag CMTag) uint32
- func CMTagGetSInt64Value(tag CMTag) int64
- func CMTagHasFlagsValue(tag CMTag) bool
- func CMTagHasFloat64Value(tag CMTag) bool
- func CMTagHasOSTypeValue(tag CMTag) bool
- func CMTagHasSInt64Value(tag CMTag) bool
- func CMTagHash(tag CMTag) uint
- func CMTaggedBufferGroupCreate(allocator corefoundation.CFAllocatorRef, ...) int32
- func CMTaggedBufferGroupCreateCombined(allocator corefoundation.CFAllocatorRef, ...) int32
- func CMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroup(allocator corefoundation.CFAllocatorRef, ...) int32
- func CMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroupWithExtensions(allocator corefoundation.CFAllocatorRef, ...) int32
- func CMTaggedBufferGroupFormatDescriptionMatchesTaggedBufferGroup(desc CMTaggedBufferGroupFormatDescriptionRef, ...) bool
- func CMTaggedBufferGroupGetCVPixelBufferAtIndex(group CMTaggedBufferGroupRef, index int) corevideo.CVPixelBufferRef
- func CMTaggedBufferGroupGetCVPixelBufferForTag(group CMTaggedBufferGroupRef, tag CMTag, indexOut *int) corevideo.CVPixelBufferRef
- func CMTaggedBufferGroupGetCVPixelBufferForTagCollection(group CMTaggedBufferGroupRef, tagCollection CMTagCollectionRef, indexOut *int) corevideo.CVPixelBufferRef
- func CMTaggedBufferGroupGetTypeID() uint
- func CMTextFormatDescriptionCopyAsBigEndianTextDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, ...) int32
- func CMTextFormatDescriptionCreateFromBigEndianTextDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, ...) int32
- func CMTextFormatDescriptionCreateFromBigEndianTextDescriptionData(allocator corefoundation.CFAllocatorRef, textDescriptionData []byte, ...) int32
- func CMTextFormatDescriptionGetDefaultStyle(desc CMFormatDescriptionRef, localFontIDOut *uint16, boldOut *bool, ...) int32
- func CMTextFormatDescriptionGetDefaultTextBox(desc CMFormatDescriptionRef, originIsAtTopLeft bool, heightOfTextTrack float64, ...) int32
- func CMTextFormatDescriptionGetDisplayFlags(desc CMFormatDescriptionRef, displayFlagsOut *CMTextDisplayFlags) int32
- func CMTextFormatDescriptionGetFontName(desc CMFormatDescriptionRef, localFontID uint16, ...) int32
- func CMTextFormatDescriptionGetJustification(desc CMFormatDescriptionRef, ...) int32
- func CMTimeCodeFormatDescriptionCopyAsBigEndianTimeCodeDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, ...) int32
- func CMTimeCodeFormatDescriptionCreate(allocator corefoundation.CFAllocatorRef, ...) int32
- func CMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, ...) int32
- func CMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionData(allocator corefoundation.CFAllocatorRef, timeCodeDescriptionData []byte, ...) int32
- func CMTimeCodeFormatDescriptionGetFrameQuanta(timeCodeFormatDescription CMTimeCodeFormatDescriptionRef) uint32
- func CMTimeCodeFormatDescriptionGetTimeCodeFlags(desc CMTimeCodeFormatDescriptionRef) uint32
- func CMTimeCompare(time1 CMTime, time2 CMTime) int32
- func CMTimeCopyAsDictionary(time CMTime, allocator corefoundation.CFAllocatorRef) corefoundation.CFDictionaryRef
- func CMTimeCopyDescription(allocator corefoundation.CFAllocatorRef, time CMTime) corefoundation.CFStringRef
- func CMTimeGetSeconds(time CMTime) float64
- func CMTimeMappingCopyAsDictionary(mapping CMTimeMapping, allocator corefoundation.CFAllocatorRef) corefoundation.CFDictionaryRef
- func CMTimeMappingCopyDescription(allocator corefoundation.CFAllocatorRef, mapping CMTimeMapping) corefoundation.CFStringRef
- func CMTimeMappingShow(mapping CMTimeMapping)
- func CMTimeRangeContainsTime(range_ CMTimeRange, time CMTime) bool
- func CMTimeRangeContainsTimeRange(range_ CMTimeRange, otherRange CMTimeRange) bool
- func CMTimeRangeCopyAsDictionary(range_ CMTimeRange, allocator corefoundation.CFAllocatorRef) corefoundation.CFDictionaryRef
- func CMTimeRangeCopyDescription(allocator corefoundation.CFAllocatorRef, range_ CMTimeRange) corefoundation.CFStringRef
- func CMTimeRangeEqual(range1 CMTimeRange, range2 CMTimeRange) bool
- func CMTimeRangeShow(range_ CMTimeRange)
- func CMTimeShow(time CMTime)
- func CMTimebaseAddTimer(timebase CMTimebaseRef, timer corefoundation.CFRunLoopTimerRef, ...) int32
- func CMTimebaseAddTimerDispatchSource(timebase CMTimebaseRef, timerSource dispatch.Source) int32
- func CMTimebaseCreateWithSourceClock(allocator corefoundation.CFAllocatorRef, sourceClock CMClockRef, ...) int32
- func CMTimebaseCreateWithSourceTimebase(allocator corefoundation.CFAllocatorRef, sourceTimebase CMTimebaseRef, ...) int32
- func CMTimebaseGetEffectiveRate(timebase CMTimebaseRef) float64
- func CMTimebaseGetRate(timebase CMTimebaseRef) float64
- func CMTimebaseGetTimeAndRate(timebase CMTimebaseRef, timeOut *CMTime, rateOut *float64) int32
- func CMTimebaseGetTypeID() uint
- func CMTimebaseNotificationBarrier(timebase CMTimebaseRef) int32
- func CMTimebaseRemoveTimer(timebase CMTimebaseRef, timer corefoundation.CFRunLoopTimerRef) int32
- func CMTimebaseRemoveTimerDispatchSource(timebase CMTimebaseRef, timerSource dispatch.Source) int32
- func CMTimebaseSetAnchorTime(timebase CMTimebaseRef, timebaseTime CMTime, immediateSourceTime CMTime) int32
- func CMTimebaseSetRate(timebase CMTimebaseRef, rate float64) int32
- func CMTimebaseSetRateAndAnchorTime(timebase CMTimebaseRef, rate float64, timebaseTime CMTime, ...) int32
- func CMTimebaseSetSourceClock(timebase CMTimebaseRef, newSourceClock CMClockRef) int32
- func CMTimebaseSetSourceTimebase(timebase CMTimebaseRef, newSourceTimebase CMTimebaseRef) int32
- func CMTimebaseSetTime(timebase CMTimebaseRef, time CMTime) int32
- func CMTimebaseSetTimerDispatchSourceNextFireTime(timebase CMTimebaseRef, timerSource dispatch.Source, fireTime CMTime, ...) int32
- func CMTimebaseSetTimerDispatchSourceToFireImmediately(timebase CMTimebaseRef, timerSource dispatch.Source) int32
- func CMTimebaseSetTimerNextFireTime(timebase CMTimebaseRef, timer corefoundation.CFRunLoopTimerRef, ...) int32
- func CMTimebaseSetTimerToFireImmediately(timebase CMTimebaseRef, timer corefoundation.CFRunLoopTimerRef) int32
- func CMVideoFormatDescriptionCopyAsBigEndianImageDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, ...) int32
- func CMVideoFormatDescriptionCopyTagCollectionArray(formatDescription CMVideoFormatDescriptionRef, ...) int32
- func CMVideoFormatDescriptionCreate(allocator corefoundation.CFAllocatorRef, codecType CMVideoCodecType, ...) int32
- func CMVideoFormatDescriptionCreateForImageBuffer(allocator corefoundation.CFAllocatorRef, ...) int32
- func CMVideoFormatDescriptionCreateFromBigEndianImageDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, ...) int32
- func CMVideoFormatDescriptionCreateFromBigEndianImageDescriptionData(allocator corefoundation.CFAllocatorRef, imageDescriptionData []byte, ...) int32
- func CMVideoFormatDescriptionCreateFromH264ParameterSets(allocator corefoundation.CFAllocatorRef, parameterSetCount uintptr, ...) int32
- func CMVideoFormatDescriptionCreateFromHEVCParameterSets(allocator corefoundation.CFAllocatorRef, parameterSetCount uintptr, ...) int32
- func CMVideoFormatDescriptionGetCleanAperture(videoDesc CMVideoFormatDescriptionRef, originIsAtTopLeft bool) corefoundation.CGRect
- func CMVideoFormatDescriptionGetExtensionKeysCommonWithImageBuffers() corefoundation.CFArrayRef
- func CMVideoFormatDescriptionGetH264ParameterSetAtIndex(videoDesc CMFormatDescriptionRef, parameterSetIndex uintptr, ...) int32
- func CMVideoFormatDescriptionGetHEVCParameterSetAtIndex(videoDesc CMFormatDescriptionRef, parameterSetIndex uintptr, ...) int32
- func CMVideoFormatDescriptionGetPresentationDimensions(videoDesc CMVideoFormatDescriptionRef, usePixelAspectRatio bool, ...) corefoundation.CGSize
- func CMVideoFormatDescriptionMatchesImageBuffer(desc CMVideoFormatDescriptionRef, imageBuffer corevideo.CVImageBufferRef) bool
- func NewCMBufferGetBooleanHandlerBlock(handler CMBufferGetBooleanHandler) (objc.ID, func())
- func NewCMBufferGetSizeHandlerBlock(handler CMBufferGetSizeHandler) (objc.ID, func())
- func NewCMBufferQueueTriggerHandlerBlock(handler CMBufferQueueTriggerHandler) (objc.ID, func())
- func NewCMSampleBufferInvalidateHandlerBlock(handler CMSampleBufferInvalidateHandler) (objc.ID, func())
- func NewCMSampleBufferMakeDataReadyHandlerBlock(handler CMSampleBufferMakeDataReadyHandler) (objc.ID, func())
- func SymbolAddress(name string) (uintptr, error)
- func TryCMAudioDeviceClockCreate(allocator corefoundation.CFAllocatorRef, deviceUID corefoundation.CFStringRef, ...) (int32, error)
- func TryCMAudioDeviceClockCreateFromAudioDeviceID(allocator corefoundation.CFAllocatorRef, deviceID uint32, clockOut *CMClockRef) (int32, error)
- func TryCMAudioDeviceClockGetAudioDevice(clock CMClockRef, deviceUIDOut *corefoundation.CFStringRef, ...) (int32, error)
- func TryCMAudioDeviceClockSetAudioDeviceID(clock CMClockRef, deviceID uint32) (int32, error)
- func TryCMAudioDeviceClockSetAudioDeviceUID(clock CMClockRef, deviceUID corefoundation.CFStringRef) (int32, error)
- func TryCMAudioFormatDescriptionCopyAsBigEndianSoundDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMAudioFormatDescriptionCreate(allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionData(allocator corefoundation.CFAllocatorRef, soundDescriptionData []byte, ...) (int32, error)
- func TryCMAudioFormatDescriptionCreateSummary(allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMAudioFormatDescriptionEqual(formatDescription CMAudioFormatDescriptionRef, ...) (bool, error)
- func TryCMAudioFormatDescriptionGetChannelLayout(desc CMAudioFormatDescriptionRef, sizeOut *uintptr) (*coreaudiotypes.AudioChannelLayout, error)
- func TryCMAudioFormatDescriptionGetFormatList(desc CMAudioFormatDescriptionRef, sizeOut *uintptr) (*audiotoolbox.AudioFormatListItem, error)
- func TryCMAudioFormatDescriptionGetMagicCookie(desc CMAudioFormatDescriptionRef, sizeOut *uintptr) (unsafe.Pointer, error)
- func TryCMAudioFormatDescriptionGetMostCompatibleFormat(desc CMAudioFormatDescriptionRef) (*audiotoolbox.AudioFormatListItem, error)
- func TryCMAudioFormatDescriptionGetRichestDecodableFormat(desc CMAudioFormatDescriptionRef) (*audiotoolbox.AudioFormatListItem, error)
- func TryCMAudioFormatDescriptionGetStreamBasicDescription(desc CMAudioFormatDescriptionRef) (*coreaudiotypes.AudioStreamBasicDescription, error)
- func TryCMAudioSampleBufferCreateReadyWithPacketDescriptions(allocator corefoundation.CFAllocatorRef, dataBuffer CMBlockBufferRef, ...) (int32, error)
- func TryCMAudioSampleBufferCreateWithPacketDescriptions(allocator corefoundation.CFAllocatorRef, dataBuffer CMBlockBufferRef, ...) (int32, error)
- func TryCMAudioSampleBufferCreateWithPacketDescriptionsAndMakeDataReadyHandler(allocator corefoundation.CFAllocatorRef, dataBuffer CMBlockBufferRef, ...) (int32, error)
- func TryCMBlockBufferAccessDataBytes(theBuffer CMBlockBufferRef, offset uintptr, length uintptr, ...) (int32, error)
- func TryCMBlockBufferAppendBufferReference(theBuffer CMBlockBufferRef, targetBBuf CMBlockBufferRef, offsetToData uintptr, ...) (int32, error)
- func TryCMBlockBufferAppendMemoryBlock(theBuffer CMBlockBufferRef, memoryBlock unsafe.Pointer, blockLength uintptr, ...) (int32, error)
- func TryCMBlockBufferAssureBlockMemory(theBuffer CMBlockBufferRef) (int32, error)
- func TryCMBlockBufferCopyDataBytes(theSourceBuffer CMBlockBufferRef, offsetToData uintptr, dataLength uintptr, ...) (int32, error)
- func TryCMBlockBufferCreateContiguous(structureAllocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMBlockBufferCreateEmpty(structureAllocator corefoundation.CFAllocatorRef, subBlockCapacity uint32, ...) (int32, error)
- func TryCMBlockBufferCreateWithBufferReference(structureAllocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMBlockBufferCreateWithMemoryBlock(structureAllocator corefoundation.CFAllocatorRef, memoryBlock unsafe.Pointer, ...) (int32, error)
- func TryCMBlockBufferFillDataBytes(fillByte int8, destinationBuffer CMBlockBufferRef, ...) (int32, error)
- func TryCMBlockBufferGetDataLength(theBuffer CMBlockBufferRef) (uintptr, error)
- func TryCMBlockBufferGetDataPointer(theBuffer CMBlockBufferRef, offset uintptr, lengthAtOffsetOut *uintptr, ...) (int32, error)
- func TryCMBlockBufferGetTypeID() (uint, error)
- func TryCMBlockBufferIsEmpty(theBuffer CMBlockBufferRef) (bool, error)
- func TryCMBlockBufferIsRangeContiguous(theBuffer CMBlockBufferRef, offset uintptr, length uintptr) (bool, error)
- func TryCMBlockBufferReplaceDataBytes(sourceBytes unsafe.Pointer, destinationBuffer CMBlockBufferRef, ...) (int32, error)
- func TryCMBufferQueueCallForEachBuffer(queue CMBufferQueueRef, callback func(unsafe.Pointer, unsafe.Pointer) int32, ...) (int32, error)
- func TryCMBufferQueueContainsEndOfData(queue CMBufferQueueRef) (bool, error)
- func TryCMBufferQueueCreate(allocator corefoundation.CFAllocatorRef, capacity CMItemCount, ...) (int32, error)
- func TryCMBufferQueueCreateWithHandlers(allocator corefoundation.CFAllocatorRef, capacity CMItemCount, ...) (int32, error)
- func TryCMBufferQueueEnqueue(queue CMBufferQueueRef, buf CMBufferRef) (int32, error)
- func TryCMBufferQueueGetTotalSize(queue CMBufferQueueRef) (uintptr, error)
- func TryCMBufferQueueGetTypeID() (uint, error)
- func TryCMBufferQueueInstallTrigger(queue CMBufferQueueRef, callback CMBufferQueueTriggerCallback, refcon uintptr, ...) (int32, error)
- func TryCMBufferQueueInstallTriggerHandler(queue CMBufferQueueRef, condition CMBufferQueueTriggerCondition, time CMTime, ...) (int32, error)
- func TryCMBufferQueueInstallTriggerHandlerWithIntegerThreshold(queue CMBufferQueueRef, condition CMBufferQueueTriggerCondition, ...) (int32, error)
- func TryCMBufferQueueInstallTriggerWithIntegerThreshold(queue CMBufferQueueRef, callback CMBufferQueueTriggerCallback, refcon uintptr, ...) (int32, error)
- func TryCMBufferQueueIsAtEndOfData(queue CMBufferQueueRef) (bool, error)
- func TryCMBufferQueueIsEmpty(queue CMBufferQueueRef) (bool, error)
- func TryCMBufferQueueMarkEndOfData(queue CMBufferQueueRef) (int32, error)
- func TryCMBufferQueueRemoveTrigger(queue CMBufferQueueRef, triggerToken CMBufferQueueTriggerToken) (int32, error)
- func TryCMBufferQueueReset(queue CMBufferQueueRef) (int32, error)
- func TryCMBufferQueueResetWithCallback(queue CMBufferQueueRef, callback func(unsafe.Pointer, unsafe.Pointer), ...) (int32, error)
- func TryCMBufferQueueSetValidationCallback(queue CMBufferQueueRef, callback CMBufferValidationCallback, refcon uintptr) (int32, error)
- func TryCMBufferQueueSetValidationHandler(queue CMBufferQueueRef, handler CMBufferValidationHandler) (int32, error)
- func TryCMBufferQueueTestTrigger(queue CMBufferQueueRef, triggerToken CMBufferQueueTriggerToken) (bool, error)
- func TryCMClockConvertHostTimeToSystemUnits(hostTime CMTime) (uint64, error)
- func TryCMClockGetAnchorTime(clock CMClockRef, clockTimeOut *CMTime, referenceClockTimeOut *CMTime) (int32, error)
- func TryCMClockGetTypeID() (uint, error)
- func TryCMClockInvalidate(clock CMClockRef) error
- func TryCMClockMightDrift(clock CMClockRef, otherClock CMClockRef) (bool, error)
- func TryCMClosedCaptionFormatDescriptionCopyAsBigEndianClosedCaptionDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionData(allocator corefoundation.CFAllocatorRef, closedCaptionDescriptionData []byte, ...) (int32, error)
- func TryCMCopyDictionaryOfAttachments(allocator corefoundation.CFAllocatorRef, target CMAttachmentBearerRef, ...) (corefoundation.CFDictionaryRef, error)
- func TryCMDoesBigEndianSoundDescriptionRequireLegacyCBRSampleTableLayout(soundDescriptionBlockBuffer CMBlockBufferRef, flavor CMSoundDescriptionFlavor) (bool, error)
- func TryCMFormatDescriptionCreate(allocator corefoundation.CFAllocatorRef, mediaType CMMediaType, ...) (int32, error)
- func TryCMFormatDescriptionEqual(formatDescription CMFormatDescriptionRef, ...) (bool, error)
- func TryCMFormatDescriptionEqualIgnoringExtensionKeys(formatDescription CMFormatDescriptionRef, ...) (bool, error)
- func TryCMFormatDescriptionGetExtension(desc CMFormatDescriptionRef, extensionKey corefoundation.CFStringRef) (corefoundation.CFPropertyListRef, error)
- func TryCMFormatDescriptionGetExtensions(desc CMFormatDescriptionRef) (corefoundation.CFDictionaryRef, error)
- func TryCMFormatDescriptionGetMediaSubType(desc CMFormatDescriptionRef) (uint32, error)
- func TryCMFormatDescriptionGetTypeID() (uint, error)
- func TryCMGetAttachment(target CMAttachmentBearerRef, key corefoundation.CFStringRef, ...) (corefoundation.CFTypeRef, error)
- func TryCMMemoryPoolFlush(pool CMMemoryPoolRef) error
- func TryCMMemoryPoolGetAllocator(pool CMMemoryPoolRef) (corefoundation.CFAllocatorRef, error)
- func TryCMMemoryPoolGetTypeID() (uint, error)
- func TryCMMemoryPoolInvalidate(pool CMMemoryPoolRef) error
- func TryCMMetadataCreateIdentifierForKeyAndKeySpace(allocator corefoundation.CFAllocatorRef, key corefoundation.CFTypeRef, ...) (int32, error)
- func TryCMMetadataCreateKeyFromIdentifier(allocator corefoundation.CFAllocatorRef, identifier corefoundation.CFStringRef, ...) (int32, error)
- func TryCMMetadataCreateKeyFromIdentifierAsCFData(allocator corefoundation.CFAllocatorRef, identifier corefoundation.CFStringRef, ...) (int32, error)
- func TryCMMetadataCreateKeySpaceFromIdentifier(allocator corefoundation.CFAllocatorRef, identifier corefoundation.CFStringRef, ...) (int32, error)
- func TryCMMetadataDataTypeRegistryDataTypeConformsToDataType(dataType corefoundation.CFStringRef, ...) (bool, error)
- func TryCMMetadataDataTypeRegistryDataTypeIsBaseDataType(dataType corefoundation.CFStringRef) (bool, error)
- func TryCMMetadataDataTypeRegistryDataTypeIsRegistered(dataType corefoundation.CFStringRef) (bool, error)
- func TryCMMetadataDataTypeRegistryGetBaseDataTypeForConformingDataType(dataType corefoundation.CFStringRef) (corefoundation.CFStringRef, error)
- func TryCMMetadataDataTypeRegistryGetBaseDataTypes() (corefoundation.CFArrayRef, error)
- func TryCMMetadataDataTypeRegistryGetConformingDataTypes(dataType corefoundation.CFStringRef) (corefoundation.CFArrayRef, error)
- func TryCMMetadataDataTypeRegistryGetDataTypeDescription(dataType corefoundation.CFStringRef) (corefoundation.CFStringRef, error)
- func TryCMMetadataDataTypeRegistryRegisterDataType(dataType corefoundation.CFStringRef, description corefoundation.CFStringRef, ...) (int32, error)
- func TryCMMetadataFormatDescriptionCopyAsBigEndianMetadataDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMMetadataFormatDescriptionCreateByMergingMetadataFormatDescriptions(allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionData(allocator corefoundation.CFAllocatorRef, metadataDescriptionData []byte, ...) (int32, error)
- func TryCMMetadataFormatDescriptionCreateWithKeys(allocator corefoundation.CFAllocatorRef, metadataType CMMetadataFormatType, ...) (int32, error)
- func TryCMMetadataFormatDescriptionCreateWithMetadataFormatDescriptionAndMetadataSpecifications(allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMMetadataFormatDescriptionCreateWithMetadataSpecifications(allocator corefoundation.CFAllocatorRef, metadataType CMMetadataFormatType, ...) (int32, error)
- func TryCMMetadataFormatDescriptionGetIdentifiers(desc CMMetadataFormatDescriptionRef) (corefoundation.CFArrayRef, error)
- func TryCMMetadataFormatDescriptionGetKeyWithLocalID(desc CMMetadataFormatDescriptionRef, localKeyID uint32) (corefoundation.CFDictionaryRef, error)
- func TryCMMuxedFormatDescriptionCreate(allocator corefoundation.CFAllocatorRef, muxType CMMuxedStreamType, ...) (int32, error)
- func TryCMPropagateAttachments(source CMAttachmentBearerRef, destination CMAttachmentBearerRef) error
- func TryCMRemoveAllAttachments(target CMAttachmentBearerRef) error
- func TryCMRemoveAttachment(target CMAttachmentBearerRef, key corefoundation.CFStringRef) error
- func TryCMSampleBufferCallBlockForEachSample(sbuf CMSampleBufferRef, handler func(uintptr, int) int32) (int32, error)
- func TryCMSampleBufferCallForEachSample(sbuf CMSampleBufferRef, ...) (int32, error)
- func TryCMSampleBufferCopyPCMDataIntoAudioBufferList(sbuf CMSampleBufferRef, frameOffset int32, numFrames int32, ...) (int32, error)
- func TryCMSampleBufferCopySampleBufferForRange(allocator corefoundation.CFAllocatorRef, sbuf CMSampleBufferRef, ...) (int32, error)
- func TryCMSampleBufferCreate(allocator corefoundation.CFAllocatorRef, dataBuffer CMBlockBufferRef, ...) (int32, error)
- func TryCMSampleBufferCreateCopy(allocator corefoundation.CFAllocatorRef, sbuf CMSampleBufferRef, ...) (int32, error)
- func TryCMSampleBufferCreateCopyWithNewTiming(allocator corefoundation.CFAllocatorRef, originalSBuf CMSampleBufferRef, ...) (int32, error)
- func TryCMSampleBufferCreateForImageBuffer(allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMSampleBufferCreateForImageBufferWithMakeDataReadyHandler(allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMSampleBufferCreateForTaggedBufferGroup(allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMSampleBufferCreateReady(allocator corefoundation.CFAllocatorRef, dataBuffer CMBlockBufferRef, ...) (int32, error)
- func TryCMSampleBufferCreateReadyWithImageBuffer(allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMSampleBufferCreateWithMakeDataReadyHandler(allocator corefoundation.CFAllocatorRef, dataBuffer CMBlockBufferRef, ...) (int32, error)
- func TryCMSampleBufferDataIsReady(sbuf CMSampleBufferRef) (bool, error)
- func TryCMSampleBufferGetAudioBufferListWithRetainedBlockBuffer(sbuf CMSampleBufferRef, bufferListSizeNeededOut *uintptr, ...) (int32, error)
- func TryCMSampleBufferGetAudioStreamPacketDescriptions(sbuf CMSampleBufferRef, packetDescriptionsSize uintptr, ...) (int32, error)
- func TryCMSampleBufferGetAudioStreamPacketDescriptionsPtr(sbuf CMSampleBufferRef, packetDescriptionsPointerOut *objc.ID, ...) (int32, error)
- func TryCMSampleBufferGetImageBuffer(sbuf CMSampleBufferRef) (corevideo.CVImageBufferRef, error)
- func TryCMSampleBufferGetOutputSampleTimingInfoArray(sbuf CMSampleBufferRef, timingArrayEntries CMItemCount, ...) (int32, error)
- func TryCMSampleBufferGetSampleAttachmentsArray(sbuf CMSampleBufferRef, createIfNecessary bool) (corefoundation.CFArrayRef, error)
- func TryCMSampleBufferGetSampleSize(sbuf CMSampleBufferRef, sampleIndex CMItemIndex) (uintptr, error)
- func TryCMSampleBufferGetSampleSizeArray(sbuf CMSampleBufferRef, sizeArrayEntries CMItemCount, sizeArrayOut *uintptr, ...) (int32, error)
- func TryCMSampleBufferGetSampleTimingInfo(sbuf CMSampleBufferRef, sampleIndex CMItemIndex, ...) (int32, error)
- func TryCMSampleBufferGetSampleTimingInfoArray(sbuf CMSampleBufferRef, numSampleTimingEntries CMItemCount, ...) (int32, error)
- func TryCMSampleBufferGetTotalSampleSize(sbuf CMSampleBufferRef) (uintptr, error)
- func TryCMSampleBufferGetTypeID() (uint, error)
- func TryCMSampleBufferHasDataFailed(sbuf CMSampleBufferRef, statusOut *int32) (bool, error)
- func TryCMSampleBufferInvalidate(sbuf CMSampleBufferRef) (int32, error)
- func TryCMSampleBufferIsValid(sbuf CMSampleBufferRef) (bool, error)
- func TryCMSampleBufferMakeDataReady(sbuf CMSampleBufferRef) (int32, error)
- func TryCMSampleBufferSetDataBuffer(sbuf CMSampleBufferRef, dataBuffer CMBlockBufferRef) (int32, error)
- func TryCMSampleBufferSetDataBufferFromAudioBufferList(sbuf CMSampleBufferRef, ...) (int32, error)
- func TryCMSampleBufferSetDataFailed(sbuf CMSampleBufferRef, status int32) (int32, error)
- func TryCMSampleBufferSetDataReady(sbuf CMSampleBufferRef) (int32, error)
- func TryCMSampleBufferSetInvalidateCallback(sbuf CMSampleBufferRef, invalidateCallback CMSampleBufferInvalidateCallback, ...) (int32, error)
- func TryCMSampleBufferSetInvalidateHandler(sbuf CMSampleBufferRef, invalidateHandler CMSampleBufferInvalidateHandler) (int32, error)
- func TryCMSampleBufferSetOutputPresentationTimeStamp(sbuf CMSampleBufferRef, outputPresentationTimeStamp CMTime) (int32, error)
- func TryCMSampleBufferTrackDataReadiness(sbuf CMSampleBufferRef, sampleBufferToTrack CMSampleBufferRef) (int32, error)
- func TryCMSetAttachment(target CMAttachmentBearerRef, key corefoundation.CFStringRef, ...) error
- func TryCMSetAttachments(target CMAttachmentBearerRef, theAttachments corefoundation.CFDictionaryRef, ...) error
- func TryCMSimpleQueueCreate(allocator corefoundation.CFAllocatorRef, capacity int32, ...) (int32, error)
- func TryCMSimpleQueueDequeue(queue CMSimpleQueueRef) (unsafe.Pointer, error)
- func TryCMSimpleQueueEnqueue(queue CMSimpleQueueRef, element unsafe.Pointer) (int32, error)
- func TryCMSimpleQueueGetCapacity(queue CMSimpleQueueRef) (int32, error)
- func TryCMSimpleQueueGetCount(queue CMSimpleQueueRef) (int32, error)
- func TryCMSimpleQueueGetHead(queue CMSimpleQueueRef) (unsafe.Pointer, error)
- func TryCMSimpleQueueGetTypeID() (uint, error)
- func TryCMSimpleQueueReset(queue CMSimpleQueueRef) (int32, error)
- func TryCMSwapBigEndianClosedCaptionDescriptionToHost(closedCaptionDescriptionData []byte, closedCaptionDescriptionSize uintptr) (int32, error)
- func TryCMSwapBigEndianImageDescriptionToHost(imageDescriptionData []byte, imageDescriptionSize uintptr) (int32, error)
- func TryCMSwapBigEndianMetadataDescriptionToHost(metadataDescriptionData []byte, metadataDescriptionSize uintptr) (int32, error)
- func TryCMSwapBigEndianSoundDescriptionToHost(soundDescriptionData []byte, soundDescriptionSize uintptr) (int32, error)
- func TryCMSwapBigEndianTextDescriptionToHost(textDescriptionData []byte, textDescriptionSize uintptr) (int32, error)
- func TryCMSwapBigEndianTimeCodeDescriptionToHost(timeCodeDescriptionData []byte, timeCodeDescriptionSize uintptr) (int32, error)
- func TryCMSwapHostEndianClosedCaptionDescriptionToBig(closedCaptionDescriptionData []byte, closedCaptionDescriptionSize uintptr) (int32, error)
- func TryCMSwapHostEndianImageDescriptionToBig(imageDescriptionData []byte, imageDescriptionSize uintptr) (int32, error)
- func TryCMSwapHostEndianMetadataDescriptionToBig(metadataDescriptionData []byte, metadataDescriptionSize uintptr) (int32, error)
- func TryCMSwapHostEndianSoundDescriptionToBig(soundDescriptionData []byte, soundDescriptionSize uintptr) (int32, error)
- func TryCMSwapHostEndianTextDescriptionToBig(textDescriptionData []byte, textDescriptionSize uintptr) (int32, error)
- func TryCMSwapHostEndianTimeCodeDescriptionToBig(timeCodeDescriptionData []byte, timeCodeDescriptionSize uintptr) (int32, error)
- func TryCMSyncGetRelativeRate(ofClockOrTimebase CMClockOrTimebaseRef, ...) (float64, error)
- func TryCMSyncGetRelativeRateAndAnchorTime(ofClockOrTimebase CMClockOrTimebaseRef, ...) (int32, error)
- func TryCMSyncMightDrift(clockOrTimebase1 CMClockOrTimebaseRef, clockOrTimebase2 CMClockOrTimebaseRef) (bool, error)
- func TryCMTagCollectionAddTag(tagCollection CMMutableTagCollectionRef, tagToAdd CMTag) (int32, error)
- func TryCMTagCollectionAddTagsFromArray(tagCollection CMMutableTagCollectionRef, tags *CMTag, tagCount CMItemCount) (int32, error)
- func TryCMTagCollectionAddTagsFromCollection(tagCollection CMMutableTagCollectionRef, ...) (int32, error)
- func TryCMTagCollectionApply(tagCollection CMTagCollectionRef, applier CMTagCollectionApplierFunction, ...) error
- func TryCMTagCollectionContainsCategory(tagCollection CMTagCollectionRef, category CMTagCategory) (bool, error)
- func TryCMTagCollectionContainsSpecifiedTags(tagCollection CMTagCollectionRef, containedTags *CMTag, ...) (bool, error)
- func TryCMTagCollectionContainsTag(tagCollection CMTagCollectionRef, tag CMTag) (bool, error)
- func TryCMTagCollectionContainsTagsOfCollection(tagCollection CMTagCollectionRef, containedTagCollection CMTagCollectionRef) (bool, error)
- func TryCMTagCollectionCopyAsData(tagCollection CMTagCollectionRef, allocator corefoundation.CFAllocatorRef) (corefoundation.CFDataRef, error)
- func TryCMTagCollectionCopyAsDictionary(tagCollection CMTagCollectionRef, allocator corefoundation.CFAllocatorRef) (corefoundation.CFDictionaryRef, error)
- func TryCMTagCollectionCopyDescription(allocator corefoundation.CFAllocatorRef, tagCollection CMTagCollectionRef) (corefoundation.CFStringRef, error)
- func TryCMTagCollectionCopyTagsOfCategories(allocator corefoundation.CFAllocatorRef, tagCollection CMTagCollectionRef, ...) (int32, error)
- func TryCMTagCollectionCreate(allocator corefoundation.CFAllocatorRef, tags *CMTag, tagCount CMItemCount, ...) (int32, error)
- func TryCMTagCollectionCreateCopy(tagCollection CMTagCollectionRef, allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMTagCollectionCreateDifference(tagCollectionMinuend CMTagCollectionRef, ...) (int32, error)
- func TryCMTagCollectionCreateExclusiveOr(tagCollection1 CMTagCollectionRef, tagCollection2 CMTagCollectionRef, ...) (int32, error)
- func TryCMTagCollectionCreateFromData(data corefoundation.CFDataRef, allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMTagCollectionCreateFromDictionary(dict corefoundation.CFDictionaryRef, allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMTagCollectionCreateIntersection(tagCollection1 CMTagCollectionRef, tagCollection2 CMTagCollectionRef, ...) (int32, error)
- func TryCMTagCollectionCreateMutable(allocator corefoundation.CFAllocatorRef, capacity int, ...) (int32, error)
- func TryCMTagCollectionCreateMutableCopy(tagCollection CMTagCollectionRef, allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMTagCollectionCreateUnion(tagCollection1 CMTagCollectionRef, tagCollection2 CMTagCollectionRef, ...) (int32, error)
- func TryCMTagCollectionGetTags(tagCollection CMTagCollectionRef, tagBuffer *CMTag, tagBufferCount CMItemCount, ...) (int32, error)
- func TryCMTagCollectionGetTagsWithCategory(tagCollection CMTagCollectionRef, category CMTagCategory, tagBuffer *CMTag, ...) (int32, error)
- func TryCMTagCollectionGetTagsWithFilterFunction(tagCollection CMTagCollectionRef, tagBuffer *CMTag, tagBufferCount CMItemCount, ...) (int32, error)
- func TryCMTagCollectionGetTypeID() (uint, error)
- func TryCMTagCollectionIsEmpty(tagCollection CMTagCollectionRef) (bool, error)
- func TryCMTagCollectionRemoveAllTags(tagCollection CMMutableTagCollectionRef) (int32, error)
- func TryCMTagCollectionRemoveAllTagsOfCategory(tagCollection CMMutableTagCollectionRef, category CMTagCategory) (int32, error)
- func TryCMTagCollectionRemoveTag(tagCollection CMMutableTagCollectionRef, tagToRemove CMTag) (int32, error)
- func TryCMTagCompare(tag1 CMTag, tag2 CMTag) (corefoundation.CFComparisonResult, error)
- func TryCMTagCopyAsDictionary(tag CMTag, allocator corefoundation.CFAllocatorRef) (corefoundation.CFDictionaryRef, error)
- func TryCMTagCopyDescription(allocator corefoundation.CFAllocatorRef, tag CMTag) (corefoundation.CFStringRef, error)
- func TryCMTagEqualToTag(tag1 CMTag, tag2 CMTag) (bool, error)
- func TryCMTagGetFlagsValue(tag CMTag) (uint64, error)
- func TryCMTagGetFloat64Value(tag CMTag) (float64, error)
- func TryCMTagGetOSTypeValue(tag CMTag) (uint32, error)
- func TryCMTagGetSInt64Value(tag CMTag) (int64, error)
- func TryCMTagHasFlagsValue(tag CMTag) (bool, error)
- func TryCMTagHasFloat64Value(tag CMTag) (bool, error)
- func TryCMTagHasOSTypeValue(tag CMTag) (bool, error)
- func TryCMTagHasSInt64Value(tag CMTag) (bool, error)
- func TryCMTagHash(tag CMTag) (uint, error)
- func TryCMTaggedBufferGroupCreate(allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMTaggedBufferGroupCreateCombined(allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroup(allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroupWithExtensions(allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMTaggedBufferGroupFormatDescriptionMatchesTaggedBufferGroup(desc CMTaggedBufferGroupFormatDescriptionRef, ...) (bool, error)
- func TryCMTaggedBufferGroupGetCVPixelBufferAtIndex(group CMTaggedBufferGroupRef, index int) (corevideo.CVPixelBufferRef, error)
- func TryCMTaggedBufferGroupGetCVPixelBufferForTag(group CMTaggedBufferGroupRef, tag CMTag, indexOut *int) (corevideo.CVPixelBufferRef, error)
- func TryCMTaggedBufferGroupGetCVPixelBufferForTagCollection(group CMTaggedBufferGroupRef, tagCollection CMTagCollectionRef, indexOut *int) (corevideo.CVPixelBufferRef, error)
- func TryCMTaggedBufferGroupGetTypeID() (uint, error)
- func TryCMTextFormatDescriptionCopyAsBigEndianTextDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMTextFormatDescriptionCreateFromBigEndianTextDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMTextFormatDescriptionCreateFromBigEndianTextDescriptionData(allocator corefoundation.CFAllocatorRef, textDescriptionData []byte, ...) (int32, error)
- func TryCMTextFormatDescriptionGetDefaultStyle(desc CMFormatDescriptionRef, localFontIDOut *uint16, boldOut *bool, ...) (int32, error)
- func TryCMTextFormatDescriptionGetDefaultTextBox(desc CMFormatDescriptionRef, originIsAtTopLeft bool, heightOfTextTrack float64, ...) (int32, error)
- func TryCMTextFormatDescriptionGetDisplayFlags(desc CMFormatDescriptionRef, displayFlagsOut *CMTextDisplayFlags) (int32, error)
- func TryCMTextFormatDescriptionGetFontName(desc CMFormatDescriptionRef, localFontID uint16, ...) (int32, error)
- func TryCMTextFormatDescriptionGetJustification(desc CMFormatDescriptionRef, ...) (int32, error)
- func TryCMTimeCodeFormatDescriptionCopyAsBigEndianTimeCodeDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMTimeCodeFormatDescriptionCreate(allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionData(allocator corefoundation.CFAllocatorRef, timeCodeDescriptionData []byte, ...) (int32, error)
- func TryCMTimeCodeFormatDescriptionGetFrameQuanta(timeCodeFormatDescription CMTimeCodeFormatDescriptionRef) (uint32, error)
- func TryCMTimeCodeFormatDescriptionGetTimeCodeFlags(desc CMTimeCodeFormatDescriptionRef) (uint32, error)
- func TryCMTimeCompare(time1 CMTime, time2 CMTime) (int32, error)
- func TryCMTimeCopyAsDictionary(time CMTime, allocator corefoundation.CFAllocatorRef) (corefoundation.CFDictionaryRef, error)
- func TryCMTimeCopyDescription(allocator corefoundation.CFAllocatorRef, time CMTime) (corefoundation.CFStringRef, error)
- func TryCMTimeGetSeconds(time CMTime) (float64, error)
- func TryCMTimeMappingCopyAsDictionary(mapping CMTimeMapping, allocator corefoundation.CFAllocatorRef) (corefoundation.CFDictionaryRef, error)
- func TryCMTimeMappingCopyDescription(allocator corefoundation.CFAllocatorRef, mapping CMTimeMapping) (corefoundation.CFStringRef, error)
- func TryCMTimeMappingShow(mapping CMTimeMapping) error
- func TryCMTimeRangeContainsTime(range_ CMTimeRange, time CMTime) (bool, error)
- func TryCMTimeRangeContainsTimeRange(range_ CMTimeRange, otherRange CMTimeRange) (bool, error)
- func TryCMTimeRangeCopyAsDictionary(range_ CMTimeRange, allocator corefoundation.CFAllocatorRef) (corefoundation.CFDictionaryRef, error)
- func TryCMTimeRangeCopyDescription(allocator corefoundation.CFAllocatorRef, range_ CMTimeRange) (corefoundation.CFStringRef, error)
- func TryCMTimeRangeEqual(range1 CMTimeRange, range2 CMTimeRange) (bool, error)
- func TryCMTimeRangeShow(range_ CMTimeRange) error
- func TryCMTimeShow(time CMTime) error
- func TryCMTimebaseAddTimer(timebase CMTimebaseRef, timer corefoundation.CFRunLoopTimerRef, ...) (int32, error)
- func TryCMTimebaseAddTimerDispatchSource(timebase CMTimebaseRef, timerSource dispatch.Source) (int32, error)
- func TryCMTimebaseCreateWithSourceClock(allocator corefoundation.CFAllocatorRef, sourceClock CMClockRef, ...) (int32, error)
- func TryCMTimebaseCreateWithSourceTimebase(allocator corefoundation.CFAllocatorRef, sourceTimebase CMTimebaseRef, ...) (int32, error)
- func TryCMTimebaseGetEffectiveRate(timebase CMTimebaseRef) (float64, error)
- func TryCMTimebaseGetRate(timebase CMTimebaseRef) (float64, error)
- func TryCMTimebaseGetTimeAndRate(timebase CMTimebaseRef, timeOut *CMTime, rateOut *float64) (int32, error)
- func TryCMTimebaseGetTypeID() (uint, error)
- func TryCMTimebaseNotificationBarrier(timebase CMTimebaseRef) (int32, error)
- func TryCMTimebaseRemoveTimer(timebase CMTimebaseRef, timer corefoundation.CFRunLoopTimerRef) (int32, error)
- func TryCMTimebaseRemoveTimerDispatchSource(timebase CMTimebaseRef, timerSource dispatch.Source) (int32, error)
- func TryCMTimebaseSetAnchorTime(timebase CMTimebaseRef, timebaseTime CMTime, immediateSourceTime CMTime) (int32, error)
- func TryCMTimebaseSetRate(timebase CMTimebaseRef, rate float64) (int32, error)
- func TryCMTimebaseSetRateAndAnchorTime(timebase CMTimebaseRef, rate float64, timebaseTime CMTime, ...) (int32, error)
- func TryCMTimebaseSetSourceClock(timebase CMTimebaseRef, newSourceClock CMClockRef) (int32, error)
- func TryCMTimebaseSetSourceTimebase(timebase CMTimebaseRef, newSourceTimebase CMTimebaseRef) (int32, error)
- func TryCMTimebaseSetTime(timebase CMTimebaseRef, time CMTime) (int32, error)
- func TryCMTimebaseSetTimerDispatchSourceNextFireTime(timebase CMTimebaseRef, timerSource dispatch.Source, fireTime CMTime, ...) (int32, error)
- func TryCMTimebaseSetTimerDispatchSourceToFireImmediately(timebase CMTimebaseRef, timerSource dispatch.Source) (int32, error)
- func TryCMTimebaseSetTimerNextFireTime(timebase CMTimebaseRef, timer corefoundation.CFRunLoopTimerRef, ...) (int32, error)
- func TryCMTimebaseSetTimerToFireImmediately(timebase CMTimebaseRef, timer corefoundation.CFRunLoopTimerRef) (int32, error)
- func TryCMVideoFormatDescriptionCopyAsBigEndianImageDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMVideoFormatDescriptionCopyTagCollectionArray(formatDescription CMVideoFormatDescriptionRef, ...) (int32, error)
- func TryCMVideoFormatDescriptionCreate(allocator corefoundation.CFAllocatorRef, codecType CMVideoCodecType, ...) (int32, error)
- func TryCMVideoFormatDescriptionCreateForImageBuffer(allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMVideoFormatDescriptionCreateFromBigEndianImageDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, ...) (int32, error)
- func TryCMVideoFormatDescriptionCreateFromBigEndianImageDescriptionData(allocator corefoundation.CFAllocatorRef, imageDescriptionData []byte, ...) (int32, error)
- func TryCMVideoFormatDescriptionCreateFromH264ParameterSets(allocator corefoundation.CFAllocatorRef, parameterSetCount uintptr, ...) (int32, error)
- func TryCMVideoFormatDescriptionCreateFromHEVCParameterSets(allocator corefoundation.CFAllocatorRef, parameterSetCount uintptr, ...) (int32, error)
- func TryCMVideoFormatDescriptionGetCleanAperture(videoDesc CMVideoFormatDescriptionRef, originIsAtTopLeft bool) (corefoundation.CGRect, error)
- func TryCMVideoFormatDescriptionGetExtensionKeysCommonWithImageBuffers() (corefoundation.CFArrayRef, error)
- func TryCMVideoFormatDescriptionGetH264ParameterSetAtIndex(videoDesc CMFormatDescriptionRef, parameterSetIndex uintptr, ...) (int32, error)
- func TryCMVideoFormatDescriptionGetHEVCParameterSetAtIndex(videoDesc CMFormatDescriptionRef, parameterSetIndex uintptr, ...) (int32, error)
- func TryCMVideoFormatDescriptionGetPresentationDimensions(videoDesc CMVideoFormatDescriptionRef, usePixelAspectRatio bool, ...) (corefoundation.CGSize, error)
- func TryCMVideoFormatDescriptionMatchesImageBuffer(desc CMVideoFormatDescriptionRef, imageBuffer corevideo.CVImageBufferRef) (bool, error)
- type CMAttachmentBearerRef
- type CMAttachmentMode
- type CMAudioCodecType
- type CMAudioFormatDescriptionMask
- type CMAudioFormatDescriptionRef
- type CMBaseClassVersion
- type CMBlockBufferCustomBlockSource
- func (s *CMBlockBufferCustomBlockSource) AllocateBlock() uintptr
- func (s *CMBlockBufferCustomBlockSource) FreeBlock() uintptr
- func (s *CMBlockBufferCustomBlockSource) RefCon() uintptr
- func (s *CMBlockBufferCustomBlockSource) SetAllocateBlock(v uintptr)
- func (s *CMBlockBufferCustomBlockSource) SetFreeBlock(v uintptr)
- func (s *CMBlockBufferCustomBlockSource) SetRefCon(v uintptr)
- func (s *CMBlockBufferCustomBlockSource) SetVersion(v uint32)
- func (s *CMBlockBufferCustomBlockSource) Version() uint32
- type CMBlockBufferFlags
- type CMBlockBufferRef
- type CMBufferCallbacks
- func CMBufferQueueGetCallbacksForSampleBuffersSortedByOutputPTS() *CMBufferCallbacks
- func CMBufferQueueGetCallbacksForUnsortedSampleBuffers() *CMBufferCallbacks
- func TryCMBufferQueueGetCallbacksForSampleBuffersSortedByOutputPTS() (*CMBufferCallbacks, error)
- func TryCMBufferQueueGetCallbacksForUnsortedSampleBuffers() (*CMBufferCallbacks, error)
- func (s *CMBufferCallbacks) Compare() uintptr
- func (s *CMBufferCallbacks) DataBecameReadyNotification() corefoundation.CFStringRef
- func (s *CMBufferCallbacks) GetDecodeTimeStamp() uintptr
- func (s *CMBufferCallbacks) GetDuration() uintptr
- func (s *CMBufferCallbacks) GetPresentationTimeStamp() uintptr
- func (s *CMBufferCallbacks) GetSize() uintptr
- func (s *CMBufferCallbacks) IsDataReady() uintptr
- func (s *CMBufferCallbacks) Refcon() uintptr
- func (s *CMBufferCallbacks) SetCompare(v uintptr)
- func (s *CMBufferCallbacks) SetDataBecameReadyNotification(v corefoundation.CFStringRef)
- func (s *CMBufferCallbacks) SetGetDecodeTimeStamp(v uintptr)
- func (s *CMBufferCallbacks) SetGetDuration(v uintptr)
- func (s *CMBufferCallbacks) SetGetPresentationTimeStamp(v uintptr)
- func (s *CMBufferCallbacks) SetGetSize(v uintptr)
- func (s *CMBufferCallbacks) SetIsDataReady(v uintptr)
- func (s *CMBufferCallbacks) SetRefcon(v uintptr)
- func (s *CMBufferCallbacks) SetVersion(v uint32)
- func (s *CMBufferCallbacks) Version() uint32
- type CMBufferCompareCallback
- type CMBufferCompareHandler
- type CMBufferGetBooleanCallback
- type CMBufferGetBooleanHandler
- type CMBufferGetSizeCallback
- type CMBufferGetSizeHandler
- type CMBufferGetTimeCallback
- type CMBufferGetTimeHandler
- type CMBufferHandlers
- type CMBufferQueueRef
- type CMBufferQueueTriggerCallback
- type CMBufferQueueTriggerCondition
- type CMBufferQueueTriggerHandler
- type CMBufferQueueTriggerToken
- type CMBufferRef
- func CMBufferQueueCopyHead(queue CMBufferQueueRef) CMBufferRef
- func CMBufferQueueDequeueAndRetain(queue CMBufferQueueRef) CMBufferRef
- func CMBufferQueueDequeueIfDataReadyAndRetain(queue CMBufferQueueRef) CMBufferRef
- func CMBufferQueueGetHead(queue CMBufferQueueRef) CMBufferRefdeprecated
- func TryCMBufferQueueCopyHead(queue CMBufferQueueRef) (CMBufferRef, error)
- func TryCMBufferQueueDequeueAndRetain(queue CMBufferQueueRef) (CMBufferRef, error)
- func TryCMBufferQueueDequeueIfDataReadyAndRetain(queue CMBufferQueueRef) (CMBufferRef, error)
- func TryCMBufferQueueGetHead(queue CMBufferQueueRef) (CMBufferRef, error)
- type CMBufferValidationCallback
- type CMBufferValidationHandler
- type CMClockOrTimebaseRef
- func CMTimebaseCopySource(timebase CMTimebaseRef) CMClockOrTimebaseRef
- func CMTimebaseGetMaster(timebase CMTimebaseRef) CMClockOrTimebaseRefdeprecated
- func TryCMTimebaseCopySource(timebase CMTimebaseRef) (CMClockOrTimebaseRef, error)
- func TryCMTimebaseGetMaster(timebase CMTimebaseRef) (CMClockOrTimebaseRef, error)
- type CMClockRef
- func CMClockGetHostTimeClock() CMClockRef
- func CMTimebaseCopySourceClock(timebase CMTimebaseRef) CMClockRef
- func CMTimebaseCopyUltimateSourceClock(timebase CMTimebaseRef) CMClockRef
- func CMTimebaseGetMasterClock(timebase CMTimebaseRef) CMClockRefdeprecated
- func CMTimebaseGetUltimateMasterClock(timebase CMTimebaseRef) CMClockRefdeprecated
- func TryCMClockGetHostTimeClock() (CMClockRef, error)
- func TryCMTimebaseCopySourceClock(timebase CMTimebaseRef) (CMClockRef, error)
- func TryCMTimebaseCopyUltimateSourceClock(timebase CMTimebaseRef) (CMClockRef, error)
- func TryCMTimebaseGetMasterClock(timebase CMTimebaseRef) (CMClockRef, error)
- func TryCMTimebaseGetUltimateMasterClock(timebase CMTimebaseRef) (CMClockRef, error)
- type CMClosedCaptionDescriptionFlavor
- type CMClosedCaptionFormatDescriptionRef
- type CMClosedCaptionFormatType
- type CMFormatDescriptionRef
- type CMImageDescriptionFlavor
- type CMItemCount
- func CMBufferQueueGetBufferCount(queue CMBufferQueueRef) CMItemCount
- func CMSampleBufferGetNumSamples(sbuf CMSampleBufferRef) CMItemCount
- func CMTagCollectionCountTagsWithFilterFunction(tagCollection CMTagCollectionRef, ...) CMItemCount
- func CMTagCollectionGetCount(tagCollection CMTagCollectionRef) CMItemCount
- func CMTagCollectionGetCountOfCategory(tagCollection CMTagCollectionRef, category CMTagCategory) CMItemCount
- func CMTaggedBufferGroupGetCount(group CMTaggedBufferGroupRef) CMItemCount
- func CMTaggedBufferGroupGetNumberOfMatchesForTagCollection(group CMTaggedBufferGroupRef, tagCollection CMTagCollectionRef) CMItemCount
- func TryCMBufferQueueGetBufferCount(queue CMBufferQueueRef) (CMItemCount, error)
- func TryCMSampleBufferGetNumSamples(sbuf CMSampleBufferRef) (CMItemCount, error)
- func TryCMTagCollectionCountTagsWithFilterFunction(tagCollection CMTagCollectionRef, ...) (CMItemCount, error)
- func TryCMTagCollectionGetCount(tagCollection CMTagCollectionRef) (CMItemCount, error)
- func TryCMTagCollectionGetCountOfCategory(tagCollection CMTagCollectionRef, category CMTagCategory) (CMItemCount, error)
- func TryCMTaggedBufferGroupGetCount(group CMTaggedBufferGroupRef) (CMItemCount, error)
- func TryCMTaggedBufferGroupGetNumberOfMatchesForTagCollection(group CMTaggedBufferGroupRef, tagCollection CMTagCollectionRef) (CMItemCount, error)
- type CMItemIndex
- type CMMediaType
- type CMMemoryPoolRef
- type CMMetadataDescriptionFlavor
- type CMMetadataFormatDescriptionRef
- type CMMetadataFormatType
- type CMMutableTagCollectionRef
- type CMMuxedFormatDescriptionRef
- type CMMuxedStreamType
- type CMPackingType
- type CMPersistentTrackID
- type CMPixelFormatType
- type CMProjectionType
- type CMSampleBufferInvalidateCallback
- type CMSampleBufferInvalidateHandler
- type CMSampleBufferMakeDataReadyCallback
- type CMSampleBufferMakeDataReadyHandler
- type CMSampleBufferRef
- func CMTaggedBufferGroupGetCMSampleBufferAtIndex(group CMTaggedBufferGroupRef, index int) CMSampleBufferRef
- func CMTaggedBufferGroupGetCMSampleBufferForTag(group CMTaggedBufferGroupRef, tag CMTag, indexOut *int) CMSampleBufferRef
- func CMTaggedBufferGroupGetCMSampleBufferForTagCollection(group CMTaggedBufferGroupRef, tagCollection CMTagCollectionRef, indexOut *int) CMSampleBufferRef
- func TryCMTaggedBufferGroupGetCMSampleBufferAtIndex(group CMTaggedBufferGroupRef, index int) (CMSampleBufferRef, error)
- func TryCMTaggedBufferGroupGetCMSampleBufferForTag(group CMTaggedBufferGroupRef, tag CMTag, indexOut *int) (CMSampleBufferRef, error)
- func TryCMTaggedBufferGroupGetCMSampleBufferForTagCollection(group CMTaggedBufferGroupRef, tagCollection CMTagCollectionRef, indexOut *int) (CMSampleBufferRef, error)
- type CMSampleTimingInfo
- func (s *CMSampleTimingInfo) DecodeTimeStamp() CMTime
- func (s *CMSampleTimingInfo) Duration() CMTime
- func (s *CMSampleTimingInfo) PresentationTimeStamp() CMTime
- func (s *CMSampleTimingInfo) SetDecodeTimeStamp(v CMTime)
- func (s *CMSampleTimingInfo) SetDuration(v CMTime)
- func (s *CMSampleTimingInfo) SetPresentationTimeStamp(v CMTime)
- type CMSimpleQueueRef
- type CMSoundDescriptionFlavor
- type CMStereoViewComponents
- type CMStereoViewInterpretationOptions
- type CMStructVersion
- type CMSubtitleFormatType
- type CMTag
- func CMTagCollectionApplyUntil(tagCollection CMTagCollectionRef, applier CMTagCollectionTagFilterFunction, ...) CMTag
- func CMTagMakeFromDictionary(dict corefoundation.CFDictionaryRef) CMTag
- func CMTagMakeWithFlagsValue(category CMTagCategory, flagsForTag uint64) CMTag
- func CMTagMakeWithFloat64Value(category CMTagCategory, value float64) CMTag
- func CMTagMakeWithOSTypeValue(category CMTagCategory, value uint32) CMTag
- func CMTagMakeWithSInt64Value(category CMTagCategory, value int64) CMTag
- func TryCMTagCollectionApplyUntil(tagCollection CMTagCollectionRef, applier CMTagCollectionTagFilterFunction, ...) (CMTag, error)
- func TryCMTagMakeFromDictionary(dict corefoundation.CFDictionaryRef) (CMTag, error)
- func TryCMTagMakeWithFlagsValue(category CMTagCategory, flagsForTag uint64) (CMTag, error)
- func TryCMTagMakeWithFloat64Value(category CMTagCategory, value float64) (CMTag, error)
- func TryCMTagMakeWithOSTypeValue(category CMTagCategory, value uint32) (CMTag, error)
- func TryCMTagMakeWithSInt64Value(category CMTagCategory, value int64) (CMTag, error)
- type CMTagCategory
- type CMTagCollectionApplierFunction
- type CMTagCollectionError
- type CMTagCollectionRef
- type CMTagCollectionTagFilterFunction
- type CMTagDataType
- type CMTagError
- type CMTagValue
- type CMTaggedBufferGroupError
- type CMTaggedBufferGroupFormatDescriptionRef
- type CMTaggedBufferGroupFormatType
- type CMTaggedBufferGroupRef
- type CMTextDescriptionFlavor
- type CMTextDisplayFlags
- type CMTextFormatDescriptionRef
- type CMTextFormatType
- type CMTextJustificationValue
- type CMTime
- func CMBufferQueueGetDuration(queue CMBufferQueueRef) CMTime
- func CMBufferQueueGetEndPresentationTimeStamp(queue CMBufferQueueRef) CMTime
- func CMBufferQueueGetFirstDecodeTimeStamp(queue CMBufferQueueRef) CMTime
- func CMBufferQueueGetFirstPresentationTimeStamp(queue CMBufferQueueRef) CMTime
- func CMBufferQueueGetMaxPresentationTimeStamp(queue CMBufferQueueRef) CMTime
- func CMBufferQueueGetMinDecodeTimeStamp(queue CMBufferQueueRef) CMTime
- func CMBufferQueueGetMinPresentationTimeStamp(queue CMBufferQueueRef) CMTime
- func CMClockGetTime(clock CMClockRef) CMTime
- func CMClockMakeHostTimeFromSystemUnits(hostTime uint64) CMTime
- func CMSampleBufferGetDecodeTimeStamp(sbuf CMSampleBufferRef) CMTime
- func CMSampleBufferGetDuration(sbuf CMSampleBufferRef) CMTime
- func CMSampleBufferGetOutputDecodeTimeStamp(sbuf CMSampleBufferRef) CMTime
- func CMSampleBufferGetOutputDuration(sbuf CMSampleBufferRef) CMTime
- func CMSampleBufferGetOutputPresentationTimeStamp(sbuf CMSampleBufferRef) CMTime
- func CMSampleBufferGetPresentationTimeStamp(sbuf CMSampleBufferRef) CMTime
- func CMSyncConvertTime(time CMTime, fromClockOrTimebase CMClockOrTimebaseRef, ...) CMTime
- func CMSyncGetTime(clockOrTimebase CMClockOrTimebaseRef) CMTime
- func CMTimeAbsoluteValue(time CMTime) CMTime
- func CMTimeAdd(lhs CMTime, rhs CMTime) CMTime
- func CMTimeClampToRange(time CMTime, range_ CMTimeRange) CMTime
- func CMTimeCodeFormatDescriptionGetFrameDuration(timeCodeFormatDescription CMTimeCodeFormatDescriptionRef) CMTime
- func CMTimeConvertScale(time CMTime, newTimescale int32, method CMTimeRoundingMethod) CMTime
- func CMTimeFoldIntoRange(time CMTime, foldRange CMTimeRange) CMTime
- func CMTimeMake(value int64, timescale int32) CMTime
- func CMTimeMakeFromDictionary(dictionaryRepresentation corefoundation.CFDictionaryRef) CMTime
- func CMTimeMakeWithEpoch(value int64, timescale int32, epoch int64) CMTime
- func CMTimeMakeWithSeconds(seconds float64, preferredTimescale int32) CMTime
- func CMTimeMapDurationFromRangeToRange(dur CMTime, fromRange CMTimeRange, toRange CMTimeRange) CMTime
- func CMTimeMapTimeFromRangeToRange(t CMTime, fromRange CMTimeRange, toRange CMTimeRange) CMTime
- func CMTimeMaximum(time1 CMTime, time2 CMTime) CMTime
- func CMTimeMinimum(time1 CMTime, time2 CMTime) CMTime
- func CMTimeMultiply(time CMTime, multiplier int32) CMTime
- func CMTimeMultiplyByFloat64(time CMTime, multiplier float64) CMTime
- func CMTimeMultiplyByRatio(time CMTime, multiplier int32, divisor int32) CMTime
- func CMTimeRangeGetEnd(range_ CMTimeRange) CMTime
- func CMTimeSubtract(lhs CMTime, rhs CMTime) CMTime
- func CMTimebaseGetTime(timebase CMTimebaseRef) CMTime
- func CMTimebaseGetTimeWithTimeScale(timebase CMTimebaseRef, timescale CMTimeScale, method CMTimeRoundingMethod) CMTime
- func TryCMBufferQueueGetDuration(queue CMBufferQueueRef) (CMTime, error)
- func TryCMBufferQueueGetEndPresentationTimeStamp(queue CMBufferQueueRef) (CMTime, error)
- func TryCMBufferQueueGetFirstDecodeTimeStamp(queue CMBufferQueueRef) (CMTime, error)
- func TryCMBufferQueueGetFirstPresentationTimeStamp(queue CMBufferQueueRef) (CMTime, error)
- func TryCMBufferQueueGetMaxPresentationTimeStamp(queue CMBufferQueueRef) (CMTime, error)
- func TryCMBufferQueueGetMinDecodeTimeStamp(queue CMBufferQueueRef) (CMTime, error)
- func TryCMBufferQueueGetMinPresentationTimeStamp(queue CMBufferQueueRef) (CMTime, error)
- func TryCMClockGetTime(clock CMClockRef) (CMTime, error)
- func TryCMClockMakeHostTimeFromSystemUnits(hostTime uint64) (CMTime, error)
- func TryCMSampleBufferGetDecodeTimeStamp(sbuf CMSampleBufferRef) (CMTime, error)
- func TryCMSampleBufferGetDuration(sbuf CMSampleBufferRef) (CMTime, error)
- func TryCMSampleBufferGetOutputDecodeTimeStamp(sbuf CMSampleBufferRef) (CMTime, error)
- func TryCMSampleBufferGetOutputDuration(sbuf CMSampleBufferRef) (CMTime, error)
- func TryCMSampleBufferGetOutputPresentationTimeStamp(sbuf CMSampleBufferRef) (CMTime, error)
- func TryCMSampleBufferGetPresentationTimeStamp(sbuf CMSampleBufferRef) (CMTime, error)
- func TryCMSyncConvertTime(time CMTime, fromClockOrTimebase CMClockOrTimebaseRef, ...) (CMTime, error)
- func TryCMSyncGetTime(clockOrTimebase CMClockOrTimebaseRef) (CMTime, error)
- func TryCMTimeAbsoluteValue(time CMTime) (CMTime, error)
- func TryCMTimeAdd(lhs CMTime, rhs CMTime) (CMTime, error)
- func TryCMTimeClampToRange(time CMTime, range_ CMTimeRange) (CMTime, error)
- func TryCMTimeCodeFormatDescriptionGetFrameDuration(timeCodeFormatDescription CMTimeCodeFormatDescriptionRef) (CMTime, error)
- func TryCMTimeConvertScale(time CMTime, newTimescale int32, method CMTimeRoundingMethod) (CMTime, error)
- func TryCMTimeFoldIntoRange(time CMTime, foldRange CMTimeRange) (CMTime, error)
- func TryCMTimeMake(value int64, timescale int32) (CMTime, error)
- func TryCMTimeMakeFromDictionary(dictionaryRepresentation corefoundation.CFDictionaryRef) (CMTime, error)
- func TryCMTimeMakeWithEpoch(value int64, timescale int32, epoch int64) (CMTime, error)
- func TryCMTimeMakeWithSeconds(seconds float64, preferredTimescale int32) (CMTime, error)
- func TryCMTimeMapDurationFromRangeToRange(dur CMTime, fromRange CMTimeRange, toRange CMTimeRange) (CMTime, error)
- func TryCMTimeMapTimeFromRangeToRange(t CMTime, fromRange CMTimeRange, toRange CMTimeRange) (CMTime, error)
- func TryCMTimeMaximum(time1 CMTime, time2 CMTime) (CMTime, error)
- func TryCMTimeMinimum(time1 CMTime, time2 CMTime) (CMTime, error)
- func TryCMTimeMultiply(time CMTime, multiplier int32) (CMTime, error)
- func TryCMTimeMultiplyByFloat64(time CMTime, multiplier float64) (CMTime, error)
- func TryCMTimeMultiplyByRatio(time CMTime, multiplier int32, divisor int32) (CMTime, error)
- func TryCMTimeRangeGetEnd(range_ CMTimeRange) (CMTime, error)
- func TryCMTimeSubtract(lhs CMTime, rhs CMTime) (CMTime, error)
- func TryCMTimebaseGetTime(timebase CMTimebaseRef) (CMTime, error)
- func TryCMTimebaseGetTimeWithTimeScale(timebase CMTimebaseRef, timescale CMTimeScale, method CMTimeRoundingMethod) (CMTime, error)
- func (s *CMTime) Epoch() CMTimeEpoch
- func (s *CMTime) Flags() CMTimeFlags
- func (s *CMTime) SetEpoch(v CMTimeEpoch)
- func (s *CMTime) SetFlags(v CMTimeFlags)
- func (s *CMTime) SetTimescale(v CMTimeScale)
- func (s *CMTime) SetValue(v CMTimeValue)
- func (s *CMTime) Timescale() CMTimeScale
- func (s *CMTime) Value() CMTimeValue
- type CMTimeCodeDescriptionFlavor
- type CMTimeCodeFormatDescriptionRef
- type CMTimeCodeFormatType
- type CMTimeEpoch
- type CMTimeFlags
- type CMTimeMapping
- func CMTimeMappingMake(source CMTimeRange, target CMTimeRange) CMTimeMapping
- func CMTimeMappingMakeEmpty(target CMTimeRange) CMTimeMapping
- func CMTimeMappingMakeFromDictionary(dictionaryRepresentation corefoundation.CFDictionaryRef) CMTimeMapping
- func TryCMTimeMappingMake(source CMTimeRange, target CMTimeRange) (CMTimeMapping, error)
- func TryCMTimeMappingMakeEmpty(target CMTimeRange) (CMTimeMapping, error)
- func TryCMTimeMappingMakeFromDictionary(dictionaryRepresentation corefoundation.CFDictionaryRef) (CMTimeMapping, error)
- type CMTimeRange
- func CMTimeRangeFromTimeToTime(start CMTime, end CMTime) CMTimeRange
- func CMTimeRangeGetIntersection(range_ CMTimeRange, otherRange CMTimeRange) CMTimeRange
- func CMTimeRangeGetUnion(range_ CMTimeRange, otherRange CMTimeRange) CMTimeRange
- func CMTimeRangeMake(start CMTime, duration CMTime) CMTimeRange
- func CMTimeRangeMakeFromDictionary(dictionaryRepresentation corefoundation.CFDictionaryRef) CMTimeRange
- func TryCMTimeRangeFromTimeToTime(start CMTime, end CMTime) (CMTimeRange, error)
- func TryCMTimeRangeGetIntersection(range_ CMTimeRange, otherRange CMTimeRange) (CMTimeRange, error)
- func TryCMTimeRangeGetUnion(range_ CMTimeRange, otherRange CMTimeRange) (CMTimeRange, error)
- func TryCMTimeRangeMake(start CMTime, duration CMTime) (CMTimeRange, error)
- func TryCMTimeRangeMakeFromDictionary(dictionaryRepresentation corefoundation.CFDictionaryRef) (CMTimeRange, error)
- type CMTimeRoundingMethod
- type CMTimeScale
- type CMTimeValue
- type CMTimebaseRef
- func CMTimebaseCopySourceTimebase(timebase CMTimebaseRef) CMTimebaseRef
- func CMTimebaseGetMasterTimebase(timebase CMTimebaseRef) CMTimebaseRefdeprecated
- func TryCMTimebaseCopySourceTimebase(timebase CMTimebaseRef) (CMTimebaseRef, error)
- func TryCMTimebaseGetMasterTimebase(timebase CMTimebaseRef) (CMTimebaseRef, error)
- type CMVideoCodecType
- type CMVideoDimensions
- type CMVideoFormatDescriptionRef
- type KCMAudioFormatDescriptionMaskdeprecated
- type KCMBlockBuffer
- type KCMBlockBufferCustomBlockSource
- type KCMBufferQueueError
- type KCMClockError
- type KCMClosedCaptionFormatTypedeprecated
- type KCMFormatDescriptionBridgeError
- type KCMFormatDescriptionError
- type KCMMPEG2VideoProfile
- type KCMMemoryPoolError
- type KCMMetadataDataTypeRegistryError
- type KCMMetadataFormatTypedeprecated
- type KCMMetadataIdentifierError
- type KCMMuxedStreamTypedeprecated
- type KCMPersistentTrackIDdeprecated
- type KCMPixelFormatdeprecated
- type KCMSampleBufferError
- type KCMSimpleQueueError
- type KCMSubtitleFormatTypedeprecated
- type KCMSyncError
- type KCMTaggedBufferGroupFormatTypedeprecated
- type KCMTextDisplayFlagdeprecated
- type KCMTextFormatTypedeprecated
- type KCMTextJustificationdeprecated
- type KCMTimeCodeFlag
- type KCMTimeCodeFormatTypedeprecated
- type KCMTimebaseError
- type KCMVideoCodecTypedeprecated
- type KcmattachmentmodeShould
- type KcmaudiocodectypeAacdeprecated
- type KcmbufferqueuetriggerWhendeprecated
- type KcmmediatypeAuxiliarypicturedeprecated
- type KcmmediatypeVideodeprecated
- type KcmsamplebufferflagAudiobufferlist
Constants ¶
const KCMBlockBufferAssureMemoryNowFlagValue = KCMBlockBufferAssureMemoryNowFlag
KCMBlockBufferAssureMemoryNowFlagValue is the pre-v0.7.0 name of KCMBlockBufferAssureMemoryNowFlag.
Deprecated: use KCMBlockBufferAssureMemoryNowFlag.
const KCMBlockBufferNoErrValue = KCMBlockBufferNoErr
KCMBlockBufferNoErrValue is the pre-v0.7.0 name of KCMBlockBufferNoErr.
Deprecated: use KCMBlockBufferNoErr.
Variables ¶
var ( // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionAlphaChannelMode_PremultipliedAlpha KCMFormatDescriptionAlphaChannelMode_PremultipliedAlpha string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionAlphaChannelMode_StraightAlpha KCMFormatDescriptionAlphaChannelMode_StraightAlpha string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionCameraCalibrationExtrinsicOriginSource_StereoCameraSystemBaseline KCMFormatDescriptionCameraCalibrationExtrinsicOriginSource_StereoCameraSystemBaseline string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionCameraCalibrationLensAlgorithmKind_ParametricLens KCMFormatDescriptionCameraCalibrationLensAlgorithmKind_ParametricLens string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionCameraCalibrationLensDomain_Color KCMFormatDescriptionCameraCalibrationLensDomain_Color string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionCameraCalibrationLensRole_Left KCMFormatDescriptionCameraCalibrationLensRole_Left string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionCameraCalibrationLensRole_Mono KCMFormatDescriptionCameraCalibrationLensRole_Mono string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionCameraCalibrationLensRole_Right KCMFormatDescriptionCameraCalibrationLensRole_Right string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionCameraCalibration_ExtrinsicOrientationQuaternion KCMFormatDescriptionCameraCalibration_ExtrinsicOrientationQuaternion string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionCameraCalibration_ExtrinsicOriginSource KCMFormatDescriptionCameraCalibration_ExtrinsicOriginSource string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionCameraCalibration_IntrinsicMatrix KCMFormatDescriptionCameraCalibration_IntrinsicMatrix string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionCameraCalibration_IntrinsicMatrixProjectionOffset KCMFormatDescriptionCameraCalibration_IntrinsicMatrixProjectionOffset string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionCameraCalibration_IntrinsicMatrixReferenceDimensions KCMFormatDescriptionCameraCalibration_IntrinsicMatrixReferenceDimensions string // KCMFormatDescriptionCameraCalibration_LensAlgorithmKind is the following keys are required in each kCMFormatDescriptionExtension_CameraCalibrationDataLensCollection dictionary. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionCameraCalibration_LensAlgorithmKind KCMFormatDescriptionCameraCalibration_LensAlgorithmKind string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionCameraCalibration_LensDistortions KCMFormatDescriptionCameraCalibration_LensDistortions string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionCameraCalibration_LensDomain KCMFormatDescriptionCameraCalibration_LensDomain string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionCameraCalibration_LensFrameAdjustmentsPolynomialX KCMFormatDescriptionCameraCalibration_LensFrameAdjustmentsPolynomialX string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionCameraCalibration_LensFrameAdjustmentsPolynomialY KCMFormatDescriptionCameraCalibration_LensFrameAdjustmentsPolynomialY string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionCameraCalibration_LensIdentifier KCMFormatDescriptionCameraCalibration_LensIdentifier string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionCameraCalibration_LensRole KCMFormatDescriptionCameraCalibration_LensRole string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionCameraCalibration_RadialAngleLimit KCMFormatDescriptionCameraCalibration_RadialAngleLimit string // KCMFormatDescriptionChromaLocation_Bottom is the chroma sample is horizontally centered, but co-sited with the bottom row of the luma samples. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionChromaLocation_Bottom-swift.var KCMFormatDescriptionChromaLocation_Bottom string // KCMFormatDescriptionChromaLocation_BottomLeft is the chroma sample is co-sited with the bottom-left luma sample. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionChromaLocation_BottomLeft-swift.var KCMFormatDescriptionChromaLocation_BottomLeft string // KCMFormatDescriptionChromaLocation_Center is the chroma sample is fully centered. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionChromaLocation_Center-swift.var KCMFormatDescriptionChromaLocation_Center string // KCMFormatDescriptionChromaLocation_DV420 is the Cr and Cb samples are alternately co-sited with the left luma samples of the same field. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionChromaLocation_DV420-swift.var KCMFormatDescriptionChromaLocation_DV420 string // KCMFormatDescriptionChromaLocation_Left is the chroma sample is horizontally co-sited with the left column of the luma samples, but centered vertically. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionChromaLocation_Left-swift.var KCMFormatDescriptionChromaLocation_Left string // KCMFormatDescriptionChromaLocation_Top is the chroma sample is horizontally centered, but co-sited with the top row of the luma samples. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionChromaLocation_Top-swift.var KCMFormatDescriptionChromaLocation_Top string // KCMFormatDescriptionChromaLocation_TopLeft is the chroma sample is co-sited with the top-left luma sample. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionChromaLocation_TopLeft-swift.var KCMFormatDescriptionChromaLocation_TopLeft string // KCMFormatDescriptionColorPrimaries_DCI_P3 is a format that describes the DCI P3 color primary. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionColorPrimaries_DCI_P3 KCMFormatDescriptionColorPrimaries_DCI_P3 string // KCMFormatDescriptionColorPrimaries_EBU_3213 is a format that describes the EBU 3213 color primary. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionColorPrimaries_EBU_3213-swift.var KCMFormatDescriptionColorPrimaries_EBU_3213 string // KCMFormatDescriptionColorPrimaries_ITU_R_2020 is a format that describes the ITU R 2020 color primary. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionColorPrimaries_ITU_R_2020 KCMFormatDescriptionColorPrimaries_ITU_R_2020 string // KCMFormatDescriptionColorPrimaries_ITU_R_709_2 is a format that describes the ITU R 709 2 color primary. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionColorPrimaries_ITU_R_709_2-swift.var KCMFormatDescriptionColorPrimaries_ITU_R_709_2 string // KCMFormatDescriptionColorPrimaries_P22 is a format that describes the P22 color primary. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionColorPrimaries_P22 KCMFormatDescriptionColorPrimaries_P22 string // KCMFormatDescriptionColorPrimaries_P3_D65 is a format that describes the P3 D65 color primary. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionColorPrimaries_P3_D65 KCMFormatDescriptionColorPrimaries_P3_D65 string // KCMFormatDescriptionColorPrimaries_SMPTE_C is a format that describes the SMPTE C color primary. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionColorPrimaries_SMPTE_C-swift.var KCMFormatDescriptionColorPrimaries_SMPTE_C string // KCMFormatDescriptionConformsToMPEG2VideoProfile is the value is a number that specifies the MPEG2 video profile. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionConformsToMPEG2VideoProfile KCMFormatDescriptionConformsToMPEG2VideoProfile string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtensionKey_MetadataKeyTable KCMFormatDescriptionExtensionKey_MetadataKeyTable string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_AlphaChannelMode KCMFormatDescriptionExtension_AlphaChannelMode string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_AlternativeTransferCharacteristics KCMFormatDescriptionExtension_AlternativeTransferCharacteristics string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_AmbientViewingEnvironment KCMFormatDescriptionExtension_AmbientViewingEnvironment string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_AuxiliaryTypeInfo KCMFormatDescriptionExtension_AuxiliaryTypeInfo string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_BitsPerComponent KCMFormatDescriptionExtension_BitsPerComponent string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_BytesPerRow KCMFormatDescriptionExtension_BytesPerRow string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_CameraCalibrationDataLensCollection KCMFormatDescriptionExtension_CameraCalibrationDataLensCollection string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_ChromaLocationBottomField-swift.var KCMFormatDescriptionExtension_ChromaLocationBottomField string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_ChromaLocationTopField-swift.var KCMFormatDescriptionExtension_ChromaLocationTopField string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_CleanAperture-swift.var KCMFormatDescriptionExtension_CleanAperture string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_ColorPrimaries-swift.var KCMFormatDescriptionExtension_ColorPrimaries string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_ContainsAlphaChannel KCMFormatDescriptionExtension_ContainsAlphaChannel string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_ContentColorVolume KCMFormatDescriptionExtension_ContentColorVolume string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_ContentLightLevelInfo KCMFormatDescriptionExtension_ContentLightLevelInfo string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_ConvertedFromExternalSphericalTags KCMFormatDescriptionExtension_ConvertedFromExternalSphericalTags string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_Depth KCMFormatDescriptionExtension_Depth string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_FieldCount-swift.var KCMFormatDescriptionExtension_FieldCount string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_FieldDetail-swift.var KCMFormatDescriptionExtension_FieldDetail string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_FormatName KCMFormatDescriptionExtension_FormatName string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_FullRangeVideo KCMFormatDescriptionExtension_FullRangeVideo string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_GammaLevel-swift.var KCMFormatDescriptionExtension_GammaLevel string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_HasAdditionalViews KCMFormatDescriptionExtension_HasAdditionalViews string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_HasLeftStereoEyeView KCMFormatDescriptionExtension_HasLeftStereoEyeView string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_HasRightStereoEyeView KCMFormatDescriptionExtension_HasRightStereoEyeView string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_HeroEye KCMFormatDescriptionExtension_HeroEye string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_HorizontalDisparityAdjustment KCMFormatDescriptionExtension_HorizontalDisparityAdjustment string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_HorizontalFieldOfView KCMFormatDescriptionExtension_HorizontalFieldOfView string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_ICCProfile KCMFormatDescriptionExtension_ICCProfile string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_LogTransferFunction KCMFormatDescriptionExtension_LogTransferFunction string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_MasteringDisplayColorVolume KCMFormatDescriptionExtension_MasteringDisplayColorVolume string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_OriginalCompressionSettings KCMFormatDescriptionExtension_OriginalCompressionSettings string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_PixelAspectRatio-swift.var KCMFormatDescriptionExtension_PixelAspectRatio string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_ProjectionKind KCMFormatDescriptionExtension_ProjectionKind string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_ProtectedContentOriginalFormat KCMFormatDescriptionExtension_ProtectedContentOriginalFormat string // KCMFormatDescriptionExtension_RevisionLevel is the value is a number. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_RevisionLevel KCMFormatDescriptionExtension_RevisionLevel string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_SampleDescriptionExtensionAtoms KCMFormatDescriptionExtension_SampleDescriptionExtensionAtoms string // KCMFormatDescriptionExtension_SpatialQuality is the value is a number. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_SpatialQuality KCMFormatDescriptionExtension_SpatialQuality string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_StereoCameraBaseline KCMFormatDescriptionExtension_StereoCameraBaseline string // KCMFormatDescriptionExtension_TemporalQuality is the value is a number. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_TemporalQuality KCMFormatDescriptionExtension_TemporalQuality string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_TransferFunction-swift.var KCMFormatDescriptionExtension_TransferFunction string // KCMFormatDescriptionExtension_Vendor is the value is a string of four character codes. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_Vendor KCMFormatDescriptionExtension_Vendor string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_VerbatimISOSampleEntry KCMFormatDescriptionExtension_VerbatimISOSampleEntry string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_VerbatimImageDescription-swift.var KCMFormatDescriptionExtension_VerbatimImageDescription string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_VerbatimSampleDescription KCMFormatDescriptionExtension_VerbatimSampleDescription string // KCMFormatDescriptionExtension_Version is the value is a number. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_Version KCMFormatDescriptionExtension_Version string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_ViewPackingKind KCMFormatDescriptionExtension_ViewPackingKind string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionExtension_YCbCrMatrix-swift.var KCMFormatDescriptionExtension_YCbCrMatrix string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionFieldDetail_SpatialFirstLineEarly-swift.var KCMFormatDescriptionFieldDetail_SpatialFirstLineEarly string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionFieldDetail_SpatialFirstLineLate-swift.var KCMFormatDescriptionFieldDetail_SpatialFirstLineLate string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionFieldDetail_TemporalBottomFirst-swift.var KCMFormatDescriptionFieldDetail_TemporalBottomFirst string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionFieldDetail_TemporalTopFirst-swift.var KCMFormatDescriptionFieldDetail_TemporalTopFirst string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionHeroEye_Left KCMFormatDescriptionHeroEye_Left string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionHeroEye_Right KCMFormatDescriptionHeroEye_Right string // KCMFormatDescriptionKey_CleanApertureHeight is a key that identifies the clean aperture height value. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionKey_CleanApertureHeight-swift.var KCMFormatDescriptionKey_CleanApertureHeight string // KCMFormatDescriptionKey_CleanApertureHeightRational is a key that identifies the clean aperture height rational value. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionKey_CleanApertureHeightRational KCMFormatDescriptionKey_CleanApertureHeightRational string // KCMFormatDescriptionKey_CleanApertureHorizontalOffset is a key that describes the clean aperture height horizontal offset value. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionKey_CleanApertureHorizontalOffset-swift.var KCMFormatDescriptionKey_CleanApertureHorizontalOffset string // KCMFormatDescriptionKey_CleanApertureHorizontalOffsetRational is a key that identifies the clean aperture horizontal offset rational value. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionKey_CleanApertureHorizontalOffsetRational KCMFormatDescriptionKey_CleanApertureHorizontalOffsetRational string // KCMFormatDescriptionKey_CleanApertureVerticalOffset is a key that identifies the clean aperture vertical offset value. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionKey_CleanApertureVerticalOffset-swift.var KCMFormatDescriptionKey_CleanApertureVerticalOffset string // KCMFormatDescriptionKey_CleanApertureVerticalOffsetRational is a key that identifies the clean aperture vertical offset rational value. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionKey_CleanApertureVerticalOffsetRational KCMFormatDescriptionKey_CleanApertureVerticalOffsetRational string // KCMFormatDescriptionKey_CleanApertureWidth is a key that identifies the clean aperture width value. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionKey_CleanApertureWidth-swift.var KCMFormatDescriptionKey_CleanApertureWidth string // KCMFormatDescriptionKey_CleanApertureWidthRational is a key that identifies the clean aperture width rational value. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionKey_CleanApertureWidthRational KCMFormatDescriptionKey_CleanApertureWidthRational string // KCMFormatDescriptionKey_PixelAspectRatioHorizontalSpacing is a key that identifies the horizontal spacing of the pixel aspect ratio. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionKey_PixelAspectRatioHorizontalSpacing-swift.var KCMFormatDescriptionKey_PixelAspectRatioHorizontalSpacing string // KCMFormatDescriptionKey_PixelAspectRatioVerticalSpacing is a key that identifies the vertical spacing of the pixel aspect ratio. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionKey_PixelAspectRatioVerticalSpacing-swift.var KCMFormatDescriptionKey_PixelAspectRatioVerticalSpacing string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionLogTransferFunction_AppleLog KCMFormatDescriptionLogTransferFunction_AppleLog string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionProjectionKind_AppleImmersiveVideo KCMFormatDescriptionProjectionKind_AppleImmersiveVideo string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionProjectionKind_Equirectangular KCMFormatDescriptionProjectionKind_Equirectangular string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionProjectionKind_HalfEquirectangular KCMFormatDescriptionProjectionKind_HalfEquirectangular string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionProjectionKind_ParametricImmersive KCMFormatDescriptionProjectionKind_ParametricImmersive string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionProjectionKind_Rectilinear KCMFormatDescriptionProjectionKind_Rectilinear string // KCMFormatDescriptionTransferFunction_ITU_R_2020 is a constant that describes the ITU R 2020 transfer function format. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionTransferFunction_ITU_R_2020 KCMFormatDescriptionTransferFunction_ITU_R_2020 string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionTransferFunction_ITU_R_2100_HLG KCMFormatDescriptionTransferFunction_ITU_R_2100_HLG string // KCMFormatDescriptionTransferFunction_ITU_R_709_2 is a constant that describes the ITU R 709 2 transfer function format. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionTransferFunction_ITU_R_709_2-swift.var KCMFormatDescriptionTransferFunction_ITU_R_709_2 string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionTransferFunction_Linear KCMFormatDescriptionTransferFunction_Linear string // KCMFormatDescriptionTransferFunction_SMPTE_240M_1995 is a constant that describes the SMPTE 240M 1995 transfer function format. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionTransferFunction_SMPTE_240M_1995-swift.var KCMFormatDescriptionTransferFunction_SMPTE_240M_1995 string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionTransferFunction_SMPTE_ST_2084_PQ KCMFormatDescriptionTransferFunction_SMPTE_ST_2084_PQ string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionTransferFunction_SMPTE_ST_428_1 KCMFormatDescriptionTransferFunction_SMPTE_ST_428_1 string // KCMFormatDescriptionTransferFunction_UseGamma is a constant that describes the gamma transfer function format. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionTransferFunction_UseGamma-swift.var KCMFormatDescriptionTransferFunction_UseGamma string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionTransferFunction_sRGB KCMFormatDescriptionTransferFunction_sRGB string // KCMFormatDescriptionVendor_Apple is a string that speicifies Apple as the vendor. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionVendor_Apple KCMFormatDescriptionVendor_Apple string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionViewPackingKind_OverUnder KCMFormatDescriptionViewPackingKind_OverUnder string // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionViewPackingKind_SideBySide KCMFormatDescriptionViewPackingKind_SideBySide string // KCMFormatDescriptionYCbCrMatrix_ITU_R_2020 is a constant describing the YCbCrMatrix ITU R 2020 format. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionYCbCrMatrix_ITU_R_2020 KCMFormatDescriptionYCbCrMatrix_ITU_R_2020 string // KCMFormatDescriptionYCbCrMatrix_ITU_R_601_4 is a constant describing the YCbCrMatrix ITU R 601 4 format. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionYCbCrMatrix_ITU_R_601_4-swift.var KCMFormatDescriptionYCbCrMatrix_ITU_R_601_4 string // KCMFormatDescriptionYCbCrMatrix_ITU_R_709_2 is a constant describing the YCbCrMatrix ITU R 709 2 format. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionYCbCrMatrix_ITU_R_709_2-swift.var KCMFormatDescriptionYCbCrMatrix_ITU_R_709_2 string // KCMFormatDescriptionYCbCrMatrix_SMPTE_240M_1995 is a constant describing the YCbCrMatrix SMPTE 240M 1995 format. // // See: https://developer.apple.com/documentation/CoreMedia/kCMFormatDescriptionYCbCrMatrix_SMPTE_240M_1995-swift.var KCMFormatDescriptionYCbCrMatrix_SMPTE_240M_1995 string // KCMHEVCTemporalLevelInfoKey_ConstraintIndicatorFlags is the value is a 6 byte data value. // // See: https://developer.apple.com/documentation/CoreMedia/kCMHEVCTemporalLevelInfoKey_ConstraintIndicatorFlags KCMHEVCTemporalLevelInfoKey_ConstraintIndicatorFlags string // KCMHEVCTemporalLevelInfoKey_LevelIndex is the value is a number. // // See: https://developer.apple.com/documentation/CoreMedia/kCMHEVCTemporalLevelInfoKey_LevelIndex KCMHEVCTemporalLevelInfoKey_LevelIndex string // KCMHEVCTemporalLevelInfoKey_ProfileCompatibilityFlags is the value is a 4 byte data value. // // See: https://developer.apple.com/documentation/CoreMedia/kCMHEVCTemporalLevelInfoKey_ProfileCompatibilityFlags KCMHEVCTemporalLevelInfoKey_ProfileCompatibilityFlags string // KCMHEVCTemporalLevelInfoKey_ProfileIndex is the value is a number. // // See: https://developer.apple.com/documentation/CoreMedia/kCMHEVCTemporalLevelInfoKey_ProfileIndex KCMHEVCTemporalLevelInfoKey_ProfileIndex string // KCMHEVCTemporalLevelInfoKey_ProfileSpace is the value is a number. // // See: https://developer.apple.com/documentation/CoreMedia/kCMHEVCTemporalLevelInfoKey_ProfileSpace KCMHEVCTemporalLevelInfoKey_ProfileSpace string // KCMHEVCTemporalLevelInfoKey_TemporalLevel is the value is a number. // // See: https://developer.apple.com/documentation/CoreMedia/kCMHEVCTemporalLevelInfoKey_TemporalLevel KCMHEVCTemporalLevelInfoKey_TemporalLevel string // KCMHEVCTemporalLevelInfoKey_TierFlag is the value is a number. // // See: https://developer.apple.com/documentation/CoreMedia/kCMHEVCTemporalLevelInfoKey_TierFlag KCMHEVCTemporalLevelInfoKey_TierFlag string // KCMMemoryPoolOption_AgeOutPeriod is the period of time before the pool recycles its memory. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMemoryPoolOption_AgeOutPeriod KCMMemoryPoolOption_AgeOutPeriod string // KCMMetadataBaseDataType_AffineTransformF64 is a type that identifies a 3x3 matrix of 64-bit big endian floating point numbers in a row-major order that specify an affine transform. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataBaseDataType_AffineTransformF64 KCMMetadataBaseDataType_AffineTransformF64 string // KCMMetadataBaseDataType_BMP is bMP image. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataBaseDataType_BMP KCMMetadataBaseDataType_BMP string // KCMMetadataBaseDataType_DimensionsF32 is consists of a 32-bit big endian floating point x value followed by a 32-bit floating point y value. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataBaseDataType_DimensionsF32 KCMMetadataBaseDataType_DimensionsF32 string // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataBaseDataType_ExtendedRasterRectangleValue KCMMetadataBaseDataType_ExtendedRasterRectangleValue string // KCMMetadataBaseDataType_Float32 is 32-bit big endian floating point number. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataBaseDataType_Float32 KCMMetadataBaseDataType_Float32 string // KCMMetadataBaseDataType_Float64 is 64-bit big endian floating point number. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataBaseDataType_Float64 KCMMetadataBaseDataType_Float64 string // KCMMetadataBaseDataType_GIF is gIF image. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataBaseDataType_GIF KCMMetadataBaseDataType_GIF string // KCMMetadataBaseDataType_JPEG is jPEG image. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataBaseDataType_JPEG KCMMetadataBaseDataType_JPEG string // KCMMetadataBaseDataType_JSON is uTF-8 encoded JSON data. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataBaseDataType_JSON KCMMetadataBaseDataType_JSON string // KCMMetadataBaseDataType_PNG is pNG image. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataBaseDataType_PNG KCMMetadataBaseDataType_PNG string // KCMMetadataBaseDataType_PerspectiveTransformF64 is a 3x3 matrix of 64-bit big endian floating point numbers the system stores in row-major order that specify a perspective transform. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataBaseDataType_PerspectiveTransformF64 KCMMetadataBaseDataType_PerspectiveTransformF64 string // KCMMetadataBaseDataType_PointF32 is consists of two 32-bit big endian floating point values, the x and y values, respectively. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataBaseDataType_PointF32 KCMMetadataBaseDataType_PointF32 string // KCMMetadataBaseDataType_PolygonF32 is three or more pairs of 32-bit floating point numbers (x and y values) that define the vertices of a polygon. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataBaseDataType_PolygonF32 KCMMetadataBaseDataType_PolygonF32 string // KCMMetadataBaseDataType_PolylineF32 is two or more pairs of 32-bit floating point numbers (x and y values) that define a multi-segmented line. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataBaseDataType_PolylineF32 KCMMetadataBaseDataType_PolylineF32 string // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataBaseDataType_RasterRectangleValue KCMMetadataBaseDataType_RasterRectangleValue string // KCMMetadataBaseDataType_RawData is a sequence of bytes whose interpretation based upon an agreement between the reader and the writer. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataBaseDataType_RawData KCMMetadataBaseDataType_RawData string // KCMMetadataBaseDataType_RectF32 is consists of four 32-bit big endian floating point values, the origin’s x, origin’s y, width and height values, respectively. May also be interpreted as a 32-bit floating point origin followed by a 32-bit floating point dimension. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataBaseDataType_RectF32 KCMMetadataBaseDataType_RectF32 string // KCMMetadataBaseDataType_SInt16 is 16-bit big endian signed integer. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataBaseDataType_SInt16 KCMMetadataBaseDataType_SInt16 string // KCMMetadataBaseDataType_SInt32 is 32-bit big endian signed integer. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataBaseDataType_SInt32 KCMMetadataBaseDataType_SInt32 string // KCMMetadataBaseDataType_SInt64 is 64-bit big endian signed integer. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataBaseDataType_SInt64 KCMMetadataBaseDataType_SInt64 string // KCMMetadataBaseDataType_SInt8 is 8-bit signed integer. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataBaseDataType_SInt8 KCMMetadataBaseDataType_SInt8 string // KCMMetadataBaseDataType_UInt16 is 16-bit big endian unsigned integer. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataBaseDataType_UInt16 KCMMetadataBaseDataType_UInt16 string // KCMMetadataBaseDataType_UInt32 is 32-bit big endian unsigned integer. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataBaseDataType_UInt32 KCMMetadataBaseDataType_UInt32 string // KCMMetadataBaseDataType_UInt64 is 64-bit big endian unsigned integer. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataBaseDataType_UInt64 KCMMetadataBaseDataType_UInt64 string // KCMMetadataBaseDataType_UInt8 is 8-bit unsigned integer. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataBaseDataType_UInt8 KCMMetadataBaseDataType_UInt8 string // KCMMetadataBaseDataType_UTF16 is uTF-16 string. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataBaseDataType_UTF16 KCMMetadataBaseDataType_UTF16 string // KCMMetadataBaseDataType_UTF8 is uTF-8 string. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataBaseDataType_UTF8 KCMMetadataBaseDataType_UTF8 string // KCMMetadataDataType_QuickTimeMetadataDirection is a string supplying degrees offset from magnetic North. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataDataType_QuickTimeMetadataDirection KCMMetadataDataType_QuickTimeMetadataDirection string // KCMMetadataDataType_QuickTimeMetadataLocation_ISO6709 is a string supplying location information in ISO-6709 format. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataDataType_QuickTimeMetadataLocation_ISO6709 KCMMetadataDataType_QuickTimeMetadataLocation_ISO6709 string // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataDataType_QuickTimeMetadataMilliLux KCMMetadataDataType_QuickTimeMetadataMilliLux string // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataDataType_QuickTimeMetadataUUID KCMMetadataDataType_QuickTimeMetadataUUID string // KCMMetadataFormatDescriptionKey_ConformingDataTypes is a key that identifies the conforming data types. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataFormatDescriptionKey_ConformingDataTypes KCMMetadataFormatDescriptionKey_ConformingDataTypes string // KCMMetadataFormatDescriptionKey_DataType is a key that identifies the data type. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataFormatDescriptionKey_DataType KCMMetadataFormatDescriptionKey_DataType string // KCMMetadataFormatDescriptionKey_DataTypeNamespace is a key that identifies the data type namespace. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataFormatDescriptionKey_DataTypeNamespace KCMMetadataFormatDescriptionKey_DataTypeNamespace string // KCMMetadataFormatDescriptionKey_LanguageTag is a key that identifies the language tag. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataFormatDescriptionKey_LanguageTag KCMMetadataFormatDescriptionKey_LanguageTag string // KCMMetadataFormatDescriptionKey_LocalID is a key that identifies the local identifier. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataFormatDescriptionKey_LocalID KCMMetadataFormatDescriptionKey_LocalID string // KCMMetadataFormatDescriptionKey_Namespace is a key that identifies the namespace. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataFormatDescriptionKey_Namespace KCMMetadataFormatDescriptionKey_Namespace string // KCMMetadataFormatDescriptionKey_SetupData is a key that identifies setup data. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataFormatDescriptionKey_SetupData KCMMetadataFormatDescriptionKey_SetupData string // KCMMetadataFormatDescriptionKey_StructuralDependency is a key that identifies the structural dependency. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataFormatDescriptionKey_StructuralDependency KCMMetadataFormatDescriptionKey_StructuralDependency string // KCMMetadataFormatDescriptionKey_Value is a key that identifies the value. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataFormatDescriptionKey_Value KCMMetadataFormatDescriptionKey_Value string // KCMMetadataFormatDescriptionMetadataSpecificationKey_DataType is a specification key that identifies the data type. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataFormatDescriptionMetadataSpecificationKey_DataType KCMMetadataFormatDescriptionMetadataSpecificationKey_DataType string // KCMMetadataFormatDescriptionMetadataSpecificationKey_ExtendedLanguageTag is a specification key that identifies the extended language tag. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataFormatDescriptionMetadataSpecificationKey_ExtendedLanguageTag KCMMetadataFormatDescriptionMetadataSpecificationKey_ExtendedLanguageTag string // KCMMetadataFormatDescriptionMetadataSpecificationKey_Identifier is a specification key that identifies the identifier. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataFormatDescriptionMetadataSpecificationKey_Identifier KCMMetadataFormatDescriptionMetadataSpecificationKey_Identifier string // KCMMetadataFormatDescriptionMetadataSpecificationKey_SetupData is a specification key that identifies the setup data. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataFormatDescriptionMetadataSpecificationKey_SetupData KCMMetadataFormatDescriptionMetadataSpecificationKey_SetupData string // KCMMetadataFormatDescriptionMetadataSpecificationKey_StructuralDependency is a specification key that identifies dependencies. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataFormatDescriptionMetadataSpecificationKey_StructuralDependency KCMMetadataFormatDescriptionMetadataSpecificationKey_StructuralDependency string // KCMMetadataFormatDescription_StructuralDependencyKey_DependencyIsInvalidFlag is a specification key that identifies the depencency isn’t valid. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataFormatDescription_StructuralDependencyKey_DependencyIsInvalidFlag KCMMetadataFormatDescription_StructuralDependencyKey_DependencyIsInvalidFlag string // KCMMetadataIdentifier_QuickTimeMetadataDirection_Facing is direction the observer is facing. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataIdentifier_QuickTimeMetadataDirection_Facing KCMMetadataIdentifier_QuickTimeMetadataDirection_Facing string // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataIdentifier_QuickTimeMetadataDisplayMaskRectangleMono KCMMetadataIdentifier_QuickTimeMetadataDisplayMaskRectangleMono string // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataIdentifier_QuickTimeMetadataDisplayMaskRectangleStereoLeft KCMMetadataIdentifier_QuickTimeMetadataDisplayMaskRectangleStereoLeft string // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataIdentifier_QuickTimeMetadataDisplayMaskRectangleStereoRight KCMMetadataIdentifier_QuickTimeMetadataDisplayMaskRectangleStereoRight string // KCMMetadataIdentifier_QuickTimeMetadataLivePhotoStillImageTransform is a perspective transform you use to adjust a Live Photo still image to match the Live Photo movie. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataIdentifier_QuickTimeMetadataLivePhotoStillImageTransform KCMMetadataIdentifier_QuickTimeMetadataLivePhotoStillImageTransform string // KCMMetadataIdentifier_QuickTimeMetadataLivePhotoStillImageTransformReferenceDimensions is the dimensions of the live photo still image. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataIdentifier_QuickTimeMetadataLivePhotoStillImageTransformReferenceDimensions KCMMetadataIdentifier_QuickTimeMetadataLivePhotoStillImageTransformReferenceDimensions string // KCMMetadataIdentifier_QuickTimeMetadataLocation_ISO6709 is location information in ISO-6709 format. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataIdentifier_QuickTimeMetadataLocation_ISO6709 KCMMetadataIdentifier_QuickTimeMetadataLocation_ISO6709 string // KCMMetadataIdentifier_QuickTimeMetadataPreferredAffineTransform is an affine transform to be applied to a video track. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataIdentifier_QuickTimeMetadataPreferredAffineTransform KCMMetadataIdentifier_QuickTimeMetadataPreferredAffineTransform string // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataIdentifier_QuickTimeMetadataPresentationImmersiveMedia KCMMetadataIdentifier_QuickTimeMetadataPresentationImmersiveMedia string // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataIdentifier_QuickTimeMetadataSceneIlluminance KCMMetadataIdentifier_QuickTimeMetadataSceneIlluminance string // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataIdentifier_QuickTimeMetadataSegmentIdentifier KCMMetadataIdentifier_QuickTimeMetadataSegmentIdentifier string // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataIdentifier_QuickTimeMetadataSpatialAudioMix KCMMetadataIdentifier_QuickTimeMetadataSpatialAudioMix string // KCMMetadataIdentifier_QuickTimeMetadataVideoOrientation is video orientation as defined by TIFF/EXIF. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataIdentifier_QuickTimeMetadataVideoOrientation KCMMetadataIdentifier_QuickTimeMetadataVideoOrientation string // KCMMetadataKeySpace_HLSDateRange is metadata keyspace for HLS DateRange tags. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataKeySpace_HLSDateRange KCMMetadataKeySpace_HLSDateRange string // KCMMetadataKeySpace_ID3 is metadata keyspace for ID3 keys. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataKeySpace_ID3 KCMMetadataKeySpace_ID3 string // KCMMetadataKeySpace_ISOUserData is metadata keyspace for MPEG-4 User Data keys. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataKeySpace_ISOUserData KCMMetadataKeySpace_ISOUserData string // KCMMetadataKeySpace_Icy is metadata keyspace for ShoutCast keys. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataKeySpace_Icy KCMMetadataKeySpace_Icy string // KCMMetadataKeySpace_QuickTimeMetadata is metadata keyspace for QuickTime Metadata keys. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataKeySpace_QuickTimeMetadata KCMMetadataKeySpace_QuickTimeMetadata string // KCMMetadataKeySpace_QuickTimeUserData is metadata keyspace for QuickTime User Data keys. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataKeySpace_QuickTimeUserData KCMMetadataKeySpace_QuickTimeUserData string // KCMMetadataKeySpace_iTunes is metadata keyspace for iTunes keys. // // See: https://developer.apple.com/documentation/CoreMedia/kCMMetadataKeySpace_iTunes KCMMetadataKeySpace_iTunes string // KCMSampleAttachmentKey_AudioIndependentSampleDecoderRefreshCount is an attachment that’s only present if the audio sample is an independent frame or immediate playout frame. // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleAttachmentKey_AudioIndependentSampleDecoderRefreshCount KCMSampleAttachmentKey_AudioIndependentSampleDecoderRefreshCount string // KCMSampleAttachmentKey_CryptorSubsampleAuxiliaryData is an attachment that describes the ranges of protected and unprotected data within a protected sample buffer. // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleAttachmentKey_CryptorSubsampleAuxiliaryData KCMSampleAttachmentKey_CryptorSubsampleAuxiliaryData string // KCMSampleAttachmentKey_DependsOnOthers is indicates whether the sample depends on other samples for decoding (type [CFBoolean]). // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleAttachmentKey_DependsOnOthers KCMSampleAttachmentKey_DependsOnOthers string // KCMSampleAttachmentKey_DisplayImmediately is indicates whether the sample should be displayed immediately (type [CFBoolean], default false). // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleAttachmentKey_DisplayImmediately KCMSampleAttachmentKey_DisplayImmediately string // KCMSampleAttachmentKey_DoNotDisplay is indicates whether the sample should be decoded but not displayed (type [CFBoolean], default false). // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleAttachmentKey_DoNotDisplay KCMSampleAttachmentKey_DoNotDisplay string // KCMSampleAttachmentKey_EarlierDisplayTimesAllowed is indicates whether later samples may have earlier display times (type [CFBoolean]). // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleAttachmentKey_EarlierDisplayTimesAllowed KCMSampleAttachmentKey_EarlierDisplayTimesAllowed string // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleAttachmentKey_HDR10PlusPerFrameData KCMSampleAttachmentKey_HDR10PlusPerFrameData string // KCMSampleAttachmentKey_HEVCStepwiseTemporalSubLayerAccess is an attachment that indicates a step-wise temporal sublayer access (STSA) sample grouping. // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleAttachmentKey_HEVCStepwiseTemporalSubLayerAccess KCMSampleAttachmentKey_HEVCStepwiseTemporalSubLayerAccess string // KCMSampleAttachmentKey_HEVCSyncSampleNALUnitType is an attachment that indicates a sync sample NAL unit type. // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleAttachmentKey_HEVCSyncSampleNALUnitType KCMSampleAttachmentKey_HEVCSyncSampleNALUnitType string // KCMSampleAttachmentKey_HEVCTemporalLevelInfo is an attachment that indicates a video frame’s level within a hierarchical frame dependency structure. // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleAttachmentKey_HEVCTemporalLevelInfo KCMSampleAttachmentKey_HEVCTemporalLevelInfo string // KCMSampleAttachmentKey_HEVCTemporalSubLayerAccess is an attachment that indicates a temporal sublayer access grouping. // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleAttachmentKey_HEVCTemporalSubLayerAccess KCMSampleAttachmentKey_HEVCTemporalSubLayerAccess string // KCMSampleAttachmentKey_HasRedundantCoding is indicates whether the sample has redundant coding (type [CFBoolean]). // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleAttachmentKey_HasRedundantCoding KCMSampleAttachmentKey_HasRedundantCoding string // KCMSampleAttachmentKey_IsDependedOnByOthers is indicates whether other samples depend on this sample for decoding (type [CFBoolean]). // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleAttachmentKey_IsDependedOnByOthers KCMSampleAttachmentKey_IsDependedOnByOthers string // KCMSampleAttachmentKey_NotSync is indicates whether the sample is a sync sample (type [CFBoolean], default false). // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleAttachmentKey_NotSync KCMSampleAttachmentKey_NotSync string // KCMSampleAttachmentKey_PartialSync is indicates whether the sample is a partial sync sample (type [CFBoolean], default false). // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleAttachmentKey_PartialSync KCMSampleAttachmentKey_PartialSync string // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleAttachmentKey_PostDecodeProcessingMetadata KCMSampleAttachmentKey_PostDecodeProcessingMetadata string // KCMSampleBufferAttachmentKey_CameraIntrinsicMatrix is an attachment that indicates a 3x3 camera intrinsic matrix to apply to the current sample buffer. // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferAttachmentKey_CameraIntrinsicMatrix KCMSampleBufferAttachmentKey_CameraIntrinsicMatrix string // KCMSampleBufferAttachmentKey_DisplayEmptyMediaImmediately is tells that the empty marker should be dequeued immediately regardless of its timestamp (type [CFBoolean], default false). // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferAttachmentKey_DisplayEmptyMediaImmediately KCMSampleBufferAttachmentKey_DisplayEmptyMediaImmediately string // KCMSampleBufferAttachmentKey_DrainAfterDecoding is indicates whether the sample buffer should be drained after decoding type [CFBoolean], default false). // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferAttachmentKey_DrainAfterDecoding KCMSampleBufferAttachmentKey_DrainAfterDecoding string // KCMSampleBufferAttachmentKey_DroppedFrameReason is indicates the reason the current video frame was dropped (type [CFString]). // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferAttachmentKey_DroppedFrameReason KCMSampleBufferAttachmentKey_DroppedFrameReason string // KCMSampleBufferAttachmentKey_DroppedFrameReasonInfo is indicates additional information regarding the dropped video frame (type [CFString]). // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferAttachmentKey_DroppedFrameReasonInfo KCMSampleBufferAttachmentKey_DroppedFrameReasonInfo string // KCMSampleBufferAttachmentKey_EmptyMedia is marks an intentionally empty interval in the sequence of samples (type [CFBoolean], default false). // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferAttachmentKey_EmptyMedia KCMSampleBufferAttachmentKey_EmptyMedia string // KCMSampleBufferAttachmentKey_EndsPreviousSampleDuration is indicates that sample buffer’s decode timestamp may be used to define the previous sample buffer’s duration (type [CFBoolean], default false). // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferAttachmentKey_EndsPreviousSampleDuration KCMSampleBufferAttachmentKey_EndsPreviousSampleDuration string // KCMSampleBufferAttachmentKey_FillDiscontinuitiesWithSilence is fill the difference between discontiguous sample buffers with silence (type [CFBoolean], default false). // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferAttachmentKey_FillDiscontinuitiesWithSilence KCMSampleBufferAttachmentKey_FillDiscontinuitiesWithSilence string // KCMSampleBufferAttachmentKey_ForceKeyFrame is indicates that the current or next video sample buffer should be forced to be encoded as a key frame. // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferAttachmentKey_ForceKeyFrame KCMSampleBufferAttachmentKey_ForceKeyFrame string // KCMSampleBufferAttachmentKey_GradualDecoderRefresh is indicates the decoder refresh count (type [CFNumber]). // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferAttachmentKey_GradualDecoderRefresh KCMSampleBufferAttachmentKey_GradualDecoderRefresh string // KCMSampleBufferAttachmentKey_PermanentEmptyMedia is marks the end of the sequence of samples (type [CFBoolean], default false). // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferAttachmentKey_PermanentEmptyMedia KCMSampleBufferAttachmentKey_PermanentEmptyMedia string // KCMSampleBufferAttachmentKey_PostNotificationWhenConsumed is if present, indicates that decode pipelines should post a notification when consuming the sample buffer(type [CFDictionary]). // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferAttachmentKey_PostNotificationWhenConsumed KCMSampleBufferAttachmentKey_PostNotificationWhenConsumed string // KCMSampleBufferAttachmentKey_ResetDecoderBeforeDecoding is indicates whether the sample buffer should be reset before decoding (type [CFBoolean], default false). // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferAttachmentKey_ResetDecoderBeforeDecoding KCMSampleBufferAttachmentKey_ResetDecoderBeforeDecoding string // KCMSampleBufferAttachmentKey_ResumeOutput is if present, indicates that output should be resumed following a discontinuity [CFBoolean], default false). // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferAttachmentKey_ResumeOutput KCMSampleBufferAttachmentKey_ResumeOutput string // KCMSampleBufferAttachmentKey_Reverse is indicates that the decoded contents of the sample buffer should be reversed (type [CFBoolean], default false). // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferAttachmentKey_Reverse KCMSampleBufferAttachmentKey_Reverse string // KCMSampleBufferAttachmentKey_SampleReferenceByteOffset is indicates the byte offset at which the sample data begins (type [CFNumber]). // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferAttachmentKey_SampleReferenceByteOffset KCMSampleBufferAttachmentKey_SampleReferenceByteOffset string // KCMSampleBufferAttachmentKey_SampleReferenceURL is indicates the URL where the sample data is (type [CFURL]). // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferAttachmentKey_SampleReferenceURL KCMSampleBufferAttachmentKey_SampleReferenceURL string // KCMSampleBufferAttachmentKey_SpeedMultiplier is the factor by which the sample buffer’s presentation should be accelerated (type [CFNumber], default 1.0). // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferAttachmentKey_SpeedMultiplier KCMSampleBufferAttachmentKey_SpeedMultiplier string // KCMSampleBufferAttachmentKey_StillImageLensStabilizationInfo is indicates information about the lens stabilization applied to the current still image buffer. // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferAttachmentKey_StillImageLensStabilizationInfo KCMSampleBufferAttachmentKey_StillImageLensStabilizationInfo string // KCMSampleBufferAttachmentKey_TransitionID is marks a transition from one source of buffers to another. // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferAttachmentKey_TransitionID KCMSampleBufferAttachmentKey_TransitionID string // KCMSampleBufferAttachmentKey_TrimDurationAtEnd is the duration that should be removed at the end of the sample buffer, after decoding. // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferAttachmentKey_TrimDurationAtEnd KCMSampleBufferAttachmentKey_TrimDurationAtEnd string // KCMSampleBufferAttachmentKey_TrimDurationAtStart is the duration that should be removed at the beginning of the sample buffer, after decoding. // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferAttachmentKey_TrimDurationAtStart KCMSampleBufferAttachmentKey_TrimDurationAtStart string // KCMSampleBufferConduitNotificationParameter_MaxUpcomingOutputPTS is specifies the maximum presentation timestamp of upcoming output samples (type [CFDictionary]). // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferConduitNotificationParameter_MaxUpcomingOutputPTS KCMSampleBufferConduitNotificationParameter_MaxUpcomingOutputPTS string // KCMSampleBufferConduitNotificationParameter_MinUpcomingOutputPTS is specifies the minimum presentation timestamp of upcoming output samples (type [CFDictionary]). // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferConduitNotificationParameter_MinUpcomingOutputPTS KCMSampleBufferConduitNotificationParameter_MinUpcomingOutputPTS string // KCMSampleBufferConduitNotificationParameter_ResumeTag is specifies a tag to be attached to the first sample buffer following a discontinuity (type [CFNumber]). // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferConduitNotificationParameter_ResumeTag KCMSampleBufferConduitNotificationParameter_ResumeTag string // KCMSampleBufferConduitNotificationParameter_UpcomingOutputPTSRangeMayOverlapQueuedOutputPTSRange is indicates that the presentation timestamps of upcoming output samples may overlap those of samples queued for output (type [CFBoolean]). // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferConduitNotificationParameter_UpcomingOutputPTSRangeMayOverlapQueuedOutputPTSRange KCMSampleBufferConduitNotificationParameter_UpcomingOutputPTSRangeMayOverlapQueuedOutputPTSRange string // KCMSampleBufferConduitNotification_InhibitOutputUntil is posted on a conduit of sample buffers to announce a coming discontinuity. // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferConduitNotification_InhibitOutputUntil KCMSampleBufferConduitNotification_InhibitOutputUntil string // KCMSampleBufferConduitNotification_ResetOutput is posted on a conduit of sample buffers to request invalidation of pending output data. // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferConduitNotification_ResetOutput KCMSampleBufferConduitNotification_ResetOutput string // KCMSampleBufferConduitNotification_UpcomingOutputPTSRangeChanged is posted on a conduit of video sample buffers to report information about the range of upcoming output presentation timestamps. // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferConduitNotification_UpcomingOutputPTSRangeChanged KCMSampleBufferConduitNotification_UpcomingOutputPTSRangeChanged string // KCMSampleBufferConsumerNotification_BufferConsumed is optionally posted when a sample buffer is consumed. // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferConsumerNotification_BufferConsumed KCMSampleBufferConsumerNotification_BufferConsumed string // KCMSampleBufferDroppedFrameReasonInfo_CameraModeSwitch is a discontinuity was caused by a camera mode switch. // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferDroppedFrameReasonInfo_CameraModeSwitch KCMSampleBufferDroppedFrameReasonInfo_CameraModeSwitch string // KCMSampleBufferDroppedFrameReason_Discontinuity is an unknown number of frames were dropped. // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferDroppedFrameReason_Discontinuity KCMSampleBufferDroppedFrameReason_Discontinuity string // KCMSampleBufferDroppedFrameReason_FrameWasLate is the frame was dropped because it was late. // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferDroppedFrameReason_FrameWasLate KCMSampleBufferDroppedFrameReason_FrameWasLate string // KCMSampleBufferDroppedFrameReason_OutOfBuffers is the frame was dropped because the module providing frames is out of buffers. // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferDroppedFrameReason_OutOfBuffers KCMSampleBufferDroppedFrameReason_OutOfBuffers string // KCMSampleBufferLensStabilizationInfo_Active is the lens stabilization module was active for the duration this buffer. // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferLensStabilizationInfo_Active KCMSampleBufferLensStabilizationInfo_Active string // KCMSampleBufferLensStabilizationInfo_Off is the lens stabilization module was not used during this capture. // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferLensStabilizationInfo_Off KCMSampleBufferLensStabilizationInfo_Off string // KCMSampleBufferLensStabilizationInfo_OutOfRange is the motion of the device or duration of the capture was outside of what the stabilization mechanism could support. // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferLensStabilizationInfo_OutOfRange KCMSampleBufferLensStabilizationInfo_OutOfRange string // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferLensStabilizationInfo_Unavailable KCMSampleBufferLensStabilizationInfo_Unavailable string // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferNotificationParameter_OSStatus KCMSampleBufferNotificationParameter_OSStatus string // KCMSampleBufferNotification_DataBecameReady is posted on a sample buffer by the [CMSampleBufferSetDataReady(_:)] function when the buffer becomes ready. // // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferNotification_DataBecameReady KCMSampleBufferNotification_DataBecameReady string // See: https://developer.apple.com/documentation/CoreMedia/kCMSampleBufferNotification_DataFailed KCMSampleBufferNotification_DataFailed string // KCMTagCategoryKey is a constant for use as a key during tag creation from a dictionary, whose value is the tag’s category. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTagCategoryKey KCMTagCategoryKey string // KCMTagCollectionTagsArrayKey is a dictionary key for assigning tag collections to. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTagCollectionTagsArrayKey KCMTagCollectionTagsArrayKey string // KCMTagDataTypeKey is a constant for use as a key during tag creation from a dictionary, whose value is the tag’s data type. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTagDataTypeKey KCMTagDataTypeKey string // KCMTagValueKey is a constant for use as a key during tag creation from a dictionary, whose value is the tag’s contained value. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTagValueKey KCMTagValueKey string // KCMTextFormatDescriptionColor_Alpha is the color value for the alpha is a number. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextFormatDescriptionColor_Alpha KCMTextFormatDescriptionColor_Alpha string // KCMTextFormatDescriptionColor_Blue is the color value for blue is a number. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextFormatDescriptionColor_Blue KCMTextFormatDescriptionColor_Blue string // KCMTextFormatDescriptionColor_Green is the color value for green is a number. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextFormatDescriptionColor_Green KCMTextFormatDescriptionColor_Green string // KCMTextFormatDescriptionColor_Red is the color value for red is a number. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextFormatDescriptionColor_Red KCMTextFormatDescriptionColor_Red string // KCMTextFormatDescriptionExtension_BackgroundColor is the extension flag that represents the background color. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextFormatDescriptionExtension_BackgroundColor KCMTextFormatDescriptionExtension_BackgroundColor string // KCMTextFormatDescriptionExtension_DefaultFontName is the extension flag that represents the default font name. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextFormatDescriptionExtension_DefaultFontName KCMTextFormatDescriptionExtension_DefaultFontName string // KCMTextFormatDescriptionExtension_DefaultStyle is the extension flag that represents the default style. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextFormatDescriptionExtension_DefaultStyle KCMTextFormatDescriptionExtension_DefaultStyle string // KCMTextFormatDescriptionExtension_DefaultTextBox is the extension flag that represents the default text box. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextFormatDescriptionExtension_DefaultTextBox KCMTextFormatDescriptionExtension_DefaultTextBox string // KCMTextFormatDescriptionExtension_DisplayFlags is the extension flag that represents the display flags. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextFormatDescriptionExtension_DisplayFlags KCMTextFormatDescriptionExtension_DisplayFlags string // KCMTextFormatDescriptionExtension_FontTable is the extension flag that represents the font table. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextFormatDescriptionExtension_FontTable KCMTextFormatDescriptionExtension_FontTable string // KCMTextFormatDescriptionExtension_HorizontalJustification is the extension flag that represents the horizontal justification. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextFormatDescriptionExtension_HorizontalJustification KCMTextFormatDescriptionExtension_HorizontalJustification string // KCMTextFormatDescriptionExtension_TextJustification is the extension flag that represents the text justification. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextFormatDescriptionExtension_TextJustification KCMTextFormatDescriptionExtension_TextJustification string // KCMTextFormatDescriptionExtension_VerticalJustification is the extension flag that represents the vertical justification. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextFormatDescriptionExtension_VerticalJustification KCMTextFormatDescriptionExtension_VerticalJustification string // KCMTextFormatDescriptionRect_Bottom is the bottom value for the rect as a 16-bit number. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextFormatDescriptionRect_Bottom KCMTextFormatDescriptionRect_Bottom string // KCMTextFormatDescriptionRect_Left is the left value for the rect as a 16-bit number. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextFormatDescriptionRect_Left KCMTextFormatDescriptionRect_Left string // KCMTextFormatDescriptionRect_Right is the right value for the rect as a 16-bit number. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextFormatDescriptionRect_Right KCMTextFormatDescriptionRect_Right string // KCMTextFormatDescriptionRect_Top is the top value for the rect as a 16-bit number. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextFormatDescriptionRect_Top KCMTextFormatDescriptionRect_Top string // KCMTextFormatDescriptionStyle_Ascent is the style value for the ascent. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextFormatDescriptionStyle_Ascent KCMTextFormatDescriptionStyle_Ascent string // KCMTextFormatDescriptionStyle_EndChar is the style value for the ending character. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextFormatDescriptionStyle_EndChar KCMTextFormatDescriptionStyle_EndChar string // KCMTextFormatDescriptionStyle_Font is the style value for font. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextFormatDescriptionStyle_Font KCMTextFormatDescriptionStyle_Font string // KCMTextFormatDescriptionStyle_FontFace is the style value for font face. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextFormatDescriptionStyle_FontFace KCMTextFormatDescriptionStyle_FontFace string // KCMTextFormatDescriptionStyle_FontSize is the style value for the font size. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextFormatDescriptionStyle_FontSize KCMTextFormatDescriptionStyle_FontSize string // KCMTextFormatDescriptionStyle_ForegroundColor is the style value for foreground color. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextFormatDescriptionStyle_ForegroundColor KCMTextFormatDescriptionStyle_ForegroundColor string // KCMTextFormatDescriptionStyle_Height is the style value for the height. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextFormatDescriptionStyle_Height KCMTextFormatDescriptionStyle_Height string // KCMTextFormatDescriptionStyle_StartChar is the style value for the starting character. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextFormatDescriptionStyle_StartChar KCMTextFormatDescriptionStyle_StartChar string // KCMTextMarkupAlignmentType_End is an alignment type that visually aligns the text at its ending side. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupAlignmentType_End KCMTextMarkupAlignmentType_End string // KCMTextMarkupAlignmentType_Left is an alignment type that visually aligns text from left-to-right. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupAlignmentType_Left KCMTextMarkupAlignmentType_Left string // KCMTextMarkupAlignmentType_Middle is an alignment type that visually aligns text in the center between its starting and ending sides. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupAlignmentType_Middle KCMTextMarkupAlignmentType_Middle string // KCMTextMarkupAlignmentType_Right is an alignment type that visually aligns text from right-to-left. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupAlignmentType_Right KCMTextMarkupAlignmentType_Right string // KCMTextMarkupAlignmentType_Start is an alignment type that visually aligns the text at its starting side. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupAlignmentType_Start KCMTextMarkupAlignmentType_Start string // KCMTextMarkupAttribute_Alignment is the text alignment in the writing direction of the first line of text. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupAttribute_Alignment KCMTextMarkupAttribute_Alignment string // KCMTextMarkupAttribute_BackgroundColorARGB is a background color for the text. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupAttribute_BackgroundColorARGB KCMTextMarkupAttribute_BackgroundColorARGB string // KCMTextMarkupAttribute_BaseFontSizePercentageRelativeToVideoHeight is a base font size as a percentage of the video height. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupAttribute_BaseFontSizePercentageRelativeToVideoHeight KCMTextMarkupAttribute_BaseFontSizePercentageRelativeToVideoHeight string // KCMTextMarkupAttribute_BoldStyle is a bold font style. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupAttribute_BoldStyle KCMTextMarkupAttribute_BoldStyle string // KCMTextMarkupAttribute_CharacterBackgroundColorARGB is a background color for individual text characters. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupAttribute_CharacterBackgroundColorARGB KCMTextMarkupAttribute_CharacterBackgroundColorARGB string // KCMTextMarkupAttribute_CharacterEdgeStyle is a style for character edges. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupAttribute_CharacterEdgeStyle KCMTextMarkupAttribute_CharacterEdgeStyle string // KCMTextMarkupAttribute_FontFamilyName is a name of a font family. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupAttribute_FontFamilyName KCMTextMarkupAttribute_FontFamilyName string // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupAttribute_FontFamilyNameList KCMTextMarkupAttribute_FontFamilyNameList string // KCMTextMarkupAttribute_ForegroundColorARGB is a foreground color for the text. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupAttribute_ForegroundColorARGB KCMTextMarkupAttribute_ForegroundColorARGB string // KCMTextMarkupAttribute_GenericFontFamilyName is a generic font family name identifier. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupAttribute_GenericFontFamilyName KCMTextMarkupAttribute_GenericFontFamilyName string // KCMTextMarkupAttribute_ItalicStyle is an italic font style. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupAttribute_ItalicStyle KCMTextMarkupAttribute_ItalicStyle string // KCMTextMarkupAttribute_OrthogonalLinePositionPercentageRelativeToWritingDirection is the placement of the first line in a block of text as a percentage in the direction orthogonal to the writing direction. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupAttribute_OrthogonalLinePositionPercentageRelativeToWritingDirection KCMTextMarkupAttribute_OrthogonalLinePositionPercentageRelativeToWritingDirection string // KCMTextMarkupAttribute_RelativeFontSize is a font size as a percentage of the current default font size. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupAttribute_RelativeFontSize KCMTextMarkupAttribute_RelativeFontSize string // KCMTextMarkupAttribute_TextPositionPercentageRelativeToWritingDirection is the placement of the block of text as a percentage in the writing direction. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupAttribute_TextPositionPercentageRelativeToWritingDirection KCMTextMarkupAttribute_TextPositionPercentageRelativeToWritingDirection string // KCMTextMarkupAttribute_UnderlineStyle is an underline font style. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupAttribute_UnderlineStyle KCMTextMarkupAttribute_UnderlineStyle string // KCMTextMarkupAttribute_VerticalLayout is the vertical layout of a text block. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupAttribute_VerticalLayout KCMTextMarkupAttribute_VerticalLayout string // KCMTextMarkupAttribute_WritingDirectionSizePercentage is the width or height as a percentage of the bounding box that contains the text. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupAttribute_WritingDirectionSizePercentage KCMTextMarkupAttribute_WritingDirectionSizePercentage string // KCMTextMarkupCharacterEdgeStyle_Depressed is a depressed edge style. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupCharacterEdgeStyle_Depressed KCMTextMarkupCharacterEdgeStyle_Depressed string // KCMTextMarkupCharacterEdgeStyle_DropShadow is a drop shadow style. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupCharacterEdgeStyle_DropShadow KCMTextMarkupCharacterEdgeStyle_DropShadow string // KCMTextMarkupCharacterEdgeStyle_None is no edge style. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupCharacterEdgeStyle_None KCMTextMarkupCharacterEdgeStyle_None string // KCMTextMarkupCharacterEdgeStyle_Raised is a raised edge style. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupCharacterEdgeStyle_Raised KCMTextMarkupCharacterEdgeStyle_Raised string // KCMTextMarkupCharacterEdgeStyle_Uniform is a uniform border style. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupCharacterEdgeStyle_Uniform KCMTextMarkupCharacterEdgeStyle_Uniform string // KCMTextMarkupGenericFontName_Casual is a casual font. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupGenericFontName_Casual KCMTextMarkupGenericFontName_Casual string // KCMTextMarkupGenericFontName_Cursive is a cursive font. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupGenericFontName_Cursive KCMTextMarkupGenericFontName_Cursive string // KCMTextMarkupGenericFontName_Default is the default font. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupGenericFontName_Default KCMTextMarkupGenericFontName_Default string // KCMTextMarkupGenericFontName_Fantasy is a fantasy font. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupGenericFontName_Fantasy KCMTextMarkupGenericFontName_Fantasy string // KCMTextMarkupGenericFontName_Monospace is a monospaced font with or without serifs. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupGenericFontName_Monospace KCMTextMarkupGenericFontName_Monospace string // KCMTextMarkupGenericFontName_MonospaceSansSerif is a monospaced font without serifs. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupGenericFontName_MonospaceSansSerif KCMTextMarkupGenericFontName_MonospaceSansSerif string // KCMTextMarkupGenericFontName_MonospaceSerif is a monospaced font with serifs. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupGenericFontName_MonospaceSerif KCMTextMarkupGenericFontName_MonospaceSerif string // KCMTextMarkupGenericFontName_ProportionalSansSerif is a proportional font without serifs. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupGenericFontName_ProportionalSansSerif KCMTextMarkupGenericFontName_ProportionalSansSerif string // KCMTextMarkupGenericFontName_ProportionalSerif is a proportional font with serifs. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupGenericFontName_ProportionalSerif KCMTextMarkupGenericFontName_ProportionalSerif string // KCMTextMarkupGenericFontName_SansSerif is a font without serifs. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupGenericFontName_SansSerif KCMTextMarkupGenericFontName_SansSerif string // KCMTextMarkupGenericFontName_Serif is a font with serifs. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupGenericFontName_Serif KCMTextMarkupGenericFontName_Serif string // KCMTextMarkupGenericFontName_SmallCapital is a font with lowercase letters set as small capital letters. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextMarkupGenericFontName_SmallCapital KCMTextMarkupGenericFontName_SmallCapital string // KCMTextVerticalLayout_LeftToRight is add new vertical lines from left to right. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextVerticalLayout_LeftToRight KCMTextVerticalLayout_LeftToRight string // KCMTextVerticalLayout_RightToLeft is add new vertical lines from right to left. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTextVerticalLayout_RightToLeft KCMTextVerticalLayout_RightToLeft string // KCMTimeCodeFormatDescriptionExtension_SourceReferenceName is an extension that describes the source reference name. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTimeCodeFormatDescriptionExtension_SourceReferenceName KCMTimeCodeFormatDescriptionExtension_SourceReferenceName string // KCMTimeCodeFormatDescriptionKey_LangCode is a key that describes the language code. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTimeCodeFormatDescriptionKey_LangCode KCMTimeCodeFormatDescriptionKey_LangCode string // KCMTimeCodeFormatDescriptionKey_Value is a key that describes the value. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTimeCodeFormatDescriptionKey_Value KCMTimeCodeFormatDescriptionKey_Value string // KCMTimeEpochKey is a dictionary key for a time epoch. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTimeEpochKey KCMTimeEpochKey string // KCMTimeFlagsKey is a dictionary key for time flags. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTimeFlagsKey KCMTimeFlagsKey string // KCMTimeMappingSourceKey is a dictionary key for a source time range. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTimeMappingSourceKey KCMTimeMappingSourceKey string // KCMTimeMappingTargetKey is a dictionary key for a target time range. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTimeMappingTargetKey KCMTimeMappingTargetKey string // KCMTimeRangeDurationKey is the key for the timescale of a time range. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTimeRangeDurationKey KCMTimeRangeDurationKey string // KCMTimeRangeStartKey is the key for the start field of a time range. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTimeRangeStartKey KCMTimeRangeStartKey string // KCMTimeScaleKey is a dictionary key for a timescale. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTimeScaleKey KCMTimeScaleKey string // KCMTimeValueKey is a dictionary key for a time value. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTimeValueKey KCMTimeValueKey string // KCMTimebaseNotificationKey_EventTime is a notification that a timebase posts after a discontinuous time jump. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTimebaseNotificationKey_EventTime KCMTimebaseNotificationKey_EventTime string // KCMTimebaseNotification_EffectiveRateChanged is a notification that posts by a timebase after a change in effective rate. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTimebaseNotification_EffectiveRateChanged KCMTimebaseNotification_EffectiveRateChanged string // KCMTimebaseNotification_TimeJumped is a notification that posts by a timebase after a discontinuous time jump. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTimebaseNotification_TimeJumped KCMTimebaseNotification_TimeJumped string )
Functions ¶
func BindFunc ¶
BindFunc binds the CoreMedia symbol name into fptr, which must be a pointer to a func variable.
The caller supplies the signature, and nothing checks it. A dylib records no argument count or types for a C symbol, so a wrong signature here is not a type error: it is the wrong number of machine words moved on a live stack, and the failure surfaces somewhere else entirely. Prefer a generated binding, whose signature carries recorded evidence, and reach for this only for a symbol that has none. purego.RegisterFunc panics on a signature it cannot lower; that is recovered and returned, because an escape hatch that takes down the process on a mistyped experiment is not one anybody can experiment with.
func CMAudioDeviceClockCreate ¶
func CMAudioDeviceClockCreate(allocator corefoundation.CFAllocatorRef, deviceUID corefoundation.CFStringRef, clockOut *CMClockRef) int32
CMAudioDeviceClockCreate creates a clock that tracks playback through a Core Audio device with the specified unique identifier.
It panics if CMAudioDeviceClockCreate is unavailable at run time; use TryCMAudioDeviceClockCreate to get an error instead.
func CMAudioDeviceClockCreateFromAudioDeviceID ¶
func CMAudioDeviceClockCreateFromAudioDeviceID(allocator corefoundation.CFAllocatorRef, deviceID uint32, clockOut *CMClockRef) int32
CMAudioDeviceClockCreateFromAudioDeviceID creates a clock that tracks playback through a Core Audio device with the specified identifier.
It panics if CMAudioDeviceClockCreateFromAudioDeviceID is unavailable at run time; use TryCMAudioDeviceClockCreateFromAudioDeviceID to get an error instead.
func CMAudioDeviceClockGetAudioDevice ¶
func CMAudioDeviceClockGetAudioDevice(clock CMClockRef, deviceUIDOut *corefoundation.CFStringRef, deviceIDOut *uint32, trackingDefaultDeviceOut *bool) int32
CMAudioDeviceClockGetAudioDevice returns the Core Audio device the clock is tracking.
It panics if CMAudioDeviceClockGetAudioDevice is unavailable at run time; use TryCMAudioDeviceClockGetAudioDevice to get an error instead.
func CMAudioDeviceClockSetAudioDeviceID ¶
func CMAudioDeviceClockSetAudioDeviceID(clock CMClockRef, deviceID uint32) int32
CMAudioDeviceClockSetAudioDeviceID changes the Core Audio device the clock is tracking by specifying a new device identifier.
It panics if CMAudioDeviceClockSetAudioDeviceID is unavailable at run time; use TryCMAudioDeviceClockSetAudioDeviceID to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMAudioDeviceClockSetAudioDeviceID(_:deviceID:)
func CMAudioDeviceClockSetAudioDeviceUID ¶
func CMAudioDeviceClockSetAudioDeviceUID(clock CMClockRef, deviceUID corefoundation.CFStringRef) int32
CMAudioDeviceClockSetAudioDeviceUID changes the Core Audio device the clock is tracking by specifying a new device unique identifier.
It panics if CMAudioDeviceClockSetAudioDeviceUID is unavailable at run time; use TryCMAudioDeviceClockSetAudioDeviceUID to get an error instead.
func CMAudioFormatDescriptionCopyAsBigEndianSoundDescriptionBlockBuffer ¶
func CMAudioFormatDescriptionCopyAsBigEndianSoundDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, audioFormatDescription CMAudioFormatDescriptionRef, flavor CMSoundDescriptionFlavor, blockBufferOut *uintptr) int32
CMAudioFormatDescriptionCopyAsBigEndianSoundDescriptionBlockBuffer copies the contents of an audio format description to a buffer in big-endian byte ordering.
It panics if CMAudioFormatDescriptionCopyAsBigEndianSoundDescriptionBlockBuffer is unavailable at run time; use TryCMAudioFormatDescriptionCopyAsBigEndianSoundDescriptionBlockBuffer to get an error instead.
func CMAudioFormatDescriptionCreate ¶
func CMAudioFormatDescriptionCreate(allocator corefoundation.CFAllocatorRef, asbd *coreaudiotypes.AudioStreamBasicDescription, layoutSize uintptr, layout *coreaudiotypes.AudioChannelLayout, magicCookieSize uintptr, magicCookie unsafe.Pointer, extensions corefoundation.CFDictionaryRef, formatDescriptionOut *CMAudioFormatDescriptionRef) int32
CMAudioFormatDescriptionCreate creates a format description for an audio media stream.
It panics if CMAudioFormatDescriptionCreate is unavailable at run time; use TryCMAudioFormatDescriptionCreate to get an error instead.
func CMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionBlockBuffer ¶
func CMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, soundDescriptionBlockBuffer CMBlockBufferRef, flavor CMSoundDescriptionFlavor, formatDescriptionOut *CMAudioFormatDescriptionRef) int32
CMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionBlockBuffer creates an audio format description from a big-endian sound description data structure in a buffer.
It panics if CMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionBlockBuffer is unavailable at run time; use TryCMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionBlockBuffer to get an error instead.
func CMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionData ¶
func CMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionData(allocator corefoundation.CFAllocatorRef, soundDescriptionData []byte, size uintptr, flavor CMSoundDescriptionFlavor, formatDescriptionOut *CMAudioFormatDescriptionRef) int32
CMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionData creates an audio format description from a big-endian sound description data structure.
It panics if CMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionData is unavailable at run time; use TryCMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionData to get an error instead.
func CMAudioFormatDescriptionCreateSummary ¶
func CMAudioFormatDescriptionCreateSummary(allocator corefoundation.CFAllocatorRef, formatDescriptionArray corefoundation.CFArrayRef, flags uint32, formatDescriptionOut *CMAudioFormatDescriptionRef) int32
CMAudioFormatDescriptionCreateSummary creates a summary audio format description from an array of descriptions.
It panics if CMAudioFormatDescriptionCreateSummary is unavailable at run time; use TryCMAudioFormatDescriptionCreateSummary to get an error instead.
func CMAudioFormatDescriptionEqual ¶
func CMAudioFormatDescriptionEqual(formatDescription CMAudioFormatDescriptionRef, otherFormatDescription CMAudioFormatDescriptionRef, equalityMask CMAudioFormatDescriptionMask, equalityMaskOut *CMAudioFormatDescriptionMask) bool
CMAudioFormatDescriptionEqual returns a Boolean value that indicates whether the two audio format descriptions are equal.
It panics if CMAudioFormatDescriptionEqual is unavailable at run time; use TryCMAudioFormatDescriptionEqual to get an error instead.
func CMAudioFormatDescriptionGetChannelLayout ¶
func CMAudioFormatDescriptionGetChannelLayout(desc CMAudioFormatDescriptionRef, sizeOut *uintptr) *coreaudiotypes.AudioChannelLayout
CMAudioFormatDescriptionGetChannelLayout returns a read-only pointer to, and the size of, the audio channel layout inside an audio format description.
It panics if CMAudioFormatDescriptionGetChannelLayout is unavailable at run time; use TryCMAudioFormatDescriptionGetChannelLayout to get an error instead.
func CMAudioFormatDescriptionGetFormatList ¶
func CMAudioFormatDescriptionGetFormatList(desc CMAudioFormatDescriptionRef, sizeOut *uintptr) *audiotoolbox.AudioFormatListItem
CMAudioFormatDescriptionGetFormatList returns a read-only pointer to, and size of, the array of audio format list item structures in an audio format description.
It panics if CMAudioFormatDescriptionGetFormatList is unavailable at run time; use TryCMAudioFormatDescriptionGetFormatList to get an error instead.
func CMAudioFormatDescriptionGetMagicCookie ¶
func CMAudioFormatDescriptionGetMagicCookie(desc CMAudioFormatDescriptionRef, sizeOut *uintptr) unsafe.Pointer
CMAudioFormatDescriptionGetMagicCookie returns a read-only pointer to, and size of, the magic cookie in an audio format description.
It panics if CMAudioFormatDescriptionGetMagicCookie is unavailable at run time; use TryCMAudioFormatDescriptionGetMagicCookie to get an error instead.
func CMAudioFormatDescriptionGetMostCompatibleFormat ¶
func CMAudioFormatDescriptionGetMostCompatibleFormat(desc CMAudioFormatDescriptionRef) *audiotoolbox.AudioFormatListItem
CMAudioFormatDescriptionGetMostCompatibleFormat returns a read-only pointer to the appropriate audio format list item in an audio format description.
It panics if CMAudioFormatDescriptionGetMostCompatibleFormat is unavailable at run time; use TryCMAudioFormatDescriptionGetMostCompatibleFormat to get an error instead.
func CMAudioFormatDescriptionGetRichestDecodableFormat ¶
func CMAudioFormatDescriptionGetRichestDecodableFormat(desc CMAudioFormatDescriptionRef) *audiotoolbox.AudioFormatListItem
CMAudioFormatDescriptionGetRichestDecodableFormat returns a read-only pointer to the appropriate audio format list item in an audio format description.
It panics if CMAudioFormatDescriptionGetRichestDecodableFormat is unavailable at run time; use TryCMAudioFormatDescriptionGetRichestDecodableFormat to get an error instead.
func CMAudioFormatDescriptionGetStreamBasicDescription ¶
func CMAudioFormatDescriptionGetStreamBasicDescription(desc CMAudioFormatDescriptionRef) *coreaudiotypes.AudioStreamBasicDescription
CMAudioFormatDescriptionGetStreamBasicDescription returns a read-only pointer to the audio stream description in an audio format description.
It panics if CMAudioFormatDescriptionGetStreamBasicDescription is unavailable at run time; use TryCMAudioFormatDescriptionGetStreamBasicDescription to get an error instead.
func CMAudioSampleBufferCreateReadyWithPacketDescriptions ¶
func CMAudioSampleBufferCreateReadyWithPacketDescriptions(allocator corefoundation.CFAllocatorRef, dataBuffer CMBlockBufferRef, formatDescription CMFormatDescriptionRef, numSamples CMItemCount, presentationTimeStamp CMTime, packetDescriptions *coreaudiotypes.AudioStreamPacketDescription, sampleBufferOut *CMSampleBufferRef) int32
CMAudioSampleBufferCreateReadyWithPacketDescriptions creates a sample buffer with packet descriptions.
It panics if CMAudioSampleBufferCreateReadyWithPacketDescriptions is unavailable at run time; use TryCMAudioSampleBufferCreateReadyWithPacketDescriptions to get an error instead.
func CMAudioSampleBufferCreateWithPacketDescriptions ¶
func CMAudioSampleBufferCreateWithPacketDescriptions(allocator corefoundation.CFAllocatorRef, dataBuffer CMBlockBufferRef, dataReady bool, makeDataReadyCallback CMSampleBufferMakeDataReadyCallback, makeDataReadyRefcon unsafe.Pointer, formatDescription CMFormatDescriptionRef, numSamples CMItemCount, presentationTimeStamp CMTime, packetDescriptions *coreaudiotypes.AudioStreamPacketDescription, sampleBufferOut *CMSampleBufferRef) int32
CMAudioSampleBufferCreateWithPacketDescriptions creates a sample buffer with packet descriptions and a callback to make the data ready for use.
It panics if CMAudioSampleBufferCreateWithPacketDescriptions is unavailable at run time; use TryCMAudioSampleBufferCreateWithPacketDescriptions to get an error instead.
func CMAudioSampleBufferCreateWithPacketDescriptionsAndMakeDataReadyHandler ¶
func CMAudioSampleBufferCreateWithPacketDescriptionsAndMakeDataReadyHandler(allocator corefoundation.CFAllocatorRef, dataBuffer CMBlockBufferRef, dataReady bool, formatDescription CMFormatDescriptionRef, numSamples CMItemCount, presentationTimeStamp CMTime, packetDescriptions *coreaudiotypes.AudioStreamPacketDescription, sampleBufferOut *CMSampleBufferRef, makeDataReadyHandler CMSampleBufferMakeDataReadyHandler) int32
CMAudioSampleBufferCreateWithPacketDescriptionsAndMakeDataReadyHandler creates a sample buffer with packet descriptions and a handler to make the data ready for use.
It panics if CMAudioSampleBufferCreateWithPacketDescriptionsAndMakeDataReadyHandler is unavailable at run time; use TryCMAudioSampleBufferCreateWithPacketDescriptionsAndMakeDataReadyHandler to get an error instead.
func CMBlockBufferAccessDataBytes ¶
func CMBlockBufferAccessDataBytes(theBuffer CMBlockBufferRef, offset uintptr, length uintptr, temporaryBlock unsafe.Pointer, returnedPointerOut **byte) int32
CMBlockBufferAccessDataBytes accesses potentially noncontiguous data in a block buffer.
It panics if CMBlockBufferAccessDataBytes is unavailable at run time; use TryCMBlockBufferAccessDataBytes to get an error instead.
func CMBlockBufferAppendBufferReference ¶
func CMBlockBufferAppendBufferReference(theBuffer CMBlockBufferRef, targetBBuf CMBlockBufferRef, offsetToData uintptr, dataLength uintptr, flags CMBlockBufferFlags) int32
CMBlockBufferAppendBufferReference adds a reference to an existing block buffer.
It panics if CMBlockBufferAppendBufferReference is unavailable at run time; use TryCMBlockBufferAppendBufferReference to get an error instead.
func CMBlockBufferAppendMemoryBlock ¶
func CMBlockBufferAppendMemoryBlock(theBuffer CMBlockBufferRef, memoryBlock unsafe.Pointer, blockLength uintptr, blockAllocator corefoundation.CFAllocatorRef, customBlockSource *CMBlockBufferCustomBlockSource, offsetToData uintptr, dataLength uintptr, flags CMBlockBufferFlags) int32
CMBlockBufferAppendMemoryBlock adds a memory block to an existing block buffer.
It panics if CMBlockBufferAppendMemoryBlock is unavailable at run time; use TryCMBlockBufferAppendMemoryBlock to get an error instead.
func CMBlockBufferAssureBlockMemory ¶
func CMBlockBufferAssureBlockMemory(theBuffer CMBlockBufferRef) int32
CMBlockBufferAssureBlockMemory assures that the system allocates memory for all memory blocks in a block buffer.
It panics if CMBlockBufferAssureBlockMemory is unavailable at run time; use TryCMBlockBufferAssureBlockMemory to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMBlockBufferAssureBlockMemory(_:)
func CMBlockBufferCopyDataBytes ¶
func CMBlockBufferCopyDataBytes(theSourceBuffer CMBlockBufferRef, offsetToData uintptr, dataLength uintptr, destination unsafe.Pointer) int32
CMBlockBufferCopyDataBytes copies bytes from a block buffer into a provided memory area.
It panics if CMBlockBufferCopyDataBytes is unavailable at run time; use TryCMBlockBufferCopyDataBytes to get an error instead.
func CMBlockBufferCreateContiguous ¶
func CMBlockBufferCreateContiguous(structureAllocator corefoundation.CFAllocatorRef, sourceBuffer CMBlockBufferRef, blockAllocator corefoundation.CFAllocatorRef, customBlockSource *CMBlockBufferCustomBlockSource, offsetToData uintptr, dataLength uintptr, flags CMBlockBufferFlags, blockBufferOut *uintptr) int32
CMBlockBufferCreateContiguous creates a block buffer that contains a contiguous copy of, or reference to, the data specified by the parameters.
It panics if CMBlockBufferCreateContiguous is unavailable at run time; use TryCMBlockBufferCreateContiguous to get an error instead.
func CMBlockBufferCreateEmpty ¶
func CMBlockBufferCreateEmpty(structureAllocator corefoundation.CFAllocatorRef, subBlockCapacity uint32, flags CMBlockBufferFlags, blockBufferOut *uintptr) int32
CMBlockBufferCreateEmpty creates an empty block buffer.
It panics if CMBlockBufferCreateEmpty is unavailable at run time; use TryCMBlockBufferCreateEmpty to get an error instead.
func CMBlockBufferCreateWithBufferReference ¶
func CMBlockBufferCreateWithBufferReference(structureAllocator corefoundation.CFAllocatorRef, bufferReference CMBlockBufferRef, offsetToData uintptr, dataLength uintptr, flags CMBlockBufferFlags, blockBufferOut *uintptr) int32
CMBlockBufferCreateWithBufferReference creates a block buffer that refers to another block buffer object.
It panics if CMBlockBufferCreateWithBufferReference is unavailable at run time; use TryCMBlockBufferCreateWithBufferReference to get an error instead.
func CMBlockBufferCreateWithMemoryBlock ¶
func CMBlockBufferCreateWithMemoryBlock(structureAllocator corefoundation.CFAllocatorRef, memoryBlock unsafe.Pointer, blockLength uintptr, blockAllocator corefoundation.CFAllocatorRef, customBlockSource *CMBlockBufferCustomBlockSource, offsetToData uintptr, dataLength uintptr, flags CMBlockBufferFlags, blockBufferOut *uintptr) int32
CMBlockBufferCreateWithMemoryBlock creates a block buffer that’s backed by a memory block.
It panics if CMBlockBufferCreateWithMemoryBlock is unavailable at run time; use TryCMBlockBufferCreateWithMemoryBlock to get an error instead.
func CMBlockBufferFillDataBytes ¶
func CMBlockBufferFillDataBytes(fillByte int8, destinationBuffer CMBlockBufferRef, offsetIntoDestination uintptr, dataLength uintptr) int32
CMBlockBufferFillDataBytes fills the destination buffer with the specified data byte.
It panics if CMBlockBufferFillDataBytes is unavailable at run time; use TryCMBlockBufferFillDataBytes to get an error instead.
func CMBlockBufferGetDataLength ¶
func CMBlockBufferGetDataLength(theBuffer CMBlockBufferRef) uintptr
CMBlockBufferGetDataLength returns the total length of data that’s accessible by a block buffer.
It panics if CMBlockBufferGetDataLength is unavailable at run time; use TryCMBlockBufferGetDataLength to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMBlockBufferGetDataLength(_:)
func CMBlockBufferGetDataPointer ¶
func CMBlockBufferGetDataPointer(theBuffer CMBlockBufferRef, offset uintptr, lengthAtOffsetOut *uintptr, totalLengthOut *uintptr, dataPointerOut **byte) int32
CMBlockBufferGetDataPointer gains access to the data represented by a block buffer.
It panics if CMBlockBufferGetDataPointer is unavailable at run time; use TryCMBlockBufferGetDataPointer to get an error instead.
func CMBlockBufferGetTypeID ¶
func CMBlockBufferGetTypeID() uint
CMBlockBufferGetTypeID returns the type identifier for block buffer objects.
It panics if CMBlockBufferGetTypeID is unavailable at run time; use TryCMBlockBufferGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMBlockBufferGetTypeID()
func CMBlockBufferIsEmpty ¶
func CMBlockBufferIsEmpty(theBuffer CMBlockBufferRef) bool
CMBlockBufferIsEmpty returns a Boolean value that indicates whether the buffer is empty.
It panics if CMBlockBufferIsEmpty is unavailable at run time; use TryCMBlockBufferIsEmpty to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMBlockBufferIsEmpty(_:)
func CMBlockBufferIsRangeContiguous ¶
func CMBlockBufferIsRangeContiguous(theBuffer CMBlockBufferRef, offset uintptr, length uintptr) bool
CMBlockBufferIsRangeContiguous returns a Boolean value that indicates whether the specified range within a block buffer is contiguous.
It panics if CMBlockBufferIsRangeContiguous is unavailable at run time; use TryCMBlockBufferIsRangeContiguous to get an error instead.
func CMBlockBufferReplaceDataBytes ¶
func CMBlockBufferReplaceDataBytes(sourceBytes unsafe.Pointer, destinationBuffer CMBlockBufferRef, offsetIntoDestination uintptr, dataLength uintptr) int32
CMBlockBufferReplaceDataBytes copies bytes from a given memory block into a block buffer replacing bytes in the underlying data blocks.
It panics if CMBlockBufferReplaceDataBytes is unavailable at run time; use TryCMBlockBufferReplaceDataBytes to get an error instead.
func CMBufferQueueCallForEachBuffer ¶
func CMBufferQueueCallForEachBuffer(queue CMBufferQueueRef, callback func(unsafe.Pointer, unsafe.Pointer) int32, refcon uintptr) int32
CMBufferQueueCallForEachBuffer calls a function for every buffer in a queue.
It panics if CMBufferQueueCallForEachBuffer is unavailable at run time; use TryCMBufferQueueCallForEachBuffer to get an error instead.
func CMBufferQueueContainsEndOfData ¶
func CMBufferQueueContainsEndOfData(queue CMBufferQueueRef) bool
CMBufferQueueContainsEndOfData returns a Boolean value that indicates whether a buffer queue has its end-of-data marker set.
It panics if CMBufferQueueContainsEndOfData is unavailable at run time; use TryCMBufferQueueContainsEndOfData to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueueContainsEndOfData(_:)
func CMBufferQueueCreate ¶
func CMBufferQueueCreate(allocator corefoundation.CFAllocatorRef, capacity CMItemCount, callbacks *CMBufferCallbacks, queueOut *CMBufferQueueRef) int32
CMBufferQueueCreate creates a buffer queue with callbacks to inspect buffers.
It panics if CMBufferQueueCreate is unavailable at run time; use TryCMBufferQueueCreate to get an error instead.
func CMBufferQueueCreateWithHandlers ¶
func CMBufferQueueCreateWithHandlers(allocator corefoundation.CFAllocatorRef, capacity CMItemCount, handlers *CMBufferHandlers, queueOut *CMBufferQueueRef) int32
CMBufferQueueCreateWithHandlers creates a buffer queue with handlers to inspect buffers.
It panics if CMBufferQueueCreateWithHandlers is unavailable at run time; use TryCMBufferQueueCreateWithHandlers to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueueCreateWithHandlers(_:_:_:_:)
func CMBufferQueueEnqueue ¶
func CMBufferQueueEnqueue(queue CMBufferQueueRef, buf CMBufferRef) int32
CMBufferQueueEnqueue enqueues a buffer onto a queue.
It panics if CMBufferQueueEnqueue is unavailable at run time; use TryCMBufferQueueEnqueue to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueueEnqueue(_:buffer:)
func CMBufferQueueGetTotalSize ¶
func CMBufferQueueGetTotalSize(queue CMBufferQueueRef) uintptr
CMBufferQueueGetTotalSize gets the total size of all sample buffers of a buffer queue.
It panics if CMBufferQueueGetTotalSize is unavailable at run time; use TryCMBufferQueueGetTotalSize to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueueGetTotalSize(_:)
func CMBufferQueueGetTypeID ¶
func CMBufferQueueGetTypeID() uint
CMBufferQueueGetTypeID returns the type identifier of buffer queue objects.
It panics if CMBufferQueueGetTypeID is unavailable at run time; use TryCMBufferQueueGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueueGetTypeID()
func CMBufferQueueInstallTrigger ¶
func CMBufferQueueInstallTrigger(queue CMBufferQueueRef, callback CMBufferQueueTriggerCallback, refcon uintptr, condition CMBufferQueueTriggerCondition, time CMTime, triggerTokenOut *CMBufferQueueTriggerToken) int32
CMBufferQueueInstallTrigger installs a trigger with a callback on a buffer queue.
It panics if CMBufferQueueInstallTrigger is unavailable at run time; use TryCMBufferQueueInstallTrigger to get an error instead.
func CMBufferQueueInstallTriggerHandler ¶
func CMBufferQueueInstallTriggerHandler(queue CMBufferQueueRef, condition CMBufferQueueTriggerCondition, time CMTime, triggerTokenOut *CMBufferQueueTriggerToken, handler CMBufferQueueTriggerHandler) int32
CMBufferQueueInstallTriggerHandler installs a trigger with a handler on a buffer queue.
It panics if CMBufferQueueInstallTriggerHandler is unavailable at run time; use TryCMBufferQueueInstallTriggerHandler to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueueInstallTriggerHandler(_:_:_:_:_:)
func CMBufferQueueInstallTriggerHandlerWithIntegerThreshold ¶
func CMBufferQueueInstallTriggerHandlerWithIntegerThreshold(queue CMBufferQueueRef, condition CMBufferQueueTriggerCondition, threshold CMItemCount, triggerTokenOut *CMBufferQueueTriggerToken, handler CMBufferQueueTriggerHandler) int32
CMBufferQueueInstallTriggerHandlerWithIntegerThreshold installs a trigger with a handler and threshold on a buffer queue.
It panics if CMBufferQueueInstallTriggerHandlerWithIntegerThreshold is unavailable at run time; use TryCMBufferQueueInstallTriggerHandlerWithIntegerThreshold to get an error instead.
func CMBufferQueueInstallTriggerWithIntegerThreshold ¶
func CMBufferQueueInstallTriggerWithIntegerThreshold(queue CMBufferQueueRef, callback CMBufferQueueTriggerCallback, refcon uintptr, condition CMBufferQueueTriggerCondition, threshold CMItemCount, triggerTokenOut *CMBufferQueueTriggerToken) int32
CMBufferQueueInstallTriggerWithIntegerThreshold installs a trigger with a callback and threshold on a buffer queue.
It panics if CMBufferQueueInstallTriggerWithIntegerThreshold is unavailable at run time; use TryCMBufferQueueInstallTriggerWithIntegerThreshold to get an error instead.
func CMBufferQueueIsAtEndOfData ¶
func CMBufferQueueIsAtEndOfData(queue CMBufferQueueRef) bool
CMBufferQueueIsAtEndOfData returns a Boolean value that indicates whether a buffer queue has its end-of-data marker set, and is now empty.
It panics if CMBufferQueueIsAtEndOfData is unavailable at run time; use TryCMBufferQueueIsAtEndOfData to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueueIsAtEndOfData(_:)
func CMBufferQueueIsEmpty ¶
func CMBufferQueueIsEmpty(queue CMBufferQueueRef) bool
CMBufferQueueIsEmpty returns a Boolean value that indicates whether a buffer queue is empty.
It panics if CMBufferQueueIsEmpty is unavailable at run time; use TryCMBufferQueueIsEmpty to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueueIsEmpty(_:)
func CMBufferQueueMarkEndOfData ¶
func CMBufferQueueMarkEndOfData(queue CMBufferQueueRef) int32
CMBufferQueueMarkEndOfData sets a marker to indicate this queue doesn’t allow enqueuing new buffers.
It panics if CMBufferQueueMarkEndOfData is unavailable at run time; use TryCMBufferQueueMarkEndOfData to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueueMarkEndOfData(_:)
func CMBufferQueueRemoveTrigger ¶
func CMBufferQueueRemoveTrigger(queue CMBufferQueueRef, triggerToken CMBufferQueueTriggerToken) int32
CMBufferQueueRemoveTrigger removes a previously installed trigger from a buffer queue.
It panics if CMBufferQueueRemoveTrigger is unavailable at run time; use TryCMBufferQueueRemoveTrigger to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueueRemoveTrigger(_:triggerToken:)
func CMBufferQueueReset ¶
func CMBufferQueueReset(queue CMBufferQueueRef) int32
CMBufferQueueReset resets a buffer queue, which allows it to enqueue new buffers.
It panics if CMBufferQueueReset is unavailable at run time; use TryCMBufferQueueReset to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueueReset(_:)
func CMBufferQueueResetWithCallback ¶
func CMBufferQueueResetWithCallback(queue CMBufferQueueRef, callback func(unsafe.Pointer, unsafe.Pointer), refcon uintptr) int32
CMBufferQueueResetWithCallback a callback that invokes a function for every buffer in a queue and then resets the queue.
It panics if CMBufferQueueResetWithCallback is unavailable at run time; use TryCMBufferQueueResetWithCallback to get an error instead.
func CMBufferQueueSetValidationCallback ¶
func CMBufferQueueSetValidationCallback(queue CMBufferQueueRef, callback CMBufferValidationCallback, refcon uintptr) int32
CMBufferQueueSetValidationCallback a validation callback for the queue to call before enqueuing buffers.
It panics if CMBufferQueueSetValidationCallback is unavailable at run time; use TryCMBufferQueueSetValidationCallback to get an error instead.
func CMBufferQueueSetValidationHandler ¶
func CMBufferQueueSetValidationHandler(queue CMBufferQueueRef, handler CMBufferValidationHandler) int32
CMBufferQueueSetValidationHandler a validation handler for the queue to call before enqueuing buffers.
It panics if CMBufferQueueSetValidationHandler is unavailable at run time; use TryCMBufferQueueSetValidationHandler to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueueSetValidationHandler(_:_:)
func CMBufferQueueTestTrigger ¶
func CMBufferQueueTestTrigger(queue CMBufferQueueRef, triggerToken CMBufferQueueTriggerToken) bool
CMBufferQueueTestTrigger tests whether the trigger condition is true for the specified buffer queue.
It panics if CMBufferQueueTestTrigger is unavailable at run time; use TryCMBufferQueueTestTrigger to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueueTestTrigger(_:triggerToken:)
func CMClockConvertHostTimeToSystemUnits ¶
CMClockConvertHostTimeToSystemUnits converts a host time from a core media time structure to the host time’s native units.
It panics if CMClockConvertHostTimeToSystemUnits is unavailable at run time; use TryCMClockConvertHostTimeToSystemUnits to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMClockConvertHostTimeToSystemUnits(_:)
func CMClockGetAnchorTime ¶
func CMClockGetAnchorTime(clock CMClockRef, clockTimeOut *CMTime, referenceClockTimeOut *CMTime) int32
CMClockGetAnchorTime returns the current time from a clock and the matching time from the clock’s reference clock.
It panics if CMClockGetAnchorTime is unavailable at run time; use TryCMClockGetAnchorTime to get an error instead.
func CMClockGetTypeID ¶
func CMClockGetTypeID() uint
CMClockGetTypeID returns the core foundation type identifier of a clock type.
It panics if CMClockGetTypeID is unavailable at run time; use TryCMClockGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMClockGetTypeID()
func CMClockInvalidate ¶
func CMClockInvalidate(clock CMClockRef)
CMClockInvalidate stops the clock.
It panics if CMClockInvalidate is unavailable at run time; use TryCMClockInvalidate to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMClockInvalidate(_:)
func CMClockMightDrift ¶
func CMClockMightDrift(clock CMClockRef, otherClock CMClockRef) bool
CMClockMightDrift returns a Boolean value that indicates whether it’s possible for two clocks to drift relative to each other.
It panics if CMClockMightDrift is unavailable at run time; use TryCMClockMightDrift to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMClockMightDrift(_:otherClock:)
func CMClosedCaptionFormatDescriptionCopyAsBigEndianClosedCaptionDescriptionBlockBuffer ¶
func CMClosedCaptionFormatDescriptionCopyAsBigEndianClosedCaptionDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, closedCaptionFormatDescription CMClosedCaptionFormatDescriptionRef, flavor CMClosedCaptionDescriptionFlavor, blockBufferOut *uintptr) int32
CMClosedCaptionFormatDescriptionCopyAsBigEndianClosedCaptionDescriptionBlockBuffer copies the contents of a closed caption format description to a buffer in big-endian byte order.
It panics if CMClosedCaptionFormatDescriptionCopyAsBigEndianClosedCaptionDescriptionBlockBuffer is unavailable at run time; use TryCMClosedCaptionFormatDescriptionCopyAsBigEndianClosedCaptionDescriptionBlockBuffer to get an error instead.
func CMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionBlockBuffer ¶
func CMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, closedCaptionDescriptionBlockBuffer CMBlockBufferRef, flavor CMClosedCaptionDescriptionFlavor, formatDescriptionOut *CMClosedCaptionFormatDescriptionRef) int32
CMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionBlockBuffer creates a closed caption format description from a big-endian closed caption description structure in a buffer.
It panics if CMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionBlockBuffer is unavailable at run time; use TryCMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionBlockBuffer to get an error instead.
func CMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionData ¶
func CMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionData(allocator corefoundation.CFAllocatorRef, closedCaptionDescriptionData []byte, size uintptr, flavor CMClosedCaptionDescriptionFlavor, formatDescriptionOut *CMClosedCaptionFormatDescriptionRef) int32
CMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionData creates a closed caption format description from a big-endian closed caption description structure.
It panics if CMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionData is unavailable at run time; use TryCMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionData to get an error instead.
func CMCopyDictionaryOfAttachments ¶
func CMCopyDictionaryOfAttachments(allocator corefoundation.CFAllocatorRef, target CMAttachmentBearerRef, attachmentMode uint32) corefoundation.CFDictionaryRef
CMCopyDictionaryOfAttachments returns a dictionary of all attachments for an attachment bearer object.
It panics if CMCopyDictionaryOfAttachments is unavailable at run time; use TryCMCopyDictionaryOfAttachments to get an error instead.
func CMDoesBigEndianSoundDescriptionRequireLegacyCBRSampleTableLayout ¶
func CMDoesBigEndianSoundDescriptionRequireLegacyCBRSampleTableLayout(soundDescriptionBlockBuffer CMBlockBufferRef, flavor CMSoundDescriptionFlavor) bool
CMDoesBigEndianSoundDescriptionRequireLegacyCBRSampleTableLayout returns a Boolean value that indicates whether the sample tables need to use the legacy constant bit-rate encoding layout.
It panics if CMDoesBigEndianSoundDescriptionRequireLegacyCBRSampleTableLayout is unavailable at run time; use TryCMDoesBigEndianSoundDescriptionRequireLegacyCBRSampleTableLayout to get an error instead.
func CMFormatDescriptionCreate ¶
func CMFormatDescriptionCreate(allocator corefoundation.CFAllocatorRef, mediaType CMMediaType, mediaSubType uint32, extensions corefoundation.CFDictionaryRef, formatDescriptionOut *CMFormatDescriptionRef) int32
CMFormatDescriptionCreate creates a format description for general use.
It panics if CMFormatDescriptionCreate is unavailable at run time; use TryCMFormatDescriptionCreate to get an error instead.
func CMFormatDescriptionEqual ¶
func CMFormatDescriptionEqual(formatDescription CMFormatDescriptionRef, otherFormatDescription CMFormatDescriptionRef) bool
CMFormatDescriptionEqual returns a Boolean value that indicates whether two format descriptions are equal.
It panics if CMFormatDescriptionEqual is unavailable at run time; use TryCMFormatDescriptionEqual to get an error instead.
func CMFormatDescriptionEqualIgnoringExtensionKeys ¶
func CMFormatDescriptionEqualIgnoringExtensionKeys(formatDescription CMFormatDescriptionRef, otherFormatDescription CMFormatDescriptionRef, formatDescriptionExtensionKeysToIgnore corefoundation.CFTypeRef, sampleDescriptionExtensionAtomKeysToIgnore corefoundation.CFTypeRef) bool
CMFormatDescriptionEqualIgnoringExtensionKeys returns a Boolean value that indicates whether two format descriptions are equal, ignoring differences in the extension keys you specify.
It panics if CMFormatDescriptionEqualIgnoringExtensionKeys is unavailable at run time; use TryCMFormatDescriptionEqualIgnoringExtensionKeys to get an error instead.
func CMFormatDescriptionGetExtension ¶
func CMFormatDescriptionGetExtension(desc CMFormatDescriptionRef, extensionKey corefoundation.CFStringRef) corefoundation.CFPropertyListRef
CMFormatDescriptionGetExtension returns an extension from the format description by using an extension key.
It panics if CMFormatDescriptionGetExtension is unavailable at run time; use TryCMFormatDescriptionGetExtension to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMFormatDescriptionGetExtension(_:extensionKey:)
func CMFormatDescriptionGetExtensions ¶
func CMFormatDescriptionGetExtensions(desc CMFormatDescriptionRef) corefoundation.CFDictionaryRef
CMFormatDescriptionGetExtensions returns all of the extensions for a format description.
It panics if CMFormatDescriptionGetExtensions is unavailable at run time; use TryCMFormatDescriptionGetExtensions to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMFormatDescriptionGetExtensions(_:)
func CMFormatDescriptionGetMediaSubType ¶
func CMFormatDescriptionGetMediaSubType(desc CMFormatDescriptionRef) uint32
CMFormatDescriptionGetMediaSubType returns the media subtype of a format description.
It panics if CMFormatDescriptionGetMediaSubType is unavailable at run time; use TryCMFormatDescriptionGetMediaSubType to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMFormatDescriptionGetMediaSubType(_:)
func CMFormatDescriptionGetTypeID ¶
func CMFormatDescriptionGetTypeID() uint
CMFormatDescriptionGetTypeID returns the Core Foundation type identifier that identifies format description objects.
It panics if CMFormatDescriptionGetTypeID is unavailable at run time; use TryCMFormatDescriptionGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMFormatDescriptionGetTypeID()
func CMGetAttachment ¶
func CMGetAttachment(target CMAttachmentBearerRef, key corefoundation.CFStringRef, attachmentModeOut *uint32) corefoundation.CFTypeRef
CMGetAttachment returns an attachment from an attachment bearer object.
It panics if CMGetAttachment is unavailable at run time; use TryCMGetAttachment to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMGetAttachment(_:key:attachmentModeOut:)
func CMMemoryPoolFlush ¶
func CMMemoryPoolFlush(pool CMMemoryPoolRef)
CMMemoryPoolFlush deallocates all memory the pool holds.
It panics if CMMemoryPoolFlush is unavailable at run time; use TryCMMemoryPoolFlush to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMMemoryPoolFlush(_:)
func CMMemoryPoolGetAllocator ¶
func CMMemoryPoolGetAllocator(pool CMMemoryPoolRef) corefoundation.CFAllocatorRef
CMMemoryPoolGetAllocator returns the allocator for the memory pool.
It panics if CMMemoryPoolGetAllocator is unavailable at run time; use TryCMMemoryPoolGetAllocator to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMMemoryPoolGetAllocator(_:)
func CMMemoryPoolGetTypeID ¶
func CMMemoryPoolGetTypeID() uint
CMMemoryPoolGetTypeID returns the type identifier of memory pool objects.
It panics if CMMemoryPoolGetTypeID is unavailable at run time; use TryCMMemoryPoolGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMMemoryPoolGetTypeID()
func CMMemoryPoolInvalidate ¶
func CMMemoryPoolInvalidate(pool CMMemoryPoolRef)
CMMemoryPoolInvalidate invalidates the memory pool, which causes its allocator to stop recycling memory.
It panics if CMMemoryPoolInvalidate is unavailable at run time; use TryCMMemoryPoolInvalidate to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMMemoryPoolInvalidate(_:)
func CMMetadataCreateIdentifierForKeyAndKeySpace ¶
func CMMetadataCreateIdentifierForKeyAndKeySpace(allocator corefoundation.CFAllocatorRef, key corefoundation.CFTypeRef, keySpace corefoundation.CFStringRef, identifierOut *corefoundation.CFStringRef) int32
CMMetadataCreateIdentifierForKeyAndKeySpace creates a URL-like string identifier that represents a key or keyspace tuple.
It panics if CMMetadataCreateIdentifierForKeyAndKeySpace is unavailable at run time; use TryCMMetadataCreateIdentifierForKeyAndKeySpace to get an error instead.
func CMMetadataCreateKeyFromIdentifier ¶
func CMMetadataCreateKeyFromIdentifier(allocator corefoundation.CFAllocatorRef, identifier corefoundation.CFStringRef, keyOut *corefoundation.CFTypeRef) int32
CMMetadataCreateKeyFromIdentifier creates a copy of the key by using an identifier.
It panics if CMMetadataCreateKeyFromIdentifier is unavailable at run time; use TryCMMetadataCreateKeyFromIdentifier to get an error instead.
func CMMetadataCreateKeyFromIdentifierAsCFData ¶
func CMMetadataCreateKeyFromIdentifierAsCFData(allocator corefoundation.CFAllocatorRef, identifier corefoundation.CFStringRef, keyOut *corefoundation.CFDataRef) int32
CMMetadataCreateKeyFromIdentifierAsCFData creates a copy of the key by using an identifier, and results in a core foundation data object.
It panics if CMMetadataCreateKeyFromIdentifierAsCFData is unavailable at run time; use TryCMMetadataCreateKeyFromIdentifierAsCFData to get an error instead.
func CMMetadataCreateKeySpaceFromIdentifier ¶
func CMMetadataCreateKeySpaceFromIdentifier(allocator corefoundation.CFAllocatorRef, identifier corefoundation.CFStringRef, keySpaceOut *corefoundation.CFStringRef) int32
CMMetadataCreateKeySpaceFromIdentifier creates a copy of the keyspace by using an identifier.
It panics if CMMetadataCreateKeySpaceFromIdentifier is unavailable at run time; use TryCMMetadataCreateKeySpaceFromIdentifier to get an error instead.
func CMMetadataDataTypeRegistryDataTypeConformsToDataType ¶
func CMMetadataDataTypeRegistryDataTypeConformsToDataType(dataType corefoundation.CFStringRef, conformsToDataType corefoundation.CFStringRef) bool
CMMetadataDataTypeRegistryDataTypeConformsToDataType returns a Boolean value that indicates whether a data type conforms to another data type.
It panics if CMMetadataDataTypeRegistryDataTypeConformsToDataType is unavailable at run time; use TryCMMetadataDataTypeRegistryDataTypeConformsToDataType to get an error instead.
func CMMetadataDataTypeRegistryDataTypeIsBaseDataType ¶
func CMMetadataDataTypeRegistryDataTypeIsBaseDataType(dataType corefoundation.CFStringRef) bool
CMMetadataDataTypeRegistryDataTypeIsBaseDataType returns a Boolean value that indicates whether a data type identifier represents a base data type.
It panics if CMMetadataDataTypeRegistryDataTypeIsBaseDataType is unavailable at run time; use TryCMMetadataDataTypeRegistryDataTypeIsBaseDataType to get an error instead.
func CMMetadataDataTypeRegistryDataTypeIsRegistered ¶
func CMMetadataDataTypeRegistryDataTypeIsRegistered(dataType corefoundation.CFStringRef) bool
CMMetadataDataTypeRegistryDataTypeIsRegistered returns a Boolean value that indicates the registration status of a data type identifier.
It panics if CMMetadataDataTypeRegistryDataTypeIsRegistered is unavailable at run time; use TryCMMetadataDataTypeRegistryDataTypeIsRegistered to get an error instead.
func CMMetadataDataTypeRegistryGetBaseDataTypeForConformingDataType ¶
func CMMetadataDataTypeRegistryGetBaseDataTypeForConformingDataType(dataType corefoundation.CFStringRef) corefoundation.CFStringRef
CMMetadataDataTypeRegistryGetBaseDataTypeForConformingDataType returns the base data type identifier that a data type conforms to.
It panics if CMMetadataDataTypeRegistryGetBaseDataTypeForConformingDataType is unavailable at run time; use TryCMMetadataDataTypeRegistryGetBaseDataTypeForConformingDataType to get an error instead.
func CMMetadataDataTypeRegistryGetBaseDataTypes ¶
func CMMetadataDataTypeRegistryGetBaseDataTypes() corefoundation.CFArrayRef
CMMetadataDataTypeRegistryGetBaseDataTypes returns an array of base data type identifiers.
It panics if CMMetadataDataTypeRegistryGetBaseDataTypes is unavailable at run time; use TryCMMetadataDataTypeRegistryGetBaseDataTypes to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMMetadataDataTypeRegistryGetBaseDataTypes()
func CMMetadataDataTypeRegistryGetConformingDataTypes ¶
func CMMetadataDataTypeRegistryGetConformingDataTypes(dataType corefoundation.CFStringRef) corefoundation.CFArrayRef
CMMetadataDataTypeRegistryGetConformingDataTypes returns the conforming data types for the data type, if any.
It panics if CMMetadataDataTypeRegistryGetConformingDataTypes is unavailable at run time; use TryCMMetadataDataTypeRegistryGetConformingDataTypes to get an error instead.
func CMMetadataDataTypeRegistryGetDataTypeDescription ¶
func CMMetadataDataTypeRegistryGetDataTypeDescription(dataType corefoundation.CFStringRef) corefoundation.CFStringRef
CMMetadataDataTypeRegistryGetDataTypeDescription returns the data type description if it exists.
It panics if CMMetadataDataTypeRegistryGetDataTypeDescription is unavailable at run time; use TryCMMetadataDataTypeRegistryGetDataTypeDescription to get an error instead.
func CMMetadataDataTypeRegistryRegisterDataType ¶
func CMMetadataDataTypeRegistryRegisterDataType(dataType corefoundation.CFStringRef, description corefoundation.CFStringRef, conformingDataTypes corefoundation.CFArrayRef) int32
CMMetadataDataTypeRegistryRegisterDataType register a data type with the data type registry.
It panics if CMMetadataDataTypeRegistryRegisterDataType is unavailable at run time; use TryCMMetadataDataTypeRegistryRegisterDataType to get an error instead.
func CMMetadataFormatDescriptionCopyAsBigEndianMetadataDescriptionBlockBuffer ¶
func CMMetadataFormatDescriptionCopyAsBigEndianMetadataDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, metadataFormatDescription CMMetadataFormatDescriptionRef, flavor CMMetadataDescriptionFlavor, blockBufferOut *uintptr) int32
CMMetadataFormatDescriptionCopyAsBigEndianMetadataDescriptionBlockBuffer copies the contents of a metadata format description to a buffer in big-endian byte order.
It panics if CMMetadataFormatDescriptionCopyAsBigEndianMetadataDescriptionBlockBuffer is unavailable at run time; use TryCMMetadataFormatDescriptionCopyAsBigEndianMetadataDescriptionBlockBuffer to get an error instead.
func CMMetadataFormatDescriptionCreateByMergingMetadataFormatDescriptions ¶
func CMMetadataFormatDescriptionCreateByMergingMetadataFormatDescriptions(allocator corefoundation.CFAllocatorRef, sourceDescription CMMetadataFormatDescriptionRef, otherSourceDescription CMMetadataFormatDescriptionRef, formatDescriptionOut *CMMetadataFormatDescriptionRef) int32
CMMetadataFormatDescriptionCreateByMergingMetadataFormatDescriptions creates a metadata format description object by merging with another description.
It panics if CMMetadataFormatDescriptionCreateByMergingMetadataFormatDescriptions is unavailable at run time; use TryCMMetadataFormatDescriptionCreateByMergingMetadataFormatDescriptions to get an error instead.
func CMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionBlockBuffer ¶
func CMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, metadataDescriptionBlockBuffer CMBlockBufferRef, flavor CMMetadataDescriptionFlavor, formatDescriptionOut *CMMetadataFormatDescriptionRef) int32
CMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionBlockBuffer creates a metadata format description from a big-endian metadata description structure inside a buffer.
It panics if CMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionBlockBuffer is unavailable at run time; use TryCMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionBlockBuffer to get an error instead.
func CMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionData ¶
func CMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionData(allocator corefoundation.CFAllocatorRef, metadataDescriptionData []byte, size uintptr, flavor CMMetadataDescriptionFlavor, formatDescriptionOut *CMMetadataFormatDescriptionRef) int32
CMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionData creates a metadata format description from a big-endian metadata description structure.
It panics if CMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionData is unavailable at run time; use TryCMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionData to get an error instead.
func CMMetadataFormatDescriptionCreateWithKeys ¶
func CMMetadataFormatDescriptionCreateWithKeys(allocator corefoundation.CFAllocatorRef, metadataType CMMetadataFormatType, keys corefoundation.CFArrayRef, formatDescriptionOut *CMMetadataFormatDescriptionRef) int32
CMMetadataFormatDescriptionCreateWithKeys creates a metadata format description with the metadata keys you specify.
It panics if CMMetadataFormatDescriptionCreateWithKeys is unavailable at run time; use TryCMMetadataFormatDescriptionCreateWithKeys to get an error instead.
func CMMetadataFormatDescriptionCreateWithMetadataFormatDescriptionAndMetadataSpecifications ¶
func CMMetadataFormatDescriptionCreateWithMetadataFormatDescriptionAndMetadataSpecifications(allocator corefoundation.CFAllocatorRef, sourceDescription CMMetadataFormatDescriptionRef, metadataSpecifications corefoundation.CFArrayRef, formatDescriptionOut *CMMetadataFormatDescriptionRef) int32
CMMetadataFormatDescriptionCreateWithMetadataFormatDescriptionAndMetadataSpecifications creates a metadata format description by extending an existing description with the values you specify.
It panics if CMMetadataFormatDescriptionCreateWithMetadataFormatDescriptionAndMetadataSpecifications is unavailable at run time; use TryCMMetadataFormatDescriptionCreateWithMetadataFormatDescriptionAndMetadataSpecifications to get an error instead.
func CMMetadataFormatDescriptionCreateWithMetadataSpecifications ¶
func CMMetadataFormatDescriptionCreateWithMetadataSpecifications(allocator corefoundation.CFAllocatorRef, metadataType CMMetadataFormatType, metadataSpecifications corefoundation.CFArrayRef, formatDescriptionOut *CMMetadataFormatDescriptionRef) int32
CMMetadataFormatDescriptionCreateWithMetadataSpecifications creates a metadata format description with the specifications you specify.
It panics if CMMetadataFormatDescriptionCreateWithMetadataSpecifications is unavailable at run time; use TryCMMetadataFormatDescriptionCreateWithMetadataSpecifications to get an error instead.
func CMMetadataFormatDescriptionGetIdentifiers ¶
func CMMetadataFormatDescriptionGetIdentifiers(desc CMMetadataFormatDescriptionRef) corefoundation.CFArrayRef
CMMetadataFormatDescriptionGetIdentifiers returns an array of metadata identifiers from a metadata format description.
It panics if CMMetadataFormatDescriptionGetIdentifiers is unavailable at run time; use TryCMMetadataFormatDescriptionGetIdentifiers to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMMetadataFormatDescriptionGetIdentifiers(_:)
func CMMetadataFormatDescriptionGetKeyWithLocalID ¶
func CMMetadataFormatDescriptionGetKeyWithLocalID(desc CMMetadataFormatDescriptionRef, localKeyID uint32) corefoundation.CFDictionaryRef
CMMetadataFormatDescriptionGetKeyWithLocalID returns the key for the local identifier.
It panics if CMMetadataFormatDescriptionGetKeyWithLocalID is unavailable at run time; use TryCMMetadataFormatDescriptionGetKeyWithLocalID to get an error instead.
func CMMuxedFormatDescriptionCreate ¶
func CMMuxedFormatDescriptionCreate(allocator corefoundation.CFAllocatorRef, muxType CMMuxedStreamType, extensions corefoundation.CFDictionaryRef, formatDescriptionOut *CMMuxedFormatDescriptionRef) int32
CMMuxedFormatDescriptionCreate creates a format description for a muxed media stream.
It panics if CMMuxedFormatDescriptionCreate is unavailable at run time; use TryCMMuxedFormatDescriptionCreate to get an error instead.
func CMPropagateAttachments ¶
func CMPropagateAttachments(source CMAttachmentBearerRef, destination CMAttachmentBearerRef)
CMPropagateAttachments copies all propagable attachments from one attachment bearer object to another.
It panics if CMPropagateAttachments is unavailable at run time; use TryCMPropagateAttachments to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMPropagateAttachments(_:destination:)
func CMRemoveAllAttachments ¶
func CMRemoveAllAttachments(target CMAttachmentBearerRef)
CMRemoveAllAttachments removes all attachments from an attachment bearer object.
It panics if CMRemoveAllAttachments is unavailable at run time; use TryCMRemoveAllAttachments to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMRemoveAllAttachments(_:)
func CMRemoveAttachment ¶
func CMRemoveAttachment(target CMAttachmentBearerRef, key corefoundation.CFStringRef)
CMRemoveAttachment removes a specific attachment from an attachment bearer object.
It panics if CMRemoveAttachment is unavailable at run time; use TryCMRemoveAttachment to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMRemoveAttachment(_:key:)
func CMSampleBufferCallBlockForEachSample ¶
func CMSampleBufferCallBlockForEachSample(sbuf CMSampleBufferRef, handler func(uintptr, int) int32) int32
CMSampleBufferCallBlockForEachSample calls a block for every individual sample in a sample buffer.
It panics if CMSampleBufferCallBlockForEachSample is unavailable at run time; use TryCMSampleBufferCallBlockForEachSample to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSampleBufferCallBlockForEachSample(_:_:)
func CMSampleBufferCallForEachSample ¶
func CMSampleBufferCallForEachSample(sbuf CMSampleBufferRef, callback func(CMSampleBufferRef, int, unsafe.Pointer) int32, refcon uintptr) int32
CMSampleBufferCallForEachSample calls a function for every individual sample in a sample buffer.
It panics if CMSampleBufferCallForEachSample is unavailable at run time; use TryCMSampleBufferCallForEachSample to get an error instead.
func CMSampleBufferCopyPCMDataIntoAudioBufferList ¶
func CMSampleBufferCopyPCMDataIntoAudioBufferList(sbuf CMSampleBufferRef, frameOffset int32, numFrames int32, bufferList *coreaudiotypes.AudioBufferList) int32
CMSampleBufferCopyPCMDataIntoAudioBufferList copies PCM audio data from a sample buffer into an audio buffer list.
It panics if CMSampleBufferCopyPCMDataIntoAudioBufferList is unavailable at run time; use TryCMSampleBufferCopyPCMDataIntoAudioBufferList to get an error instead.
func CMSampleBufferCopySampleBufferForRange ¶
func CMSampleBufferCopySampleBufferForRange(allocator corefoundation.CFAllocatorRef, sbuf CMSampleBufferRef, sampleRange corefoundation.CFRange, sampleBufferOut *CMSampleBufferRef) int32
CMSampleBufferCopySampleBufferForRange creates a sample buffer that contains a range of samples from an existing sample buffer.
It panics if CMSampleBufferCopySampleBufferForRange is unavailable at run time; use TryCMSampleBufferCopySampleBufferForRange to get an error instead.
func CMSampleBufferCreate ¶
func CMSampleBufferCreate(allocator corefoundation.CFAllocatorRef, dataBuffer CMBlockBufferRef, dataReady bool, makeDataReadyCallback CMSampleBufferMakeDataReadyCallback, makeDataReadyRefcon unsafe.Pointer, formatDescription CMFormatDescriptionRef, numSamples CMItemCount, numSampleTimingEntries CMItemCount, sampleTimingArray *CMSampleTimingInfo, numSampleSizeEntries CMItemCount, sampleSizeArray *uintptr, sampleBufferOut *CMSampleBufferRef) int32
CMSampleBufferCreate creates a sample buffer with a callback to make the data ready for use.
It panics if CMSampleBufferCreate is unavailable at run time; use TryCMSampleBufferCreate to get an error instead.
func CMSampleBufferCreateCopy ¶
func CMSampleBufferCreateCopy(allocator corefoundation.CFAllocatorRef, sbuf CMSampleBufferRef, sampleBufferOut *CMSampleBufferRef) int32
CMSampleBufferCreateCopy creates a copy of a sample buffer.
It panics if CMSampleBufferCreateCopy is unavailable at run time; use TryCMSampleBufferCreateCopy to get an error instead.
func CMSampleBufferCreateCopyWithNewTiming ¶
func CMSampleBufferCreateCopyWithNewTiming(allocator corefoundation.CFAllocatorRef, originalSBuf CMSampleBufferRef, numSampleTimingEntries CMItemCount, sampleTimingArray *CMSampleTimingInfo, sampleBufferOut *CMSampleBufferRef) int32
CMSampleBufferCreateCopyWithNewTiming creates a copy of a sample buffer with new timing information.
It panics if CMSampleBufferCreateCopyWithNewTiming is unavailable at run time; use TryCMSampleBufferCreateCopyWithNewTiming to get an error instead.
func CMSampleBufferCreateForImageBuffer ¶
func CMSampleBufferCreateForImageBuffer(allocator corefoundation.CFAllocatorRef, imageBuffer corevideo.CVImageBufferRef, dataReady bool, makeDataReadyCallback CMSampleBufferMakeDataReadyCallback, makeDataReadyRefcon unsafe.Pointer, formatDescription CMVideoFormatDescriptionRef, sampleTiming *CMSampleTimingInfo, sampleBufferOut *CMSampleBufferRef) int32
CMSampleBufferCreateForImageBuffer creates a sample buffer with an image buffer and a callback to make the data ready for use.
It panics if CMSampleBufferCreateForImageBuffer is unavailable at run time; use TryCMSampleBufferCreateForImageBuffer to get an error instead.
func CMSampleBufferCreateForImageBufferWithMakeDataReadyHandler ¶
func CMSampleBufferCreateForImageBufferWithMakeDataReadyHandler(allocator corefoundation.CFAllocatorRef, imageBuffer corevideo.CVImageBufferRef, dataReady bool, formatDescription CMVideoFormatDescriptionRef, sampleTiming *CMSampleTimingInfo, sampleBufferOut *CMSampleBufferRef, makeDataReadyHandler CMSampleBufferMakeDataReadyHandler) int32
CMSampleBufferCreateForImageBufferWithMakeDataReadyHandler creates a sample buffer with an image buffer and a handler to make the data ready for use.
It panics if CMSampleBufferCreateForImageBufferWithMakeDataReadyHandler is unavailable at run time; use TryCMSampleBufferCreateForImageBufferWithMakeDataReadyHandler to get an error instead.
func CMSampleBufferCreateForTaggedBufferGroup ¶
func CMSampleBufferCreateForTaggedBufferGroup(allocator corefoundation.CFAllocatorRef, taggedBufferGroup CMTaggedBufferGroupRef, sbufPTS CMTime, sbufDuration CMTime, formatDescription CMTaggedBufferGroupFormatDescriptionRef, sBufOut *CMSampleBufferRef) int32
CMSampleBufferCreateForTaggedBufferGroup creates a new sample buffer from a tagged buffer group.
It panics if CMSampleBufferCreateForTaggedBufferGroup is unavailable at run time; use TryCMSampleBufferCreateForTaggedBufferGroup to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSampleBufferCreateForTaggedBufferGroup
func CMSampleBufferCreateReady ¶
func CMSampleBufferCreateReady(allocator corefoundation.CFAllocatorRef, dataBuffer CMBlockBufferRef, formatDescription CMFormatDescriptionRef, numSamples CMItemCount, numSampleTimingEntries CMItemCount, sampleTimingArray *CMSampleTimingInfo, numSampleSizeEntries CMItemCount, sampleSizeArray *uintptr, sampleBufferOut *CMSampleBufferRef) int32
CMSampleBufferCreateReady creates a sample buffer with media data.
It panics if CMSampleBufferCreateReady is unavailable at run time; use TryCMSampleBufferCreateReady to get an error instead.
func CMSampleBufferCreateReadyWithImageBuffer ¶
func CMSampleBufferCreateReadyWithImageBuffer(allocator corefoundation.CFAllocatorRef, imageBuffer corevideo.CVImageBufferRef, formatDescription CMVideoFormatDescriptionRef, sampleTiming *CMSampleTimingInfo, sampleBufferOut *CMSampleBufferRef) int32
CMSampleBufferCreateReadyWithImageBuffer creates a sample buffer with image data.
It panics if CMSampleBufferCreateReadyWithImageBuffer is unavailable at run time; use TryCMSampleBufferCreateReadyWithImageBuffer to get an error instead.
func CMSampleBufferCreateWithMakeDataReadyHandler ¶
func CMSampleBufferCreateWithMakeDataReadyHandler(allocator corefoundation.CFAllocatorRef, dataBuffer CMBlockBufferRef, dataReady bool, formatDescription CMFormatDescriptionRef, numSamples CMItemCount, numSampleTimingEntries CMItemCount, sampleTimingArray *CMSampleTimingInfo, numSampleSizeEntries CMItemCount, sampleSizeArray *uintptr, sampleBufferOut *CMSampleBufferRef, makeDataReadyHandler CMSampleBufferMakeDataReadyHandler) int32
CMSampleBufferCreateWithMakeDataReadyHandler creates a sample buffer with a handler to make the data ready for use.
It panics if CMSampleBufferCreateWithMakeDataReadyHandler is unavailable at run time; use TryCMSampleBufferCreateWithMakeDataReadyHandler to get an error instead.
func CMSampleBufferDataIsReady ¶
func CMSampleBufferDataIsReady(sbuf CMSampleBufferRef) bool
CMSampleBufferDataIsReady returns a Boolean value that indicates whether the sample buffer’s data is ready for use.
It panics if CMSampleBufferDataIsReady is unavailable at run time; use TryCMSampleBufferDataIsReady to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSampleBufferDataIsReady(_:)
func CMSampleBufferGetAudioBufferListWithRetainedBlockBuffer ¶
func CMSampleBufferGetAudioBufferListWithRetainedBlockBuffer(sbuf CMSampleBufferRef, bufferListSizeNeededOut *uintptr, bufferListOut *coreaudiotypes.AudioBufferList, bufferListSize uintptr, blockBufferStructureAllocator corefoundation.CFAllocatorRef, blockBufferBlockAllocator corefoundation.CFAllocatorRef, flags uint32, blockBufferOut *uintptr) int32
CMSampleBufferGetAudioBufferListWithRetainedBlockBuffer returns an audio buffer list that contains the media data.
It panics if CMSampleBufferGetAudioBufferListWithRetainedBlockBuffer is unavailable at run time; use TryCMSampleBufferGetAudioBufferListWithRetainedBlockBuffer to get an error instead.
func CMSampleBufferGetAudioStreamPacketDescriptions ¶
func CMSampleBufferGetAudioStreamPacketDescriptions(sbuf CMSampleBufferRef, packetDescriptionsSize uintptr, packetDescriptionsOut *coreaudiotypes.AudioStreamPacketDescription, packetDescriptionsSizeNeededOut *uintptr) int32
CMSampleBufferGetAudioStreamPacketDescriptions creates an array of audio stream packet descriptions.
It panics if CMSampleBufferGetAudioStreamPacketDescriptions is unavailable at run time; use TryCMSampleBufferGetAudioStreamPacketDescriptions to get an error instead.
func CMSampleBufferGetAudioStreamPacketDescriptionsPtr ¶
func CMSampleBufferGetAudioStreamPacketDescriptionsPtr(sbuf CMSampleBufferRef, packetDescriptionsPointerOut *objc.ID, packetDescriptionsSizeOut *uintptr) int32
CMSampleBufferGetAudioStreamPacketDescriptionsPtr returns a pointer to a constant array of audio stream packet descriptions.
It panics if CMSampleBufferGetAudioStreamPacketDescriptionsPtr is unavailable at run time; use TryCMSampleBufferGetAudioStreamPacketDescriptionsPtr to get an error instead.
func CMSampleBufferGetImageBuffer ¶
func CMSampleBufferGetImageBuffer(sbuf CMSampleBufferRef) corevideo.CVImageBufferRef
CMSampleBufferGetImageBuffer returns an image buffer that contains the media data.
It panics if CMSampleBufferGetImageBuffer is unavailable at run time; use TryCMSampleBufferGetImageBuffer to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSampleBufferGetImageBuffer(_:)
func CMSampleBufferGetOutputSampleTimingInfoArray ¶
func CMSampleBufferGetOutputSampleTimingInfoArray(sbuf CMSampleBufferRef, timingArrayEntries CMItemCount, timingArrayOut *CMSampleTimingInfo, timingArrayEntriesNeededOut *CMItemCount) int32
CMSampleBufferGetOutputSampleTimingInfoArray retrieves an array of output timing information structures that represents each sample in a sample buffer.
It panics if CMSampleBufferGetOutputSampleTimingInfoArray is unavailable at run time; use TryCMSampleBufferGetOutputSampleTimingInfoArray to get an error instead.
func CMSampleBufferGetSampleAttachmentsArray ¶
func CMSampleBufferGetSampleAttachmentsArray(sbuf CMSampleBufferRef, createIfNecessary bool) corefoundation.CFArrayRef
CMSampleBufferGetSampleAttachmentsArray retrieves an array of sample attachment dictionaries that represents each sample in a sample buffer.
It panics if CMSampleBufferGetSampleAttachmentsArray is unavailable at run time; use TryCMSampleBufferGetSampleAttachmentsArray to get an error instead.
func CMSampleBufferGetSampleSize ¶
func CMSampleBufferGetSampleSize(sbuf CMSampleBufferRef, sampleIndex CMItemIndex) uintptr
CMSampleBufferGetSampleSize returns the size in bytes of a specified sample in a sample buffer.
It panics if CMSampleBufferGetSampleSize is unavailable at run time; use TryCMSampleBufferGetSampleSize to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSampleBufferGetSampleSize(_:at:)
func CMSampleBufferGetSampleSizeArray ¶
func CMSampleBufferGetSampleSizeArray(sbuf CMSampleBufferRef, sizeArrayEntries CMItemCount, sizeArrayOut *uintptr, sizeArrayEntriesNeededOut *CMItemCount) int32
CMSampleBufferGetSampleSizeArray retrieves an array of sample sizes that represents each sample in a sample buffer.
It panics if CMSampleBufferGetSampleSizeArray is unavailable at run time; use TryCMSampleBufferGetSampleSizeArray to get an error instead.
func CMSampleBufferGetSampleTimingInfo ¶
func CMSampleBufferGetSampleTimingInfo(sbuf CMSampleBufferRef, sampleIndex CMItemIndex, timingInfoOut *CMSampleTimingInfo) int32
CMSampleBufferGetSampleTimingInfo retrieves a timing information structure that describes a specified sample in a sample buffer.
It panics if CMSampleBufferGetSampleTimingInfo is unavailable at run time; use TryCMSampleBufferGetSampleTimingInfo to get an error instead.
func CMSampleBufferGetSampleTimingInfoArray ¶
func CMSampleBufferGetSampleTimingInfoArray(sbuf CMSampleBufferRef, numSampleTimingEntries CMItemCount, timingArrayOut *CMSampleTimingInfo, timingArrayEntriesNeededOut *CMItemCount) int32
CMSampleBufferGetSampleTimingInfoArray retrieves an array of sample timing information structures that represents each sample in a sample buffer.
It panics if CMSampleBufferGetSampleTimingInfoArray is unavailable at run time; use TryCMSampleBufferGetSampleTimingInfoArray to get an error instead.
func CMSampleBufferGetTotalSampleSize ¶
func CMSampleBufferGetTotalSampleSize(sbuf CMSampleBufferRef) uintptr
CMSampleBufferGetTotalSampleSize returns the total size in bytes of sample data in a sample buffer.
It panics if CMSampleBufferGetTotalSampleSize is unavailable at run time; use TryCMSampleBufferGetTotalSampleSize to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSampleBufferGetTotalSampleSize(_:)
func CMSampleBufferGetTypeID ¶
func CMSampleBufferGetTypeID() uint
CMSampleBufferGetTypeID returns the type identifier of sample buffer objects.
It panics if CMSampleBufferGetTypeID is unavailable at run time; use TryCMSampleBufferGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSampleBufferGetTypeID()
func CMSampleBufferHasDataFailed ¶
func CMSampleBufferHasDataFailed(sbuf CMSampleBufferRef, statusOut *int32) bool
CMSampleBufferHasDataFailed returns a Boolean value that indicates whether the sample buffer’s data loading request failed.
It panics if CMSampleBufferHasDataFailed is unavailable at run time; use TryCMSampleBufferHasDataFailed to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSampleBufferHasDataFailed(_:statusOut:)
func CMSampleBufferInvalidate ¶
func CMSampleBufferInvalidate(sbuf CMSampleBufferRef) int32
CMSampleBufferInvalidate invalidates a sample buffer by calling its invalidation callback.
It panics if CMSampleBufferInvalidate is unavailable at run time; use TryCMSampleBufferInvalidate to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSampleBufferInvalidate(_:)
func CMSampleBufferIsValid ¶
func CMSampleBufferIsValid(sbuf CMSampleBufferRef) bool
CMSampleBufferIsValid returns a Boolean value that indicates whether a sample buffer is valid.
It panics if CMSampleBufferIsValid is unavailable at run time; use TryCMSampleBufferIsValid to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSampleBufferIsValid(_:)
func CMSampleBufferMakeDataReady ¶
func CMSampleBufferMakeDataReady(sbuf CMSampleBufferRef) int32
CMSampleBufferMakeDataReady makes the sample buffer’s data ready for use by invoking its callback to load the data.
It panics if CMSampleBufferMakeDataReady is unavailable at run time; use TryCMSampleBufferMakeDataReady to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSampleBufferMakeDataReady(_:)
func CMSampleBufferSetDataBuffer ¶
func CMSampleBufferSetDataBuffer(sbuf CMSampleBufferRef, dataBuffer CMBlockBufferRef) int32
CMSampleBufferSetDataBuffer sets a block buffer of media data on a sample buffer.
It panics if CMSampleBufferSetDataBuffer is unavailable at run time; use TryCMSampleBufferSetDataBuffer to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSampleBufferSetDataBuffer(_:newValue:)
func CMSampleBufferSetDataBufferFromAudioBufferList ¶
func CMSampleBufferSetDataBufferFromAudioBufferList(sbuf CMSampleBufferRef, blockBufferStructureAllocator corefoundation.CFAllocatorRef, blockBufferBlockAllocator corefoundation.CFAllocatorRef, flags uint32, bufferList *coreaudiotypes.AudioBufferList) int32
CMSampleBufferSetDataBufferFromAudioBufferList creates a block buffer that contains a copy of the data from an audio buffer list.
It panics if CMSampleBufferSetDataBufferFromAudioBufferList is unavailable at run time; use TryCMSampleBufferSetDataBufferFromAudioBufferList to get an error instead.
func CMSampleBufferSetDataFailed ¶
func CMSampleBufferSetDataFailed(sbuf CMSampleBufferRef, status int32) int32
CMSampleBufferSetDataFailed marks the sample buffer’s data as failed to indicate that it won’t become ready.
It panics if CMSampleBufferSetDataFailed is unavailable at run time; use TryCMSampleBufferSetDataFailed to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSampleBufferSetDataFailed(_:status:)
func CMSampleBufferSetDataReady ¶
func CMSampleBufferSetDataReady(sbuf CMSampleBufferRef) int32
CMSampleBufferSetDataReady marks a sample buffer’s data as ready for use.
It panics if CMSampleBufferSetDataReady is unavailable at run time; use TryCMSampleBufferSetDataReady to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSampleBufferSetDataReady(_:)
func CMSampleBufferSetInvalidateCallback ¶
func CMSampleBufferSetInvalidateCallback(sbuf CMSampleBufferRef, invalidateCallback CMSampleBufferInvalidateCallback, invalidateRefCon uint64) int32
CMSampleBufferSetInvalidateCallback sets the sample buffer’s invalidation callback.
It panics if CMSampleBufferSetInvalidateCallback is unavailable at run time; use TryCMSampleBufferSetInvalidateCallback to get an error instead.
func CMSampleBufferSetInvalidateHandler ¶
func CMSampleBufferSetInvalidateHandler(sbuf CMSampleBufferRef, invalidateHandler CMSampleBufferInvalidateHandler) int32
CMSampleBufferSetInvalidateHandler sets the sample buffer’s invalidation handler.
It panics if CMSampleBufferSetInvalidateHandler is unavailable at run time; use TryCMSampleBufferSetInvalidateHandler to get an error instead.
func CMSampleBufferSetOutputPresentationTimeStamp ¶
func CMSampleBufferSetOutputPresentationTimeStamp(sbuf CMSampleBufferRef, outputPresentationTimeStamp CMTime) int32
CMSampleBufferSetOutputPresentationTimeStamp sets an output presentation timestamp to use in place of a calculated value.
It panics if CMSampleBufferSetOutputPresentationTimeStamp is unavailable at run time; use TryCMSampleBufferSetOutputPresentationTimeStamp to get an error instead.
func CMSampleBufferTrackDataReadiness ¶
func CMSampleBufferTrackDataReadiness(sbuf CMSampleBufferRef, sampleBufferToTrack CMSampleBufferRef) int32
CMSampleBufferTrackDataReadiness associates a sample buffer’s data readiness with that of another sample buffer.
It panics if CMSampleBufferTrackDataReadiness is unavailable at run time; use TryCMSampleBufferTrackDataReadiness to get an error instead.
func CMSetAttachment ¶
func CMSetAttachment(target CMAttachmentBearerRef, key corefoundation.CFStringRef, value corefoundation.CFTypeRef, attachmentMode uint32)
CMSetAttachment sets or adds an attachment to an attachment bearer object.
It panics if CMSetAttachment is unavailable at run time; use TryCMSetAttachment to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSetAttachment(_:key:value:attachmentMode:)
func CMSetAttachments ¶
func CMSetAttachments(target CMAttachmentBearerRef, theAttachments corefoundation.CFDictionaryRef, attachmentMode uint32)
CMSetAttachments sets a dictionary of attachments on an attachment bearer object.
It panics if CMSetAttachments is unavailable at run time; use TryCMSetAttachments to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSetAttachments(_:attachments:attachmentMode:)
func CMSimpleQueueCreate ¶
func CMSimpleQueueCreate(allocator corefoundation.CFAllocatorRef, capacity int32, queueOut *CMSimpleQueueRef) int32
CMSimpleQueueCreate creates a queue that has the specified capacity.
It panics if CMSimpleQueueCreate is unavailable at run time; use TryCMSimpleQueueCreate to get an error instead.
func CMSimpleQueueDequeue ¶
func CMSimpleQueueDequeue(queue CMSimpleQueueRef) unsafe.Pointer
CMSimpleQueueDequeue dequeues an element from the queue.
It panics if CMSimpleQueueDequeue is unavailable at run time; use TryCMSimpleQueueDequeue to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSimpleQueueDequeue(_:)
func CMSimpleQueueEnqueue ¶
func CMSimpleQueueEnqueue(queue CMSimpleQueueRef, element unsafe.Pointer) int32
CMSimpleQueueEnqueue enqueues an element in the queue.
It panics if CMSimpleQueueEnqueue is unavailable at run time; use TryCMSimpleQueueEnqueue to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSimpleQueueEnqueue(_:element:)
func CMSimpleQueueGetCapacity ¶
func CMSimpleQueueGetCapacity(queue CMSimpleQueueRef) int32
CMSimpleQueueGetCapacity returns the number of elements that the queue can hold.
It panics if CMSimpleQueueGetCapacity is unavailable at run time; use TryCMSimpleQueueGetCapacity to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSimpleQueueGetCapacity(_:)
func CMSimpleQueueGetCount ¶
func CMSimpleQueueGetCount(queue CMSimpleQueueRef) int32
CMSimpleQueueGetCount returns the number of elements currently in the queue.
It panics if CMSimpleQueueGetCount is unavailable at run time; use TryCMSimpleQueueGetCount to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSimpleQueueGetCount(_:)
func CMSimpleQueueGetHead ¶
func CMSimpleQueueGetHead(queue CMSimpleQueueRef) unsafe.Pointer
CMSimpleQueueGetHead returns the element at the head of the queue.
It panics if CMSimpleQueueGetHead is unavailable at run time; use TryCMSimpleQueueGetHead to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSimpleQueueGetHead(_:)
func CMSimpleQueueGetTypeID ¶
func CMSimpleQueueGetTypeID() uint
CMSimpleQueueGetTypeID returns the type identifier of sample buffer objects.
It panics if CMSimpleQueueGetTypeID is unavailable at run time; use TryCMSimpleQueueGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSimpleQueueGetTypeID()
func CMSimpleQueueReset ¶
func CMSimpleQueueReset(queue CMSimpleQueueRef) int32
CMSimpleQueueReset resets the queue.
It panics if CMSimpleQueueReset is unavailable at run time; use TryCMSimpleQueueReset to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSimpleQueueReset(_:)
func CMSwapBigEndianClosedCaptionDescriptionToHost ¶
func CMSwapBigEndianClosedCaptionDescriptionToHost(closedCaptionDescriptionData []byte, closedCaptionDescriptionSize uintptr) int32
CMSwapBigEndianClosedCaptionDescriptionToHost converts a closed caption description structure from big-endian to host-endian, in place.
It panics if CMSwapBigEndianClosedCaptionDescriptionToHost is unavailable at run time; use TryCMSwapBigEndianClosedCaptionDescriptionToHost to get an error instead.
func CMSwapBigEndianImageDescriptionToHost ¶
func CMSwapBigEndianImageDescriptionToHost(imageDescriptionData []byte, imageDescriptionSize uintptr) int32
CMSwapBigEndianImageDescriptionToHost converts an image description data structure from big-endian to host-endian, in place.
It panics if CMSwapBigEndianImageDescriptionToHost is unavailable at run time; use TryCMSwapBigEndianImageDescriptionToHost to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSwapBigEndianImageDescriptionToHost(_:_:)
func CMSwapBigEndianMetadataDescriptionToHost ¶
func CMSwapBigEndianMetadataDescriptionToHost(metadataDescriptionData []byte, metadataDescriptionSize uintptr) int32
CMSwapBigEndianMetadataDescriptionToHost converts a metadata description data structure from big-endian to host-endian, in place.
It panics if CMSwapBigEndianMetadataDescriptionToHost is unavailable at run time; use TryCMSwapBigEndianMetadataDescriptionToHost to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSwapBigEndianMetadataDescriptionToHost(_:_:)
func CMSwapBigEndianSoundDescriptionToHost ¶
func CMSwapBigEndianSoundDescriptionToHost(soundDescriptionData []byte, soundDescriptionSize uintptr) int32
CMSwapBigEndianSoundDescriptionToHost converts a sound description data structure from big-endian to host-endian, in place.
It panics if CMSwapBigEndianSoundDescriptionToHost is unavailable at run time; use TryCMSwapBigEndianSoundDescriptionToHost to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSwapBigEndianSoundDescriptionToHost(_:_:)
func CMSwapBigEndianTextDescriptionToHost ¶
func CMSwapBigEndianTextDescriptionToHost(textDescriptionData []byte, textDescriptionSize uintptr) int32
CMSwapBigEndianTextDescriptionToHost converts a text description structure from big-endian to host-endian, in place.
It panics if CMSwapBigEndianTextDescriptionToHost is unavailable at run time; use TryCMSwapBigEndianTextDescriptionToHost to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSwapBigEndianTextDescriptionToHost(_:_:)
func CMSwapBigEndianTimeCodeDescriptionToHost ¶
func CMSwapBigEndianTimeCodeDescriptionToHost(timeCodeDescriptionData []byte, timeCodeDescriptionSize uintptr) int32
CMSwapBigEndianTimeCodeDescriptionToHost converts a time code description data structure from big-endian to host-endian, in place.
It panics if CMSwapBigEndianTimeCodeDescriptionToHost is unavailable at run time; use TryCMSwapBigEndianTimeCodeDescriptionToHost to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSwapBigEndianTimeCodeDescriptionToHost(_:_:)
func CMSwapHostEndianClosedCaptionDescriptionToBig ¶
func CMSwapHostEndianClosedCaptionDescriptionToBig(closedCaptionDescriptionData []byte, closedCaptionDescriptionSize uintptr) int32
CMSwapHostEndianClosedCaptionDescriptionToBig converts a closed caption description structure from host-endian to big-endian, in place.
It panics if CMSwapHostEndianClosedCaptionDescriptionToBig is unavailable at run time; use TryCMSwapHostEndianClosedCaptionDescriptionToBig to get an error instead.
func CMSwapHostEndianImageDescriptionToBig ¶
func CMSwapHostEndianImageDescriptionToBig(imageDescriptionData []byte, imageDescriptionSize uintptr) int32
CMSwapHostEndianImageDescriptionToBig converts an image description data structure from host-endian to big-endian, in place.
It panics if CMSwapHostEndianImageDescriptionToBig is unavailable at run time; use TryCMSwapHostEndianImageDescriptionToBig to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSwapHostEndianImageDescriptionToBig(_:_:)
func CMSwapHostEndianMetadataDescriptionToBig ¶
func CMSwapHostEndianMetadataDescriptionToBig(metadataDescriptionData []byte, metadataDescriptionSize uintptr) int32
CMSwapHostEndianMetadataDescriptionToBig converts a metadata description data structure from host-endian to big-endian, in place.
It panics if CMSwapHostEndianMetadataDescriptionToBig is unavailable at run time; use TryCMSwapHostEndianMetadataDescriptionToBig to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSwapHostEndianMetadataDescriptionToBig(_:_:)
func CMSwapHostEndianSoundDescriptionToBig ¶
func CMSwapHostEndianSoundDescriptionToBig(soundDescriptionData []byte, soundDescriptionSize uintptr) int32
CMSwapHostEndianSoundDescriptionToBig converts a sound description data structure from host-endian to big-endian, in place.
It panics if CMSwapHostEndianSoundDescriptionToBig is unavailable at run time; use TryCMSwapHostEndianSoundDescriptionToBig to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSwapHostEndianSoundDescriptionToBig(_:_:)
func CMSwapHostEndianTextDescriptionToBig ¶
func CMSwapHostEndianTextDescriptionToBig(textDescriptionData []byte, textDescriptionSize uintptr) int32
CMSwapHostEndianTextDescriptionToBig converts a text description structure from host-endian to big-endian, in place.
It panics if CMSwapHostEndianTextDescriptionToBig is unavailable at run time; use TryCMSwapHostEndianTextDescriptionToBig to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSwapHostEndianTextDescriptionToBig(_:_:)
func CMSwapHostEndianTimeCodeDescriptionToBig ¶
func CMSwapHostEndianTimeCodeDescriptionToBig(timeCodeDescriptionData []byte, timeCodeDescriptionSize uintptr) int32
CMSwapHostEndianTimeCodeDescriptionToBig converts a time code description data structure from host-endian to big-endian, in place.
It panics if CMSwapHostEndianTimeCodeDescriptionToBig is unavailable at run time; use TryCMSwapHostEndianTimeCodeDescriptionToBig to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSwapHostEndianTimeCodeDescriptionToBig(_:_:)
func CMSyncGetRelativeRate ¶
func CMSyncGetRelativeRate(ofClockOrTimebase CMClockOrTimebaseRef, relativeToClockOrTimebase CMClockOrTimebaseRef) float64
CMSyncGetRelativeRate returns the relative rate of one timebase or clock relative to another timebase or clock.
It panics if CMSyncGetRelativeRate is unavailable at run time; use TryCMSyncGetRelativeRate to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSyncGetRelativeRate(_:relativeTo:)
func CMSyncGetRelativeRateAndAnchorTime ¶
func CMSyncGetRelativeRateAndAnchorTime(ofClockOrTimebase CMClockOrTimebaseRef, relativeToClockOrTimebase CMClockOrTimebaseRef, outRelativeRate *float64, outOfClockOrTimebaseAnchorTime *CMTime, outRelativeToClockOrTimebaseAnchorTime *CMTime) int32
CMSyncGetRelativeRateAndAnchorTime returns the relative rate of one timebase or clock relative to another timebase or clock and the times of each timebase or clock at which the relative rate went into effect.
It panics if CMSyncGetRelativeRateAndAnchorTime is unavailable at run time; use TryCMSyncGetRelativeRateAndAnchorTime to get an error instead.
func CMSyncMightDrift ¶
func CMSyncMightDrift(clockOrTimebase1 CMClockOrTimebaseRef, clockOrTimebase2 CMClockOrTimebaseRef) bool
CMSyncMightDrift returns a Boolean value that indicates whether it’s possible for one timebase or clock to drift relative to the other.
It panics if CMSyncMightDrift is unavailable at run time; use TryCMSyncMightDrift to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSyncMightDrift(_:_:)
func CMTagCollectionAddTag ¶
func CMTagCollectionAddTag(tagCollection CMMutableTagCollectionRef, tagToAdd CMTag) int32
CMTagCollectionAddTag adds a new tag to an existing collection.
It panics if CMTagCollectionAddTag is unavailable at run time; use TryCMTagCollectionAddTag to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionAddTag
func CMTagCollectionAddTagsFromArray ¶
func CMTagCollectionAddTagsFromArray(tagCollection CMMutableTagCollectionRef, tags *CMTag, tagCount CMItemCount) int32
CMTagCollectionAddTagsFromArray adds the tags contained in a C-style array to a tag collection.
It panics if CMTagCollectionAddTagsFromArray is unavailable at run time; use TryCMTagCollectionAddTagsFromArray to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionAddTagsFromArray
func CMTagCollectionAddTagsFromCollection ¶
func CMTagCollectionAddTagsFromCollection(tagCollection CMMutableTagCollectionRef, collectionWithTagsToAdd CMTagCollectionRef) int32
CMTagCollectionAddTagsFromCollection add the tags contained in one collection to another.
It panics if CMTagCollectionAddTagsFromCollection is unavailable at run time; use TryCMTagCollectionAddTagsFromCollection to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionAddTagsFromCollection
func CMTagCollectionApply ¶
func CMTagCollectionApply(tagCollection CMTagCollectionRef, applier CMTagCollectionApplierFunction, context unsafe.Pointer)
CMTagCollectionApply applies a function to all tags in a collection.
It panics if CMTagCollectionApply is unavailable at run time; use TryCMTagCollectionApply to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionApply
func CMTagCollectionContainsCategory ¶
func CMTagCollectionContainsCategory(tagCollection CMTagCollectionRef, category CMTagCategory) bool
CMTagCollectionContainsCategory determines if a tag collection contains tags for a given category.
It panics if CMTagCollectionContainsCategory is unavailable at run time; use TryCMTagCollectionContainsCategory to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionContainsCategory
func CMTagCollectionContainsSpecifiedTags ¶
func CMTagCollectionContainsSpecifiedTags(tagCollection CMTagCollectionRef, containedTags *CMTag, containedTagCount CMItemCount) bool
CMTagCollectionContainsSpecifiedTags determines if a tag collection contains a subset of tags.
It panics if CMTagCollectionContainsSpecifiedTags is unavailable at run time; use TryCMTagCollectionContainsSpecifiedTags to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionContainsSpecifiedTags
func CMTagCollectionContainsTag ¶
func CMTagCollectionContainsTag(tagCollection CMTagCollectionRef, tag CMTag) bool
CMTagCollectionContainsTag determines if a tag collection contains a specific tag.
It panics if CMTagCollectionContainsTag is unavailable at run time; use TryCMTagCollectionContainsTag to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionContainsTag
func CMTagCollectionContainsTagsOfCollection ¶
func CMTagCollectionContainsTagsOfCollection(tagCollection CMTagCollectionRef, containedTagCollection CMTagCollectionRef) bool
CMTagCollectionContainsTagsOfCollection determines if one collection of tags contains every tag from another collection.
It panics if CMTagCollectionContainsTagsOfCollection is unavailable at run time; use TryCMTagCollectionContainsTagsOfCollection to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionContainsTagsOfCollection
func CMTagCollectionCopyAsData ¶
func CMTagCollectionCopyAsData(tagCollection CMTagCollectionRef, allocator corefoundation.CFAllocatorRef) corefoundation.CFDataRef
CMTagCollectionCopyAsData creates a new Core Foundation data instance from a tag collection.
It panics if CMTagCollectionCopyAsData is unavailable at run time; use TryCMTagCollectionCopyAsData to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionCopyAsData
func CMTagCollectionCopyAsDictionary ¶
func CMTagCollectionCopyAsDictionary(tagCollection CMTagCollectionRef, allocator corefoundation.CFAllocatorRef) corefoundation.CFDictionaryRef
CMTagCollectionCopyAsDictionary creates a new Core Foundation dictionary from a tag collection.
It panics if CMTagCollectionCopyAsDictionary is unavailable at run time; use TryCMTagCollectionCopyAsDictionary to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionCopyAsDictionary
func CMTagCollectionCopyDescription ¶
func CMTagCollectionCopyDescription(allocator corefoundation.CFAllocatorRef, tagCollection CMTagCollectionRef) corefoundation.CFStringRef
CMTagCollectionCopyDescription retrieves a copy of the tag collection’s description.
It panics if CMTagCollectionCopyDescription is unavailable at run time; use TryCMTagCollectionCopyDescription to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionCopyDescription
func CMTagCollectionCopyTagsOfCategories ¶
func CMTagCollectionCopyTagsOfCategories(allocator corefoundation.CFAllocatorRef, tagCollection CMTagCollectionRef, categories *CMTagCategory, categoriesCount CMItemCount, collectionWithTagsOfCategories *CMTagCollectionRef) int32
CMTagCollectionCopyTagsOfCategories creates a new tag collection from an existing collection, copying all tags which match a list of categories.
It panics if CMTagCollectionCopyTagsOfCategories is unavailable at run time; use TryCMTagCollectionCopyTagsOfCategories to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionCopyTagsOfCategories
func CMTagCollectionCreate ¶
func CMTagCollectionCreate(allocator corefoundation.CFAllocatorRef, tags *CMTag, tagCount CMItemCount, newCollectionOut *CMTagCollectionRef) int32
CMTagCollectionCreate creates a new tag collection from an existing C-style array of tags.
It panics if CMTagCollectionCreate is unavailable at run time; use TryCMTagCollectionCreate to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionCreate
func CMTagCollectionCreateCopy ¶
func CMTagCollectionCreateCopy(tagCollection CMTagCollectionRef, allocator corefoundation.CFAllocatorRef, newCollectionCopyOut *CMTagCollectionRef) int32
CMTagCollectionCreateCopy creates a copy of a tag collection.
It panics if CMTagCollectionCreateCopy is unavailable at run time; use TryCMTagCollectionCreateCopy to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionCreateCopy
func CMTagCollectionCreateDifference ¶
func CMTagCollectionCreateDifference(tagCollectionMinuend CMTagCollectionRef, tagCollectionSubtrahend CMTagCollectionRef, tagCollectionOut *CMTagCollectionRef) int32
CMTagCollectionCreateDifference creates a new tag collection with the difference of two existing collections.
It panics if CMTagCollectionCreateDifference is unavailable at run time; use TryCMTagCollectionCreateDifference to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionCreateDifference
func CMTagCollectionCreateExclusiveOr ¶
func CMTagCollectionCreateExclusiveOr(tagCollection1 CMTagCollectionRef, tagCollection2 CMTagCollectionRef, tagCollectionOut *CMTagCollectionRef) int32
CMTagCollectionCreateExclusiveOr creates a new tag collection from two existing tag collections, copying elements which are in one collection or the other, but not both.
It panics if CMTagCollectionCreateExclusiveOr is unavailable at run time; use TryCMTagCollectionCreateExclusiveOr to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionCreateExclusiveOr
func CMTagCollectionCreateFromData ¶
func CMTagCollectionCreateFromData(data corefoundation.CFDataRef, allocator corefoundation.CFAllocatorRef, newCollectionOut *CMTagCollectionRef) int32
CMTagCollectionCreateFromData creates a new tag collection from an existing Core Foundation data instance.
It panics if CMTagCollectionCreateFromData is unavailable at run time; use TryCMTagCollectionCreateFromData to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionCreateFromData
func CMTagCollectionCreateFromDictionary ¶
func CMTagCollectionCreateFromDictionary(dict corefoundation.CFDictionaryRef, allocator corefoundation.CFAllocatorRef, newCollectionOut *CMTagCollectionRef) int32
CMTagCollectionCreateFromDictionary creates a new tag collection from an existing Core Foundation dictionary.
It panics if CMTagCollectionCreateFromDictionary is unavailable at run time; use TryCMTagCollectionCreateFromDictionary to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionCreateFromDictionary
func CMTagCollectionCreateIntersection ¶
func CMTagCollectionCreateIntersection(tagCollection1 CMTagCollectionRef, tagCollection2 CMTagCollectionRef, tagCollectionOut *CMTagCollectionRef) int32
CMTagCollectionCreateIntersection creates a new tag collection containing only the tags from two existing collections which match.
It panics if CMTagCollectionCreateIntersection is unavailable at run time; use TryCMTagCollectionCreateIntersection to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionCreateIntersection
func CMTagCollectionCreateMutable ¶
func CMTagCollectionCreateMutable(allocator corefoundation.CFAllocatorRef, capacity int, newMutableCollectionOut *CMMutableTagCollectionRef) int32
CMTagCollectionCreateMutable creates a new, mutable, empty tag collection.
It panics if CMTagCollectionCreateMutable is unavailable at run time; use TryCMTagCollectionCreateMutable to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionCreateMutable
func CMTagCollectionCreateMutableCopy ¶
func CMTagCollectionCreateMutableCopy(tagCollection CMTagCollectionRef, allocator corefoundation.CFAllocatorRef, newMutableCollectionCopyOut *CMMutableTagCollectionRef) int32
CMTagCollectionCreateMutableCopy creates a new mutable copy from an existing tag collection.
It panics if CMTagCollectionCreateMutableCopy is unavailable at run time; use TryCMTagCollectionCreateMutableCopy to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionCreateMutableCopy
func CMTagCollectionCreateUnion ¶
func CMTagCollectionCreateUnion(tagCollection1 CMTagCollectionRef, tagCollection2 CMTagCollectionRef, tagCollectionOut *CMTagCollectionRef) int32
CMTagCollectionCreateUnion creates a new tag collection containing all tags from two collections without duplicates.
It panics if CMTagCollectionCreateUnion is unavailable at run time; use TryCMTagCollectionCreateUnion to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionCreateUnion
func CMTagCollectionGetTags ¶
func CMTagCollectionGetTags(tagCollection CMTagCollectionRef, tagBuffer *CMTag, tagBufferCount CMItemCount, numberOfTagsCopied *CMItemCount) int32
CMTagCollectionGetTags retrieves an arbitrary number of tags from the collection.
It panics if CMTagCollectionGetTags is unavailable at run time; use TryCMTagCollectionGetTags to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionGetTags
func CMTagCollectionGetTagsWithCategory ¶
func CMTagCollectionGetTagsWithCategory(tagCollection CMTagCollectionRef, category CMTagCategory, tagBuffer *CMTag, tagBufferCount CMItemCount, numberOfTagsCopied *CMItemCount) int32
CMTagCollectionGetTagsWithCategory retrieves a C-style array of tags with a given category from a tag collection.
It panics if CMTagCollectionGetTagsWithCategory is unavailable at run time; use TryCMTagCollectionGetTagsWithCategory to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionGetTagsWithCategory
func CMTagCollectionGetTagsWithFilterFunction ¶
func CMTagCollectionGetTagsWithFilterFunction(tagCollection CMTagCollectionRef, tagBuffer *CMTag, tagBufferCount CMItemCount, numberOfTagsCopied *CMItemCount, filter CMTagCollectionTagFilterFunction, context unsafe.Pointer) int32
CMTagCollectionGetTagsWithFilterFunction gets all tags in a collection matching an evaluation function.
It panics if CMTagCollectionGetTagsWithFilterFunction is unavailable at run time; use TryCMTagCollectionGetTagsWithFilterFunction to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionGetTagsWithFilterFunction
func CMTagCollectionGetTypeID ¶
func CMTagCollectionGetTypeID() uint
CMTagCollectionGetTypeID retrieves the internal type ID for tag collections.
It panics if CMTagCollectionGetTypeID is unavailable at run time; use TryCMTagCollectionGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionGetTypeID
func CMTagCollectionIsEmpty ¶
func CMTagCollectionIsEmpty(tagCollection CMTagCollectionRef) bool
CMTagCollectionIsEmpty checks if a tag collection has no elements.
It panics if CMTagCollectionIsEmpty is unavailable at run time; use TryCMTagCollectionIsEmpty to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionIsEmpty
func CMTagCollectionRemoveAllTags ¶
func CMTagCollectionRemoveAllTags(tagCollection CMMutableTagCollectionRef) int32
CMTagCollectionRemoveAllTags removes all tags from a collection.
It panics if CMTagCollectionRemoveAllTags is unavailable at run time; use TryCMTagCollectionRemoveAllTags to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionRemoveAllTags
func CMTagCollectionRemoveAllTagsOfCategory ¶
func CMTagCollectionRemoveAllTagsOfCategory(tagCollection CMMutableTagCollectionRef, category CMTagCategory) int32
CMTagCollectionRemoveAllTagsOfCategory removes all tags of a given category from a collection.
It panics if CMTagCollectionRemoveAllTagsOfCategory is unavailable at run time; use TryCMTagCollectionRemoveAllTagsOfCategory to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionRemoveAllTagsOfCategory
func CMTagCollectionRemoveTag ¶
func CMTagCollectionRemoveTag(tagCollection CMMutableTagCollectionRef, tagToRemove CMTag) int32
CMTagCollectionRemoveTag removes a specific tag from a collection.
It panics if CMTagCollectionRemoveTag is unavailable at run time; use TryCMTagCollectionRemoveTag to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionRemoveTag
func CMTagCompare ¶
func CMTagCompare(tag1 CMTag, tag2 CMTag) corefoundation.CFComparisonResult
CMTagCompare compares two tags in terms of partial equality.
It panics if CMTagCompare is unavailable at run time; use TryCMTagCompare to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCompare
func CMTagCopyAsDictionary ¶
func CMTagCopyAsDictionary(tag CMTag, allocator corefoundation.CFAllocatorRef) corefoundation.CFDictionaryRef
CMTagCopyAsDictionary copies an existing tag to a new dictionary object.
It panics if CMTagCopyAsDictionary is unavailable at run time; use TryCMTagCopyAsDictionary to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCopyAsDictionary
func CMTagCopyDescription ¶
func CMTagCopyDescription(allocator corefoundation.CFAllocatorRef, tag CMTag) corefoundation.CFStringRef
CMTagCopyDescription copies the description of a tag to a new string.
It panics if CMTagCopyDescription is unavailable at run time; use TryCMTagCopyDescription to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCopyDescription
func CMTagEqualToTag ¶
CMTagEqualToTag compares two tags for strict equality.
It panics if CMTagEqualToTag is unavailable at run time; use TryCMTagEqualToTag to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagEqualToTag
func CMTagGetFlagsValue ¶
CMTagGetFlagsValue retrieves a tag’s value as a 64-bit field flag.
It panics if CMTagGetFlagsValue is unavailable at run time; use TryCMTagGetFlagsValue to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagGetFlagsValue
func CMTagGetFloat64Value ¶
CMTagGetFloat64Value retrieves a tag’s value as a 64-bit floating point number.
It panics if CMTagGetFloat64Value is unavailable at run time; use TryCMTagGetFloat64Value to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagGetFloat64Value
func CMTagGetOSTypeValue ¶
CMTagGetOSTypeValue retrieves a tag’s value for use by the operating system.
It panics if CMTagGetOSTypeValue is unavailable at run time; use TryCMTagGetOSTypeValue to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagGetOSTypeValue
func CMTagGetSInt64Value ¶
CMTagGetSInt64Value retrieves a tag’s value as a signed 64-bit integer.
It panics if CMTagGetSInt64Value is unavailable at run time; use TryCMTagGetSInt64Value to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagGetSInt64Value
func CMTagHasFlagsValue ¶
CMTagHasFlagsValue whether a given tag contains a value for a 64-bit flag field.
It panics if CMTagHasFlagsValue is unavailable at run time; use TryCMTagHasFlagsValue to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagHasFlagsValue
func CMTagHasFloat64Value ¶
CMTagHasFloat64Value whether a given tag contains a value for a 64-bit floating point number.
It panics if CMTagHasFloat64Value is unavailable at run time; use TryCMTagHasFloat64Value to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagHasFloat64Value
func CMTagHasOSTypeValue ¶
CMTagHasOSTypeValue whether a given tag contains a value for use by the operating system.
It panics if CMTagHasOSTypeValue is unavailable at run time; use TryCMTagHasOSTypeValue to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagHasOSTypeValue
func CMTagHasSInt64Value ¶
CMTagHasSInt64Value whether a given tag contains a value for a signed 64-bit integer.
It panics if CMTagHasSInt64Value is unavailable at run time; use TryCMTagHasSInt64Value to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagHasSInt64Value
func CMTagHash ¶
CMTagHash generates a hash identifier for a tag.
It panics if CMTagHash is unavailable at run time; use TryCMTagHash to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagHash
func CMTaggedBufferGroupCreate ¶
func CMTaggedBufferGroupCreate(allocator corefoundation.CFAllocatorRef, tagCollections corefoundation.CFArrayRef, buffers corefoundation.CFArrayRef, groupOut *CMTaggedBufferGroupRef) int32
CMTaggedBufferGroupCreate creates a new tagged buffer group from a pair of buffers and the tags to associate with them.
It panics if CMTaggedBufferGroupCreate is unavailable at run time; use TryCMTaggedBufferGroupCreate to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTaggedBufferGroupCreate
func CMTaggedBufferGroupCreateCombined ¶
func CMTaggedBufferGroupCreateCombined(allocator corefoundation.CFAllocatorRef, taggedBufferGroups corefoundation.CFArrayRef, groupOut *CMTaggedBufferGroupRef) int32
CMTaggedBufferGroupCreateCombined creates a new tagged buffer group from an array of existing tagged buffer groups.
It panics if CMTaggedBufferGroupCreateCombined is unavailable at run time; use TryCMTaggedBufferGroupCreateCombined to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTaggedBufferGroupCreateCombined
func CMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroup ¶
func CMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroup(allocator corefoundation.CFAllocatorRef, taggedBufferGroup CMTaggedBufferGroupRef, formatDescriptionOut *CMTaggedBufferGroupFormatDescriptionRef) int32
CMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroup creates a new format description for a tagged buffer group.
It panics if CMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroup is unavailable at run time; use TryCMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroup to get an error instead.
func CMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroupWithExtensions ¶
func CMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroupWithExtensions(allocator corefoundation.CFAllocatorRef, taggedBufferGroup CMTaggedBufferGroupRef, extensions corefoundation.CFDictionaryRef, formatDescriptionOut *CMTaggedBufferGroupFormatDescriptionRef) int32
CMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroupWithExtensions.
It panics if CMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroupWithExtensions is unavailable at run time; use TryCMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroupWithExtensions to get an error instead.
func CMTaggedBufferGroupFormatDescriptionMatchesTaggedBufferGroup ¶
func CMTaggedBufferGroupFormatDescriptionMatchesTaggedBufferGroup(desc CMTaggedBufferGroupFormatDescriptionRef, taggedBufferGroup CMTaggedBufferGroupRef) bool
CMTaggedBufferGroupFormatDescriptionMatchesTaggedBufferGroup checks to see if a tagged buffer group’s format matches an existing format description.
It panics if CMTaggedBufferGroupFormatDescriptionMatchesTaggedBufferGroup is unavailable at run time; use TryCMTaggedBufferGroupFormatDescriptionMatchesTaggedBufferGroup to get an error instead.
func CMTaggedBufferGroupGetCVPixelBufferAtIndex ¶
func CMTaggedBufferGroupGetCVPixelBufferAtIndex(group CMTaggedBufferGroupRef, index int) corevideo.CVPixelBufferRef
CMTaggedBufferGroupGetCVPixelBufferAtIndex gets the pixel buffer at a given index in the buffer group.
It panics if CMTaggedBufferGroupGetCVPixelBufferAtIndex is unavailable at run time; use TryCMTaggedBufferGroupGetCVPixelBufferAtIndex to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTaggedBufferGroupGetCVPixelBufferAtIndex
func CMTaggedBufferGroupGetCVPixelBufferForTag ¶
func CMTaggedBufferGroupGetCVPixelBufferForTag(group CMTaggedBufferGroupRef, tag CMTag, indexOut *int) corevideo.CVPixelBufferRef
CMTaggedBufferGroupGetCVPixelBufferForTag gets the single pixel buffer in a group which contains a given tag, if present.
It panics if CMTaggedBufferGroupGetCVPixelBufferForTag is unavailable at run time; use TryCMTaggedBufferGroupGetCVPixelBufferForTag to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTaggedBufferGroupGetCVPixelBufferForTag
func CMTaggedBufferGroupGetCVPixelBufferForTagCollection ¶
func CMTaggedBufferGroupGetCVPixelBufferForTagCollection(group CMTaggedBufferGroupRef, tagCollection CMTagCollectionRef, indexOut *int) corevideo.CVPixelBufferRef
CMTaggedBufferGroupGetCVPixelBufferForTagCollection gets the single pixel buffer in a group which contains a given tag collection, if present.
It panics if CMTaggedBufferGroupGetCVPixelBufferForTagCollection is unavailable at run time; use TryCMTaggedBufferGroupGetCVPixelBufferForTagCollection to get an error instead.
func CMTaggedBufferGroupGetTypeID ¶
func CMTaggedBufferGroupGetTypeID() uint
CMTaggedBufferGroupGetTypeID gets the internal type ID for a tagged buffer group.
It panics if CMTaggedBufferGroupGetTypeID is unavailable at run time; use TryCMTaggedBufferGroupGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTaggedBufferGroupGetTypeID
func CMTextFormatDescriptionCopyAsBigEndianTextDescriptionBlockBuffer ¶
func CMTextFormatDescriptionCopyAsBigEndianTextDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, textFormatDescription CMTextFormatDescriptionRef, flavor CMTextDescriptionFlavor, blockBufferOut *uintptr) int32
CMTextFormatDescriptionCopyAsBigEndianTextDescriptionBlockBuffer copies the contents of a text format description to a buffer in big-endian byte order.
It panics if CMTextFormatDescriptionCopyAsBigEndianTextDescriptionBlockBuffer is unavailable at run time; use TryCMTextFormatDescriptionCopyAsBigEndianTextDescriptionBlockBuffer to get an error instead.
func CMTextFormatDescriptionCreateFromBigEndianTextDescriptionBlockBuffer ¶
func CMTextFormatDescriptionCreateFromBigEndianTextDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, textDescriptionBlockBuffer CMBlockBufferRef, flavor CMTextDescriptionFlavor, mediaType CMMediaType, formatDescriptionOut *CMTextFormatDescriptionRef) int32
CMTextFormatDescriptionCreateFromBigEndianTextDescriptionBlockBuffer creates a text format description from a big-endian text description structure inside a buffer.
It panics if CMTextFormatDescriptionCreateFromBigEndianTextDescriptionBlockBuffer is unavailable at run time; use TryCMTextFormatDescriptionCreateFromBigEndianTextDescriptionBlockBuffer to get an error instead.
func CMTextFormatDescriptionCreateFromBigEndianTextDescriptionData ¶
func CMTextFormatDescriptionCreateFromBigEndianTextDescriptionData(allocator corefoundation.CFAllocatorRef, textDescriptionData []byte, size uintptr, flavor CMTextDescriptionFlavor, mediaType CMMediaType, formatDescriptionOut *CMTextFormatDescriptionRef) int32
CMTextFormatDescriptionCreateFromBigEndianTextDescriptionData creates a text format description from a big-endian text description structure.
It panics if CMTextFormatDescriptionCreateFromBigEndianTextDescriptionData is unavailable at run time; use TryCMTextFormatDescriptionCreateFromBigEndianTextDescriptionData to get an error instead.
func CMTextFormatDescriptionGetDefaultStyle ¶
func CMTextFormatDescriptionGetDefaultStyle(desc CMFormatDescriptionRef, localFontIDOut *uint16, boldOut *bool, italicOut *bool, underlineOut *bool, fontSizeOut *float64, colorComponentsOut float64) int32
CMTextFormatDescriptionGetDefaultStyle returns the default text style.
It panics if CMTextFormatDescriptionGetDefaultStyle is unavailable at run time; use TryCMTextFormatDescriptionGetDefaultStyle to get an error instead.
func CMTextFormatDescriptionGetDefaultTextBox ¶
func CMTextFormatDescriptionGetDefaultTextBox(desc CMFormatDescriptionRef, originIsAtTopLeft bool, heightOfTextTrack float64, defaultTextBoxOut *corefoundation.CGRect) int32
CMTextFormatDescriptionGetDefaultTextBox returns the default text box.
It panics if CMTextFormatDescriptionGetDefaultTextBox is unavailable at run time; use TryCMTextFormatDescriptionGetDefaultTextBox to get an error instead.
func CMTextFormatDescriptionGetDisplayFlags ¶
func CMTextFormatDescriptionGetDisplayFlags(desc CMFormatDescriptionRef, displayFlagsOut *CMTextDisplayFlags) int32
CMTextFormatDescriptionGetDisplayFlags returns the display flags.
It panics if CMTextFormatDescriptionGetDisplayFlags is unavailable at run time; use TryCMTextFormatDescriptionGetDisplayFlags to get an error instead.
func CMTextFormatDescriptionGetFontName ¶
func CMTextFormatDescriptionGetFontName(desc CMFormatDescriptionRef, localFontID uint16, fontNameOut *corefoundation.CFStringRef) int32
CMTextFormatDescriptionGetFontName returns a font name for a local font identifier.
It panics if CMTextFormatDescriptionGetFontName is unavailable at run time; use TryCMTextFormatDescriptionGetFontName to get an error instead.
func CMTextFormatDescriptionGetJustification ¶
func CMTextFormatDescriptionGetJustification(desc CMFormatDescriptionRef, horizontaJustificationlOut *CMTextJustificationValue, verticalJustificationOut *CMTextJustificationValue) int32
CMTextFormatDescriptionGetJustification returns the horizontal and vertical justification.
It panics if CMTextFormatDescriptionGetJustification is unavailable at run time; use TryCMTextFormatDescriptionGetJustification to get an error instead.
func CMTimeCodeFormatDescriptionCopyAsBigEndianTimeCodeDescriptionBlockBuffer ¶
func CMTimeCodeFormatDescriptionCopyAsBigEndianTimeCodeDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, timeCodeFormatDescription CMTimeCodeFormatDescriptionRef, flavor CMTimeCodeDescriptionFlavor, blockBufferOut *uintptr) int32
CMTimeCodeFormatDescriptionCopyAsBigEndianTimeCodeDescriptionBlockBuffer copies the contents of a time code format description to a buffer in big-endian byte order.
It panics if CMTimeCodeFormatDescriptionCopyAsBigEndianTimeCodeDescriptionBlockBuffer is unavailable at run time; use TryCMTimeCodeFormatDescriptionCopyAsBigEndianTimeCodeDescriptionBlockBuffer to get an error instead.
func CMTimeCodeFormatDescriptionCreate ¶
func CMTimeCodeFormatDescriptionCreate(allocator corefoundation.CFAllocatorRef, timeCodeFormatType CMTimeCodeFormatType, frameDuration CMTime, frameQuanta uint32, flags uint32, extensions corefoundation.CFDictionaryRef, formatDescriptionOut *CMTimeCodeFormatDescriptionRef) int32
CMTimeCodeFormatDescriptionCreate creates a format description for time code media.
It panics if CMTimeCodeFormatDescriptionCreate is unavailable at run time; use TryCMTimeCodeFormatDescriptionCreate to get an error instead.
func CMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionBlockBuffer ¶
func CMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, timeCodeDescriptionBlockBuffer CMBlockBufferRef, flavor CMTimeCodeDescriptionFlavor, formatDescriptionOut *CMTimeCodeFormatDescriptionRef) int32
CMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionBlockBuffer creates a time code format description from a big-endian time code description data structure in a buffer.
It panics if CMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionBlockBuffer is unavailable at run time; use TryCMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionBlockBuffer to get an error instead.
func CMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionData ¶
func CMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionData(allocator corefoundation.CFAllocatorRef, timeCodeDescriptionData []byte, size uintptr, flavor CMTimeCodeDescriptionFlavor, formatDescriptionOut *CMTimeCodeFormatDescriptionRef) int32
CMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionData creates a time code format description from a big-endian time code description structure.
It panics if CMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionData is unavailable at run time; use TryCMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionData to get an error instead.
func CMTimeCodeFormatDescriptionGetFrameQuanta ¶
func CMTimeCodeFormatDescriptionGetFrameQuanta(timeCodeFormatDescription CMTimeCodeFormatDescriptionRef) uint32
CMTimeCodeFormatDescriptionGetFrameQuanta returns the frames per second for a time code, or frames per tick in counter mode.
It panics if CMTimeCodeFormatDescriptionGetFrameQuanta is unavailable at run time; use TryCMTimeCodeFormatDescriptionGetFrameQuanta to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeCodeFormatDescriptionGetFrameQuanta(_:)
func CMTimeCodeFormatDescriptionGetTimeCodeFlags ¶
func CMTimeCodeFormatDescriptionGetTimeCodeFlags(desc CMTimeCodeFormatDescriptionRef) uint32
CMTimeCodeFormatDescriptionGetTimeCodeFlags returns time code flags.
It panics if CMTimeCodeFormatDescriptionGetTimeCodeFlags is unavailable at run time; use TryCMTimeCodeFormatDescriptionGetTimeCodeFlags to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeCodeFormatDescriptionGetTimeCodeFlags(_:)
func CMTimeCompare ¶
CMTimeCompare returns the numerical relationship of two times.
It panics if CMTimeCompare is unavailable at run time; use TryCMTimeCompare to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeCompare(_:_:)
func CMTimeCopyAsDictionary ¶
func CMTimeCopyAsDictionary(time CMTime, allocator corefoundation.CFAllocatorRef) corefoundation.CFDictionaryRef
CMTimeCopyAsDictionary creates a dictionary representation of the time.
It panics if CMTimeCopyAsDictionary is unavailable at run time; use TryCMTimeCopyAsDictionary to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeCopyAsDictionary(_:allocator:)
func CMTimeCopyDescription ¶
func CMTimeCopyDescription(allocator corefoundation.CFAllocatorRef, time CMTime) corefoundation.CFStringRef
CMTimeCopyDescription creates a string representation of the time.
It panics if CMTimeCopyDescription is unavailable at run time; use TryCMTimeCopyDescription to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeCopyDescription(allocator:time:)
func CMTimeGetSeconds ¶
CMTimeGetSeconds returns a representation of the time in seconds.
It panics if CMTimeGetSeconds is unavailable at run time; use TryCMTimeGetSeconds to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeGetSeconds(_:)
func CMTimeMappingCopyAsDictionary ¶
func CMTimeMappingCopyAsDictionary(mapping CMTimeMapping, allocator corefoundation.CFAllocatorRef) corefoundation.CFDictionaryRef
CMTimeMappingCopyAsDictionary returns a dictionary representation of a time mapping.
It panics if CMTimeMappingCopyAsDictionary is unavailable at run time; use TryCMTimeMappingCopyAsDictionary to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeMappingCopyAsDictionary(_:allocator:)
func CMTimeMappingCopyDescription ¶
func CMTimeMappingCopyDescription(allocator corefoundation.CFAllocatorRef, mapping CMTimeMapping) corefoundation.CFStringRef
CMTimeMappingCopyDescription copies a string description of a time mapping.
It panics if CMTimeMappingCopyDescription is unavailable at run time; use TryCMTimeMappingCopyDescription to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeMappingCopyDescription(allocator:mapping:)
func CMTimeMappingShow ¶
func CMTimeMappingShow(mapping CMTimeMapping)
CMTimeMappingShow prints a description of a time mapping to standard output.
It panics if CMTimeMappingShow is unavailable at run time; use TryCMTimeMappingShow to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeMappingShow(_:)
func CMTimeRangeContainsTime ¶
func CMTimeRangeContainsTime(range_ CMTimeRange, time CMTime) bool
CMTimeRangeContainsTime returns a Boolean value that indicates whether a time range contains a time.
It panics if CMTimeRangeContainsTime is unavailable at run time; use TryCMTimeRangeContainsTime to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeRangeContainsTime(_:time:)
func CMTimeRangeContainsTimeRange ¶
func CMTimeRangeContainsTimeRange(range_ CMTimeRange, otherRange CMTimeRange) bool
CMTimeRangeContainsTimeRange returns a Boolean value that indicates whether a time range contains another time range.
It panics if CMTimeRangeContainsTimeRange is unavailable at run time; use TryCMTimeRangeContainsTimeRange to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeRangeContainsTimeRange(_:otherRange:)
func CMTimeRangeCopyAsDictionary ¶
func CMTimeRangeCopyAsDictionary(range_ CMTimeRange, allocator corefoundation.CFAllocatorRef) corefoundation.CFDictionaryRef
CMTimeRangeCopyAsDictionary returns a dictionary representation of a time range.
It panics if CMTimeRangeCopyAsDictionary is unavailable at run time; use TryCMTimeRangeCopyAsDictionary to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeRangeCopyAsDictionary(_:allocator:)
func CMTimeRangeCopyDescription ¶
func CMTimeRangeCopyDescription(allocator corefoundation.CFAllocatorRef, range_ CMTimeRange) corefoundation.CFStringRef
CMTimeRangeCopyDescription returns a string with a description of a time range.
It panics if CMTimeRangeCopyDescription is unavailable at run time; use TryCMTimeRangeCopyDescription to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeRangeCopyDescription(allocator:range:)
func CMTimeRangeEqual ¶
func CMTimeRangeEqual(range1 CMTimeRange, range2 CMTimeRange) bool
CMTimeRangeEqual returns a Boolean value that indicates whether two time ranges are equal.
It panics if CMTimeRangeEqual is unavailable at run time; use TryCMTimeRangeEqual to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeRangeEqual(_:_:)
func CMTimeRangeShow ¶
func CMTimeRangeShow(range_ CMTimeRange)
CMTimeRangeShow prints a description of the time range to standard error.
It panics if CMTimeRangeShow is unavailable at run time; use TryCMTimeRangeShow to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeRangeShow(_:)
func CMTimeShow ¶
func CMTimeShow(time CMTime)
CMTimeShow prints a description of the time to the console.
It panics if CMTimeShow is unavailable at run time; use TryCMTimeShow to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeShow(_:)
func CMTimebaseAddTimer ¶
func CMTimebaseAddTimer(timebase CMTimebaseRef, timer corefoundation.CFRunLoopTimerRef, runloop corefoundation.CFRunLoopRef) int32
CMTimebaseAddTimer adds the timer to the list of timers the timebase manages.
It panics if CMTimebaseAddTimer is unavailable at run time; use TryCMTimebaseAddTimer to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimebaseAddTimer(_:timer:runloop:)
func CMTimebaseAddTimerDispatchSource ¶
func CMTimebaseAddTimerDispatchSource(timebase CMTimebaseRef, timerSource dispatch.Source) int32
CMTimebaseAddTimerDispatchSource adds the timer dispatch source to the list of timers the timebase manages.
It panics if CMTimebaseAddTimerDispatchSource is unavailable at run time; use TryCMTimebaseAddTimerDispatchSource to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimebaseAddTimerDispatchSource(_:timerSource:)
func CMTimebaseCreateWithSourceClock ¶
func CMTimebaseCreateWithSourceClock(allocator corefoundation.CFAllocatorRef, sourceClock CMClockRef, timebaseOut *CMTimebaseRef) int32
CMTimebaseCreateWithSourceClock creates a timebase by using a source clock.
It panics if CMTimebaseCreateWithSourceClock is unavailable at run time; use TryCMTimebaseCreateWithSourceClock to get an error instead.
func CMTimebaseCreateWithSourceTimebase ¶
func CMTimebaseCreateWithSourceTimebase(allocator corefoundation.CFAllocatorRef, sourceTimebase CMTimebaseRef, timebaseOut *CMTimebaseRef) int32
CMTimebaseCreateWithSourceTimebase creates a timebase by using a source timebase.
It panics if CMTimebaseCreateWithSourceTimebase is unavailable at run time; use TryCMTimebaseCreateWithSourceTimebase to get an error instead.
func CMTimebaseGetEffectiveRate ¶
func CMTimebaseGetEffectiveRate(timebase CMTimebaseRef) float64
CMTimebaseGetEffectiveRate returns the effective rate of a timebase, which combines its rate with the rates of all its host timebases.
It panics if CMTimebaseGetEffectiveRate is unavailable at run time; use TryCMTimebaseGetEffectiveRate to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimebaseGetEffectiveRate(_:)
func CMTimebaseGetRate ¶
func CMTimebaseGetRate(timebase CMTimebaseRef) float64
CMTimebaseGetRate returns the current rate of a timebase.
It panics if CMTimebaseGetRate is unavailable at run time; use TryCMTimebaseGetRate to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimebaseGetRate(_:)
func CMTimebaseGetTimeAndRate ¶
func CMTimebaseGetTimeAndRate(timebase CMTimebaseRef, timeOut *CMTime, rateOut *float64) int32
CMTimebaseGetTimeAndRate returns the current time and rate of a timebase.
It panics if CMTimebaseGetTimeAndRate is unavailable at run time; use TryCMTimebaseGetTimeAndRate to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimebaseGetTimeAndRate(_:timeOut:rateOut:)
func CMTimebaseGetTypeID ¶
func CMTimebaseGetTypeID() uint
CMTimebaseGetTypeID returns the Core Foundation type identifier that identifies a timebase object.
It panics if CMTimebaseGetTypeID is unavailable at run time; use TryCMTimebaseGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimebaseGetTypeID()
func CMTimebaseNotificationBarrier ¶
func CMTimebaseNotificationBarrier(timebase CMTimebaseRef) int32
CMTimebaseNotificationBarrier requests that the timebase wait until it isn’t posting notifications.
It panics if CMTimebaseNotificationBarrier is unavailable at run time; use TryCMTimebaseNotificationBarrier to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimebaseNotificationBarrier(_:)
func CMTimebaseRemoveTimer ¶
func CMTimebaseRemoveTimer(timebase CMTimebaseRef, timer corefoundation.CFRunLoopTimerRef) int32
CMTimebaseRemoveTimer removes the timer from the list of timers the timebase manages.
It panics if CMTimebaseRemoveTimer is unavailable at run time; use TryCMTimebaseRemoveTimer to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimebaseRemoveTimer(_:timer:)
func CMTimebaseRemoveTimerDispatchSource ¶
func CMTimebaseRemoveTimerDispatchSource(timebase CMTimebaseRef, timerSource dispatch.Source) int32
CMTimebaseRemoveTimerDispatchSource removes the timer dispatch source from the list of timers the timebase manages.
It panics if CMTimebaseRemoveTimerDispatchSource is unavailable at run time; use TryCMTimebaseRemoveTimerDispatchSource to get an error instead.
func CMTimebaseSetAnchorTime ¶
func CMTimebaseSetAnchorTime(timebase CMTimebaseRef, timebaseTime CMTime, immediateSourceTime CMTime) int32
CMTimebaseSetAnchorTime sets the time of a timebase at a particular host time.
It panics if CMTimebaseSetAnchorTime is unavailable at run time; use TryCMTimebaseSetAnchorTime to get an error instead.
func CMTimebaseSetRate ¶
func CMTimebaseSetRate(timebase CMTimebaseRef, rate float64) int32
CMTimebaseSetRate sets the rate of a timebase.
It panics if CMTimebaseSetRate is unavailable at run time; use TryCMTimebaseSetRate to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimebaseSetRate(_:rate:)
func CMTimebaseSetRateAndAnchorTime ¶
func CMTimebaseSetRateAndAnchorTime(timebase CMTimebaseRef, rate float64, timebaseTime CMTime, immediateSourceTime CMTime) int32
CMTimebaseSetRateAndAnchorTime sets the time of a timebase at a particular host time, and changes the rate at exactly that time.
It panics if CMTimebaseSetRateAndAnchorTime is unavailable at run time; use TryCMTimebaseSetRateAndAnchorTime to get an error instead.
func CMTimebaseSetSourceClock ¶
func CMTimebaseSetSourceClock(timebase CMTimebaseRef, newSourceClock CMClockRef) int32
CMTimebaseSetSourceClock sets the source clock of a timebase.
It panics if CMTimebaseSetSourceClock is unavailable at run time; use TryCMTimebaseSetSourceClock to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimebaseSetSourceClock(_:_:)
func CMTimebaseSetSourceTimebase ¶
func CMTimebaseSetSourceTimebase(timebase CMTimebaseRef, newSourceTimebase CMTimebaseRef) int32
CMTimebaseSetSourceTimebase sets the source timebase of a timebase.
It panics if CMTimebaseSetSourceTimebase is unavailable at run time; use TryCMTimebaseSetSourceTimebase to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimebaseSetSourceTimebase(_:_:)
func CMTimebaseSetTime ¶
func CMTimebaseSetTime(timebase CMTimebaseRef, time CMTime) int32
CMTimebaseSetTime sets the current time of a timebase.
It panics if CMTimebaseSetTime is unavailable at run time; use TryCMTimebaseSetTime to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimebaseSetTime(_:time:)
func CMTimebaseSetTimerDispatchSourceNextFireTime ¶
func CMTimebaseSetTimerDispatchSourceNextFireTime(timebase CMTimebaseRef, timerSource dispatch.Source, fireTime CMTime, flags uint32) int32
CMTimebaseSetTimerDispatchSourceNextFireTime sets the time on the timebase’s timeline at which the timer dispatch source should fire next.
It panics if CMTimebaseSetTimerDispatchSourceNextFireTime is unavailable at run time; use TryCMTimebaseSetTimerDispatchSourceNextFireTime to get an error instead.
func CMTimebaseSetTimerDispatchSourceToFireImmediately ¶
func CMTimebaseSetTimerDispatchSourceToFireImmediately(timebase CMTimebaseRef, timerSource dispatch.Source) int32
CMTimebaseSetTimerDispatchSourceToFireImmediately sets the timer dispatch source to fire immediately once, overriding any previous timer call.
It panics if CMTimebaseSetTimerDispatchSourceToFireImmediately is unavailable at run time; use TryCMTimebaseSetTimerDispatchSourceToFireImmediately to get an error instead.
func CMTimebaseSetTimerNextFireTime ¶
func CMTimebaseSetTimerNextFireTime(timebase CMTimebaseRef, timer corefoundation.CFRunLoopTimerRef, fireTime CMTime, flags uint32) int32
CMTimebaseSetTimerNextFireTime sets the time on the timebase’s timeline at which the timer should fire next.
It panics if CMTimebaseSetTimerNextFireTime is unavailable at run time; use TryCMTimebaseSetTimerNextFireTime to get an error instead.
func CMTimebaseSetTimerToFireImmediately ¶
func CMTimebaseSetTimerToFireImmediately(timebase CMTimebaseRef, timer corefoundation.CFRunLoopTimerRef) int32
CMTimebaseSetTimerToFireImmediately sets the timer to fire immediately once, overriding any previous timer calls.
It panics if CMTimebaseSetTimerToFireImmediately is unavailable at run time; use TryCMTimebaseSetTimerToFireImmediately to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimebaseSetTimerToFireImmediately(_:timer:)
func CMVideoFormatDescriptionCopyAsBigEndianImageDescriptionBlockBuffer ¶
func CMVideoFormatDescriptionCopyAsBigEndianImageDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, videoFormatDescription CMVideoFormatDescriptionRef, stringEncoding uint32, flavor CMImageDescriptionFlavor, blockBufferOut *uintptr) int32
CMVideoFormatDescriptionCopyAsBigEndianImageDescriptionBlockBuffer copies the contents of a video format description to a buffer in big-endian byte ordering.
It panics if CMVideoFormatDescriptionCopyAsBigEndianImageDescriptionBlockBuffer is unavailable at run time; use TryCMVideoFormatDescriptionCopyAsBigEndianImageDescriptionBlockBuffer to get an error instead.
func CMVideoFormatDescriptionCopyTagCollectionArray ¶
func CMVideoFormatDescriptionCopyTagCollectionArray(formatDescription CMVideoFormatDescriptionRef, tagCollectionsOut *corefoundation.CFArrayRef) int32
CMVideoFormatDescriptionCopyTagCollectionArray copies the multi-image encoding properties as an array of CMTagCollections.
It panics if CMVideoFormatDescriptionCopyTagCollectionArray is unavailable at run time; use TryCMVideoFormatDescriptionCopyTagCollectionArray to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMVideoFormatDescriptionCopyTagCollectionArray
func CMVideoFormatDescriptionCreate ¶
func CMVideoFormatDescriptionCreate(allocator corefoundation.CFAllocatorRef, codecType CMVideoCodecType, width int32, height int32, extensions corefoundation.CFDictionaryRef, formatDescriptionOut *CMVideoFormatDescriptionRef) int32
CMVideoFormatDescriptionCreate creates a format description for a video media stream.
It panics if CMVideoFormatDescriptionCreate is unavailable at run time; use TryCMVideoFormatDescriptionCreate to get an error instead.
func CMVideoFormatDescriptionCreateForImageBuffer ¶
func CMVideoFormatDescriptionCreateForImageBuffer(allocator corefoundation.CFAllocatorRef, imageBuffer corevideo.CVImageBufferRef, formatDescriptionOut *CMVideoFormatDescriptionRef) int32
CMVideoFormatDescriptionCreateForImageBuffer creates a format description for a video media stream by using an image buffer.
It panics if CMVideoFormatDescriptionCreateForImageBuffer is unavailable at run time; use TryCMVideoFormatDescriptionCreateForImageBuffer to get an error instead.
func CMVideoFormatDescriptionCreateFromBigEndianImageDescriptionBlockBuffer ¶
func CMVideoFormatDescriptionCreateFromBigEndianImageDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, imageDescriptionBlockBuffer CMBlockBufferRef, stringEncoding uint32, flavor CMImageDescriptionFlavor, formatDescriptionOut *CMVideoFormatDescriptionRef) int32
CMVideoFormatDescriptionCreateFromBigEndianImageDescriptionBlockBuffer creates a video format description from a big-endian image description inside a buffer.
It panics if CMVideoFormatDescriptionCreateFromBigEndianImageDescriptionBlockBuffer is unavailable at run time; use TryCMVideoFormatDescriptionCreateFromBigEndianImageDescriptionBlockBuffer to get an error instead.
func CMVideoFormatDescriptionCreateFromBigEndianImageDescriptionData ¶
func CMVideoFormatDescriptionCreateFromBigEndianImageDescriptionData(allocator corefoundation.CFAllocatorRef, imageDescriptionData []byte, size uintptr, stringEncoding uint32, flavor CMImageDescriptionFlavor, formatDescriptionOut *CMVideoFormatDescriptionRef) int32
CMVideoFormatDescriptionCreateFromBigEndianImageDescriptionData creates a video format description from a big-endian image description structure.
It panics if CMVideoFormatDescriptionCreateFromBigEndianImageDescriptionData is unavailable at run time; use TryCMVideoFormatDescriptionCreateFromBigEndianImageDescriptionData to get an error instead.
func CMVideoFormatDescriptionCreateFromH264ParameterSets ¶
func CMVideoFormatDescriptionCreateFromH264ParameterSets(allocator corefoundation.CFAllocatorRef, parameterSetCount uintptr, parameterSetPointers []byte, parameterSetSizes *uintptr, NALUnitHeaderLength int32, formatDescriptionOut *CMFormatDescriptionRef) int32
CMVideoFormatDescriptionCreateFromH264ParameterSets creates a format description for a video media stream that the parameter set describes.
It panics if CMVideoFormatDescriptionCreateFromH264ParameterSets is unavailable at run time; use TryCMVideoFormatDescriptionCreateFromH264ParameterSets to get an error instead.
func CMVideoFormatDescriptionCreateFromHEVCParameterSets ¶
func CMVideoFormatDescriptionCreateFromHEVCParameterSets(allocator corefoundation.CFAllocatorRef, parameterSetCount uintptr, parameterSetPointers []byte, parameterSetSizes *uintptr, NALUnitHeaderLength int32, extensions corefoundation.CFDictionaryRef, formatDescriptionOut *CMFormatDescriptionRef) int32
CMVideoFormatDescriptionCreateFromHEVCParameterSets creates a format description for a video media stream using HEVC (H.265) parameter set NAL units.
It panics if CMVideoFormatDescriptionCreateFromHEVCParameterSets is unavailable at run time; use TryCMVideoFormatDescriptionCreateFromHEVCParameterSets to get an error instead.
func CMVideoFormatDescriptionGetCleanAperture ¶
func CMVideoFormatDescriptionGetCleanAperture(videoDesc CMVideoFormatDescriptionRef, originIsAtTopLeft bool) corefoundation.CGRect
CMVideoFormatDescriptionGetCleanAperture returns a rectangle that defines the portion of the encoded pixel dimensions that represent the image data that’s valid for displaying.
It panics if CMVideoFormatDescriptionGetCleanAperture is unavailable at run time; use TryCMVideoFormatDescriptionGetCleanAperture to get an error instead.
func CMVideoFormatDescriptionGetExtensionKeysCommonWithImageBuffers ¶
func CMVideoFormatDescriptionGetExtensionKeysCommonWithImageBuffers() corefoundation.CFArrayRef
CMVideoFormatDescriptionGetExtensionKeysCommonWithImageBuffers returns an array of keys that you use for video format description extensions, image buffer attachments, and attributes.
It panics if CMVideoFormatDescriptionGetExtensionKeysCommonWithImageBuffers is unavailable at run time; use TryCMVideoFormatDescriptionGetExtensionKeysCommonWithImageBuffers to get an error instead.
func CMVideoFormatDescriptionGetH264ParameterSetAtIndex ¶
func CMVideoFormatDescriptionGetH264ParameterSetAtIndex(videoDesc CMFormatDescriptionRef, parameterSetIndex uintptr, parameterSetPointerOut **uint8, parameterSetSizeOut *uintptr, parameterSetCountOut *uintptr, NALUnitHeaderLengthOut *int32) int32
CMVideoFormatDescriptionGetH264ParameterSetAtIndex returns a parameter set that an H.264 format description contains.
It panics if CMVideoFormatDescriptionGetH264ParameterSetAtIndex is unavailable at run time; use TryCMVideoFormatDescriptionGetH264ParameterSetAtIndex to get an error instead.
func CMVideoFormatDescriptionGetHEVCParameterSetAtIndex ¶
func CMVideoFormatDescriptionGetHEVCParameterSetAtIndex(videoDesc CMFormatDescriptionRef, parameterSetIndex uintptr, parameterSetPointerOut **uint8, parameterSetSizeOut *uintptr, parameterSetCountOut *uintptr, NALUnitHeaderLengthOut *int32) int32
CMVideoFormatDescriptionGetHEVCParameterSetAtIndex returns a parameter set contained in an HEVC (H.265) format description.
It panics if CMVideoFormatDescriptionGetHEVCParameterSetAtIndex is unavailable at run time; use TryCMVideoFormatDescriptionGetHEVCParameterSetAtIndex to get an error instead.
func CMVideoFormatDescriptionGetPresentationDimensions ¶
func CMVideoFormatDescriptionGetPresentationDimensions(videoDesc CMVideoFormatDescriptionRef, usePixelAspectRatio bool, useCleanAperture bool) corefoundation.CGSize
CMVideoFormatDescriptionGetPresentationDimensions returns the dimensions after taking the pixel aspect ratio and clean aperture into account.
It panics if CMVideoFormatDescriptionGetPresentationDimensions is unavailable at run time; use TryCMVideoFormatDescriptionGetPresentationDimensions to get an error instead.
func CMVideoFormatDescriptionMatchesImageBuffer ¶
func CMVideoFormatDescriptionMatchesImageBuffer(desc CMVideoFormatDescriptionRef, imageBuffer corevideo.CVImageBufferRef) bool
CMVideoFormatDescriptionMatchesImageBuffer returns a Boolean value that indicates whether a format description matches an image buffer.
It panics if CMVideoFormatDescriptionMatchesImageBuffer is unavailable at run time; use TryCMVideoFormatDescriptionMatchesImageBuffer to get an error instead.
func NewCMBufferGetBooleanHandlerBlock ¶ added in v0.6.16
func NewCMBufferGetBooleanHandlerBlock(handler CMBufferGetBooleanHandler) (objc.ID, func())
NewCMBufferGetBooleanHandlerBlock wraps a Go CMBufferGetBooleanHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewCMBufferGetSizeHandlerBlock ¶ added in v0.6.16
func NewCMBufferGetSizeHandlerBlock(handler CMBufferGetSizeHandler) (objc.ID, func())
NewCMBufferGetSizeHandlerBlock wraps a Go CMBufferGetSizeHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewCMBufferQueueTriggerHandlerBlock ¶ added in v0.6.16
func NewCMBufferQueueTriggerHandlerBlock(handler CMBufferQueueTriggerHandler) (objc.ID, func())
NewCMBufferQueueTriggerHandlerBlock wraps a Go CMBufferQueueTriggerHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewCMSampleBufferInvalidateHandlerBlock ¶ added in v0.6.16
func NewCMSampleBufferInvalidateHandlerBlock(handler CMSampleBufferInvalidateHandler) (objc.ID, func())
NewCMSampleBufferInvalidateHandlerBlock wraps a Go CMSampleBufferInvalidateHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewCMSampleBufferMakeDataReadyHandlerBlock ¶ added in v0.6.16
func NewCMSampleBufferMakeDataReadyHandlerBlock(handler CMSampleBufferMakeDataReadyHandler) (objc.ID, func())
NewCMSampleBufferMakeDataReadyHandlerBlock wraps a Go CMSampleBufferMakeDataReadyHandler as an Objective-C block. The caller must defer the returned cleanup function.
func SymbolAddress ¶
SymbolAddress returns the address of name in CoreMedia, whether or not this package generated a binding for it.
What is generated is bounded by what is documented, and for a private framework that is whatever a manifest happened to enumerate. The dylib usually exports far more. Without this, a symbol nobody wrote down is unreachable from a package that has already loaded the image holding it, and the generated surface becomes a ceiling instead of a floor.
The lookup is scoped to this framework's handle, not RTLD_DEFAULT, so a symbol some other loaded image exports is not reported as this one's.
func TryCMAudioDeviceClockCreate ¶
func TryCMAudioDeviceClockCreate(allocator corefoundation.CFAllocatorRef, deviceUID corefoundation.CFStringRef, clockOut *CMClockRef) (int32, error)
TryCMAudioDeviceClockCreate is like CMAudioDeviceClockCreate but returns an error instead of panicking if CMAudioDeviceClockCreate is unavailable at run time.
func TryCMAudioDeviceClockCreateFromAudioDeviceID ¶
func TryCMAudioDeviceClockCreateFromAudioDeviceID(allocator corefoundation.CFAllocatorRef, deviceID uint32, clockOut *CMClockRef) (int32, error)
TryCMAudioDeviceClockCreateFromAudioDeviceID is like CMAudioDeviceClockCreateFromAudioDeviceID but returns an error instead of panicking if CMAudioDeviceClockCreateFromAudioDeviceID is unavailable at run time.
func TryCMAudioDeviceClockGetAudioDevice ¶
func TryCMAudioDeviceClockGetAudioDevice(clock CMClockRef, deviceUIDOut *corefoundation.CFStringRef, deviceIDOut *uint32, trackingDefaultDeviceOut *bool) (int32, error)
TryCMAudioDeviceClockGetAudioDevice is like CMAudioDeviceClockGetAudioDevice but returns an error instead of panicking if CMAudioDeviceClockGetAudioDevice is unavailable at run time.
func TryCMAudioDeviceClockSetAudioDeviceID ¶
func TryCMAudioDeviceClockSetAudioDeviceID(clock CMClockRef, deviceID uint32) (int32, error)
TryCMAudioDeviceClockSetAudioDeviceID is like CMAudioDeviceClockSetAudioDeviceID but returns an error instead of panicking if CMAudioDeviceClockSetAudioDeviceID is unavailable at run time.
func TryCMAudioDeviceClockSetAudioDeviceUID ¶
func TryCMAudioDeviceClockSetAudioDeviceUID(clock CMClockRef, deviceUID corefoundation.CFStringRef) (int32, error)
TryCMAudioDeviceClockSetAudioDeviceUID is like CMAudioDeviceClockSetAudioDeviceUID but returns an error instead of panicking if CMAudioDeviceClockSetAudioDeviceUID is unavailable at run time.
func TryCMAudioFormatDescriptionCopyAsBigEndianSoundDescriptionBlockBuffer ¶
func TryCMAudioFormatDescriptionCopyAsBigEndianSoundDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, audioFormatDescription CMAudioFormatDescriptionRef, flavor CMSoundDescriptionFlavor, blockBufferOut *uintptr) (int32, error)
TryCMAudioFormatDescriptionCopyAsBigEndianSoundDescriptionBlockBuffer is like CMAudioFormatDescriptionCopyAsBigEndianSoundDescriptionBlockBuffer but returns an error instead of panicking if CMAudioFormatDescriptionCopyAsBigEndianSoundDescriptionBlockBuffer is unavailable at run time.
func TryCMAudioFormatDescriptionCreate ¶
func TryCMAudioFormatDescriptionCreate(allocator corefoundation.CFAllocatorRef, asbd *coreaudiotypes.AudioStreamBasicDescription, layoutSize uintptr, layout *coreaudiotypes.AudioChannelLayout, magicCookieSize uintptr, magicCookie unsafe.Pointer, extensions corefoundation.CFDictionaryRef, formatDescriptionOut *CMAudioFormatDescriptionRef) (int32, error)
TryCMAudioFormatDescriptionCreate is like CMAudioFormatDescriptionCreate but returns an error instead of panicking if CMAudioFormatDescriptionCreate is unavailable at run time.
func TryCMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionBlockBuffer ¶
func TryCMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, soundDescriptionBlockBuffer CMBlockBufferRef, flavor CMSoundDescriptionFlavor, formatDescriptionOut *CMAudioFormatDescriptionRef) (int32, error)
TryCMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionBlockBuffer is like CMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionBlockBuffer but returns an error instead of panicking if CMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionBlockBuffer is unavailable at run time.
func TryCMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionData ¶
func TryCMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionData(allocator corefoundation.CFAllocatorRef, soundDescriptionData []byte, size uintptr, flavor CMSoundDescriptionFlavor, formatDescriptionOut *CMAudioFormatDescriptionRef) (int32, error)
TryCMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionData is like CMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionData but returns an error instead of panicking if CMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionData is unavailable at run time.
func TryCMAudioFormatDescriptionCreateSummary ¶
func TryCMAudioFormatDescriptionCreateSummary(allocator corefoundation.CFAllocatorRef, formatDescriptionArray corefoundation.CFArrayRef, flags uint32, formatDescriptionOut *CMAudioFormatDescriptionRef) (int32, error)
TryCMAudioFormatDescriptionCreateSummary is like CMAudioFormatDescriptionCreateSummary but returns an error instead of panicking if CMAudioFormatDescriptionCreateSummary is unavailable at run time.
func TryCMAudioFormatDescriptionEqual ¶
func TryCMAudioFormatDescriptionEqual(formatDescription CMAudioFormatDescriptionRef, otherFormatDescription CMAudioFormatDescriptionRef, equalityMask CMAudioFormatDescriptionMask, equalityMaskOut *CMAudioFormatDescriptionMask) (bool, error)
TryCMAudioFormatDescriptionEqual is like CMAudioFormatDescriptionEqual but returns an error instead of panicking if CMAudioFormatDescriptionEqual is unavailable at run time.
func TryCMAudioFormatDescriptionGetChannelLayout ¶
func TryCMAudioFormatDescriptionGetChannelLayout(desc CMAudioFormatDescriptionRef, sizeOut *uintptr) (*coreaudiotypes.AudioChannelLayout, error)
TryCMAudioFormatDescriptionGetChannelLayout is like CMAudioFormatDescriptionGetChannelLayout but returns an error instead of panicking if CMAudioFormatDescriptionGetChannelLayout is unavailable at run time.
func TryCMAudioFormatDescriptionGetFormatList ¶
func TryCMAudioFormatDescriptionGetFormatList(desc CMAudioFormatDescriptionRef, sizeOut *uintptr) (*audiotoolbox.AudioFormatListItem, error)
TryCMAudioFormatDescriptionGetFormatList is like CMAudioFormatDescriptionGetFormatList but returns an error instead of panicking if CMAudioFormatDescriptionGetFormatList is unavailable at run time.
func TryCMAudioFormatDescriptionGetMagicCookie ¶
func TryCMAudioFormatDescriptionGetMagicCookie(desc CMAudioFormatDescriptionRef, sizeOut *uintptr) (unsafe.Pointer, error)
TryCMAudioFormatDescriptionGetMagicCookie is like CMAudioFormatDescriptionGetMagicCookie but returns an error instead of panicking if CMAudioFormatDescriptionGetMagicCookie is unavailable at run time.
func TryCMAudioFormatDescriptionGetMostCompatibleFormat ¶
func TryCMAudioFormatDescriptionGetMostCompatibleFormat(desc CMAudioFormatDescriptionRef) (*audiotoolbox.AudioFormatListItem, error)
TryCMAudioFormatDescriptionGetMostCompatibleFormat is like CMAudioFormatDescriptionGetMostCompatibleFormat but returns an error instead of panicking if CMAudioFormatDescriptionGetMostCompatibleFormat is unavailable at run time.
func TryCMAudioFormatDescriptionGetRichestDecodableFormat ¶
func TryCMAudioFormatDescriptionGetRichestDecodableFormat(desc CMAudioFormatDescriptionRef) (*audiotoolbox.AudioFormatListItem, error)
TryCMAudioFormatDescriptionGetRichestDecodableFormat is like CMAudioFormatDescriptionGetRichestDecodableFormat but returns an error instead of panicking if CMAudioFormatDescriptionGetRichestDecodableFormat is unavailable at run time.
func TryCMAudioFormatDescriptionGetStreamBasicDescription ¶
func TryCMAudioFormatDescriptionGetStreamBasicDescription(desc CMAudioFormatDescriptionRef) (*coreaudiotypes.AudioStreamBasicDescription, error)
TryCMAudioFormatDescriptionGetStreamBasicDescription is like CMAudioFormatDescriptionGetStreamBasicDescription but returns an error instead of panicking if CMAudioFormatDescriptionGetStreamBasicDescription is unavailable at run time.
func TryCMAudioSampleBufferCreateReadyWithPacketDescriptions ¶
func TryCMAudioSampleBufferCreateReadyWithPacketDescriptions(allocator corefoundation.CFAllocatorRef, dataBuffer CMBlockBufferRef, formatDescription CMFormatDescriptionRef, numSamples CMItemCount, presentationTimeStamp CMTime, packetDescriptions *coreaudiotypes.AudioStreamPacketDescription, sampleBufferOut *CMSampleBufferRef) (int32, error)
TryCMAudioSampleBufferCreateReadyWithPacketDescriptions is like CMAudioSampleBufferCreateReadyWithPacketDescriptions but returns an error instead of panicking if CMAudioSampleBufferCreateReadyWithPacketDescriptions is unavailable at run time.
func TryCMAudioSampleBufferCreateWithPacketDescriptions ¶
func TryCMAudioSampleBufferCreateWithPacketDescriptions(allocator corefoundation.CFAllocatorRef, dataBuffer CMBlockBufferRef, dataReady bool, makeDataReadyCallback CMSampleBufferMakeDataReadyCallback, makeDataReadyRefcon unsafe.Pointer, formatDescription CMFormatDescriptionRef, numSamples CMItemCount, presentationTimeStamp CMTime, packetDescriptions *coreaudiotypes.AudioStreamPacketDescription, sampleBufferOut *CMSampleBufferRef) (int32, error)
TryCMAudioSampleBufferCreateWithPacketDescriptions is like CMAudioSampleBufferCreateWithPacketDescriptions but returns an error instead of panicking if CMAudioSampleBufferCreateWithPacketDescriptions is unavailable at run time.
func TryCMAudioSampleBufferCreateWithPacketDescriptionsAndMakeDataReadyHandler ¶
func TryCMAudioSampleBufferCreateWithPacketDescriptionsAndMakeDataReadyHandler(allocator corefoundation.CFAllocatorRef, dataBuffer CMBlockBufferRef, dataReady bool, formatDescription CMFormatDescriptionRef, numSamples CMItemCount, presentationTimeStamp CMTime, packetDescriptions *coreaudiotypes.AudioStreamPacketDescription, sampleBufferOut *CMSampleBufferRef, makeDataReadyHandler CMSampleBufferMakeDataReadyHandler) (int32, error)
TryCMAudioSampleBufferCreateWithPacketDescriptionsAndMakeDataReadyHandler is like CMAudioSampleBufferCreateWithPacketDescriptionsAndMakeDataReadyHandler but returns an error instead of panicking if CMAudioSampleBufferCreateWithPacketDescriptionsAndMakeDataReadyHandler is unavailable at run time.
func TryCMBlockBufferAccessDataBytes ¶
func TryCMBlockBufferAccessDataBytes(theBuffer CMBlockBufferRef, offset uintptr, length uintptr, temporaryBlock unsafe.Pointer, returnedPointerOut **byte) (int32, error)
TryCMBlockBufferAccessDataBytes is like CMBlockBufferAccessDataBytes but returns an error instead of panicking if CMBlockBufferAccessDataBytes is unavailable at run time.
func TryCMBlockBufferAppendBufferReference ¶
func TryCMBlockBufferAppendBufferReference(theBuffer CMBlockBufferRef, targetBBuf CMBlockBufferRef, offsetToData uintptr, dataLength uintptr, flags CMBlockBufferFlags) (int32, error)
TryCMBlockBufferAppendBufferReference is like CMBlockBufferAppendBufferReference but returns an error instead of panicking if CMBlockBufferAppendBufferReference is unavailable at run time.
func TryCMBlockBufferAppendMemoryBlock ¶
func TryCMBlockBufferAppendMemoryBlock(theBuffer CMBlockBufferRef, memoryBlock unsafe.Pointer, blockLength uintptr, blockAllocator corefoundation.CFAllocatorRef, customBlockSource *CMBlockBufferCustomBlockSource, offsetToData uintptr, dataLength uintptr, flags CMBlockBufferFlags) (int32, error)
TryCMBlockBufferAppendMemoryBlock is like CMBlockBufferAppendMemoryBlock but returns an error instead of panicking if CMBlockBufferAppendMemoryBlock is unavailable at run time.
func TryCMBlockBufferAssureBlockMemory ¶
func TryCMBlockBufferAssureBlockMemory(theBuffer CMBlockBufferRef) (int32, error)
TryCMBlockBufferAssureBlockMemory is like CMBlockBufferAssureBlockMemory but returns an error instead of panicking if CMBlockBufferAssureBlockMemory is unavailable at run time.
func TryCMBlockBufferCopyDataBytes ¶
func TryCMBlockBufferCopyDataBytes(theSourceBuffer CMBlockBufferRef, offsetToData uintptr, dataLength uintptr, destination unsafe.Pointer) (int32, error)
TryCMBlockBufferCopyDataBytes is like CMBlockBufferCopyDataBytes but returns an error instead of panicking if CMBlockBufferCopyDataBytes is unavailable at run time.
func TryCMBlockBufferCreateContiguous ¶
func TryCMBlockBufferCreateContiguous(structureAllocator corefoundation.CFAllocatorRef, sourceBuffer CMBlockBufferRef, blockAllocator corefoundation.CFAllocatorRef, customBlockSource *CMBlockBufferCustomBlockSource, offsetToData uintptr, dataLength uintptr, flags CMBlockBufferFlags, blockBufferOut *uintptr) (int32, error)
TryCMBlockBufferCreateContiguous is like CMBlockBufferCreateContiguous but returns an error instead of panicking if CMBlockBufferCreateContiguous is unavailable at run time.
func TryCMBlockBufferCreateEmpty ¶
func TryCMBlockBufferCreateEmpty(structureAllocator corefoundation.CFAllocatorRef, subBlockCapacity uint32, flags CMBlockBufferFlags, blockBufferOut *uintptr) (int32, error)
TryCMBlockBufferCreateEmpty is like CMBlockBufferCreateEmpty but returns an error instead of panicking if CMBlockBufferCreateEmpty is unavailable at run time.
func TryCMBlockBufferCreateWithBufferReference ¶
func TryCMBlockBufferCreateWithBufferReference(structureAllocator corefoundation.CFAllocatorRef, bufferReference CMBlockBufferRef, offsetToData uintptr, dataLength uintptr, flags CMBlockBufferFlags, blockBufferOut *uintptr) (int32, error)
TryCMBlockBufferCreateWithBufferReference is like CMBlockBufferCreateWithBufferReference but returns an error instead of panicking if CMBlockBufferCreateWithBufferReference is unavailable at run time.
func TryCMBlockBufferCreateWithMemoryBlock ¶
func TryCMBlockBufferCreateWithMemoryBlock(structureAllocator corefoundation.CFAllocatorRef, memoryBlock unsafe.Pointer, blockLength uintptr, blockAllocator corefoundation.CFAllocatorRef, customBlockSource *CMBlockBufferCustomBlockSource, offsetToData uintptr, dataLength uintptr, flags CMBlockBufferFlags, blockBufferOut *uintptr) (int32, error)
TryCMBlockBufferCreateWithMemoryBlock is like CMBlockBufferCreateWithMemoryBlock but returns an error instead of panicking if CMBlockBufferCreateWithMemoryBlock is unavailable at run time.
func TryCMBlockBufferFillDataBytes ¶
func TryCMBlockBufferFillDataBytes(fillByte int8, destinationBuffer CMBlockBufferRef, offsetIntoDestination uintptr, dataLength uintptr) (int32, error)
TryCMBlockBufferFillDataBytes is like CMBlockBufferFillDataBytes but returns an error instead of panicking if CMBlockBufferFillDataBytes is unavailable at run time.
func TryCMBlockBufferGetDataLength ¶
func TryCMBlockBufferGetDataLength(theBuffer CMBlockBufferRef) (uintptr, error)
TryCMBlockBufferGetDataLength is like CMBlockBufferGetDataLength but returns an error instead of panicking if CMBlockBufferGetDataLength is unavailable at run time.
func TryCMBlockBufferGetDataPointer ¶
func TryCMBlockBufferGetDataPointer(theBuffer CMBlockBufferRef, offset uintptr, lengthAtOffsetOut *uintptr, totalLengthOut *uintptr, dataPointerOut **byte) (int32, error)
TryCMBlockBufferGetDataPointer is like CMBlockBufferGetDataPointer but returns an error instead of panicking if CMBlockBufferGetDataPointer is unavailable at run time.
func TryCMBlockBufferGetTypeID ¶
TryCMBlockBufferGetTypeID is like CMBlockBufferGetTypeID but returns an error instead of panicking if CMBlockBufferGetTypeID is unavailable at run time.
func TryCMBlockBufferIsEmpty ¶
func TryCMBlockBufferIsEmpty(theBuffer CMBlockBufferRef) (bool, error)
TryCMBlockBufferIsEmpty is like CMBlockBufferIsEmpty but returns an error instead of panicking if CMBlockBufferIsEmpty is unavailable at run time.
func TryCMBlockBufferIsRangeContiguous ¶
func TryCMBlockBufferIsRangeContiguous(theBuffer CMBlockBufferRef, offset uintptr, length uintptr) (bool, error)
TryCMBlockBufferIsRangeContiguous is like CMBlockBufferIsRangeContiguous but returns an error instead of panicking if CMBlockBufferIsRangeContiguous is unavailable at run time.
func TryCMBlockBufferReplaceDataBytes ¶
func TryCMBlockBufferReplaceDataBytes(sourceBytes unsafe.Pointer, destinationBuffer CMBlockBufferRef, offsetIntoDestination uintptr, dataLength uintptr) (int32, error)
TryCMBlockBufferReplaceDataBytes is like CMBlockBufferReplaceDataBytes but returns an error instead of panicking if CMBlockBufferReplaceDataBytes is unavailable at run time.
func TryCMBufferQueueCallForEachBuffer ¶
func TryCMBufferQueueCallForEachBuffer(queue CMBufferQueueRef, callback func(unsafe.Pointer, unsafe.Pointer) int32, refcon uintptr) (int32, error)
TryCMBufferQueueCallForEachBuffer is like CMBufferQueueCallForEachBuffer but returns an error instead of panicking if CMBufferQueueCallForEachBuffer is unavailable at run time.
func TryCMBufferQueueContainsEndOfData ¶
func TryCMBufferQueueContainsEndOfData(queue CMBufferQueueRef) (bool, error)
TryCMBufferQueueContainsEndOfData is like CMBufferQueueContainsEndOfData but returns an error instead of panicking if CMBufferQueueContainsEndOfData is unavailable at run time.
func TryCMBufferQueueCreate ¶
func TryCMBufferQueueCreate(allocator corefoundation.CFAllocatorRef, capacity CMItemCount, callbacks *CMBufferCallbacks, queueOut *CMBufferQueueRef) (int32, error)
TryCMBufferQueueCreate is like CMBufferQueueCreate but returns an error instead of panicking if CMBufferQueueCreate is unavailable at run time.
func TryCMBufferQueueCreateWithHandlers ¶
func TryCMBufferQueueCreateWithHandlers(allocator corefoundation.CFAllocatorRef, capacity CMItemCount, handlers *CMBufferHandlers, queueOut *CMBufferQueueRef) (int32, error)
TryCMBufferQueueCreateWithHandlers is like CMBufferQueueCreateWithHandlers but returns an error instead of panicking if CMBufferQueueCreateWithHandlers is unavailable at run time.
func TryCMBufferQueueEnqueue ¶
func TryCMBufferQueueEnqueue(queue CMBufferQueueRef, buf CMBufferRef) (int32, error)
TryCMBufferQueueEnqueue is like CMBufferQueueEnqueue but returns an error instead of panicking if CMBufferQueueEnqueue is unavailable at run time.
func TryCMBufferQueueGetTotalSize ¶
func TryCMBufferQueueGetTotalSize(queue CMBufferQueueRef) (uintptr, error)
TryCMBufferQueueGetTotalSize is like CMBufferQueueGetTotalSize but returns an error instead of panicking if CMBufferQueueGetTotalSize is unavailable at run time.
func TryCMBufferQueueGetTypeID ¶
TryCMBufferQueueGetTypeID is like CMBufferQueueGetTypeID but returns an error instead of panicking if CMBufferQueueGetTypeID is unavailable at run time.
func TryCMBufferQueueInstallTrigger ¶
func TryCMBufferQueueInstallTrigger(queue CMBufferQueueRef, callback CMBufferQueueTriggerCallback, refcon uintptr, condition CMBufferQueueTriggerCondition, time CMTime, triggerTokenOut *CMBufferQueueTriggerToken) (int32, error)
TryCMBufferQueueInstallTrigger is like CMBufferQueueInstallTrigger but returns an error instead of panicking if CMBufferQueueInstallTrigger is unavailable at run time.
func TryCMBufferQueueInstallTriggerHandler ¶
func TryCMBufferQueueInstallTriggerHandler(queue CMBufferQueueRef, condition CMBufferQueueTriggerCondition, time CMTime, triggerTokenOut *CMBufferQueueTriggerToken, handler CMBufferQueueTriggerHandler) (int32, error)
TryCMBufferQueueInstallTriggerHandler is like CMBufferQueueInstallTriggerHandler but returns an error instead of panicking if CMBufferQueueInstallTriggerHandler is unavailable at run time.
func TryCMBufferQueueInstallTriggerHandlerWithIntegerThreshold ¶
func TryCMBufferQueueInstallTriggerHandlerWithIntegerThreshold(queue CMBufferQueueRef, condition CMBufferQueueTriggerCondition, threshold CMItemCount, triggerTokenOut *CMBufferQueueTriggerToken, handler CMBufferQueueTriggerHandler) (int32, error)
TryCMBufferQueueInstallTriggerHandlerWithIntegerThreshold is like CMBufferQueueInstallTriggerHandlerWithIntegerThreshold but returns an error instead of panicking if CMBufferQueueInstallTriggerHandlerWithIntegerThreshold is unavailable at run time.
func TryCMBufferQueueInstallTriggerWithIntegerThreshold ¶
func TryCMBufferQueueInstallTriggerWithIntegerThreshold(queue CMBufferQueueRef, callback CMBufferQueueTriggerCallback, refcon uintptr, condition CMBufferQueueTriggerCondition, threshold CMItemCount, triggerTokenOut *CMBufferQueueTriggerToken) (int32, error)
TryCMBufferQueueInstallTriggerWithIntegerThreshold is like CMBufferQueueInstallTriggerWithIntegerThreshold but returns an error instead of panicking if CMBufferQueueInstallTriggerWithIntegerThreshold is unavailable at run time.
func TryCMBufferQueueIsAtEndOfData ¶
func TryCMBufferQueueIsAtEndOfData(queue CMBufferQueueRef) (bool, error)
TryCMBufferQueueIsAtEndOfData is like CMBufferQueueIsAtEndOfData but returns an error instead of panicking if CMBufferQueueIsAtEndOfData is unavailable at run time.
func TryCMBufferQueueIsEmpty ¶
func TryCMBufferQueueIsEmpty(queue CMBufferQueueRef) (bool, error)
TryCMBufferQueueIsEmpty is like CMBufferQueueIsEmpty but returns an error instead of panicking if CMBufferQueueIsEmpty is unavailable at run time.
func TryCMBufferQueueMarkEndOfData ¶
func TryCMBufferQueueMarkEndOfData(queue CMBufferQueueRef) (int32, error)
TryCMBufferQueueMarkEndOfData is like CMBufferQueueMarkEndOfData but returns an error instead of panicking if CMBufferQueueMarkEndOfData is unavailable at run time.
func TryCMBufferQueueRemoveTrigger ¶
func TryCMBufferQueueRemoveTrigger(queue CMBufferQueueRef, triggerToken CMBufferQueueTriggerToken) (int32, error)
TryCMBufferQueueRemoveTrigger is like CMBufferQueueRemoveTrigger but returns an error instead of panicking if CMBufferQueueRemoveTrigger is unavailable at run time.
func TryCMBufferQueueReset ¶
func TryCMBufferQueueReset(queue CMBufferQueueRef) (int32, error)
TryCMBufferQueueReset is like CMBufferQueueReset but returns an error instead of panicking if CMBufferQueueReset is unavailable at run time.
func TryCMBufferQueueResetWithCallback ¶
func TryCMBufferQueueResetWithCallback(queue CMBufferQueueRef, callback func(unsafe.Pointer, unsafe.Pointer), refcon uintptr) (int32, error)
TryCMBufferQueueResetWithCallback is like CMBufferQueueResetWithCallback but returns an error instead of panicking if CMBufferQueueResetWithCallback is unavailable at run time.
func TryCMBufferQueueSetValidationCallback ¶
func TryCMBufferQueueSetValidationCallback(queue CMBufferQueueRef, callback CMBufferValidationCallback, refcon uintptr) (int32, error)
TryCMBufferQueueSetValidationCallback is like CMBufferQueueSetValidationCallback but returns an error instead of panicking if CMBufferQueueSetValidationCallback is unavailable at run time.
func TryCMBufferQueueSetValidationHandler ¶
func TryCMBufferQueueSetValidationHandler(queue CMBufferQueueRef, handler CMBufferValidationHandler) (int32, error)
TryCMBufferQueueSetValidationHandler is like CMBufferQueueSetValidationHandler but returns an error instead of panicking if CMBufferQueueSetValidationHandler is unavailable at run time.
func TryCMBufferQueueTestTrigger ¶
func TryCMBufferQueueTestTrigger(queue CMBufferQueueRef, triggerToken CMBufferQueueTriggerToken) (bool, error)
TryCMBufferQueueTestTrigger is like CMBufferQueueTestTrigger but returns an error instead of panicking if CMBufferQueueTestTrigger is unavailable at run time.
func TryCMClockConvertHostTimeToSystemUnits ¶
TryCMClockConvertHostTimeToSystemUnits is like CMClockConvertHostTimeToSystemUnits but returns an error instead of panicking if CMClockConvertHostTimeToSystemUnits is unavailable at run time.
func TryCMClockGetAnchorTime ¶
func TryCMClockGetAnchorTime(clock CMClockRef, clockTimeOut *CMTime, referenceClockTimeOut *CMTime) (int32, error)
TryCMClockGetAnchorTime is like CMClockGetAnchorTime but returns an error instead of panicking if CMClockGetAnchorTime is unavailable at run time.
func TryCMClockGetTypeID ¶
TryCMClockGetTypeID is like CMClockGetTypeID but returns an error instead of panicking if CMClockGetTypeID is unavailable at run time.
func TryCMClockInvalidate ¶
func TryCMClockInvalidate(clock CMClockRef) error
TryCMClockInvalidate is like CMClockInvalidate but returns an error instead of panicking if CMClockInvalidate is unavailable at run time.
func TryCMClockMightDrift ¶
func TryCMClockMightDrift(clock CMClockRef, otherClock CMClockRef) (bool, error)
TryCMClockMightDrift is like CMClockMightDrift but returns an error instead of panicking if CMClockMightDrift is unavailable at run time.
func TryCMClosedCaptionFormatDescriptionCopyAsBigEndianClosedCaptionDescriptionBlockBuffer ¶
func TryCMClosedCaptionFormatDescriptionCopyAsBigEndianClosedCaptionDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, closedCaptionFormatDescription CMClosedCaptionFormatDescriptionRef, flavor CMClosedCaptionDescriptionFlavor, blockBufferOut *uintptr) (int32, error)
TryCMClosedCaptionFormatDescriptionCopyAsBigEndianClosedCaptionDescriptionBlockBuffer is like CMClosedCaptionFormatDescriptionCopyAsBigEndianClosedCaptionDescriptionBlockBuffer but returns an error instead of panicking if CMClosedCaptionFormatDescriptionCopyAsBigEndianClosedCaptionDescriptionBlockBuffer is unavailable at run time.
func TryCMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionBlockBuffer ¶
func TryCMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, closedCaptionDescriptionBlockBuffer CMBlockBufferRef, flavor CMClosedCaptionDescriptionFlavor, formatDescriptionOut *CMClosedCaptionFormatDescriptionRef) (int32, error)
TryCMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionBlockBuffer is like CMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionBlockBuffer but returns an error instead of panicking if CMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionBlockBuffer is unavailable at run time.
func TryCMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionData ¶
func TryCMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionData(allocator corefoundation.CFAllocatorRef, closedCaptionDescriptionData []byte, size uintptr, flavor CMClosedCaptionDescriptionFlavor, formatDescriptionOut *CMClosedCaptionFormatDescriptionRef) (int32, error)
TryCMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionData is like CMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionData but returns an error instead of panicking if CMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionData is unavailable at run time.
func TryCMCopyDictionaryOfAttachments ¶
func TryCMCopyDictionaryOfAttachments(allocator corefoundation.CFAllocatorRef, target CMAttachmentBearerRef, attachmentMode uint32) (corefoundation.CFDictionaryRef, error)
TryCMCopyDictionaryOfAttachments is like CMCopyDictionaryOfAttachments but returns an error instead of panicking if CMCopyDictionaryOfAttachments is unavailable at run time.
func TryCMDoesBigEndianSoundDescriptionRequireLegacyCBRSampleTableLayout ¶
func TryCMDoesBigEndianSoundDescriptionRequireLegacyCBRSampleTableLayout(soundDescriptionBlockBuffer CMBlockBufferRef, flavor CMSoundDescriptionFlavor) (bool, error)
TryCMDoesBigEndianSoundDescriptionRequireLegacyCBRSampleTableLayout is like CMDoesBigEndianSoundDescriptionRequireLegacyCBRSampleTableLayout but returns an error instead of panicking if CMDoesBigEndianSoundDescriptionRequireLegacyCBRSampleTableLayout is unavailable at run time.
func TryCMFormatDescriptionCreate ¶
func TryCMFormatDescriptionCreate(allocator corefoundation.CFAllocatorRef, mediaType CMMediaType, mediaSubType uint32, extensions corefoundation.CFDictionaryRef, formatDescriptionOut *CMFormatDescriptionRef) (int32, error)
TryCMFormatDescriptionCreate is like CMFormatDescriptionCreate but returns an error instead of panicking if CMFormatDescriptionCreate is unavailable at run time.
func TryCMFormatDescriptionEqual ¶
func TryCMFormatDescriptionEqual(formatDescription CMFormatDescriptionRef, otherFormatDescription CMFormatDescriptionRef) (bool, error)
TryCMFormatDescriptionEqual is like CMFormatDescriptionEqual but returns an error instead of panicking if CMFormatDescriptionEqual is unavailable at run time.
func TryCMFormatDescriptionEqualIgnoringExtensionKeys ¶
func TryCMFormatDescriptionEqualIgnoringExtensionKeys(formatDescription CMFormatDescriptionRef, otherFormatDescription CMFormatDescriptionRef, formatDescriptionExtensionKeysToIgnore corefoundation.CFTypeRef, sampleDescriptionExtensionAtomKeysToIgnore corefoundation.CFTypeRef) (bool, error)
TryCMFormatDescriptionEqualIgnoringExtensionKeys is like CMFormatDescriptionEqualIgnoringExtensionKeys but returns an error instead of panicking if CMFormatDescriptionEqualIgnoringExtensionKeys is unavailable at run time.
func TryCMFormatDescriptionGetExtension ¶
func TryCMFormatDescriptionGetExtension(desc CMFormatDescriptionRef, extensionKey corefoundation.CFStringRef) (corefoundation.CFPropertyListRef, error)
TryCMFormatDescriptionGetExtension is like CMFormatDescriptionGetExtension but returns an error instead of panicking if CMFormatDescriptionGetExtension is unavailable at run time.
func TryCMFormatDescriptionGetExtensions ¶
func TryCMFormatDescriptionGetExtensions(desc CMFormatDescriptionRef) (corefoundation.CFDictionaryRef, error)
TryCMFormatDescriptionGetExtensions is like CMFormatDescriptionGetExtensions but returns an error instead of panicking if CMFormatDescriptionGetExtensions is unavailable at run time.
func TryCMFormatDescriptionGetMediaSubType ¶
func TryCMFormatDescriptionGetMediaSubType(desc CMFormatDescriptionRef) (uint32, error)
TryCMFormatDescriptionGetMediaSubType is like CMFormatDescriptionGetMediaSubType but returns an error instead of panicking if CMFormatDescriptionGetMediaSubType is unavailable at run time.
func TryCMFormatDescriptionGetTypeID ¶
TryCMFormatDescriptionGetTypeID is like CMFormatDescriptionGetTypeID but returns an error instead of panicking if CMFormatDescriptionGetTypeID is unavailable at run time.
func TryCMGetAttachment ¶
func TryCMGetAttachment(target CMAttachmentBearerRef, key corefoundation.CFStringRef, attachmentModeOut *uint32) (corefoundation.CFTypeRef, error)
TryCMGetAttachment is like CMGetAttachment but returns an error instead of panicking if CMGetAttachment is unavailable at run time.
func TryCMMemoryPoolFlush ¶
func TryCMMemoryPoolFlush(pool CMMemoryPoolRef) error
TryCMMemoryPoolFlush is like CMMemoryPoolFlush but returns an error instead of panicking if CMMemoryPoolFlush is unavailable at run time.
func TryCMMemoryPoolGetAllocator ¶
func TryCMMemoryPoolGetAllocator(pool CMMemoryPoolRef) (corefoundation.CFAllocatorRef, error)
TryCMMemoryPoolGetAllocator is like CMMemoryPoolGetAllocator but returns an error instead of panicking if CMMemoryPoolGetAllocator is unavailable at run time.
func TryCMMemoryPoolGetTypeID ¶
TryCMMemoryPoolGetTypeID is like CMMemoryPoolGetTypeID but returns an error instead of panicking if CMMemoryPoolGetTypeID is unavailable at run time.
func TryCMMemoryPoolInvalidate ¶
func TryCMMemoryPoolInvalidate(pool CMMemoryPoolRef) error
TryCMMemoryPoolInvalidate is like CMMemoryPoolInvalidate but returns an error instead of panicking if CMMemoryPoolInvalidate is unavailable at run time.
func TryCMMetadataCreateIdentifierForKeyAndKeySpace ¶
func TryCMMetadataCreateIdentifierForKeyAndKeySpace(allocator corefoundation.CFAllocatorRef, key corefoundation.CFTypeRef, keySpace corefoundation.CFStringRef, identifierOut *corefoundation.CFStringRef) (int32, error)
TryCMMetadataCreateIdentifierForKeyAndKeySpace is like CMMetadataCreateIdentifierForKeyAndKeySpace but returns an error instead of panicking if CMMetadataCreateIdentifierForKeyAndKeySpace is unavailable at run time.
func TryCMMetadataCreateKeyFromIdentifier ¶
func TryCMMetadataCreateKeyFromIdentifier(allocator corefoundation.CFAllocatorRef, identifier corefoundation.CFStringRef, keyOut *corefoundation.CFTypeRef) (int32, error)
TryCMMetadataCreateKeyFromIdentifier is like CMMetadataCreateKeyFromIdentifier but returns an error instead of panicking if CMMetadataCreateKeyFromIdentifier is unavailable at run time.
func TryCMMetadataCreateKeyFromIdentifierAsCFData ¶
func TryCMMetadataCreateKeyFromIdentifierAsCFData(allocator corefoundation.CFAllocatorRef, identifier corefoundation.CFStringRef, keyOut *corefoundation.CFDataRef) (int32, error)
TryCMMetadataCreateKeyFromIdentifierAsCFData is like CMMetadataCreateKeyFromIdentifierAsCFData but returns an error instead of panicking if CMMetadataCreateKeyFromIdentifierAsCFData is unavailable at run time.
func TryCMMetadataCreateKeySpaceFromIdentifier ¶
func TryCMMetadataCreateKeySpaceFromIdentifier(allocator corefoundation.CFAllocatorRef, identifier corefoundation.CFStringRef, keySpaceOut *corefoundation.CFStringRef) (int32, error)
TryCMMetadataCreateKeySpaceFromIdentifier is like CMMetadataCreateKeySpaceFromIdentifier but returns an error instead of panicking if CMMetadataCreateKeySpaceFromIdentifier is unavailable at run time.
func TryCMMetadataDataTypeRegistryDataTypeConformsToDataType ¶
func TryCMMetadataDataTypeRegistryDataTypeConformsToDataType(dataType corefoundation.CFStringRef, conformsToDataType corefoundation.CFStringRef) (bool, error)
TryCMMetadataDataTypeRegistryDataTypeConformsToDataType is like CMMetadataDataTypeRegistryDataTypeConformsToDataType but returns an error instead of panicking if CMMetadataDataTypeRegistryDataTypeConformsToDataType is unavailable at run time.
func TryCMMetadataDataTypeRegistryDataTypeIsBaseDataType ¶
func TryCMMetadataDataTypeRegistryDataTypeIsBaseDataType(dataType corefoundation.CFStringRef) (bool, error)
TryCMMetadataDataTypeRegistryDataTypeIsBaseDataType is like CMMetadataDataTypeRegistryDataTypeIsBaseDataType but returns an error instead of panicking if CMMetadataDataTypeRegistryDataTypeIsBaseDataType is unavailable at run time.
func TryCMMetadataDataTypeRegistryDataTypeIsRegistered ¶
func TryCMMetadataDataTypeRegistryDataTypeIsRegistered(dataType corefoundation.CFStringRef) (bool, error)
TryCMMetadataDataTypeRegistryDataTypeIsRegistered is like CMMetadataDataTypeRegistryDataTypeIsRegistered but returns an error instead of panicking if CMMetadataDataTypeRegistryDataTypeIsRegistered is unavailable at run time.
func TryCMMetadataDataTypeRegistryGetBaseDataTypeForConformingDataType ¶
func TryCMMetadataDataTypeRegistryGetBaseDataTypeForConformingDataType(dataType corefoundation.CFStringRef) (corefoundation.CFStringRef, error)
TryCMMetadataDataTypeRegistryGetBaseDataTypeForConformingDataType is like CMMetadataDataTypeRegistryGetBaseDataTypeForConformingDataType but returns an error instead of panicking if CMMetadataDataTypeRegistryGetBaseDataTypeForConformingDataType is unavailable at run time.
func TryCMMetadataDataTypeRegistryGetBaseDataTypes ¶
func TryCMMetadataDataTypeRegistryGetBaseDataTypes() (corefoundation.CFArrayRef, error)
TryCMMetadataDataTypeRegistryGetBaseDataTypes is like CMMetadataDataTypeRegistryGetBaseDataTypes but returns an error instead of panicking if CMMetadataDataTypeRegistryGetBaseDataTypes is unavailable at run time.
func TryCMMetadataDataTypeRegistryGetConformingDataTypes ¶
func TryCMMetadataDataTypeRegistryGetConformingDataTypes(dataType corefoundation.CFStringRef) (corefoundation.CFArrayRef, error)
TryCMMetadataDataTypeRegistryGetConformingDataTypes is like CMMetadataDataTypeRegistryGetConformingDataTypes but returns an error instead of panicking if CMMetadataDataTypeRegistryGetConformingDataTypes is unavailable at run time.
func TryCMMetadataDataTypeRegistryGetDataTypeDescription ¶
func TryCMMetadataDataTypeRegistryGetDataTypeDescription(dataType corefoundation.CFStringRef) (corefoundation.CFStringRef, error)
TryCMMetadataDataTypeRegistryGetDataTypeDescription is like CMMetadataDataTypeRegistryGetDataTypeDescription but returns an error instead of panicking if CMMetadataDataTypeRegistryGetDataTypeDescription is unavailable at run time.
func TryCMMetadataDataTypeRegistryRegisterDataType ¶
func TryCMMetadataDataTypeRegistryRegisterDataType(dataType corefoundation.CFStringRef, description corefoundation.CFStringRef, conformingDataTypes corefoundation.CFArrayRef) (int32, error)
TryCMMetadataDataTypeRegistryRegisterDataType is like CMMetadataDataTypeRegistryRegisterDataType but returns an error instead of panicking if CMMetadataDataTypeRegistryRegisterDataType is unavailable at run time.
func TryCMMetadataFormatDescriptionCopyAsBigEndianMetadataDescriptionBlockBuffer ¶
func TryCMMetadataFormatDescriptionCopyAsBigEndianMetadataDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, metadataFormatDescription CMMetadataFormatDescriptionRef, flavor CMMetadataDescriptionFlavor, blockBufferOut *uintptr) (int32, error)
TryCMMetadataFormatDescriptionCopyAsBigEndianMetadataDescriptionBlockBuffer is like CMMetadataFormatDescriptionCopyAsBigEndianMetadataDescriptionBlockBuffer but returns an error instead of panicking if CMMetadataFormatDescriptionCopyAsBigEndianMetadataDescriptionBlockBuffer is unavailable at run time.
func TryCMMetadataFormatDescriptionCreateByMergingMetadataFormatDescriptions ¶
func TryCMMetadataFormatDescriptionCreateByMergingMetadataFormatDescriptions(allocator corefoundation.CFAllocatorRef, sourceDescription CMMetadataFormatDescriptionRef, otherSourceDescription CMMetadataFormatDescriptionRef, formatDescriptionOut *CMMetadataFormatDescriptionRef) (int32, error)
TryCMMetadataFormatDescriptionCreateByMergingMetadataFormatDescriptions is like CMMetadataFormatDescriptionCreateByMergingMetadataFormatDescriptions but returns an error instead of panicking if CMMetadataFormatDescriptionCreateByMergingMetadataFormatDescriptions is unavailable at run time.
func TryCMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionBlockBuffer ¶
func TryCMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, metadataDescriptionBlockBuffer CMBlockBufferRef, flavor CMMetadataDescriptionFlavor, formatDescriptionOut *CMMetadataFormatDescriptionRef) (int32, error)
TryCMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionBlockBuffer is like CMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionBlockBuffer but returns an error instead of panicking if CMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionBlockBuffer is unavailable at run time.
func TryCMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionData ¶
func TryCMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionData(allocator corefoundation.CFAllocatorRef, metadataDescriptionData []byte, size uintptr, flavor CMMetadataDescriptionFlavor, formatDescriptionOut *CMMetadataFormatDescriptionRef) (int32, error)
TryCMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionData is like CMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionData but returns an error instead of panicking if CMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionData is unavailable at run time.
func TryCMMetadataFormatDescriptionCreateWithKeys ¶
func TryCMMetadataFormatDescriptionCreateWithKeys(allocator corefoundation.CFAllocatorRef, metadataType CMMetadataFormatType, keys corefoundation.CFArrayRef, formatDescriptionOut *CMMetadataFormatDescriptionRef) (int32, error)
TryCMMetadataFormatDescriptionCreateWithKeys is like CMMetadataFormatDescriptionCreateWithKeys but returns an error instead of panicking if CMMetadataFormatDescriptionCreateWithKeys is unavailable at run time.
func TryCMMetadataFormatDescriptionCreateWithMetadataFormatDescriptionAndMetadataSpecifications ¶
func TryCMMetadataFormatDescriptionCreateWithMetadataFormatDescriptionAndMetadataSpecifications(allocator corefoundation.CFAllocatorRef, sourceDescription CMMetadataFormatDescriptionRef, metadataSpecifications corefoundation.CFArrayRef, formatDescriptionOut *CMMetadataFormatDescriptionRef) (int32, error)
TryCMMetadataFormatDescriptionCreateWithMetadataFormatDescriptionAndMetadataSpecifications is like CMMetadataFormatDescriptionCreateWithMetadataFormatDescriptionAndMetadataSpecifications but returns an error instead of panicking if CMMetadataFormatDescriptionCreateWithMetadataFormatDescriptionAndMetadataSpecifications is unavailable at run time.
func TryCMMetadataFormatDescriptionCreateWithMetadataSpecifications ¶
func TryCMMetadataFormatDescriptionCreateWithMetadataSpecifications(allocator corefoundation.CFAllocatorRef, metadataType CMMetadataFormatType, metadataSpecifications corefoundation.CFArrayRef, formatDescriptionOut *CMMetadataFormatDescriptionRef) (int32, error)
TryCMMetadataFormatDescriptionCreateWithMetadataSpecifications is like CMMetadataFormatDescriptionCreateWithMetadataSpecifications but returns an error instead of panicking if CMMetadataFormatDescriptionCreateWithMetadataSpecifications is unavailable at run time.
func TryCMMetadataFormatDescriptionGetIdentifiers ¶
func TryCMMetadataFormatDescriptionGetIdentifiers(desc CMMetadataFormatDescriptionRef) (corefoundation.CFArrayRef, error)
TryCMMetadataFormatDescriptionGetIdentifiers is like CMMetadataFormatDescriptionGetIdentifiers but returns an error instead of panicking if CMMetadataFormatDescriptionGetIdentifiers is unavailable at run time.
func TryCMMetadataFormatDescriptionGetKeyWithLocalID ¶
func TryCMMetadataFormatDescriptionGetKeyWithLocalID(desc CMMetadataFormatDescriptionRef, localKeyID uint32) (corefoundation.CFDictionaryRef, error)
TryCMMetadataFormatDescriptionGetKeyWithLocalID is like CMMetadataFormatDescriptionGetKeyWithLocalID but returns an error instead of panicking if CMMetadataFormatDescriptionGetKeyWithLocalID is unavailable at run time.
func TryCMMuxedFormatDescriptionCreate ¶
func TryCMMuxedFormatDescriptionCreate(allocator corefoundation.CFAllocatorRef, muxType CMMuxedStreamType, extensions corefoundation.CFDictionaryRef, formatDescriptionOut *CMMuxedFormatDescriptionRef) (int32, error)
TryCMMuxedFormatDescriptionCreate is like CMMuxedFormatDescriptionCreate but returns an error instead of panicking if CMMuxedFormatDescriptionCreate is unavailable at run time.
func TryCMPropagateAttachments ¶
func TryCMPropagateAttachments(source CMAttachmentBearerRef, destination CMAttachmentBearerRef) error
TryCMPropagateAttachments is like CMPropagateAttachments but returns an error instead of panicking if CMPropagateAttachments is unavailable at run time.
func TryCMRemoveAllAttachments ¶
func TryCMRemoveAllAttachments(target CMAttachmentBearerRef) error
TryCMRemoveAllAttachments is like CMRemoveAllAttachments but returns an error instead of panicking if CMRemoveAllAttachments is unavailable at run time.
func TryCMRemoveAttachment ¶
func TryCMRemoveAttachment(target CMAttachmentBearerRef, key corefoundation.CFStringRef) error
TryCMRemoveAttachment is like CMRemoveAttachment but returns an error instead of panicking if CMRemoveAttachment is unavailable at run time.
func TryCMSampleBufferCallBlockForEachSample ¶
func TryCMSampleBufferCallBlockForEachSample(sbuf CMSampleBufferRef, handler func(uintptr, int) int32) (int32, error)
TryCMSampleBufferCallBlockForEachSample is like CMSampleBufferCallBlockForEachSample but returns an error instead of panicking if CMSampleBufferCallBlockForEachSample is unavailable at run time.
func TryCMSampleBufferCallForEachSample ¶
func TryCMSampleBufferCallForEachSample(sbuf CMSampleBufferRef, callback func(CMSampleBufferRef, int, unsafe.Pointer) int32, refcon uintptr) (int32, error)
TryCMSampleBufferCallForEachSample is like CMSampleBufferCallForEachSample but returns an error instead of panicking if CMSampleBufferCallForEachSample is unavailable at run time.
func TryCMSampleBufferCopyPCMDataIntoAudioBufferList ¶
func TryCMSampleBufferCopyPCMDataIntoAudioBufferList(sbuf CMSampleBufferRef, frameOffset int32, numFrames int32, bufferList *coreaudiotypes.AudioBufferList) (int32, error)
TryCMSampleBufferCopyPCMDataIntoAudioBufferList is like CMSampleBufferCopyPCMDataIntoAudioBufferList but returns an error instead of panicking if CMSampleBufferCopyPCMDataIntoAudioBufferList is unavailable at run time.
func TryCMSampleBufferCopySampleBufferForRange ¶
func TryCMSampleBufferCopySampleBufferForRange(allocator corefoundation.CFAllocatorRef, sbuf CMSampleBufferRef, sampleRange corefoundation.CFRange, sampleBufferOut *CMSampleBufferRef) (int32, error)
TryCMSampleBufferCopySampleBufferForRange is like CMSampleBufferCopySampleBufferForRange but returns an error instead of panicking if CMSampleBufferCopySampleBufferForRange is unavailable at run time.
func TryCMSampleBufferCreate ¶
func TryCMSampleBufferCreate(allocator corefoundation.CFAllocatorRef, dataBuffer CMBlockBufferRef, dataReady bool, makeDataReadyCallback CMSampleBufferMakeDataReadyCallback, makeDataReadyRefcon unsafe.Pointer, formatDescription CMFormatDescriptionRef, numSamples CMItemCount, numSampleTimingEntries CMItemCount, sampleTimingArray *CMSampleTimingInfo, numSampleSizeEntries CMItemCount, sampleSizeArray *uintptr, sampleBufferOut *CMSampleBufferRef) (int32, error)
TryCMSampleBufferCreate is like CMSampleBufferCreate but returns an error instead of panicking if CMSampleBufferCreate is unavailable at run time.
func TryCMSampleBufferCreateCopy ¶
func TryCMSampleBufferCreateCopy(allocator corefoundation.CFAllocatorRef, sbuf CMSampleBufferRef, sampleBufferOut *CMSampleBufferRef) (int32, error)
TryCMSampleBufferCreateCopy is like CMSampleBufferCreateCopy but returns an error instead of panicking if CMSampleBufferCreateCopy is unavailable at run time.
func TryCMSampleBufferCreateCopyWithNewTiming ¶
func TryCMSampleBufferCreateCopyWithNewTiming(allocator corefoundation.CFAllocatorRef, originalSBuf CMSampleBufferRef, numSampleTimingEntries CMItemCount, sampleTimingArray *CMSampleTimingInfo, sampleBufferOut *CMSampleBufferRef) (int32, error)
TryCMSampleBufferCreateCopyWithNewTiming is like CMSampleBufferCreateCopyWithNewTiming but returns an error instead of panicking if CMSampleBufferCreateCopyWithNewTiming is unavailable at run time.
func TryCMSampleBufferCreateForImageBuffer ¶
func TryCMSampleBufferCreateForImageBuffer(allocator corefoundation.CFAllocatorRef, imageBuffer corevideo.CVImageBufferRef, dataReady bool, makeDataReadyCallback CMSampleBufferMakeDataReadyCallback, makeDataReadyRefcon unsafe.Pointer, formatDescription CMVideoFormatDescriptionRef, sampleTiming *CMSampleTimingInfo, sampleBufferOut *CMSampleBufferRef) (int32, error)
TryCMSampleBufferCreateForImageBuffer is like CMSampleBufferCreateForImageBuffer but returns an error instead of panicking if CMSampleBufferCreateForImageBuffer is unavailable at run time.
func TryCMSampleBufferCreateForImageBufferWithMakeDataReadyHandler ¶
func TryCMSampleBufferCreateForImageBufferWithMakeDataReadyHandler(allocator corefoundation.CFAllocatorRef, imageBuffer corevideo.CVImageBufferRef, dataReady bool, formatDescription CMVideoFormatDescriptionRef, sampleTiming *CMSampleTimingInfo, sampleBufferOut *CMSampleBufferRef, makeDataReadyHandler CMSampleBufferMakeDataReadyHandler) (int32, error)
TryCMSampleBufferCreateForImageBufferWithMakeDataReadyHandler is like CMSampleBufferCreateForImageBufferWithMakeDataReadyHandler but returns an error instead of panicking if CMSampleBufferCreateForImageBufferWithMakeDataReadyHandler is unavailable at run time.
func TryCMSampleBufferCreateForTaggedBufferGroup ¶
func TryCMSampleBufferCreateForTaggedBufferGroup(allocator corefoundation.CFAllocatorRef, taggedBufferGroup CMTaggedBufferGroupRef, sbufPTS CMTime, sbufDuration CMTime, formatDescription CMTaggedBufferGroupFormatDescriptionRef, sBufOut *CMSampleBufferRef) (int32, error)
TryCMSampleBufferCreateForTaggedBufferGroup is like CMSampleBufferCreateForTaggedBufferGroup but returns an error instead of panicking if CMSampleBufferCreateForTaggedBufferGroup is unavailable at run time.
func TryCMSampleBufferCreateReady ¶
func TryCMSampleBufferCreateReady(allocator corefoundation.CFAllocatorRef, dataBuffer CMBlockBufferRef, formatDescription CMFormatDescriptionRef, numSamples CMItemCount, numSampleTimingEntries CMItemCount, sampleTimingArray *CMSampleTimingInfo, numSampleSizeEntries CMItemCount, sampleSizeArray *uintptr, sampleBufferOut *CMSampleBufferRef) (int32, error)
TryCMSampleBufferCreateReady is like CMSampleBufferCreateReady but returns an error instead of panicking if CMSampleBufferCreateReady is unavailable at run time.
func TryCMSampleBufferCreateReadyWithImageBuffer ¶
func TryCMSampleBufferCreateReadyWithImageBuffer(allocator corefoundation.CFAllocatorRef, imageBuffer corevideo.CVImageBufferRef, formatDescription CMVideoFormatDescriptionRef, sampleTiming *CMSampleTimingInfo, sampleBufferOut *CMSampleBufferRef) (int32, error)
TryCMSampleBufferCreateReadyWithImageBuffer is like CMSampleBufferCreateReadyWithImageBuffer but returns an error instead of panicking if CMSampleBufferCreateReadyWithImageBuffer is unavailable at run time.
func TryCMSampleBufferCreateWithMakeDataReadyHandler ¶
func TryCMSampleBufferCreateWithMakeDataReadyHandler(allocator corefoundation.CFAllocatorRef, dataBuffer CMBlockBufferRef, dataReady bool, formatDescription CMFormatDescriptionRef, numSamples CMItemCount, numSampleTimingEntries CMItemCount, sampleTimingArray *CMSampleTimingInfo, numSampleSizeEntries CMItemCount, sampleSizeArray *uintptr, sampleBufferOut *CMSampleBufferRef, makeDataReadyHandler CMSampleBufferMakeDataReadyHandler) (int32, error)
TryCMSampleBufferCreateWithMakeDataReadyHandler is like CMSampleBufferCreateWithMakeDataReadyHandler but returns an error instead of panicking if CMSampleBufferCreateWithMakeDataReadyHandler is unavailable at run time.
func TryCMSampleBufferDataIsReady ¶
func TryCMSampleBufferDataIsReady(sbuf CMSampleBufferRef) (bool, error)
TryCMSampleBufferDataIsReady is like CMSampleBufferDataIsReady but returns an error instead of panicking if CMSampleBufferDataIsReady is unavailable at run time.
func TryCMSampleBufferGetAudioBufferListWithRetainedBlockBuffer ¶
func TryCMSampleBufferGetAudioBufferListWithRetainedBlockBuffer(sbuf CMSampleBufferRef, bufferListSizeNeededOut *uintptr, bufferListOut *coreaudiotypes.AudioBufferList, bufferListSize uintptr, blockBufferStructureAllocator corefoundation.CFAllocatorRef, blockBufferBlockAllocator corefoundation.CFAllocatorRef, flags uint32, blockBufferOut *uintptr) (int32, error)
TryCMSampleBufferGetAudioBufferListWithRetainedBlockBuffer is like CMSampleBufferGetAudioBufferListWithRetainedBlockBuffer but returns an error instead of panicking if CMSampleBufferGetAudioBufferListWithRetainedBlockBuffer is unavailable at run time.
func TryCMSampleBufferGetAudioStreamPacketDescriptions ¶
func TryCMSampleBufferGetAudioStreamPacketDescriptions(sbuf CMSampleBufferRef, packetDescriptionsSize uintptr, packetDescriptionsOut *coreaudiotypes.AudioStreamPacketDescription, packetDescriptionsSizeNeededOut *uintptr) (int32, error)
TryCMSampleBufferGetAudioStreamPacketDescriptions is like CMSampleBufferGetAudioStreamPacketDescriptions but returns an error instead of panicking if CMSampleBufferGetAudioStreamPacketDescriptions is unavailable at run time.
func TryCMSampleBufferGetAudioStreamPacketDescriptionsPtr ¶
func TryCMSampleBufferGetAudioStreamPacketDescriptionsPtr(sbuf CMSampleBufferRef, packetDescriptionsPointerOut *objc.ID, packetDescriptionsSizeOut *uintptr) (int32, error)
TryCMSampleBufferGetAudioStreamPacketDescriptionsPtr is like CMSampleBufferGetAudioStreamPacketDescriptionsPtr but returns an error instead of panicking if CMSampleBufferGetAudioStreamPacketDescriptionsPtr is unavailable at run time.
func TryCMSampleBufferGetImageBuffer ¶
func TryCMSampleBufferGetImageBuffer(sbuf CMSampleBufferRef) (corevideo.CVImageBufferRef, error)
TryCMSampleBufferGetImageBuffer is like CMSampleBufferGetImageBuffer but returns an error instead of panicking if CMSampleBufferGetImageBuffer is unavailable at run time.
func TryCMSampleBufferGetOutputSampleTimingInfoArray ¶
func TryCMSampleBufferGetOutputSampleTimingInfoArray(sbuf CMSampleBufferRef, timingArrayEntries CMItemCount, timingArrayOut *CMSampleTimingInfo, timingArrayEntriesNeededOut *CMItemCount) (int32, error)
TryCMSampleBufferGetOutputSampleTimingInfoArray is like CMSampleBufferGetOutputSampleTimingInfoArray but returns an error instead of panicking if CMSampleBufferGetOutputSampleTimingInfoArray is unavailable at run time.
func TryCMSampleBufferGetSampleAttachmentsArray ¶
func TryCMSampleBufferGetSampleAttachmentsArray(sbuf CMSampleBufferRef, createIfNecessary bool) (corefoundation.CFArrayRef, error)
TryCMSampleBufferGetSampleAttachmentsArray is like CMSampleBufferGetSampleAttachmentsArray but returns an error instead of panicking if CMSampleBufferGetSampleAttachmentsArray is unavailable at run time.
func TryCMSampleBufferGetSampleSize ¶
func TryCMSampleBufferGetSampleSize(sbuf CMSampleBufferRef, sampleIndex CMItemIndex) (uintptr, error)
TryCMSampleBufferGetSampleSize is like CMSampleBufferGetSampleSize but returns an error instead of panicking if CMSampleBufferGetSampleSize is unavailable at run time.
func TryCMSampleBufferGetSampleSizeArray ¶
func TryCMSampleBufferGetSampleSizeArray(sbuf CMSampleBufferRef, sizeArrayEntries CMItemCount, sizeArrayOut *uintptr, sizeArrayEntriesNeededOut *CMItemCount) (int32, error)
TryCMSampleBufferGetSampleSizeArray is like CMSampleBufferGetSampleSizeArray but returns an error instead of panicking if CMSampleBufferGetSampleSizeArray is unavailable at run time.
func TryCMSampleBufferGetSampleTimingInfo ¶
func TryCMSampleBufferGetSampleTimingInfo(sbuf CMSampleBufferRef, sampleIndex CMItemIndex, timingInfoOut *CMSampleTimingInfo) (int32, error)
TryCMSampleBufferGetSampleTimingInfo is like CMSampleBufferGetSampleTimingInfo but returns an error instead of panicking if CMSampleBufferGetSampleTimingInfo is unavailable at run time.
func TryCMSampleBufferGetSampleTimingInfoArray ¶
func TryCMSampleBufferGetSampleTimingInfoArray(sbuf CMSampleBufferRef, numSampleTimingEntries CMItemCount, timingArrayOut *CMSampleTimingInfo, timingArrayEntriesNeededOut *CMItemCount) (int32, error)
TryCMSampleBufferGetSampleTimingInfoArray is like CMSampleBufferGetSampleTimingInfoArray but returns an error instead of panicking if CMSampleBufferGetSampleTimingInfoArray is unavailable at run time.
func TryCMSampleBufferGetTotalSampleSize ¶
func TryCMSampleBufferGetTotalSampleSize(sbuf CMSampleBufferRef) (uintptr, error)
TryCMSampleBufferGetTotalSampleSize is like CMSampleBufferGetTotalSampleSize but returns an error instead of panicking if CMSampleBufferGetTotalSampleSize is unavailable at run time.
func TryCMSampleBufferGetTypeID ¶
TryCMSampleBufferGetTypeID is like CMSampleBufferGetTypeID but returns an error instead of panicking if CMSampleBufferGetTypeID is unavailable at run time.
func TryCMSampleBufferHasDataFailed ¶
func TryCMSampleBufferHasDataFailed(sbuf CMSampleBufferRef, statusOut *int32) (bool, error)
TryCMSampleBufferHasDataFailed is like CMSampleBufferHasDataFailed but returns an error instead of panicking if CMSampleBufferHasDataFailed is unavailable at run time.
func TryCMSampleBufferInvalidate ¶
func TryCMSampleBufferInvalidate(sbuf CMSampleBufferRef) (int32, error)
TryCMSampleBufferInvalidate is like CMSampleBufferInvalidate but returns an error instead of panicking if CMSampleBufferInvalidate is unavailable at run time.
func TryCMSampleBufferIsValid ¶
func TryCMSampleBufferIsValid(sbuf CMSampleBufferRef) (bool, error)
TryCMSampleBufferIsValid is like CMSampleBufferIsValid but returns an error instead of panicking if CMSampleBufferIsValid is unavailable at run time.
func TryCMSampleBufferMakeDataReady ¶
func TryCMSampleBufferMakeDataReady(sbuf CMSampleBufferRef) (int32, error)
TryCMSampleBufferMakeDataReady is like CMSampleBufferMakeDataReady but returns an error instead of panicking if CMSampleBufferMakeDataReady is unavailable at run time.
func TryCMSampleBufferSetDataBuffer ¶
func TryCMSampleBufferSetDataBuffer(sbuf CMSampleBufferRef, dataBuffer CMBlockBufferRef) (int32, error)
TryCMSampleBufferSetDataBuffer is like CMSampleBufferSetDataBuffer but returns an error instead of panicking if CMSampleBufferSetDataBuffer is unavailable at run time.
func TryCMSampleBufferSetDataBufferFromAudioBufferList ¶
func TryCMSampleBufferSetDataBufferFromAudioBufferList(sbuf CMSampleBufferRef, blockBufferStructureAllocator corefoundation.CFAllocatorRef, blockBufferBlockAllocator corefoundation.CFAllocatorRef, flags uint32, bufferList *coreaudiotypes.AudioBufferList) (int32, error)
TryCMSampleBufferSetDataBufferFromAudioBufferList is like CMSampleBufferSetDataBufferFromAudioBufferList but returns an error instead of panicking if CMSampleBufferSetDataBufferFromAudioBufferList is unavailable at run time.
func TryCMSampleBufferSetDataFailed ¶
func TryCMSampleBufferSetDataFailed(sbuf CMSampleBufferRef, status int32) (int32, error)
TryCMSampleBufferSetDataFailed is like CMSampleBufferSetDataFailed but returns an error instead of panicking if CMSampleBufferSetDataFailed is unavailable at run time.
func TryCMSampleBufferSetDataReady ¶
func TryCMSampleBufferSetDataReady(sbuf CMSampleBufferRef) (int32, error)
TryCMSampleBufferSetDataReady is like CMSampleBufferSetDataReady but returns an error instead of panicking if CMSampleBufferSetDataReady is unavailable at run time.
func TryCMSampleBufferSetInvalidateCallback ¶
func TryCMSampleBufferSetInvalidateCallback(sbuf CMSampleBufferRef, invalidateCallback CMSampleBufferInvalidateCallback, invalidateRefCon uint64) (int32, error)
TryCMSampleBufferSetInvalidateCallback is like CMSampleBufferSetInvalidateCallback but returns an error instead of panicking if CMSampleBufferSetInvalidateCallback is unavailable at run time.
func TryCMSampleBufferSetInvalidateHandler ¶
func TryCMSampleBufferSetInvalidateHandler(sbuf CMSampleBufferRef, invalidateHandler CMSampleBufferInvalidateHandler) (int32, error)
TryCMSampleBufferSetInvalidateHandler is like CMSampleBufferSetInvalidateHandler but returns an error instead of panicking if CMSampleBufferSetInvalidateHandler is unavailable at run time.
func TryCMSampleBufferSetOutputPresentationTimeStamp ¶
func TryCMSampleBufferSetOutputPresentationTimeStamp(sbuf CMSampleBufferRef, outputPresentationTimeStamp CMTime) (int32, error)
TryCMSampleBufferSetOutputPresentationTimeStamp is like CMSampleBufferSetOutputPresentationTimeStamp but returns an error instead of panicking if CMSampleBufferSetOutputPresentationTimeStamp is unavailable at run time.
func TryCMSampleBufferTrackDataReadiness ¶
func TryCMSampleBufferTrackDataReadiness(sbuf CMSampleBufferRef, sampleBufferToTrack CMSampleBufferRef) (int32, error)
TryCMSampleBufferTrackDataReadiness is like CMSampleBufferTrackDataReadiness but returns an error instead of panicking if CMSampleBufferTrackDataReadiness is unavailable at run time.
func TryCMSetAttachment ¶
func TryCMSetAttachment(target CMAttachmentBearerRef, key corefoundation.CFStringRef, value corefoundation.CFTypeRef, attachmentMode uint32) error
TryCMSetAttachment is like CMSetAttachment but returns an error instead of panicking if CMSetAttachment is unavailable at run time.
func TryCMSetAttachments ¶
func TryCMSetAttachments(target CMAttachmentBearerRef, theAttachments corefoundation.CFDictionaryRef, attachmentMode uint32) error
TryCMSetAttachments is like CMSetAttachments but returns an error instead of panicking if CMSetAttachments is unavailable at run time.
func TryCMSimpleQueueCreate ¶
func TryCMSimpleQueueCreate(allocator corefoundation.CFAllocatorRef, capacity int32, queueOut *CMSimpleQueueRef) (int32, error)
TryCMSimpleQueueCreate is like CMSimpleQueueCreate but returns an error instead of panicking if CMSimpleQueueCreate is unavailable at run time.
func TryCMSimpleQueueDequeue ¶
func TryCMSimpleQueueDequeue(queue CMSimpleQueueRef) (unsafe.Pointer, error)
TryCMSimpleQueueDequeue is like CMSimpleQueueDequeue but returns an error instead of panicking if CMSimpleQueueDequeue is unavailable at run time.
func TryCMSimpleQueueEnqueue ¶
func TryCMSimpleQueueEnqueue(queue CMSimpleQueueRef, element unsafe.Pointer) (int32, error)
TryCMSimpleQueueEnqueue is like CMSimpleQueueEnqueue but returns an error instead of panicking if CMSimpleQueueEnqueue is unavailable at run time.
func TryCMSimpleQueueGetCapacity ¶
func TryCMSimpleQueueGetCapacity(queue CMSimpleQueueRef) (int32, error)
TryCMSimpleQueueGetCapacity is like CMSimpleQueueGetCapacity but returns an error instead of panicking if CMSimpleQueueGetCapacity is unavailable at run time.
func TryCMSimpleQueueGetCount ¶
func TryCMSimpleQueueGetCount(queue CMSimpleQueueRef) (int32, error)
TryCMSimpleQueueGetCount is like CMSimpleQueueGetCount but returns an error instead of panicking if CMSimpleQueueGetCount is unavailable at run time.
func TryCMSimpleQueueGetHead ¶
func TryCMSimpleQueueGetHead(queue CMSimpleQueueRef) (unsafe.Pointer, error)
TryCMSimpleQueueGetHead is like CMSimpleQueueGetHead but returns an error instead of panicking if CMSimpleQueueGetHead is unavailable at run time.
func TryCMSimpleQueueGetTypeID ¶
TryCMSimpleQueueGetTypeID is like CMSimpleQueueGetTypeID but returns an error instead of panicking if CMSimpleQueueGetTypeID is unavailable at run time.
func TryCMSimpleQueueReset ¶
func TryCMSimpleQueueReset(queue CMSimpleQueueRef) (int32, error)
TryCMSimpleQueueReset is like CMSimpleQueueReset but returns an error instead of panicking if CMSimpleQueueReset is unavailable at run time.
func TryCMSwapBigEndianClosedCaptionDescriptionToHost ¶
func TryCMSwapBigEndianClosedCaptionDescriptionToHost(closedCaptionDescriptionData []byte, closedCaptionDescriptionSize uintptr) (int32, error)
TryCMSwapBigEndianClosedCaptionDescriptionToHost is like CMSwapBigEndianClosedCaptionDescriptionToHost but returns an error instead of panicking if CMSwapBigEndianClosedCaptionDescriptionToHost is unavailable at run time.
func TryCMSwapBigEndianImageDescriptionToHost ¶
func TryCMSwapBigEndianImageDescriptionToHost(imageDescriptionData []byte, imageDescriptionSize uintptr) (int32, error)
TryCMSwapBigEndianImageDescriptionToHost is like CMSwapBigEndianImageDescriptionToHost but returns an error instead of panicking if CMSwapBigEndianImageDescriptionToHost is unavailable at run time.
func TryCMSwapBigEndianMetadataDescriptionToHost ¶
func TryCMSwapBigEndianMetadataDescriptionToHost(metadataDescriptionData []byte, metadataDescriptionSize uintptr) (int32, error)
TryCMSwapBigEndianMetadataDescriptionToHost is like CMSwapBigEndianMetadataDescriptionToHost but returns an error instead of panicking if CMSwapBigEndianMetadataDescriptionToHost is unavailable at run time.
func TryCMSwapBigEndianSoundDescriptionToHost ¶
func TryCMSwapBigEndianSoundDescriptionToHost(soundDescriptionData []byte, soundDescriptionSize uintptr) (int32, error)
TryCMSwapBigEndianSoundDescriptionToHost is like CMSwapBigEndianSoundDescriptionToHost but returns an error instead of panicking if CMSwapBigEndianSoundDescriptionToHost is unavailable at run time.
func TryCMSwapBigEndianTextDescriptionToHost ¶
func TryCMSwapBigEndianTextDescriptionToHost(textDescriptionData []byte, textDescriptionSize uintptr) (int32, error)
TryCMSwapBigEndianTextDescriptionToHost is like CMSwapBigEndianTextDescriptionToHost but returns an error instead of panicking if CMSwapBigEndianTextDescriptionToHost is unavailable at run time.
func TryCMSwapBigEndianTimeCodeDescriptionToHost ¶
func TryCMSwapBigEndianTimeCodeDescriptionToHost(timeCodeDescriptionData []byte, timeCodeDescriptionSize uintptr) (int32, error)
TryCMSwapBigEndianTimeCodeDescriptionToHost is like CMSwapBigEndianTimeCodeDescriptionToHost but returns an error instead of panicking if CMSwapBigEndianTimeCodeDescriptionToHost is unavailable at run time.
func TryCMSwapHostEndianClosedCaptionDescriptionToBig ¶
func TryCMSwapHostEndianClosedCaptionDescriptionToBig(closedCaptionDescriptionData []byte, closedCaptionDescriptionSize uintptr) (int32, error)
TryCMSwapHostEndianClosedCaptionDescriptionToBig is like CMSwapHostEndianClosedCaptionDescriptionToBig but returns an error instead of panicking if CMSwapHostEndianClosedCaptionDescriptionToBig is unavailable at run time.
func TryCMSwapHostEndianImageDescriptionToBig ¶
func TryCMSwapHostEndianImageDescriptionToBig(imageDescriptionData []byte, imageDescriptionSize uintptr) (int32, error)
TryCMSwapHostEndianImageDescriptionToBig is like CMSwapHostEndianImageDescriptionToBig but returns an error instead of panicking if CMSwapHostEndianImageDescriptionToBig is unavailable at run time.
func TryCMSwapHostEndianMetadataDescriptionToBig ¶
func TryCMSwapHostEndianMetadataDescriptionToBig(metadataDescriptionData []byte, metadataDescriptionSize uintptr) (int32, error)
TryCMSwapHostEndianMetadataDescriptionToBig is like CMSwapHostEndianMetadataDescriptionToBig but returns an error instead of panicking if CMSwapHostEndianMetadataDescriptionToBig is unavailable at run time.
func TryCMSwapHostEndianSoundDescriptionToBig ¶
func TryCMSwapHostEndianSoundDescriptionToBig(soundDescriptionData []byte, soundDescriptionSize uintptr) (int32, error)
TryCMSwapHostEndianSoundDescriptionToBig is like CMSwapHostEndianSoundDescriptionToBig but returns an error instead of panicking if CMSwapHostEndianSoundDescriptionToBig is unavailable at run time.
func TryCMSwapHostEndianTextDescriptionToBig ¶
func TryCMSwapHostEndianTextDescriptionToBig(textDescriptionData []byte, textDescriptionSize uintptr) (int32, error)
TryCMSwapHostEndianTextDescriptionToBig is like CMSwapHostEndianTextDescriptionToBig but returns an error instead of panicking if CMSwapHostEndianTextDescriptionToBig is unavailable at run time.
func TryCMSwapHostEndianTimeCodeDescriptionToBig ¶
func TryCMSwapHostEndianTimeCodeDescriptionToBig(timeCodeDescriptionData []byte, timeCodeDescriptionSize uintptr) (int32, error)
TryCMSwapHostEndianTimeCodeDescriptionToBig is like CMSwapHostEndianTimeCodeDescriptionToBig but returns an error instead of panicking if CMSwapHostEndianTimeCodeDescriptionToBig is unavailable at run time.
func TryCMSyncGetRelativeRate ¶
func TryCMSyncGetRelativeRate(ofClockOrTimebase CMClockOrTimebaseRef, relativeToClockOrTimebase CMClockOrTimebaseRef) (float64, error)
TryCMSyncGetRelativeRate is like CMSyncGetRelativeRate but returns an error instead of panicking if CMSyncGetRelativeRate is unavailable at run time.
func TryCMSyncGetRelativeRateAndAnchorTime ¶
func TryCMSyncGetRelativeRateAndAnchorTime(ofClockOrTimebase CMClockOrTimebaseRef, relativeToClockOrTimebase CMClockOrTimebaseRef, outRelativeRate *float64, outOfClockOrTimebaseAnchorTime *CMTime, outRelativeToClockOrTimebaseAnchorTime *CMTime) (int32, error)
TryCMSyncGetRelativeRateAndAnchorTime is like CMSyncGetRelativeRateAndAnchorTime but returns an error instead of panicking if CMSyncGetRelativeRateAndAnchorTime is unavailable at run time.
func TryCMSyncMightDrift ¶
func TryCMSyncMightDrift(clockOrTimebase1 CMClockOrTimebaseRef, clockOrTimebase2 CMClockOrTimebaseRef) (bool, error)
TryCMSyncMightDrift is like CMSyncMightDrift but returns an error instead of panicking if CMSyncMightDrift is unavailable at run time.
func TryCMTagCollectionAddTag ¶
func TryCMTagCollectionAddTag(tagCollection CMMutableTagCollectionRef, tagToAdd CMTag) (int32, error)
TryCMTagCollectionAddTag is like CMTagCollectionAddTag but returns an error instead of panicking if CMTagCollectionAddTag is unavailable at run time.
func TryCMTagCollectionAddTagsFromArray ¶
func TryCMTagCollectionAddTagsFromArray(tagCollection CMMutableTagCollectionRef, tags *CMTag, tagCount CMItemCount) (int32, error)
TryCMTagCollectionAddTagsFromArray is like CMTagCollectionAddTagsFromArray but returns an error instead of panicking if CMTagCollectionAddTagsFromArray is unavailable at run time.
func TryCMTagCollectionAddTagsFromCollection ¶
func TryCMTagCollectionAddTagsFromCollection(tagCollection CMMutableTagCollectionRef, collectionWithTagsToAdd CMTagCollectionRef) (int32, error)
TryCMTagCollectionAddTagsFromCollection is like CMTagCollectionAddTagsFromCollection but returns an error instead of panicking if CMTagCollectionAddTagsFromCollection is unavailable at run time.
func TryCMTagCollectionApply ¶
func TryCMTagCollectionApply(tagCollection CMTagCollectionRef, applier CMTagCollectionApplierFunction, context unsafe.Pointer) error
TryCMTagCollectionApply is like CMTagCollectionApply but returns an error instead of panicking if CMTagCollectionApply is unavailable at run time.
func TryCMTagCollectionContainsCategory ¶
func TryCMTagCollectionContainsCategory(tagCollection CMTagCollectionRef, category CMTagCategory) (bool, error)
TryCMTagCollectionContainsCategory is like CMTagCollectionContainsCategory but returns an error instead of panicking if CMTagCollectionContainsCategory is unavailable at run time.
func TryCMTagCollectionContainsSpecifiedTags ¶
func TryCMTagCollectionContainsSpecifiedTags(tagCollection CMTagCollectionRef, containedTags *CMTag, containedTagCount CMItemCount) (bool, error)
TryCMTagCollectionContainsSpecifiedTags is like CMTagCollectionContainsSpecifiedTags but returns an error instead of panicking if CMTagCollectionContainsSpecifiedTags is unavailable at run time.
func TryCMTagCollectionContainsTag ¶
func TryCMTagCollectionContainsTag(tagCollection CMTagCollectionRef, tag CMTag) (bool, error)
TryCMTagCollectionContainsTag is like CMTagCollectionContainsTag but returns an error instead of panicking if CMTagCollectionContainsTag is unavailable at run time.
func TryCMTagCollectionContainsTagsOfCollection ¶
func TryCMTagCollectionContainsTagsOfCollection(tagCollection CMTagCollectionRef, containedTagCollection CMTagCollectionRef) (bool, error)
TryCMTagCollectionContainsTagsOfCollection is like CMTagCollectionContainsTagsOfCollection but returns an error instead of panicking if CMTagCollectionContainsTagsOfCollection is unavailable at run time.
func TryCMTagCollectionCopyAsData ¶
func TryCMTagCollectionCopyAsData(tagCollection CMTagCollectionRef, allocator corefoundation.CFAllocatorRef) (corefoundation.CFDataRef, error)
TryCMTagCollectionCopyAsData is like CMTagCollectionCopyAsData but returns an error instead of panicking if CMTagCollectionCopyAsData is unavailable at run time.
func TryCMTagCollectionCopyAsDictionary ¶
func TryCMTagCollectionCopyAsDictionary(tagCollection CMTagCollectionRef, allocator corefoundation.CFAllocatorRef) (corefoundation.CFDictionaryRef, error)
TryCMTagCollectionCopyAsDictionary is like CMTagCollectionCopyAsDictionary but returns an error instead of panicking if CMTagCollectionCopyAsDictionary is unavailable at run time.
func TryCMTagCollectionCopyDescription ¶
func TryCMTagCollectionCopyDescription(allocator corefoundation.CFAllocatorRef, tagCollection CMTagCollectionRef) (corefoundation.CFStringRef, error)
TryCMTagCollectionCopyDescription is like CMTagCollectionCopyDescription but returns an error instead of panicking if CMTagCollectionCopyDescription is unavailable at run time.
func TryCMTagCollectionCopyTagsOfCategories ¶
func TryCMTagCollectionCopyTagsOfCategories(allocator corefoundation.CFAllocatorRef, tagCollection CMTagCollectionRef, categories *CMTagCategory, categoriesCount CMItemCount, collectionWithTagsOfCategories *CMTagCollectionRef) (int32, error)
TryCMTagCollectionCopyTagsOfCategories is like CMTagCollectionCopyTagsOfCategories but returns an error instead of panicking if CMTagCollectionCopyTagsOfCategories is unavailable at run time.
func TryCMTagCollectionCreate ¶
func TryCMTagCollectionCreate(allocator corefoundation.CFAllocatorRef, tags *CMTag, tagCount CMItemCount, newCollectionOut *CMTagCollectionRef) (int32, error)
TryCMTagCollectionCreate is like CMTagCollectionCreate but returns an error instead of panicking if CMTagCollectionCreate is unavailable at run time.
func TryCMTagCollectionCreateCopy ¶
func TryCMTagCollectionCreateCopy(tagCollection CMTagCollectionRef, allocator corefoundation.CFAllocatorRef, newCollectionCopyOut *CMTagCollectionRef) (int32, error)
TryCMTagCollectionCreateCopy is like CMTagCollectionCreateCopy but returns an error instead of panicking if CMTagCollectionCreateCopy is unavailable at run time.
func TryCMTagCollectionCreateDifference ¶
func TryCMTagCollectionCreateDifference(tagCollectionMinuend CMTagCollectionRef, tagCollectionSubtrahend CMTagCollectionRef, tagCollectionOut *CMTagCollectionRef) (int32, error)
TryCMTagCollectionCreateDifference is like CMTagCollectionCreateDifference but returns an error instead of panicking if CMTagCollectionCreateDifference is unavailable at run time.
func TryCMTagCollectionCreateExclusiveOr ¶
func TryCMTagCollectionCreateExclusiveOr(tagCollection1 CMTagCollectionRef, tagCollection2 CMTagCollectionRef, tagCollectionOut *CMTagCollectionRef) (int32, error)
TryCMTagCollectionCreateExclusiveOr is like CMTagCollectionCreateExclusiveOr but returns an error instead of panicking if CMTagCollectionCreateExclusiveOr is unavailable at run time.
func TryCMTagCollectionCreateFromData ¶
func TryCMTagCollectionCreateFromData(data corefoundation.CFDataRef, allocator corefoundation.CFAllocatorRef, newCollectionOut *CMTagCollectionRef) (int32, error)
TryCMTagCollectionCreateFromData is like CMTagCollectionCreateFromData but returns an error instead of panicking if CMTagCollectionCreateFromData is unavailable at run time.
func TryCMTagCollectionCreateFromDictionary ¶
func TryCMTagCollectionCreateFromDictionary(dict corefoundation.CFDictionaryRef, allocator corefoundation.CFAllocatorRef, newCollectionOut *CMTagCollectionRef) (int32, error)
TryCMTagCollectionCreateFromDictionary is like CMTagCollectionCreateFromDictionary but returns an error instead of panicking if CMTagCollectionCreateFromDictionary is unavailable at run time.
func TryCMTagCollectionCreateIntersection ¶
func TryCMTagCollectionCreateIntersection(tagCollection1 CMTagCollectionRef, tagCollection2 CMTagCollectionRef, tagCollectionOut *CMTagCollectionRef) (int32, error)
TryCMTagCollectionCreateIntersection is like CMTagCollectionCreateIntersection but returns an error instead of panicking if CMTagCollectionCreateIntersection is unavailable at run time.
func TryCMTagCollectionCreateMutable ¶
func TryCMTagCollectionCreateMutable(allocator corefoundation.CFAllocatorRef, capacity int, newMutableCollectionOut *CMMutableTagCollectionRef) (int32, error)
TryCMTagCollectionCreateMutable is like CMTagCollectionCreateMutable but returns an error instead of panicking if CMTagCollectionCreateMutable is unavailable at run time.
func TryCMTagCollectionCreateMutableCopy ¶
func TryCMTagCollectionCreateMutableCopy(tagCollection CMTagCollectionRef, allocator corefoundation.CFAllocatorRef, newMutableCollectionCopyOut *CMMutableTagCollectionRef) (int32, error)
TryCMTagCollectionCreateMutableCopy is like CMTagCollectionCreateMutableCopy but returns an error instead of panicking if CMTagCollectionCreateMutableCopy is unavailable at run time.
func TryCMTagCollectionCreateUnion ¶
func TryCMTagCollectionCreateUnion(tagCollection1 CMTagCollectionRef, tagCollection2 CMTagCollectionRef, tagCollectionOut *CMTagCollectionRef) (int32, error)
TryCMTagCollectionCreateUnion is like CMTagCollectionCreateUnion but returns an error instead of panicking if CMTagCollectionCreateUnion is unavailable at run time.
func TryCMTagCollectionGetTags ¶
func TryCMTagCollectionGetTags(tagCollection CMTagCollectionRef, tagBuffer *CMTag, tagBufferCount CMItemCount, numberOfTagsCopied *CMItemCount) (int32, error)
TryCMTagCollectionGetTags is like CMTagCollectionGetTags but returns an error instead of panicking if CMTagCollectionGetTags is unavailable at run time.
func TryCMTagCollectionGetTagsWithCategory ¶
func TryCMTagCollectionGetTagsWithCategory(tagCollection CMTagCollectionRef, category CMTagCategory, tagBuffer *CMTag, tagBufferCount CMItemCount, numberOfTagsCopied *CMItemCount) (int32, error)
TryCMTagCollectionGetTagsWithCategory is like CMTagCollectionGetTagsWithCategory but returns an error instead of panicking if CMTagCollectionGetTagsWithCategory is unavailable at run time.
func TryCMTagCollectionGetTagsWithFilterFunction ¶
func TryCMTagCollectionGetTagsWithFilterFunction(tagCollection CMTagCollectionRef, tagBuffer *CMTag, tagBufferCount CMItemCount, numberOfTagsCopied *CMItemCount, filter CMTagCollectionTagFilterFunction, context unsafe.Pointer) (int32, error)
TryCMTagCollectionGetTagsWithFilterFunction is like CMTagCollectionGetTagsWithFilterFunction but returns an error instead of panicking if CMTagCollectionGetTagsWithFilterFunction is unavailable at run time.
func TryCMTagCollectionGetTypeID ¶
TryCMTagCollectionGetTypeID is like CMTagCollectionGetTypeID but returns an error instead of panicking if CMTagCollectionGetTypeID is unavailable at run time.
func TryCMTagCollectionIsEmpty ¶
func TryCMTagCollectionIsEmpty(tagCollection CMTagCollectionRef) (bool, error)
TryCMTagCollectionIsEmpty is like CMTagCollectionIsEmpty but returns an error instead of panicking if CMTagCollectionIsEmpty is unavailable at run time.
func TryCMTagCollectionRemoveAllTags ¶
func TryCMTagCollectionRemoveAllTags(tagCollection CMMutableTagCollectionRef) (int32, error)
TryCMTagCollectionRemoveAllTags is like CMTagCollectionRemoveAllTags but returns an error instead of panicking if CMTagCollectionRemoveAllTags is unavailable at run time.
func TryCMTagCollectionRemoveAllTagsOfCategory ¶
func TryCMTagCollectionRemoveAllTagsOfCategory(tagCollection CMMutableTagCollectionRef, category CMTagCategory) (int32, error)
TryCMTagCollectionRemoveAllTagsOfCategory is like CMTagCollectionRemoveAllTagsOfCategory but returns an error instead of panicking if CMTagCollectionRemoveAllTagsOfCategory is unavailable at run time.
func TryCMTagCollectionRemoveTag ¶
func TryCMTagCollectionRemoveTag(tagCollection CMMutableTagCollectionRef, tagToRemove CMTag) (int32, error)
TryCMTagCollectionRemoveTag is like CMTagCollectionRemoveTag but returns an error instead of panicking if CMTagCollectionRemoveTag is unavailable at run time.
func TryCMTagCompare ¶
func TryCMTagCompare(tag1 CMTag, tag2 CMTag) (corefoundation.CFComparisonResult, error)
TryCMTagCompare is like CMTagCompare but returns an error instead of panicking if CMTagCompare is unavailable at run time.
func TryCMTagCopyAsDictionary ¶
func TryCMTagCopyAsDictionary(tag CMTag, allocator corefoundation.CFAllocatorRef) (corefoundation.CFDictionaryRef, error)
TryCMTagCopyAsDictionary is like CMTagCopyAsDictionary but returns an error instead of panicking if CMTagCopyAsDictionary is unavailable at run time.
func TryCMTagCopyDescription ¶
func TryCMTagCopyDescription(allocator corefoundation.CFAllocatorRef, tag CMTag) (corefoundation.CFStringRef, error)
TryCMTagCopyDescription is like CMTagCopyDescription but returns an error instead of panicking if CMTagCopyDescription is unavailable at run time.
func TryCMTagEqualToTag ¶
TryCMTagEqualToTag is like CMTagEqualToTag but returns an error instead of panicking if CMTagEqualToTag is unavailable at run time.
func TryCMTagGetFlagsValue ¶
TryCMTagGetFlagsValue is like CMTagGetFlagsValue but returns an error instead of panicking if CMTagGetFlagsValue is unavailable at run time.
func TryCMTagGetFloat64Value ¶
TryCMTagGetFloat64Value is like CMTagGetFloat64Value but returns an error instead of panicking if CMTagGetFloat64Value is unavailable at run time.
func TryCMTagGetOSTypeValue ¶
TryCMTagGetOSTypeValue is like CMTagGetOSTypeValue but returns an error instead of panicking if CMTagGetOSTypeValue is unavailable at run time.
func TryCMTagGetSInt64Value ¶
TryCMTagGetSInt64Value is like CMTagGetSInt64Value but returns an error instead of panicking if CMTagGetSInt64Value is unavailable at run time.
func TryCMTagHasFlagsValue ¶
TryCMTagHasFlagsValue is like CMTagHasFlagsValue but returns an error instead of panicking if CMTagHasFlagsValue is unavailable at run time.
func TryCMTagHasFloat64Value ¶
TryCMTagHasFloat64Value is like CMTagHasFloat64Value but returns an error instead of panicking if CMTagHasFloat64Value is unavailable at run time.
func TryCMTagHasOSTypeValue ¶
TryCMTagHasOSTypeValue is like CMTagHasOSTypeValue but returns an error instead of panicking if CMTagHasOSTypeValue is unavailable at run time.
func TryCMTagHasSInt64Value ¶
TryCMTagHasSInt64Value is like CMTagHasSInt64Value but returns an error instead of panicking if CMTagHasSInt64Value is unavailable at run time.
func TryCMTagHash ¶
TryCMTagHash is like CMTagHash but returns an error instead of panicking if CMTagHash is unavailable at run time.
func TryCMTaggedBufferGroupCreate ¶
func TryCMTaggedBufferGroupCreate(allocator corefoundation.CFAllocatorRef, tagCollections corefoundation.CFArrayRef, buffers corefoundation.CFArrayRef, groupOut *CMTaggedBufferGroupRef) (int32, error)
TryCMTaggedBufferGroupCreate is like CMTaggedBufferGroupCreate but returns an error instead of panicking if CMTaggedBufferGroupCreate is unavailable at run time.
func TryCMTaggedBufferGroupCreateCombined ¶
func TryCMTaggedBufferGroupCreateCombined(allocator corefoundation.CFAllocatorRef, taggedBufferGroups corefoundation.CFArrayRef, groupOut *CMTaggedBufferGroupRef) (int32, error)
TryCMTaggedBufferGroupCreateCombined is like CMTaggedBufferGroupCreateCombined but returns an error instead of panicking if CMTaggedBufferGroupCreateCombined is unavailable at run time.
func TryCMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroup ¶
func TryCMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroup(allocator corefoundation.CFAllocatorRef, taggedBufferGroup CMTaggedBufferGroupRef, formatDescriptionOut *CMTaggedBufferGroupFormatDescriptionRef) (int32, error)
TryCMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroup is like CMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroup but returns an error instead of panicking if CMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroup is unavailable at run time.
func TryCMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroupWithExtensions ¶
func TryCMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroupWithExtensions(allocator corefoundation.CFAllocatorRef, taggedBufferGroup CMTaggedBufferGroupRef, extensions corefoundation.CFDictionaryRef, formatDescriptionOut *CMTaggedBufferGroupFormatDescriptionRef) (int32, error)
TryCMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroupWithExtensions is like CMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroupWithExtensions but returns an error instead of panicking if CMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroupWithExtensions is unavailable at run time.
func TryCMTaggedBufferGroupFormatDescriptionMatchesTaggedBufferGroup ¶
func TryCMTaggedBufferGroupFormatDescriptionMatchesTaggedBufferGroup(desc CMTaggedBufferGroupFormatDescriptionRef, taggedBufferGroup CMTaggedBufferGroupRef) (bool, error)
TryCMTaggedBufferGroupFormatDescriptionMatchesTaggedBufferGroup is like CMTaggedBufferGroupFormatDescriptionMatchesTaggedBufferGroup but returns an error instead of panicking if CMTaggedBufferGroupFormatDescriptionMatchesTaggedBufferGroup is unavailable at run time.
func TryCMTaggedBufferGroupGetCVPixelBufferAtIndex ¶
func TryCMTaggedBufferGroupGetCVPixelBufferAtIndex(group CMTaggedBufferGroupRef, index int) (corevideo.CVPixelBufferRef, error)
TryCMTaggedBufferGroupGetCVPixelBufferAtIndex is like CMTaggedBufferGroupGetCVPixelBufferAtIndex but returns an error instead of panicking if CMTaggedBufferGroupGetCVPixelBufferAtIndex is unavailable at run time.
func TryCMTaggedBufferGroupGetCVPixelBufferForTag ¶
func TryCMTaggedBufferGroupGetCVPixelBufferForTag(group CMTaggedBufferGroupRef, tag CMTag, indexOut *int) (corevideo.CVPixelBufferRef, error)
TryCMTaggedBufferGroupGetCVPixelBufferForTag is like CMTaggedBufferGroupGetCVPixelBufferForTag but returns an error instead of panicking if CMTaggedBufferGroupGetCVPixelBufferForTag is unavailable at run time.
func TryCMTaggedBufferGroupGetCVPixelBufferForTagCollection ¶
func TryCMTaggedBufferGroupGetCVPixelBufferForTagCollection(group CMTaggedBufferGroupRef, tagCollection CMTagCollectionRef, indexOut *int) (corevideo.CVPixelBufferRef, error)
TryCMTaggedBufferGroupGetCVPixelBufferForTagCollection is like CMTaggedBufferGroupGetCVPixelBufferForTagCollection but returns an error instead of panicking if CMTaggedBufferGroupGetCVPixelBufferForTagCollection is unavailable at run time.
func TryCMTaggedBufferGroupGetTypeID ¶
TryCMTaggedBufferGroupGetTypeID is like CMTaggedBufferGroupGetTypeID but returns an error instead of panicking if CMTaggedBufferGroupGetTypeID is unavailable at run time.
func TryCMTextFormatDescriptionCopyAsBigEndianTextDescriptionBlockBuffer ¶
func TryCMTextFormatDescriptionCopyAsBigEndianTextDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, textFormatDescription CMTextFormatDescriptionRef, flavor CMTextDescriptionFlavor, blockBufferOut *uintptr) (int32, error)
TryCMTextFormatDescriptionCopyAsBigEndianTextDescriptionBlockBuffer is like CMTextFormatDescriptionCopyAsBigEndianTextDescriptionBlockBuffer but returns an error instead of panicking if CMTextFormatDescriptionCopyAsBigEndianTextDescriptionBlockBuffer is unavailable at run time.
func TryCMTextFormatDescriptionCreateFromBigEndianTextDescriptionBlockBuffer ¶
func TryCMTextFormatDescriptionCreateFromBigEndianTextDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, textDescriptionBlockBuffer CMBlockBufferRef, flavor CMTextDescriptionFlavor, mediaType CMMediaType, formatDescriptionOut *CMTextFormatDescriptionRef) (int32, error)
TryCMTextFormatDescriptionCreateFromBigEndianTextDescriptionBlockBuffer is like CMTextFormatDescriptionCreateFromBigEndianTextDescriptionBlockBuffer but returns an error instead of panicking if CMTextFormatDescriptionCreateFromBigEndianTextDescriptionBlockBuffer is unavailable at run time.
func TryCMTextFormatDescriptionCreateFromBigEndianTextDescriptionData ¶
func TryCMTextFormatDescriptionCreateFromBigEndianTextDescriptionData(allocator corefoundation.CFAllocatorRef, textDescriptionData []byte, size uintptr, flavor CMTextDescriptionFlavor, mediaType CMMediaType, formatDescriptionOut *CMTextFormatDescriptionRef) (int32, error)
TryCMTextFormatDescriptionCreateFromBigEndianTextDescriptionData is like CMTextFormatDescriptionCreateFromBigEndianTextDescriptionData but returns an error instead of panicking if CMTextFormatDescriptionCreateFromBigEndianTextDescriptionData is unavailable at run time.
func TryCMTextFormatDescriptionGetDefaultStyle ¶
func TryCMTextFormatDescriptionGetDefaultStyle(desc CMFormatDescriptionRef, localFontIDOut *uint16, boldOut *bool, italicOut *bool, underlineOut *bool, fontSizeOut *float64, colorComponentsOut float64) (int32, error)
TryCMTextFormatDescriptionGetDefaultStyle is like CMTextFormatDescriptionGetDefaultStyle but returns an error instead of panicking if CMTextFormatDescriptionGetDefaultStyle is unavailable at run time.
func TryCMTextFormatDescriptionGetDefaultTextBox ¶
func TryCMTextFormatDescriptionGetDefaultTextBox(desc CMFormatDescriptionRef, originIsAtTopLeft bool, heightOfTextTrack float64, defaultTextBoxOut *corefoundation.CGRect) (int32, error)
TryCMTextFormatDescriptionGetDefaultTextBox is like CMTextFormatDescriptionGetDefaultTextBox but returns an error instead of panicking if CMTextFormatDescriptionGetDefaultTextBox is unavailable at run time.
func TryCMTextFormatDescriptionGetDisplayFlags ¶
func TryCMTextFormatDescriptionGetDisplayFlags(desc CMFormatDescriptionRef, displayFlagsOut *CMTextDisplayFlags) (int32, error)
TryCMTextFormatDescriptionGetDisplayFlags is like CMTextFormatDescriptionGetDisplayFlags but returns an error instead of panicking if CMTextFormatDescriptionGetDisplayFlags is unavailable at run time.
func TryCMTextFormatDescriptionGetFontName ¶
func TryCMTextFormatDescriptionGetFontName(desc CMFormatDescriptionRef, localFontID uint16, fontNameOut *corefoundation.CFStringRef) (int32, error)
TryCMTextFormatDescriptionGetFontName is like CMTextFormatDescriptionGetFontName but returns an error instead of panicking if CMTextFormatDescriptionGetFontName is unavailable at run time.
func TryCMTextFormatDescriptionGetJustification ¶
func TryCMTextFormatDescriptionGetJustification(desc CMFormatDescriptionRef, horizontaJustificationlOut *CMTextJustificationValue, verticalJustificationOut *CMTextJustificationValue) (int32, error)
TryCMTextFormatDescriptionGetJustification is like CMTextFormatDescriptionGetJustification but returns an error instead of panicking if CMTextFormatDescriptionGetJustification is unavailable at run time.
func TryCMTimeCodeFormatDescriptionCopyAsBigEndianTimeCodeDescriptionBlockBuffer ¶
func TryCMTimeCodeFormatDescriptionCopyAsBigEndianTimeCodeDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, timeCodeFormatDescription CMTimeCodeFormatDescriptionRef, flavor CMTimeCodeDescriptionFlavor, blockBufferOut *uintptr) (int32, error)
TryCMTimeCodeFormatDescriptionCopyAsBigEndianTimeCodeDescriptionBlockBuffer is like CMTimeCodeFormatDescriptionCopyAsBigEndianTimeCodeDescriptionBlockBuffer but returns an error instead of panicking if CMTimeCodeFormatDescriptionCopyAsBigEndianTimeCodeDescriptionBlockBuffer is unavailable at run time.
func TryCMTimeCodeFormatDescriptionCreate ¶
func TryCMTimeCodeFormatDescriptionCreate(allocator corefoundation.CFAllocatorRef, timeCodeFormatType CMTimeCodeFormatType, frameDuration CMTime, frameQuanta uint32, flags uint32, extensions corefoundation.CFDictionaryRef, formatDescriptionOut *CMTimeCodeFormatDescriptionRef) (int32, error)
TryCMTimeCodeFormatDescriptionCreate is like CMTimeCodeFormatDescriptionCreate but returns an error instead of panicking if CMTimeCodeFormatDescriptionCreate is unavailable at run time.
func TryCMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionBlockBuffer ¶
func TryCMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, timeCodeDescriptionBlockBuffer CMBlockBufferRef, flavor CMTimeCodeDescriptionFlavor, formatDescriptionOut *CMTimeCodeFormatDescriptionRef) (int32, error)
TryCMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionBlockBuffer is like CMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionBlockBuffer but returns an error instead of panicking if CMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionBlockBuffer is unavailable at run time.
func TryCMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionData ¶
func TryCMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionData(allocator corefoundation.CFAllocatorRef, timeCodeDescriptionData []byte, size uintptr, flavor CMTimeCodeDescriptionFlavor, formatDescriptionOut *CMTimeCodeFormatDescriptionRef) (int32, error)
TryCMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionData is like CMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionData but returns an error instead of panicking if CMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionData is unavailable at run time.
func TryCMTimeCodeFormatDescriptionGetFrameQuanta ¶
func TryCMTimeCodeFormatDescriptionGetFrameQuanta(timeCodeFormatDescription CMTimeCodeFormatDescriptionRef) (uint32, error)
TryCMTimeCodeFormatDescriptionGetFrameQuanta is like CMTimeCodeFormatDescriptionGetFrameQuanta but returns an error instead of panicking if CMTimeCodeFormatDescriptionGetFrameQuanta is unavailable at run time.
func TryCMTimeCodeFormatDescriptionGetTimeCodeFlags ¶
func TryCMTimeCodeFormatDescriptionGetTimeCodeFlags(desc CMTimeCodeFormatDescriptionRef) (uint32, error)
TryCMTimeCodeFormatDescriptionGetTimeCodeFlags is like CMTimeCodeFormatDescriptionGetTimeCodeFlags but returns an error instead of panicking if CMTimeCodeFormatDescriptionGetTimeCodeFlags is unavailable at run time.
func TryCMTimeCompare ¶
TryCMTimeCompare is like CMTimeCompare but returns an error instead of panicking if CMTimeCompare is unavailable at run time.
func TryCMTimeCopyAsDictionary ¶
func TryCMTimeCopyAsDictionary(time CMTime, allocator corefoundation.CFAllocatorRef) (corefoundation.CFDictionaryRef, error)
TryCMTimeCopyAsDictionary is like CMTimeCopyAsDictionary but returns an error instead of panicking if CMTimeCopyAsDictionary is unavailable at run time.
func TryCMTimeCopyDescription ¶
func TryCMTimeCopyDescription(allocator corefoundation.CFAllocatorRef, time CMTime) (corefoundation.CFStringRef, error)
TryCMTimeCopyDescription is like CMTimeCopyDescription but returns an error instead of panicking if CMTimeCopyDescription is unavailable at run time.
func TryCMTimeGetSeconds ¶
TryCMTimeGetSeconds is like CMTimeGetSeconds but returns an error instead of panicking if CMTimeGetSeconds is unavailable at run time.
func TryCMTimeMappingCopyAsDictionary ¶
func TryCMTimeMappingCopyAsDictionary(mapping CMTimeMapping, allocator corefoundation.CFAllocatorRef) (corefoundation.CFDictionaryRef, error)
TryCMTimeMappingCopyAsDictionary is like CMTimeMappingCopyAsDictionary but returns an error instead of panicking if CMTimeMappingCopyAsDictionary is unavailable at run time.
func TryCMTimeMappingCopyDescription ¶
func TryCMTimeMappingCopyDescription(allocator corefoundation.CFAllocatorRef, mapping CMTimeMapping) (corefoundation.CFStringRef, error)
TryCMTimeMappingCopyDescription is like CMTimeMappingCopyDescription but returns an error instead of panicking if CMTimeMappingCopyDescription is unavailable at run time.
func TryCMTimeMappingShow ¶
func TryCMTimeMappingShow(mapping CMTimeMapping) error
TryCMTimeMappingShow is like CMTimeMappingShow but returns an error instead of panicking if CMTimeMappingShow is unavailable at run time.
func TryCMTimeRangeContainsTime ¶
func TryCMTimeRangeContainsTime(range_ CMTimeRange, time CMTime) (bool, error)
TryCMTimeRangeContainsTime is like CMTimeRangeContainsTime but returns an error instead of panicking if CMTimeRangeContainsTime is unavailable at run time.
func TryCMTimeRangeContainsTimeRange ¶
func TryCMTimeRangeContainsTimeRange(range_ CMTimeRange, otherRange CMTimeRange) (bool, error)
TryCMTimeRangeContainsTimeRange is like CMTimeRangeContainsTimeRange but returns an error instead of panicking if CMTimeRangeContainsTimeRange is unavailable at run time.
func TryCMTimeRangeCopyAsDictionary ¶
func TryCMTimeRangeCopyAsDictionary(range_ CMTimeRange, allocator corefoundation.CFAllocatorRef) (corefoundation.CFDictionaryRef, error)
TryCMTimeRangeCopyAsDictionary is like CMTimeRangeCopyAsDictionary but returns an error instead of panicking if CMTimeRangeCopyAsDictionary is unavailable at run time.
func TryCMTimeRangeCopyDescription ¶
func TryCMTimeRangeCopyDescription(allocator corefoundation.CFAllocatorRef, range_ CMTimeRange) (corefoundation.CFStringRef, error)
TryCMTimeRangeCopyDescription is like CMTimeRangeCopyDescription but returns an error instead of panicking if CMTimeRangeCopyDescription is unavailable at run time.
func TryCMTimeRangeEqual ¶
func TryCMTimeRangeEqual(range1 CMTimeRange, range2 CMTimeRange) (bool, error)
TryCMTimeRangeEqual is like CMTimeRangeEqual but returns an error instead of panicking if CMTimeRangeEqual is unavailable at run time.
func TryCMTimeRangeShow ¶
func TryCMTimeRangeShow(range_ CMTimeRange) error
TryCMTimeRangeShow is like CMTimeRangeShow but returns an error instead of panicking if CMTimeRangeShow is unavailable at run time.
func TryCMTimeShow ¶
TryCMTimeShow is like CMTimeShow but returns an error instead of panicking if CMTimeShow is unavailable at run time.
func TryCMTimebaseAddTimer ¶
func TryCMTimebaseAddTimer(timebase CMTimebaseRef, timer corefoundation.CFRunLoopTimerRef, runloop corefoundation.CFRunLoopRef) (int32, error)
TryCMTimebaseAddTimer is like CMTimebaseAddTimer but returns an error instead of panicking if CMTimebaseAddTimer is unavailable at run time.
func TryCMTimebaseAddTimerDispatchSource ¶
func TryCMTimebaseAddTimerDispatchSource(timebase CMTimebaseRef, timerSource dispatch.Source) (int32, error)
TryCMTimebaseAddTimerDispatchSource is like CMTimebaseAddTimerDispatchSource but returns an error instead of panicking if CMTimebaseAddTimerDispatchSource is unavailable at run time.
func TryCMTimebaseCreateWithSourceClock ¶
func TryCMTimebaseCreateWithSourceClock(allocator corefoundation.CFAllocatorRef, sourceClock CMClockRef, timebaseOut *CMTimebaseRef) (int32, error)
TryCMTimebaseCreateWithSourceClock is like CMTimebaseCreateWithSourceClock but returns an error instead of panicking if CMTimebaseCreateWithSourceClock is unavailable at run time.
func TryCMTimebaseCreateWithSourceTimebase ¶
func TryCMTimebaseCreateWithSourceTimebase(allocator corefoundation.CFAllocatorRef, sourceTimebase CMTimebaseRef, timebaseOut *CMTimebaseRef) (int32, error)
TryCMTimebaseCreateWithSourceTimebase is like CMTimebaseCreateWithSourceTimebase but returns an error instead of panicking if CMTimebaseCreateWithSourceTimebase is unavailable at run time.
func TryCMTimebaseGetEffectiveRate ¶
func TryCMTimebaseGetEffectiveRate(timebase CMTimebaseRef) (float64, error)
TryCMTimebaseGetEffectiveRate is like CMTimebaseGetEffectiveRate but returns an error instead of panicking if CMTimebaseGetEffectiveRate is unavailable at run time.
func TryCMTimebaseGetRate ¶
func TryCMTimebaseGetRate(timebase CMTimebaseRef) (float64, error)
TryCMTimebaseGetRate is like CMTimebaseGetRate but returns an error instead of panicking if CMTimebaseGetRate is unavailable at run time.
func TryCMTimebaseGetTimeAndRate ¶
func TryCMTimebaseGetTimeAndRate(timebase CMTimebaseRef, timeOut *CMTime, rateOut *float64) (int32, error)
TryCMTimebaseGetTimeAndRate is like CMTimebaseGetTimeAndRate but returns an error instead of panicking if CMTimebaseGetTimeAndRate is unavailable at run time.
func TryCMTimebaseGetTypeID ¶
TryCMTimebaseGetTypeID is like CMTimebaseGetTypeID but returns an error instead of panicking if CMTimebaseGetTypeID is unavailable at run time.
func TryCMTimebaseNotificationBarrier ¶
func TryCMTimebaseNotificationBarrier(timebase CMTimebaseRef) (int32, error)
TryCMTimebaseNotificationBarrier is like CMTimebaseNotificationBarrier but returns an error instead of panicking if CMTimebaseNotificationBarrier is unavailable at run time.
func TryCMTimebaseRemoveTimer ¶
func TryCMTimebaseRemoveTimer(timebase CMTimebaseRef, timer corefoundation.CFRunLoopTimerRef) (int32, error)
TryCMTimebaseRemoveTimer is like CMTimebaseRemoveTimer but returns an error instead of panicking if CMTimebaseRemoveTimer is unavailable at run time.
func TryCMTimebaseRemoveTimerDispatchSource ¶
func TryCMTimebaseRemoveTimerDispatchSource(timebase CMTimebaseRef, timerSource dispatch.Source) (int32, error)
TryCMTimebaseRemoveTimerDispatchSource is like CMTimebaseRemoveTimerDispatchSource but returns an error instead of panicking if CMTimebaseRemoveTimerDispatchSource is unavailable at run time.
func TryCMTimebaseSetAnchorTime ¶
func TryCMTimebaseSetAnchorTime(timebase CMTimebaseRef, timebaseTime CMTime, immediateSourceTime CMTime) (int32, error)
TryCMTimebaseSetAnchorTime is like CMTimebaseSetAnchorTime but returns an error instead of panicking if CMTimebaseSetAnchorTime is unavailable at run time.
func TryCMTimebaseSetRate ¶
func TryCMTimebaseSetRate(timebase CMTimebaseRef, rate float64) (int32, error)
TryCMTimebaseSetRate is like CMTimebaseSetRate but returns an error instead of panicking if CMTimebaseSetRate is unavailable at run time.
func TryCMTimebaseSetRateAndAnchorTime ¶
func TryCMTimebaseSetRateAndAnchorTime(timebase CMTimebaseRef, rate float64, timebaseTime CMTime, immediateSourceTime CMTime) (int32, error)
TryCMTimebaseSetRateAndAnchorTime is like CMTimebaseSetRateAndAnchorTime but returns an error instead of panicking if CMTimebaseSetRateAndAnchorTime is unavailable at run time.
func TryCMTimebaseSetSourceClock ¶
func TryCMTimebaseSetSourceClock(timebase CMTimebaseRef, newSourceClock CMClockRef) (int32, error)
TryCMTimebaseSetSourceClock is like CMTimebaseSetSourceClock but returns an error instead of panicking if CMTimebaseSetSourceClock is unavailable at run time.
func TryCMTimebaseSetSourceTimebase ¶
func TryCMTimebaseSetSourceTimebase(timebase CMTimebaseRef, newSourceTimebase CMTimebaseRef) (int32, error)
TryCMTimebaseSetSourceTimebase is like CMTimebaseSetSourceTimebase but returns an error instead of panicking if CMTimebaseSetSourceTimebase is unavailable at run time.
func TryCMTimebaseSetTime ¶
func TryCMTimebaseSetTime(timebase CMTimebaseRef, time CMTime) (int32, error)
TryCMTimebaseSetTime is like CMTimebaseSetTime but returns an error instead of panicking if CMTimebaseSetTime is unavailable at run time.
func TryCMTimebaseSetTimerDispatchSourceNextFireTime ¶
func TryCMTimebaseSetTimerDispatchSourceNextFireTime(timebase CMTimebaseRef, timerSource dispatch.Source, fireTime CMTime, flags uint32) (int32, error)
TryCMTimebaseSetTimerDispatchSourceNextFireTime is like CMTimebaseSetTimerDispatchSourceNextFireTime but returns an error instead of panicking if CMTimebaseSetTimerDispatchSourceNextFireTime is unavailable at run time.
func TryCMTimebaseSetTimerDispatchSourceToFireImmediately ¶
func TryCMTimebaseSetTimerDispatchSourceToFireImmediately(timebase CMTimebaseRef, timerSource dispatch.Source) (int32, error)
TryCMTimebaseSetTimerDispatchSourceToFireImmediately is like CMTimebaseSetTimerDispatchSourceToFireImmediately but returns an error instead of panicking if CMTimebaseSetTimerDispatchSourceToFireImmediately is unavailable at run time.
func TryCMTimebaseSetTimerNextFireTime ¶
func TryCMTimebaseSetTimerNextFireTime(timebase CMTimebaseRef, timer corefoundation.CFRunLoopTimerRef, fireTime CMTime, flags uint32) (int32, error)
TryCMTimebaseSetTimerNextFireTime is like CMTimebaseSetTimerNextFireTime but returns an error instead of panicking if CMTimebaseSetTimerNextFireTime is unavailable at run time.
func TryCMTimebaseSetTimerToFireImmediately ¶
func TryCMTimebaseSetTimerToFireImmediately(timebase CMTimebaseRef, timer corefoundation.CFRunLoopTimerRef) (int32, error)
TryCMTimebaseSetTimerToFireImmediately is like CMTimebaseSetTimerToFireImmediately but returns an error instead of panicking if CMTimebaseSetTimerToFireImmediately is unavailable at run time.
func TryCMVideoFormatDescriptionCopyAsBigEndianImageDescriptionBlockBuffer ¶
func TryCMVideoFormatDescriptionCopyAsBigEndianImageDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, videoFormatDescription CMVideoFormatDescriptionRef, stringEncoding uint32, flavor CMImageDescriptionFlavor, blockBufferOut *uintptr) (int32, error)
TryCMVideoFormatDescriptionCopyAsBigEndianImageDescriptionBlockBuffer is like CMVideoFormatDescriptionCopyAsBigEndianImageDescriptionBlockBuffer but returns an error instead of panicking if CMVideoFormatDescriptionCopyAsBigEndianImageDescriptionBlockBuffer is unavailable at run time.
func TryCMVideoFormatDescriptionCopyTagCollectionArray ¶
func TryCMVideoFormatDescriptionCopyTagCollectionArray(formatDescription CMVideoFormatDescriptionRef, tagCollectionsOut *corefoundation.CFArrayRef) (int32, error)
TryCMVideoFormatDescriptionCopyTagCollectionArray is like CMVideoFormatDescriptionCopyTagCollectionArray but returns an error instead of panicking if CMVideoFormatDescriptionCopyTagCollectionArray is unavailable at run time.
func TryCMVideoFormatDescriptionCreate ¶
func TryCMVideoFormatDescriptionCreate(allocator corefoundation.CFAllocatorRef, codecType CMVideoCodecType, width int32, height int32, extensions corefoundation.CFDictionaryRef, formatDescriptionOut *CMVideoFormatDescriptionRef) (int32, error)
TryCMVideoFormatDescriptionCreate is like CMVideoFormatDescriptionCreate but returns an error instead of panicking if CMVideoFormatDescriptionCreate is unavailable at run time.
func TryCMVideoFormatDescriptionCreateForImageBuffer ¶
func TryCMVideoFormatDescriptionCreateForImageBuffer(allocator corefoundation.CFAllocatorRef, imageBuffer corevideo.CVImageBufferRef, formatDescriptionOut *CMVideoFormatDescriptionRef) (int32, error)
TryCMVideoFormatDescriptionCreateForImageBuffer is like CMVideoFormatDescriptionCreateForImageBuffer but returns an error instead of panicking if CMVideoFormatDescriptionCreateForImageBuffer is unavailable at run time.
func TryCMVideoFormatDescriptionCreateFromBigEndianImageDescriptionBlockBuffer ¶
func TryCMVideoFormatDescriptionCreateFromBigEndianImageDescriptionBlockBuffer(allocator corefoundation.CFAllocatorRef, imageDescriptionBlockBuffer CMBlockBufferRef, stringEncoding uint32, flavor CMImageDescriptionFlavor, formatDescriptionOut *CMVideoFormatDescriptionRef) (int32, error)
TryCMVideoFormatDescriptionCreateFromBigEndianImageDescriptionBlockBuffer is like CMVideoFormatDescriptionCreateFromBigEndianImageDescriptionBlockBuffer but returns an error instead of panicking if CMVideoFormatDescriptionCreateFromBigEndianImageDescriptionBlockBuffer is unavailable at run time.
func TryCMVideoFormatDescriptionCreateFromBigEndianImageDescriptionData ¶
func TryCMVideoFormatDescriptionCreateFromBigEndianImageDescriptionData(allocator corefoundation.CFAllocatorRef, imageDescriptionData []byte, size uintptr, stringEncoding uint32, flavor CMImageDescriptionFlavor, formatDescriptionOut *CMVideoFormatDescriptionRef) (int32, error)
TryCMVideoFormatDescriptionCreateFromBigEndianImageDescriptionData is like CMVideoFormatDescriptionCreateFromBigEndianImageDescriptionData but returns an error instead of panicking if CMVideoFormatDescriptionCreateFromBigEndianImageDescriptionData is unavailable at run time.
func TryCMVideoFormatDescriptionCreateFromH264ParameterSets ¶
func TryCMVideoFormatDescriptionCreateFromH264ParameterSets(allocator corefoundation.CFAllocatorRef, parameterSetCount uintptr, parameterSetPointers []byte, parameterSetSizes *uintptr, NALUnitHeaderLength int32, formatDescriptionOut *CMFormatDescriptionRef) (int32, error)
TryCMVideoFormatDescriptionCreateFromH264ParameterSets is like CMVideoFormatDescriptionCreateFromH264ParameterSets but returns an error instead of panicking if CMVideoFormatDescriptionCreateFromH264ParameterSets is unavailable at run time.
func TryCMVideoFormatDescriptionCreateFromHEVCParameterSets ¶
func TryCMVideoFormatDescriptionCreateFromHEVCParameterSets(allocator corefoundation.CFAllocatorRef, parameterSetCount uintptr, parameterSetPointers []byte, parameterSetSizes *uintptr, NALUnitHeaderLength int32, extensions corefoundation.CFDictionaryRef, formatDescriptionOut *CMFormatDescriptionRef) (int32, error)
TryCMVideoFormatDescriptionCreateFromHEVCParameterSets is like CMVideoFormatDescriptionCreateFromHEVCParameterSets but returns an error instead of panicking if CMVideoFormatDescriptionCreateFromHEVCParameterSets is unavailable at run time.
func TryCMVideoFormatDescriptionGetCleanAperture ¶
func TryCMVideoFormatDescriptionGetCleanAperture(videoDesc CMVideoFormatDescriptionRef, originIsAtTopLeft bool) (corefoundation.CGRect, error)
TryCMVideoFormatDescriptionGetCleanAperture is like CMVideoFormatDescriptionGetCleanAperture but returns an error instead of panicking if CMVideoFormatDescriptionGetCleanAperture is unavailable at run time.
func TryCMVideoFormatDescriptionGetExtensionKeysCommonWithImageBuffers ¶
func TryCMVideoFormatDescriptionGetExtensionKeysCommonWithImageBuffers() (corefoundation.CFArrayRef, error)
TryCMVideoFormatDescriptionGetExtensionKeysCommonWithImageBuffers is like CMVideoFormatDescriptionGetExtensionKeysCommonWithImageBuffers but returns an error instead of panicking if CMVideoFormatDescriptionGetExtensionKeysCommonWithImageBuffers is unavailable at run time.
func TryCMVideoFormatDescriptionGetH264ParameterSetAtIndex ¶
func TryCMVideoFormatDescriptionGetH264ParameterSetAtIndex(videoDesc CMFormatDescriptionRef, parameterSetIndex uintptr, parameterSetPointerOut **uint8, parameterSetSizeOut *uintptr, parameterSetCountOut *uintptr, NALUnitHeaderLengthOut *int32) (int32, error)
TryCMVideoFormatDescriptionGetH264ParameterSetAtIndex is like CMVideoFormatDescriptionGetH264ParameterSetAtIndex but returns an error instead of panicking if CMVideoFormatDescriptionGetH264ParameterSetAtIndex is unavailable at run time.
func TryCMVideoFormatDescriptionGetHEVCParameterSetAtIndex ¶
func TryCMVideoFormatDescriptionGetHEVCParameterSetAtIndex(videoDesc CMFormatDescriptionRef, parameterSetIndex uintptr, parameterSetPointerOut **uint8, parameterSetSizeOut *uintptr, parameterSetCountOut *uintptr, NALUnitHeaderLengthOut *int32) (int32, error)
TryCMVideoFormatDescriptionGetHEVCParameterSetAtIndex is like CMVideoFormatDescriptionGetHEVCParameterSetAtIndex but returns an error instead of panicking if CMVideoFormatDescriptionGetHEVCParameterSetAtIndex is unavailable at run time.
func TryCMVideoFormatDescriptionGetPresentationDimensions ¶
func TryCMVideoFormatDescriptionGetPresentationDimensions(videoDesc CMVideoFormatDescriptionRef, usePixelAspectRatio bool, useCleanAperture bool) (corefoundation.CGSize, error)
TryCMVideoFormatDescriptionGetPresentationDimensions is like CMVideoFormatDescriptionGetPresentationDimensions but returns an error instead of panicking if CMVideoFormatDescriptionGetPresentationDimensions is unavailable at run time.
func TryCMVideoFormatDescriptionMatchesImageBuffer ¶
func TryCMVideoFormatDescriptionMatchesImageBuffer(desc CMVideoFormatDescriptionRef, imageBuffer corevideo.CVImageBufferRef) (bool, error)
TryCMVideoFormatDescriptionMatchesImageBuffer is like CMVideoFormatDescriptionMatchesImageBuffer but returns an error instead of panicking if CMVideoFormatDescriptionMatchesImageBuffer is unavailable at run time.
Types ¶
type CMAttachmentBearerRef ¶
type CMAttachmentBearerRef = corefoundation.CFTypeRef
CMAttachmentBearerRef is an object that can carry attachments.
See: https://developer.apple.com/documentation/CoreMedia/CMAttachmentBearer
type CMAttachmentMode ¶
type CMAttachmentMode = uint32
CMAttachmentMode is the mode to use when propagating attachments.
See: https://developer.apple.com/documentation/CoreMedia/CMAttachmentMode
type CMAudioCodecType ¶
type CMAudioCodecType = uint32
CMAudioCodecType is an audio codec type.
See: https://developer.apple.com/documentation/CoreMedia/CMAudioCodecType
const ( // KCMAudioCodecType_AAC_AudibleProtected: Audible’s protected AAC. KCMAudioCodecType_AAC_AudibleProtected CMAudioCodecType = 'a'<<24 | 'a'<<16 | 'a'<<8 | 'c' // 'aaac' // KCMAudioCodecType_AAC_LCProtected: iTMS protected low-complexity AAC. KCMAudioCodecType_AAC_LCProtected CMAudioCodecType = 'p'<<24 | 'a'<<16 | 'a'<<8 | 'c' // 'paac' )
type CMAudioFormatDescriptionMask ¶
type CMAudioFormatDescriptionMask = uint32
CMAudioFormatDescriptionMask is a type for mask bits that represent parts of an audio format description.
See: https://developer.apple.com/documentation/CoreMedia/CMAudioFormatDescriptionMask
const ( // KCMAudioFormatDescriptionMask_All: A mask that represents all parts of an audio format description. KCMAudioFormatDescriptionMask_All CMAudioFormatDescriptionMask = 15 // KCMAudioFormatDescriptionMask_ChannelLayout: A mask that represents the audio channel layout. KCMAudioFormatDescriptionMask_ChannelLayout CMAudioFormatDescriptionMask = 4 // KCMAudioFormatDescriptionMask_Extensions: A mask that represents the format description extensions. KCMAudioFormatDescriptionMask_Extensions CMAudioFormatDescriptionMask = 8 // KCMAudioFormatDescriptionMask_MagicCookie: A mask that represents the magic cookie. KCMAudioFormatDescriptionMask_MagicCookie CMAudioFormatDescriptionMask = 2 // KCMAudioFormatDescriptionMask_StreamBasicDescription: A mask that represents the audio stream description. KCMAudioFormatDescriptionMask_StreamBasicDescription CMAudioFormatDescriptionMask = 1 )
type CMAudioFormatDescriptionRef ¶
type CMAudioFormatDescriptionRef uintptr
CMAudioFormatDescriptionRef is a type you use to interact with audio format descriptions.
See: https://developer.apple.com/documentation/CoreMedia/CMAudioFormatDescription
type CMBaseClassVersion ¶
type CMBaseClassVersion = uint32
See: https://developer.apple.com/documentation/CoreMedia/CMBaseClassVersion
type CMBlockBufferCustomBlockSource ¶
type CMBlockBufferCustomBlockSource struct {
// contains filtered or unexported fields
}
CMBlockBufferCustomBlockSource - A structure to support custom memory allocation and deallocation for a block used in a block buffer.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreMedia/CMBlockBufferCustomBlockSource
func (*CMBlockBufferCustomBlockSource) AllocateBlock ¶
func (s *CMBlockBufferCustomBlockSource) AllocateBlock() uintptr
AllocateBlock returns a raw C code address from the record's packed storage. The address is not callable from Go. To call C through it, use purego to bind a Go function value to the address.
func (*CMBlockBufferCustomBlockSource) FreeBlock ¶
func (s *CMBlockBufferCustomBlockSource) FreeBlock() uintptr
FreeBlock returns a raw C code address from the record's packed storage. The address is not callable from Go. To call C through it, use purego to bind a Go function value to the address.
func (*CMBlockBufferCustomBlockSource) RefCon ¶
func (s *CMBlockBufferCustomBlockSource) RefCon() uintptr
RefCon returns the RefCon field from the record's packed storage.
func (*CMBlockBufferCustomBlockSource) SetAllocateBlock ¶ added in v0.6.17
func (s *CMBlockBufferCustomBlockSource) SetAllocateBlock(v uintptr)
SetAllocateBlock stores a raw C code address in the record's packed storage. Use purego.NewCallback to obtain the address for a Go callback. The callback and its address must outlive every use C can make through this record.
v is stored as a raw address. The storage is a byte array, so the garbage collector scans it as integers and an address written here keeps nothing alive. v must name C-owned memory, or Go memory the caller pins with runtime.Pinner for as long as C reads the record.
func (*CMBlockBufferCustomBlockSource) SetFreeBlock ¶ added in v0.6.17
func (s *CMBlockBufferCustomBlockSource) SetFreeBlock(v uintptr)
SetFreeBlock stores a raw C code address in the record's packed storage. Use purego.NewCallback to obtain the address for a Go callback. The callback and its address must outlive every use C can make through this record.
v is stored as a raw address. The storage is a byte array, so the garbage collector scans it as integers and an address written here keeps nothing alive. v must name C-owned memory, or Go memory the caller pins with runtime.Pinner for as long as C reads the record.
func (*CMBlockBufferCustomBlockSource) SetRefCon ¶ added in v0.6.17
func (s *CMBlockBufferCustomBlockSource) SetRefCon(v uintptr)
SetRefCon updates the RefCon field in the record's packed storage.
v is stored as a raw address. The storage is a byte array, so the garbage collector scans it as integers and an address written here keeps nothing alive. v must name C-owned memory, or Go memory the caller pins with runtime.Pinner for as long as C reads the record.
func (*CMBlockBufferCustomBlockSource) SetVersion ¶ added in v0.6.17
func (s *CMBlockBufferCustomBlockSource) SetVersion(v uint32)
SetVersion updates the Version field in the record's packed storage.
func (*CMBlockBufferCustomBlockSource) Version ¶
func (s *CMBlockBufferCustomBlockSource) Version() uint32
Version returns the Version field from the record's packed storage.
type CMBlockBufferFlags ¶
type CMBlockBufferFlags = uint32
CMBlockBufferFlags is a type for flags that control behaviors and features of block buffer APIs.
See: https://developer.apple.com/documentation/CoreMedia/CMBlockBufferFlags
const ( // KCMBlockBufferAlwaysCopyDataFlag: Used with CMBlockBuffer to cause it to always produce an allocated copy of the desired data. KCMBlockBufferAlwaysCopyDataFlag CMBlockBufferFlags = 2 // KCMBlockBufferAssureMemoryNowFlag: When passed to routines that accept block allocators, causes the memory block to be allocated immediately. KCMBlockBufferAssureMemoryNowFlag CMBlockBufferFlags = 1 // KCMBlockBufferDontOptimizeDepthFlag: Passed to block buffers to suppress reference depth optimization. KCMBlockBufferDontOptimizeDepthFlag CMBlockBufferFlags = 4 // KCMBlockBufferPermitEmptyReferenceFlag: Passed to CMBlockBuffer and CMBlockBuffer to allow references into a [CMBlockBuffer] that may not yet be populated. KCMBlockBufferPermitEmptyReferenceFlag CMBlockBufferFlags = 8 )
type CMBlockBufferRef ¶
type CMBlockBufferRef uintptr
CMBlockBufferRef is a reference to a block buffer instance.
See: https://developer.apple.com/documentation/CoreMedia/CMBlockBuffer
func CMSampleBufferGetDataBuffer ¶
func CMSampleBufferGetDataBuffer(sbuf CMSampleBufferRef) CMBlockBufferRef
CMSampleBufferGetDataBuffer returns a block buffer that contains the media data.
It panics if CMSampleBufferGetDataBuffer is unavailable at run time; use TryCMSampleBufferGetDataBuffer to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSampleBufferGetDataBuffer(_:)
func TryCMSampleBufferGetDataBuffer ¶
func TryCMSampleBufferGetDataBuffer(sbuf CMSampleBufferRef) (CMBlockBufferRef, error)
TryCMSampleBufferGetDataBuffer is like CMSampleBufferGetDataBuffer but returns an error instead of panicking if CMSampleBufferGetDataBuffer is unavailable at run time.
type CMBufferCallbacks ¶
type CMBufferCallbacks struct {
// contains filtered or unexported fields
}
CMBufferCallbacks - A structure that stores the callbacks that perform buffer operations.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreMedia/CMBufferCallbacks
func CMBufferQueueGetCallbacksForSampleBuffersSortedByOutputPTS ¶
func CMBufferQueueGetCallbacksForSampleBuffersSortedByOutputPTS() *CMBufferCallbacks
CMBufferQueueGetCallbacksForSampleBuffersSortedByOutputPTS returns a pointer to a structure that contains callbacks to sort sample buffers by output presentation timestamp.
It panics if CMBufferQueueGetCallbacksForSampleBuffersSortedByOutputPTS is unavailable at run time; use TryCMBufferQueueGetCallbacksForSampleBuffersSortedByOutputPTS to get an error instead.
func CMBufferQueueGetCallbacksForUnsortedSampleBuffers ¶
func CMBufferQueueGetCallbacksForUnsortedSampleBuffers() *CMBufferCallbacks
CMBufferQueueGetCallbacksForUnsortedSampleBuffers returns a pointer to a callback structure for unsorted sample buffers.
It panics if CMBufferQueueGetCallbacksForUnsortedSampleBuffers is unavailable at run time; use TryCMBufferQueueGetCallbacksForUnsortedSampleBuffers to get an error instead.
func TryCMBufferQueueGetCallbacksForSampleBuffersSortedByOutputPTS ¶
func TryCMBufferQueueGetCallbacksForSampleBuffersSortedByOutputPTS() (*CMBufferCallbacks, error)
TryCMBufferQueueGetCallbacksForSampleBuffersSortedByOutputPTS is like CMBufferQueueGetCallbacksForSampleBuffersSortedByOutputPTS but returns an error instead of panicking if CMBufferQueueGetCallbacksForSampleBuffersSortedByOutputPTS is unavailable at run time.
func TryCMBufferQueueGetCallbacksForUnsortedSampleBuffers ¶
func TryCMBufferQueueGetCallbacksForUnsortedSampleBuffers() (*CMBufferCallbacks, error)
TryCMBufferQueueGetCallbacksForUnsortedSampleBuffers is like CMBufferQueueGetCallbacksForUnsortedSampleBuffers but returns an error instead of panicking if CMBufferQueueGetCallbacksForUnsortedSampleBuffers is unavailable at run time.
func (*CMBufferCallbacks) Compare ¶
func (s *CMBufferCallbacks) Compare() uintptr
Compare returns a raw C code address from the record's packed storage. The address is not callable from Go. To call C through it, use purego to bind a Go function value to the address.
func (*CMBufferCallbacks) DataBecameReadyNotification ¶
func (s *CMBufferCallbacks) DataBecameReadyNotification() corefoundation.CFStringRef
DataBecameReadyNotification returns the DataBecameReadyNotification field from the record's packed storage.
func (*CMBufferCallbacks) GetDecodeTimeStamp ¶
func (s *CMBufferCallbacks) GetDecodeTimeStamp() uintptr
GetDecodeTimeStamp returns a raw C code address from the record's packed storage. The address is not callable from Go. To call C through it, use purego to bind a Go function value to the address.
func (*CMBufferCallbacks) GetDuration ¶
func (s *CMBufferCallbacks) GetDuration() uintptr
GetDuration returns a raw C code address from the record's packed storage. The address is not callable from Go. To call C through it, use purego to bind a Go function value to the address.
func (*CMBufferCallbacks) GetPresentationTimeStamp ¶
func (s *CMBufferCallbacks) GetPresentationTimeStamp() uintptr
GetPresentationTimeStamp returns a raw C code address from the record's packed storage. The address is not callable from Go. To call C through it, use purego to bind a Go function value to the address.
func (*CMBufferCallbacks) GetSize ¶
func (s *CMBufferCallbacks) GetSize() uintptr
GetSize returns a raw C code address from the record's packed storage. The address is not callable from Go. To call C through it, use purego to bind a Go function value to the address.
func (*CMBufferCallbacks) IsDataReady ¶
func (s *CMBufferCallbacks) IsDataReady() uintptr
IsDataReady returns a raw C code address from the record's packed storage. The address is not callable from Go. To call C through it, use purego to bind a Go function value to the address.
func (*CMBufferCallbacks) Refcon ¶
func (s *CMBufferCallbacks) Refcon() uintptr
Refcon returns the Refcon field from the record's packed storage.
func (*CMBufferCallbacks) SetCompare ¶ added in v0.6.17
func (s *CMBufferCallbacks) SetCompare(v uintptr)
SetCompare stores a raw C code address in the record's packed storage. Use purego.NewCallback to obtain the address for a Go callback. The callback and its address must outlive every use C can make through this record.
v is stored as a raw address. The storage is a byte array, so the garbage collector scans it as integers and an address written here keeps nothing alive. v must name C-owned memory, or Go memory the caller pins with runtime.Pinner for as long as C reads the record.
func (*CMBufferCallbacks) SetDataBecameReadyNotification ¶ added in v0.6.17
func (s *CMBufferCallbacks) SetDataBecameReadyNotification(v corefoundation.CFStringRef)
SetDataBecameReadyNotification updates the DataBecameReadyNotification field in the record's packed storage.
func (*CMBufferCallbacks) SetGetDecodeTimeStamp ¶ added in v0.6.17
func (s *CMBufferCallbacks) SetGetDecodeTimeStamp(v uintptr)
SetGetDecodeTimeStamp stores a raw C code address in the record's packed storage. Use purego.NewCallback to obtain the address for a Go callback. The callback and its address must outlive every use C can make through this record.
v is stored as a raw address. The storage is a byte array, so the garbage collector scans it as integers and an address written here keeps nothing alive. v must name C-owned memory, or Go memory the caller pins with runtime.Pinner for as long as C reads the record.
func (*CMBufferCallbacks) SetGetDuration ¶ added in v0.6.17
func (s *CMBufferCallbacks) SetGetDuration(v uintptr)
SetGetDuration stores a raw C code address in the record's packed storage. Use purego.NewCallback to obtain the address for a Go callback. The callback and its address must outlive every use C can make through this record.
v is stored as a raw address. The storage is a byte array, so the garbage collector scans it as integers and an address written here keeps nothing alive. v must name C-owned memory, or Go memory the caller pins with runtime.Pinner for as long as C reads the record.
func (*CMBufferCallbacks) SetGetPresentationTimeStamp ¶ added in v0.6.17
func (s *CMBufferCallbacks) SetGetPresentationTimeStamp(v uintptr)
SetGetPresentationTimeStamp stores a raw C code address in the record's packed storage. Use purego.NewCallback to obtain the address for a Go callback. The callback and its address must outlive every use C can make through this record.
v is stored as a raw address. The storage is a byte array, so the garbage collector scans it as integers and an address written here keeps nothing alive. v must name C-owned memory, or Go memory the caller pins with runtime.Pinner for as long as C reads the record.
func (*CMBufferCallbacks) SetGetSize ¶ added in v0.6.17
func (s *CMBufferCallbacks) SetGetSize(v uintptr)
SetGetSize stores a raw C code address in the record's packed storage. Use purego.NewCallback to obtain the address for a Go callback. The callback and its address must outlive every use C can make through this record.
v is stored as a raw address. The storage is a byte array, so the garbage collector scans it as integers and an address written here keeps nothing alive. v must name C-owned memory, or Go memory the caller pins with runtime.Pinner for as long as C reads the record.
func (*CMBufferCallbacks) SetIsDataReady ¶ added in v0.6.17
func (s *CMBufferCallbacks) SetIsDataReady(v uintptr)
SetIsDataReady stores a raw C code address in the record's packed storage. Use purego.NewCallback to obtain the address for a Go callback. The callback and its address must outlive every use C can make through this record.
v is stored as a raw address. The storage is a byte array, so the garbage collector scans it as integers and an address written here keeps nothing alive. v must name C-owned memory, or Go memory the caller pins with runtime.Pinner for as long as C reads the record.
func (*CMBufferCallbacks) SetRefcon ¶ added in v0.6.17
func (s *CMBufferCallbacks) SetRefcon(v uintptr)
SetRefcon updates the Refcon field in the record's packed storage.
v is stored as a raw address. The storage is a byte array, so the garbage collector scans it as integers and an address written here keeps nothing alive. v must name C-owned memory, or Go memory the caller pins with runtime.Pinner for as long as C reads the record.
func (*CMBufferCallbacks) SetVersion ¶ added in v0.6.17
func (s *CMBufferCallbacks) SetVersion(v uint32)
SetVersion updates the Version field in the record's packed storage.
func (*CMBufferCallbacks) Version ¶
func (s *CMBufferCallbacks) Version() uint32
Version returns the Version field from the record's packed storage.
type CMBufferCompareCallback ¶
type CMBufferCompareCallback = func(unsafe.Pointer, unsafe.Pointer, unsafe.Pointer) corefoundation.CFComparisonResult
CMBufferCompareCallback is callback that compares one [CMBuffer] with another.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferCompareCallback
type CMBufferCompareHandler ¶
type CMBufferCompareHandler = func(unsafe.Pointer, unsafe.Pointer) corefoundation.CFComparisonResult
See: https://developer.apple.com/documentation/CoreMedia/CMBufferCompareHandler
type CMBufferGetBooleanCallback ¶
CMBufferGetBooleanCallback is callback that returns a Boolean value from a [CMBuffer].
See: https://developer.apple.com/documentation/CoreMedia/CMBufferGetBooleanCallback
type CMBufferGetBooleanHandler ¶
See: https://developer.apple.com/documentation/CoreMedia/CMBufferGetBooleanHandler
type CMBufferGetSizeCallback ¶
CMBufferGetSizeCallback is a client callback that returns a size.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferGetSizeCallback
type CMBufferGetSizeHandler ¶
See: https://developer.apple.com/documentation/CoreMedia/CMBufferGetSizeHandler
type CMBufferGetTimeCallback ¶
CMBufferGetTimeCallback is callback that returns a CMTime from a [CMBuffer].
See: https://developer.apple.com/documentation/CoreMedia/CMBufferGetTimeCallback
type CMBufferGetTimeHandler ¶
See: https://developer.apple.com/documentation/CoreMedia/CMBufferGetTimeHandler
type CMBufferHandlers ¶
type CMBufferHandlers struct {
Version uintptr // The version number.
GetDecodeTimeStamp CMBufferGetTimeHandler
GetPresentationTimeStamp CMBufferGetTimeHandler
GetDuration CMBufferGetTimeHandler
IsDataReady CMBufferGetBooleanHandler
Compare CMBufferCompareHandler // A handler callback the queue uses to perform an insertion sort of the queue.
DataBecameReadyNotification corefoundation.CFStringRef
GetSize CMBufferGetSizeHandler
}
CMBufferHandlers - A structure that stores the handlers that perform buffer operations.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreMedia/CMBufferHandlers
type CMBufferQueueRef ¶
type CMBufferQueueRef uintptr
CMBufferQueueRef is a reference to a buffer queue instance.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueue
type CMBufferQueueTriggerCallback ¶
type CMBufferQueueTriggerCallback = func(unsafe.Pointer, CMBufferQueueTriggerToken)
CMBufferQueueTriggerCallback is a callback for the system to invoke when a trigger condition becomes true.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueueTriggerCallback
type CMBufferQueueTriggerCondition ¶
type CMBufferQueueTriggerCondition = int32
CMBufferQueueTriggerCondition is a type to specify conditions to associate with a buffer queue trigger.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueueTriggerCondition
const ( // KCMBufferQueueTrigger_WhenBufferCountBecomesGreaterThan: Trigger fires when buffer count becomes > the specified threshold number. KCMBufferQueueTrigger_WhenBufferCountBecomesGreaterThan CMBufferQueueTriggerCondition = 11 // KCMBufferQueueTrigger_WhenBufferCountBecomesLessThan: Trigger fires when buffer count becomes less than the specified threshold number. KCMBufferQueueTrigger_WhenBufferCountBecomesLessThan CMBufferQueueTriggerCondition = 10 // KCMBufferQueueTrigger_WhenDataBecomesReady: Trigger fires when next dequeueable buffer becomes ready (that is, CMBufferQueueDequeueIfDataReady(_:) will now succeed). KCMBufferQueueTrigger_WhenDataBecomesReady CMBufferQueueTriggerCondition = 7 // KCMBufferQueueTrigger_WhenDurationBecomesGreaterThan: Trigger fires when queue duration becomes greater than the specified duration. KCMBufferQueueTrigger_WhenDurationBecomesGreaterThan CMBufferQueueTriggerCondition = 3 // KCMBufferQueueTrigger_WhenDurationBecomesGreaterThanOrEqualTo: Trigger fires when queue duration becomes greater than or equal to the specified duration. KCMBufferQueueTrigger_WhenDurationBecomesGreaterThanOrEqualTo CMBufferQueueTriggerCondition = 4 KCMBufferQueueTrigger_WhenDurationBecomesGreaterThanOrEqualToAndBufferCountBecomesGreaterThan CMBufferQueueTriggerCondition = 12 // KCMBufferQueueTrigger_WhenDurationBecomesLessThan: Trigger fires when queue duration becomes less than the specified duration. KCMBufferQueueTrigger_WhenDurationBecomesLessThan CMBufferQueueTriggerCondition = 1 // KCMBufferQueueTrigger_WhenDurationBecomesLessThanOrEqualTo: Trigger fires when queue duration becomes less than or equal to the specified duration. KCMBufferQueueTrigger_WhenDurationBecomesLessThanOrEqualTo CMBufferQueueTriggerCondition = 2 // KCMBufferQueueTrigger_WhenEndOfDataReached: Trigger fires when CMBufferQueueIsAtEndOfData’s condition becomes true. KCMBufferQueueTrigger_WhenEndOfDataReached CMBufferQueueTriggerCondition = 8 // KCMBufferQueueTrigger_WhenMaxPresentationTimeStampChanges: Trigger fires when the maximum presentation timestamp changes (triggerDuration is ignored). KCMBufferQueueTrigger_WhenMaxPresentationTimeStampChanges CMBufferQueueTriggerCondition = 6 // KCMBufferQueueTrigger_WhenMinPresentationTimeStampChanges: Trigger fires when the minimum presentation timestamp changes (triggerDuration is ignored). KCMBufferQueueTrigger_WhenMinPresentationTimeStampChanges CMBufferQueueTriggerCondition = 5 // KCMBufferQueueTrigger_WhenReset: Trigger fires when CMBufferQueueReset called. KCMBufferQueueTrigger_WhenReset CMBufferQueueTriggerCondition = 9 )
type CMBufferQueueTriggerHandler ¶
CMBufferQueueTriggerHandler is a type alias for a trigger handler.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueueTriggerHandler
type CMBufferQueueTriggerToken ¶
type CMBufferQueueTriggerToken = uintptr
CMBufferQueueTriggerToken is a type alias for a trigger token.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueueTriggerToken
type CMBufferRef ¶
type CMBufferRef = corefoundation.CFTypeRef
CMBufferRef is a reference to a buffer object.
See: https://developer.apple.com/documentation/CoreMedia/CMBuffer
func CMBufferQueueCopyHead ¶
func CMBufferQueueCopyHead(queue CMBufferQueueRef) CMBufferRef
CMBufferQueueCopyHead.
It panics if CMBufferQueueCopyHead is unavailable at run time; use TryCMBufferQueueCopyHead to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueueCopyHead(_:)
func CMBufferQueueDequeueAndRetain ¶
func CMBufferQueueDequeueAndRetain(queue CMBufferQueueRef) CMBufferRef
CMBufferQueueDequeueAndRetain dequeues a buffer from a queue.
It panics if CMBufferQueueDequeueAndRetain is unavailable at run time; use TryCMBufferQueueDequeueAndRetain to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueueDequeue(_:)
func CMBufferQueueDequeueIfDataReadyAndRetain ¶
func CMBufferQueueDequeueIfDataReadyAndRetain(queue CMBufferQueueRef) CMBufferRef
CMBufferQueueDequeueIfDataReadyAndRetain dequeues a buffer from a queue, if it’s ready.
It panics if CMBufferQueueDequeueIfDataReadyAndRetain is unavailable at run time; use TryCMBufferQueueDequeueIfDataReadyAndRetain to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueueDequeueIfDataReady(_:)
func CMBufferQueueGetHead
deprecated
func CMBufferQueueGetHead(queue CMBufferQueueRef) CMBufferRef
CMBufferQueueGetHead retrieves the next buffer from a queue, but doesn’t remove it.
It panics if CMBufferQueueGetHead is unavailable at run time; use TryCMBufferQueueGetHead to get an error instead.
Deprecated: Deprecated since macOS 15.0.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueueGetHead(_:)
func TryCMBufferQueueCopyHead ¶
func TryCMBufferQueueCopyHead(queue CMBufferQueueRef) (CMBufferRef, error)
TryCMBufferQueueCopyHead is like CMBufferQueueCopyHead but returns an error instead of panicking if CMBufferQueueCopyHead is unavailable at run time.
func TryCMBufferQueueDequeueAndRetain ¶
func TryCMBufferQueueDequeueAndRetain(queue CMBufferQueueRef) (CMBufferRef, error)
TryCMBufferQueueDequeueAndRetain is like CMBufferQueueDequeueAndRetain but returns an error instead of panicking if CMBufferQueueDequeueAndRetain is unavailable at run time.
func TryCMBufferQueueDequeueIfDataReadyAndRetain ¶
func TryCMBufferQueueDequeueIfDataReadyAndRetain(queue CMBufferQueueRef) (CMBufferRef, error)
TryCMBufferQueueDequeueIfDataReadyAndRetain is like CMBufferQueueDequeueIfDataReadyAndRetain but returns an error instead of panicking if CMBufferQueueDequeueIfDataReadyAndRetain is unavailable at run time.
func TryCMBufferQueueGetHead ¶
func TryCMBufferQueueGetHead(queue CMBufferQueueRef) (CMBufferRef, error)
TryCMBufferQueueGetHead is like CMBufferQueueGetHead but returns an error instead of panicking if CMBufferQueueGetHead is unavailable at run time.
type CMBufferValidationCallback ¶
CMBufferValidationCallback is a type alias for a callback that tests whether a buffer is in a valid state to add to a queue.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferValidationCallback
type CMBufferValidationHandler ¶
CMBufferValidationHandler is a type alias for a handler that tests whether a buffer is in a valid state to add to a queue.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferValidationHandler
type CMClockOrTimebaseRef ¶
type CMClockOrTimebaseRef = corefoundation.CFTypeRef
CMClockOrTimebaseRef is a type you use in argument lists and function results to indicate that you can pass either a clock or timebase.
See: https://developer.apple.com/documentation/CoreMedia/CMClockOrTimebase
func CMTimebaseCopySource ¶
func CMTimebaseCopySource(timebase CMTimebaseRef) CMClockOrTimebaseRef
CMTimebaseCopySource returns the immediate source — either a clock or timebase — of a timebase.
It panics if CMTimebaseCopySource is unavailable at run time; use TryCMTimebaseCopySource to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimebaseCopySource(_:)
func CMTimebaseGetMaster
deprecated
func CMTimebaseGetMaster(timebase CMTimebaseRef) CMClockOrTimebaseRef
CMTimebaseGetMaster returns the immediate host (either timebase or clock) of a timebase.
It panics if CMTimebaseGetMaster is unavailable at run time; use TryCMTimebaseGetMaster to get an error instead.
Deprecated: Deprecated since macOS 10.11. Use [CMTimebaseCopySource(_:)](<https://developer.apple.com/documentation/CoreMedia/CMTimebaseCopySource(_:)>) instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimebaseGetMaster(_:)
func TryCMTimebaseCopySource ¶
func TryCMTimebaseCopySource(timebase CMTimebaseRef) (CMClockOrTimebaseRef, error)
TryCMTimebaseCopySource is like CMTimebaseCopySource but returns an error instead of panicking if CMTimebaseCopySource is unavailable at run time.
func TryCMTimebaseGetMaster ¶
func TryCMTimebaseGetMaster(timebase CMTimebaseRef) (CMClockOrTimebaseRef, error)
TryCMTimebaseGetMaster is like CMTimebaseGetMaster but returns an error instead of panicking if CMTimebaseGetMaster is unavailable at run time.
type CMClockRef ¶
type CMClockRef uintptr
CMClockRef is an object that represents a source of time.
See: https://developer.apple.com/documentation/CoreMedia/CMClock
func CMClockGetHostTimeClock ¶
func CMClockGetHostTimeClock() CMClockRef
CMClockGetHostTimeClock returns a reference to the singleton clock that reflects the host time.
It panics if CMClockGetHostTimeClock is unavailable at run time; use TryCMClockGetHostTimeClock to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMClockGetHostTimeClock()
func CMTimebaseCopySourceClock ¶
func CMTimebaseCopySourceClock(timebase CMTimebaseRef) CMClockRef
CMTimebaseCopySourceClock returns the immediate source clock of a timebase.
It panics if CMTimebaseCopySourceClock is unavailable at run time; use TryCMTimebaseCopySourceClock to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimebaseCopySourceClock(_:)
func CMTimebaseCopyUltimateSourceClock ¶
func CMTimebaseCopyUltimateSourceClock(timebase CMTimebaseRef) CMClockRef
CMTimebaseCopyUltimateSourceClock returns the source clock that’s the source of all of a timebase’s source timebases.
It panics if CMTimebaseCopyUltimateSourceClock is unavailable at run time; use TryCMTimebaseCopyUltimateSourceClock to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimebaseCopyUltimateSourceClock(_:)
func CMTimebaseGetMasterClock
deprecated
func CMTimebaseGetMasterClock(timebase CMTimebaseRef) CMClockRef
CMTimebaseGetMasterClock returns the immediate host clock of a timebase.
It panics if CMTimebaseGetMasterClock is unavailable at run time; use TryCMTimebaseGetMasterClock to get an error instead.
Deprecated: Deprecated since macOS 10.11. Use [CMTimebaseCopySourceClock(_:)](<https://developer.apple.com/documentation/CoreMedia/CMTimebaseCopySourceClock(_:)>) instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimebaseGetMasterClock(_:)
func CMTimebaseGetUltimateMasterClock
deprecated
func CMTimebaseGetUltimateMasterClock(timebase CMTimebaseRef) CMClockRef
CMTimebaseGetUltimateMasterClock returns the host clock that is the host of all of a timebase’s host timebases.
It panics if CMTimebaseGetUltimateMasterClock is unavailable at run time; use TryCMTimebaseGetUltimateMasterClock to get an error instead.
Deprecated: Deprecated since macOS 10.11. Use [CMTimebaseCopyUltimateSourceClock(_:)](<https://developer.apple.com/documentation/CoreMedia/CMTimebaseCopyUltimateSourceClock(_:)>) instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimebaseGetUltimateMasterClock(_:)
func TryCMClockGetHostTimeClock ¶
func TryCMClockGetHostTimeClock() (CMClockRef, error)
TryCMClockGetHostTimeClock is like CMClockGetHostTimeClock but returns an error instead of panicking if CMClockGetHostTimeClock is unavailable at run time.
func TryCMTimebaseCopySourceClock ¶
func TryCMTimebaseCopySourceClock(timebase CMTimebaseRef) (CMClockRef, error)
TryCMTimebaseCopySourceClock is like CMTimebaseCopySourceClock but returns an error instead of panicking if CMTimebaseCopySourceClock is unavailable at run time.
func TryCMTimebaseCopyUltimateSourceClock ¶
func TryCMTimebaseCopyUltimateSourceClock(timebase CMTimebaseRef) (CMClockRef, error)
TryCMTimebaseCopyUltimateSourceClock is like CMTimebaseCopyUltimateSourceClock but returns an error instead of panicking if CMTimebaseCopyUltimateSourceClock is unavailable at run time.
func TryCMTimebaseGetMasterClock ¶
func TryCMTimebaseGetMasterClock(timebase CMTimebaseRef) (CMClockRef, error)
TryCMTimebaseGetMasterClock is like CMTimebaseGetMasterClock but returns an error instead of panicking if CMTimebaseGetMasterClock is unavailable at run time.
func TryCMTimebaseGetUltimateMasterClock ¶
func TryCMTimebaseGetUltimateMasterClock(timebase CMTimebaseRef) (CMClockRef, error)
TryCMTimebaseGetUltimateMasterClock is like CMTimebaseGetUltimateMasterClock but returns an error instead of panicking if CMTimebaseGetUltimateMasterClock is unavailable at run time.
type CMClosedCaptionDescriptionFlavor ¶
type CMClosedCaptionDescriptionFlavor = corefoundation.CFStringRef
CMClosedCaptionDescriptionFlavor is types that represent closed caption format descriptions.
See: https://developer.apple.com/documentation/CoreMedia/CMClosedCaptionDescriptionFlavor
type CMClosedCaptionFormatDescriptionRef ¶
type CMClosedCaptionFormatDescriptionRef uintptr
CMClosedCaptionFormatDescriptionRef is a type you use to interact with closed caption format descriptions.
See: https://developer.apple.com/documentation/CoreMedia/CMClosedCaptionFormatDescription
type CMClosedCaptionFormatType ¶
type CMClosedCaptionFormatType = uint32
CMClosedCaptionFormatType is a closed caption format type.
See: https://developer.apple.com/documentation/CoreMedia/CMClosedCaptionFormatType
const ( // KCMClosedCaptionFormatType_ATSC: A type that describes ATSC-compliant samples. KCMClosedCaptionFormatType_ATSC CMClosedCaptionFormatType = 'a'<<24 | 't'<<16 | 'c'<<8 | 'c' // 'atcc' // KCMClosedCaptionFormatType_CEA608: A type that describes CEA 608-compliant samples. KCMClosedCaptionFormatType_CEA608 CMClosedCaptionFormatType = 'c'<<24 | '6'<<16 | '0'<<8 | '8' // 'c608' // KCMClosedCaptionFormatType_CEA708: A type that describes CEA 708-compliant samples. KCMClosedCaptionFormatType_CEA708 CMClosedCaptionFormatType = 'c'<<24 | '7'<<16 | '0'<<8 | '8' // 'c708' )
type CMFormatDescriptionRef ¶
type CMFormatDescriptionRef uintptr
CMFormatDescriptionRef is an object that describes a media format descriptor.
See: https://developer.apple.com/documentation/CoreMedia/CMFormatDescription
func CMSampleBufferGetFormatDescription ¶
func CMSampleBufferGetFormatDescription(sbuf CMSampleBufferRef) CMFormatDescriptionRef
CMSampleBufferGetFormatDescription returns the format description of the samples in a sample buffer.
It panics if CMSampleBufferGetFormatDescription is unavailable at run time; use TryCMSampleBufferGetFormatDescription to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSampleBufferGetFormatDescription(_:)
func TryCMSampleBufferGetFormatDescription ¶
func TryCMSampleBufferGetFormatDescription(sbuf CMSampleBufferRef) (CMFormatDescriptionRef, error)
TryCMSampleBufferGetFormatDescription is like CMSampleBufferGetFormatDescription but returns an error instead of panicking if CMSampleBufferGetFormatDescription is unavailable at run time.
type CMImageDescriptionFlavor ¶
type CMImageDescriptionFlavor = corefoundation.CFStringRef
CMImageDescriptionFlavor is types that represent image format descriptions.
See: https://developer.apple.com/documentation/CoreMedia/CMImageDescriptionFlavor
var ( // KCMImageDescriptionFlavor_3GPFamily is an image description that selects the 3GP family sample format. // // See: https://developer.apple.com/documentation/CoreMedia/CMImageDescriptionFlavor/mobile3GPFamily KCMImageDescriptionFlavor_3GPFamily CMImageDescriptionFlavor // See: https://developer.apple.com/documentation/CoreMedia/CMImageDescriptionFlavor/isoFamily KCMImageDescriptionFlavor_ISOFamily CMImageDescriptionFlavor // See: https://developer.apple.com/documentation/CoreMedia/CMImageDescriptionFlavor/isoFamilyWithAppleExtensions KCMImageDescriptionFlavor_ISOFamilyWithAppleExtensions CMImageDescriptionFlavor // KCMImageDescriptionFlavor_QuickTimeMovie is an image description that selects the QuickTime format. // // See: https://developer.apple.com/documentation/CoreMedia/CMImageDescriptionFlavor/quickTimeMovie KCMImageDescriptionFlavor_QuickTimeMovie CMImageDescriptionFlavor )
type CMItemCount ¶
type CMItemCount = int
CMItemCount is a datatype that represents an item count.
See: https://developer.apple.com/documentation/CoreMedia/CMItemCount
func CMBufferQueueGetBufferCount ¶
func CMBufferQueueGetBufferCount(queue CMBufferQueueRef) CMItemCount
CMBufferQueueGetBufferCount gets the number of buffers in the queue.
It panics if CMBufferQueueGetBufferCount is unavailable at run time; use TryCMBufferQueueGetBufferCount to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueueGetBufferCount(_:)
func CMSampleBufferGetNumSamples ¶
func CMSampleBufferGetNumSamples(sbuf CMSampleBufferRef) CMItemCount
CMSampleBufferGetNumSamples returns the number of media samples in a sample buffer.
It panics if CMSampleBufferGetNumSamples is unavailable at run time; use TryCMSampleBufferGetNumSamples to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSampleBufferGetNumSamples(_:)
func CMTagCollectionCountTagsWithFilterFunction ¶
func CMTagCollectionCountTagsWithFilterFunction(tagCollection CMTagCollectionRef, filterApplier CMTagCollectionTagFilterFunction, context unsafe.Pointer) CMItemCount
CMTagCollectionCountTagsWithFilterFunction counts the number of tags in a collection matching an evaluation function.
It panics if CMTagCollectionCountTagsWithFilterFunction is unavailable at run time; use TryCMTagCollectionCountTagsWithFilterFunction to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionCountTagsWithFilterFunction
func CMTagCollectionGetCount ¶
func CMTagCollectionGetCount(tagCollection CMTagCollectionRef) CMItemCount
CMTagCollectionGetCount gets the number of tags in a tag collection.
It panics if CMTagCollectionGetCount is unavailable at run time; use TryCMTagCollectionGetCount to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionGetCount
func CMTagCollectionGetCountOfCategory ¶
func CMTagCollectionGetCountOfCategory(tagCollection CMTagCollectionRef, category CMTagCategory) CMItemCount
CMTagCollectionGetCountOfCategory retrieves the number of tags in the collection matching a given category.
It panics if CMTagCollectionGetCountOfCategory is unavailable at run time; use TryCMTagCollectionGetCountOfCategory to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionGetCountOfCategory
func CMTaggedBufferGroupGetCount ¶
func CMTaggedBufferGroupGetCount(group CMTaggedBufferGroupRef) CMItemCount
CMTaggedBufferGroupGetCount gets the number of buffers contained within a tagged buffer group.
It panics if CMTaggedBufferGroupGetCount is unavailable at run time; use TryCMTaggedBufferGroupGetCount to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTaggedBufferGroupGetCount
func CMTaggedBufferGroupGetNumberOfMatchesForTagCollection ¶
func CMTaggedBufferGroupGetNumberOfMatchesForTagCollection(group CMTaggedBufferGroupRef, tagCollection CMTagCollectionRef) CMItemCount
CMTaggedBufferGroupGetNumberOfMatchesForTagCollection gets the number of buffers in the group associated with a given tag collection.
It panics if CMTaggedBufferGroupGetNumberOfMatchesForTagCollection is unavailable at run time; use TryCMTaggedBufferGroupGetNumberOfMatchesForTagCollection to get an error instead.
func TryCMBufferQueueGetBufferCount ¶
func TryCMBufferQueueGetBufferCount(queue CMBufferQueueRef) (CMItemCount, error)
TryCMBufferQueueGetBufferCount is like CMBufferQueueGetBufferCount but returns an error instead of panicking if CMBufferQueueGetBufferCount is unavailable at run time.
func TryCMSampleBufferGetNumSamples ¶
func TryCMSampleBufferGetNumSamples(sbuf CMSampleBufferRef) (CMItemCount, error)
TryCMSampleBufferGetNumSamples is like CMSampleBufferGetNumSamples but returns an error instead of panicking if CMSampleBufferGetNumSamples is unavailable at run time.
func TryCMTagCollectionCountTagsWithFilterFunction ¶
func TryCMTagCollectionCountTagsWithFilterFunction(tagCollection CMTagCollectionRef, filterApplier CMTagCollectionTagFilterFunction, context unsafe.Pointer) (CMItemCount, error)
TryCMTagCollectionCountTagsWithFilterFunction is like CMTagCollectionCountTagsWithFilterFunction but returns an error instead of panicking if CMTagCollectionCountTagsWithFilterFunction is unavailable at run time.
func TryCMTagCollectionGetCount ¶
func TryCMTagCollectionGetCount(tagCollection CMTagCollectionRef) (CMItemCount, error)
TryCMTagCollectionGetCount is like CMTagCollectionGetCount but returns an error instead of panicking if CMTagCollectionGetCount is unavailable at run time.
func TryCMTagCollectionGetCountOfCategory ¶
func TryCMTagCollectionGetCountOfCategory(tagCollection CMTagCollectionRef, category CMTagCategory) (CMItemCount, error)
TryCMTagCollectionGetCountOfCategory is like CMTagCollectionGetCountOfCategory but returns an error instead of panicking if CMTagCollectionGetCountOfCategory is unavailable at run time.
func TryCMTaggedBufferGroupGetCount ¶
func TryCMTaggedBufferGroupGetCount(group CMTaggedBufferGroupRef) (CMItemCount, error)
TryCMTaggedBufferGroupGetCount is like CMTaggedBufferGroupGetCount but returns an error instead of panicking if CMTaggedBufferGroupGetCount is unavailable at run time.
func TryCMTaggedBufferGroupGetNumberOfMatchesForTagCollection ¶
func TryCMTaggedBufferGroupGetNumberOfMatchesForTagCollection(group CMTaggedBufferGroupRef, tagCollection CMTagCollectionRef) (CMItemCount, error)
TryCMTaggedBufferGroupGetNumberOfMatchesForTagCollection is like CMTaggedBufferGroupGetNumberOfMatchesForTagCollection but returns an error instead of panicking if CMTaggedBufferGroupGetNumberOfMatchesForTagCollection is unavailable at run time.
type CMItemIndex ¶
type CMItemIndex = int
CMItemIndex is a datatype that represents an item index.
See: https://developer.apple.com/documentation/CoreMedia/CMItemIndex
type CMMediaType ¶
type CMMediaType = uint32
CMMediaType is constants that represent media types.
See: https://developer.apple.com/documentation/CoreMedia/CMMediaType
const ( // KCMMediaType_Audio: Audio media. KCMMediaType_Audio CMMediaType = 's'<<24 | 'o'<<16 | 'u'<<8 | 'n' // 'soun' KCMMediaType_AuxiliaryPicture CMMediaType = 'a'<<24 | 'u'<<16 | 'x'<<8 | 'v' // 'auxv' // KCMMediaType_ClosedCaption: Closed-caption media. KCMMediaType_ClosedCaption CMMediaType = 'c'<<24 | 'l'<<16 | 'c'<<8 | 'p' // 'clcp' // KCMMediaType_Metadata: Meta data. KCMMediaType_Metadata CMMediaType = 'm'<<24 | 'e'<<16 | 't'<<8 | 'a' // 'meta' // KCMMediaType_Muxed: Muxed media. KCMMediaType_Muxed CMMediaType = 'm'<<24 | 'u'<<16 | 'x'<<8 | 'x' // 'muxx' // KCMMediaType_Subtitle: Subtitle media. KCMMediaType_Subtitle CMMediaType = 's'<<24 | 'b'<<16 | 't'<<8 | 'l' // 'sbtl' // KCMMediaType_TaggedBufferGroup: Media containing a tagged buffer group. KCMMediaType_TaggedBufferGroup CMMediaType = 't'<<24 | 'b'<<16 | 'g'<<8 | 'r' // 'tbgr' // KCMMediaType_Text: Text media. KCMMediaType_Text CMMediaType = 't'<<24 | 'e'<<16 | 'x'<<8 | 't' // 'text' // KCMMediaType_TimeCode: Time code media. KCMMediaType_TimeCode CMMediaType = 't'<<24 | 'm'<<16 | 'c'<<8 | 'd' // 'tmcd' // KCMMediaType_Video: Video media. KCMMediaType_Video CMMediaType = 'v'<<24 | 'i'<<16 | 'd'<<8 | 'e' // 'vide' )
func CMFormatDescriptionGetMediaType ¶
func CMFormatDescriptionGetMediaType(desc CMFormatDescriptionRef) CMMediaType
CMFormatDescriptionGetMediaType returns the media type of a format description.
It panics if CMFormatDescriptionGetMediaType is unavailable at run time; use TryCMFormatDescriptionGetMediaType to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMFormatDescriptionGetMediaType(_:)
func TryCMFormatDescriptionGetMediaType ¶
func TryCMFormatDescriptionGetMediaType(desc CMFormatDescriptionRef) (CMMediaType, error)
TryCMFormatDescriptionGetMediaType is like CMFormatDescriptionGetMediaType but returns an error instead of panicking if CMFormatDescriptionGetMediaType is unavailable at run time.
type CMMemoryPoolRef ¶
type CMMemoryPoolRef uintptr
CMMemoryPoolRef is an instance that optimizes memory allocation when working with large blocks of memory.
See: https://developer.apple.com/documentation/CoreMedia/CMMemoryPool
func CMMemoryPoolCreate ¶
func CMMemoryPoolCreate(options corefoundation.CFDictionaryRef) CMMemoryPoolRef
CMMemoryPoolCreate creates a memory pool.
It panics if CMMemoryPoolCreate is unavailable at run time; use TryCMMemoryPoolCreate to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMMemoryPoolCreate(options:)
func TryCMMemoryPoolCreate ¶
func TryCMMemoryPoolCreate(options corefoundation.CFDictionaryRef) (CMMemoryPoolRef, error)
TryCMMemoryPoolCreate is like CMMemoryPoolCreate but returns an error instead of panicking if CMMemoryPoolCreate is unavailable at run time.
type CMMetadataDescriptionFlavor ¶
type CMMetadataDescriptionFlavor = corefoundation.CFStringRef
CMMetadataDescriptionFlavor is types that represent metadata format descriptions.
See: https://developer.apple.com/documentation/CoreMedia/CMMetadataDescriptionFlavor
type CMMetadataFormatDescriptionRef ¶
type CMMetadataFormatDescriptionRef uintptr
CMMetadataFormatDescriptionRef is a type you use to interact with metadata format descriptions.
See: https://developer.apple.com/documentation/CoreMedia/CMMetadataFormatDescription
type CMMetadataFormatType ¶
type CMMetadataFormatType = uint32
CMMetadataFormatType is a metadata format type.
See: https://developer.apple.com/documentation/CoreMedia/CMMetadataFormatType
const ( // KCMMetadataFormatType_Boxed: CoreMedia boxed format. KCMMetadataFormatType_Boxed CMMetadataFormatType = 'm'<<24 | 'e'<<16 | 'b'<<8 | 'x' // 'mebx' KCMMetadataFormatType_EMSG CMMetadataFormatType = 'e'<<24 | 'm'<<16 | 's'<<8 | 'g' // 'emsg' // KCMMetadataFormatType_ICY: SHOUTCast format. KCMMetadataFormatType_ICY CMMetadataFormatType = 'i'<<24 | 'c'<<16 | 'y'<<8 | ' ' // 'icy ' // KCMMetadataFormatType_ID3: ID3 format. KCMMetadataFormatType_ID3 CMMetadataFormatType = 'i'<<24 | 'd'<<16 | '3'<<8 | ' ' // 'id3 ' )
type CMMutableTagCollectionRef ¶
type CMMutableTagCollectionRef uintptr
CMMutableTagCollectionRef is a mutable reference to a tag collection.
See: https://developer.apple.com/documentation/CoreMedia/CMMutableTagCollectionRef
type CMMuxedFormatDescriptionRef ¶
type CMMuxedFormatDescriptionRef uintptr
CMMuxedFormatDescriptionRef is a type you use to interact with muxed format descriptions.
See: https://developer.apple.com/documentation/CoreMedia/CMMuxedFormatDescription
type CMMuxedStreamType ¶
type CMMuxedStreamType = uint32
CMMuxedStreamType is a datatype that represents a muxed stream of data.
See: https://developer.apple.com/documentation/CoreMedia/CMMuxedStreamType
const ( // KCMMuxedStreamType_DV: DV stream. KCMMuxedStreamType_DV CMMuxedStreamType = 'd'<<24 | 'v'<<16 | ' '<<8 | ' ' // 'dv ' KCMMuxedStreamType_EmbeddedDeviceScreenRecording CMMuxedStreamType = 'i'<<24 | 's'<<16 | 'r'<<8 | ' ' // 'isr ' // KCMMuxedStreamType_MPEG1System: MPEG-1 System stream. KCMMuxedStreamType_MPEG1System CMMuxedStreamType = 'm'<<24 | 'p'<<16 | '1'<<8 | 's' // 'mp1s' // KCMMuxedStreamType_MPEG2Program: MPEG-2 Program stream. KCMMuxedStreamType_MPEG2Program CMMuxedStreamType = 'm'<<24 | 'p'<<16 | '2'<<8 | 'p' // 'mp2p' // KCMMuxedStreamType_MPEG2Transport: MPEG-2 Transport stream. KCMMuxedStreamType_MPEG2Transport CMMuxedStreamType = 'm'<<24 | 'p'<<16 | '2'<<8 | 't' // 'mp2t' )
type CMPackingType ¶
type CMPackingType uint64
See: https://developer.apple.com/documentation/CoreMedia/CMPackingType
const ( // KCMPackingType_None: Each frame contains only a single image, and isn’t frame-packed. KCMPackingType_None CMPackingType = 'n'<<24 | 'o'<<16 | 'n'<<8 | 'e' // 'none' // KCMPackingType_OverUnder: The video contains packed frames that have a left eye image on the top and right eye image on the bottom. KCMPackingType_OverUnder CMPackingType = 'o'<<24 | 'v'<<16 | 'e'<<8 | 'r' // 'over' // KCMPackingType_SideBySide: The video contains packed frames that have a left eye image on the left and right eye image on the right. KCMPackingType_SideBySide CMPackingType = 's'<<24 | 'i'<<16 | 'd'<<8 | 'e' // 'side' )
func (CMPackingType) String ¶
func (e CMPackingType) String() string
type CMPersistentTrackID ¶
type CMPersistentTrackID = int32
CMPersistentTrackID is a datatype that represents a persistent track identifier.
See: https://developer.apple.com/documentation/CoreMedia/CMPersistentTrackID
const ( // KCMPersistentTrackID_Invalid: Indicates an invalid track ID. KCMPersistentTrackID_Invalid CMPersistentTrackID = 0 )
type CMPixelFormatType ¶
type CMPixelFormatType = uint32
CMPixelFormatType is a pixel format type.
See: https://developer.apple.com/documentation/CoreMedia/CMPixelFormatType
const ( // KCMPixelFormat_16BE555: A type that describes 16-bit big-endian 5-5-5. KCMPixelFormat_16BE555 CMPixelFormatType = 16 // KCMPixelFormat_16BE565: A type that describes 16-bit big-endian 5-6-5. KCMPixelFormat_16BE565 CMPixelFormatType = 'B'<<24 | '5'<<16 | '6'<<8 | '5' // 'B565' // KCMPixelFormat_16LE555: A type that describes 16-bit little-endian 5-5-5. KCMPixelFormat_16LE555 CMPixelFormatType = 'L'<<24 | '5'<<16 | '5'<<8 | '5' // 'L555' // KCMPixelFormat_16LE5551: A type that describes 16-bit little-endian 5-5-5-1. KCMPixelFormat_16LE5551 CMPixelFormatType = '5'<<24 | '5'<<16 | '5'<<8 | '1' // '5551' // KCMPixelFormat_16LE565: A type that describes 16-bit little-endian 5-6-5. KCMPixelFormat_16LE565 CMPixelFormatType = 'L'<<24 | '5'<<16 | '6'<<8 | '5' // 'L565' // KCMPixelFormat_24RGB: A type that describes 24-bit RGB. KCMPixelFormat_24RGB CMPixelFormatType = 24 // KCMPixelFormat_32ARGB: A type that describes 32-bit ARGB. KCMPixelFormat_32ARGB CMPixelFormatType = 32 // KCMPixelFormat_32BGRA: A type that describes 32-bit BGRA. KCMPixelFormat_32BGRA CMPixelFormatType = 'B'<<24 | 'G'<<16 | 'R'<<8 | 'A' // 'BGRA' // KCMPixelFormat_422YpCbCr10: A type that describes component Y’CbCr 10-bit 4:2:2. KCMPixelFormat_422YpCbCr10 CMPixelFormatType = 'v'<<24 | '2'<<16 | '1'<<8 | '0' // 'v210' // KCMPixelFormat_422YpCbCr16: A type that describes component Y’CbCr 10,12,14,16-bit 4:2:2. KCMPixelFormat_422YpCbCr16 CMPixelFormatType = 'v'<<24 | '2'<<16 | '1'<<8 | '6' // 'v216' // KCMPixelFormat_422YpCbCr8: A type that describes component Y’CbCr 8-bit 4:2:2 ordered Cb Y’0 Cr Y’1. KCMPixelFormat_422YpCbCr8 CMPixelFormatType = '2'<<24 | 'v'<<16 | 'u'<<8 | 'y' // '2vuy' // KCMPixelFormat_422YpCbCr8_yuvs: A type that describes component Y’CbCr 8-bit 4:2:2 ordered Y’0 Cb Y’1 Cr. KCMPixelFormat_422YpCbCr8_yuvs CMPixelFormatType = 'y'<<24 | 'u'<<16 | 'v'<<8 | 's' // 'yuvs' // KCMPixelFormat_4444YpCbCrA8: A type that describes component Y’CbCrA 8-bit 4:4:4:4. KCMPixelFormat_4444YpCbCrA8 CMPixelFormatType = 'v'<<24 | '4'<<16 | '0'<<8 | '8' // 'v408' // KCMPixelFormat_444YpCbCr10: A type that describes component Y’CbCr 10-bit 4:4:4 KCMPixelFormat_444YpCbCr10 CMPixelFormatType = 'v'<<24 | '4'<<16 | '1'<<8 | '0' // 'v410' // KCMPixelFormat_444YpCbCr8: A type that describes component Y’CbCr 8-bit 4:4:4. KCMPixelFormat_444YpCbCr8 CMPixelFormatType = 'v'<<24 | '3'<<16 | '0'<<8 | '8' // 'v308' // KCMPixelFormat_8IndexedGray_WhiteIsZero: A type that describes 8-bit indexed gray, white is zero. KCMPixelFormat_8IndexedGray_WhiteIsZero CMPixelFormatType = 0x28 )
type CMProjectionType ¶
type CMProjectionType uint64
See: https://developer.apple.com/documentation/CoreMedia/CMProjectionType
const ( // KCMProjectionType_Equirectangular: Video content displays as a 360 degree equirectangular projection. KCMProjectionType_Equirectangular CMProjectionType = 'e'<<24 | 'q'<<16 | 'u'<<8 | 'i' // 'equi' // KCMProjectionType_Fisheye: Video content displays as a fisheye projection. KCMProjectionType_Fisheye CMProjectionType = 'f'<<24 | 'i'<<16 | 's'<<8 | 'h' // 'fish' // KCMProjectionType_HalfEquirectangular: Video content displays as a 180 degree equirectangular projection. KCMProjectionType_HalfEquirectangular CMProjectionType = 'h'<<24 | 'e'<<16 | 'q'<<8 | 'u' // 'hequ' KCMProjectionType_ParametricImmersive CMProjectionType = 'p'<<24 | 'r'<<16 | 'i'<<8 | 'm' // 'prim' // KCMProjectionType_Rectangular: Video content displays on a flat, rectangular 2D surface. KCMProjectionType_Rectangular CMProjectionType = 'r'<<24 | 'e'<<16 | 'c'<<8 | 't' // 'rect' )
func (CMProjectionType) String ¶
func (e CMProjectionType) String() string
type CMSampleBufferInvalidateCallback ¶
type CMSampleBufferInvalidateCallback = func(sbuf CMSampleBufferRef, invalidateRefCon uint64)
CMSampleBufferInvalidateCallback is client callback called by [CMSampleBufferInvalidate(_:)].
See: https://developer.apple.com/documentation/CoreMedia/CMSampleBufferInvalidateCallback
type CMSampleBufferInvalidateHandler ¶
CMSampleBufferInvalidateHandler is client callback called by [CMSampleBufferInvalidate(_:)].
See: https://developer.apple.com/documentation/CoreMedia/CMSampleBufferInvalidateHandler
type CMSampleBufferMakeDataReadyCallback ¶
type CMSampleBufferMakeDataReadyCallback = func(sbuf CMSampleBufferRef, makeDataReadyRefcon unsafe.Pointer) int32
CMSampleBufferMakeDataReadyCallback is client callback called by [CMSampleBufferMakeDataReady(_:)].
See: https://developer.apple.com/documentation/CoreMedia/CMSampleBufferMakeDataReadyCallback
type CMSampleBufferMakeDataReadyHandler ¶
CMSampleBufferMakeDataReadyHandler is a block the system calls to make the sample buffer ready for use.
See: https://developer.apple.com/documentation/CoreMedia/CMSampleBufferMakeDataReadyHandler
type CMSampleBufferRef ¶
type CMSampleBufferRef uintptr
CMSampleBufferRef is a reference to a buffer of media data.
See: https://developer.apple.com/documentation/CoreMedia/CMSampleBuffer
func CMTaggedBufferGroupGetCMSampleBufferAtIndex ¶
func CMTaggedBufferGroupGetCMSampleBufferAtIndex(group CMTaggedBufferGroupRef, index int) CMSampleBufferRef
CMTaggedBufferGroupGetCMSampleBufferAtIndex gets the sample buffer at a given index in the buffer group.
It panics if CMTaggedBufferGroupGetCMSampleBufferAtIndex is unavailable at run time; use TryCMTaggedBufferGroupGetCMSampleBufferAtIndex to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTaggedBufferGroupGetCMSampleBufferAtIndex
func CMTaggedBufferGroupGetCMSampleBufferForTag ¶
func CMTaggedBufferGroupGetCMSampleBufferForTag(group CMTaggedBufferGroupRef, tag CMTag, indexOut *int) CMSampleBufferRef
CMTaggedBufferGroupGetCMSampleBufferForTag gets the single sample buffer in a group which contains a given tag, if present.
It panics if CMTaggedBufferGroupGetCMSampleBufferForTag is unavailable at run time; use TryCMTaggedBufferGroupGetCMSampleBufferForTag to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTaggedBufferGroupGetCMSampleBufferForTag
func CMTaggedBufferGroupGetCMSampleBufferForTagCollection ¶
func CMTaggedBufferGroupGetCMSampleBufferForTagCollection(group CMTaggedBufferGroupRef, tagCollection CMTagCollectionRef, indexOut *int) CMSampleBufferRef
CMTaggedBufferGroupGetCMSampleBufferForTagCollection gets the single sample buffer in a group which contains a given tag collection, if present.
It panics if CMTaggedBufferGroupGetCMSampleBufferForTagCollection is unavailable at run time; use TryCMTaggedBufferGroupGetCMSampleBufferForTagCollection to get an error instead.
func TryCMTaggedBufferGroupGetCMSampleBufferAtIndex ¶
func TryCMTaggedBufferGroupGetCMSampleBufferAtIndex(group CMTaggedBufferGroupRef, index int) (CMSampleBufferRef, error)
TryCMTaggedBufferGroupGetCMSampleBufferAtIndex is like CMTaggedBufferGroupGetCMSampleBufferAtIndex but returns an error instead of panicking if CMTaggedBufferGroupGetCMSampleBufferAtIndex is unavailable at run time.
func TryCMTaggedBufferGroupGetCMSampleBufferForTag ¶
func TryCMTaggedBufferGroupGetCMSampleBufferForTag(group CMTaggedBufferGroupRef, tag CMTag, indexOut *int) (CMSampleBufferRef, error)
TryCMTaggedBufferGroupGetCMSampleBufferForTag is like CMTaggedBufferGroupGetCMSampleBufferForTag but returns an error instead of panicking if CMTaggedBufferGroupGetCMSampleBufferForTag is unavailable at run time.
func TryCMTaggedBufferGroupGetCMSampleBufferForTagCollection ¶
func TryCMTaggedBufferGroupGetCMSampleBufferForTagCollection(group CMTaggedBufferGroupRef, tagCollection CMTagCollectionRef, indexOut *int) (CMSampleBufferRef, error)
TryCMTaggedBufferGroupGetCMSampleBufferForTagCollection is like CMTaggedBufferGroupGetCMSampleBufferForTagCollection but returns an error instead of panicking if CMTaggedBufferGroupGetCMSampleBufferForTagCollection is unavailable at run time.
type CMSampleTimingInfo ¶
type CMSampleTimingInfo struct {
// contains filtered or unexported fields
}
CMSampleTimingInfo - A collection of timing information for a sample in a sample buffer.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreMedia/CMSampleTimingInfo
var ( // See: https://developer.apple.com/documentation/CoreMedia/CMSampleTimingInfo/invalid KCMTimingInfoInvalid CMSampleTimingInfo )
func (*CMSampleTimingInfo) DecodeTimeStamp ¶
func (s *CMSampleTimingInfo) DecodeTimeStamp() CMTime
DecodeTimeStamp returns the DecodeTimeStamp field from the record's packed storage.
func (*CMSampleTimingInfo) Duration ¶
func (s *CMSampleTimingInfo) Duration() CMTime
Duration returns the Duration field from the record's packed storage.
func (*CMSampleTimingInfo) PresentationTimeStamp ¶
func (s *CMSampleTimingInfo) PresentationTimeStamp() CMTime
PresentationTimeStamp returns the PresentationTimeStamp field from the record's packed storage.
func (*CMSampleTimingInfo) SetDecodeTimeStamp ¶ added in v0.6.17
func (s *CMSampleTimingInfo) SetDecodeTimeStamp(v CMTime)
SetDecodeTimeStamp updates the DecodeTimeStamp field in the record's packed storage.
func (*CMSampleTimingInfo) SetDuration ¶ added in v0.6.17
func (s *CMSampleTimingInfo) SetDuration(v CMTime)
SetDuration updates the Duration field in the record's packed storage.
func (*CMSampleTimingInfo) SetPresentationTimeStamp ¶ added in v0.6.17
func (s *CMSampleTimingInfo) SetPresentationTimeStamp(v CMTime)
SetPresentationTimeStamp updates the PresentationTimeStamp field in the record's packed storage.
type CMSimpleQueueRef ¶
type CMSimpleQueueRef uintptr
CMSimpleQueueRef is a reference to an instance that provides a simple lockless queue of elements.
See: https://developer.apple.com/documentation/CoreMedia/CMSimpleQueue
type CMSoundDescriptionFlavor ¶
type CMSoundDescriptionFlavor = corefoundation.CFStringRef
CMSoundDescriptionFlavor is types that represent sound format descriptions.
See: https://developer.apple.com/documentation/CoreMedia/CMSoundDescriptionFlavor
var ( // KCMSoundDescriptionFlavor_3GPFamily is a sound description that selects the 3GP family sample format. // // See: https://developer.apple.com/documentation/CoreMedia/CMSoundDescriptionFlavor/mobile3GPFamily KCMSoundDescriptionFlavor_3GPFamily CMSoundDescriptionFlavor // KCMSoundDescriptionFlavor_ISOFamily is a sound description that selects the ISO family sample format. // // See: https://developer.apple.com/documentation/CoreMedia/CMSoundDescriptionFlavor/isoFamily KCMSoundDescriptionFlavor_ISOFamily CMSoundDescriptionFlavor // KCMSoundDescriptionFlavor_QuickTimeMovie is a sound description that selects the QuickTime movie format. // // See: https://developer.apple.com/documentation/CoreMedia/CMSoundDescriptionFlavor/quickTimeMovie KCMSoundDescriptionFlavor_QuickTimeMovie CMSoundDescriptionFlavor // KCMSoundDescriptionFlavor_QuickTimeMovieV2 is a sound description that selects the second version of the QuickTime movie format. // // See: https://developer.apple.com/documentation/CoreMedia/CMSoundDescriptionFlavor/quickTimeMovieV2 KCMSoundDescriptionFlavor_QuickTimeMovieV2 CMSoundDescriptionFlavor )
type CMStereoViewComponents ¶
type CMStereoViewComponents uint64
See: https://developer.apple.com/documentation/CoreMedia/CMStereoViewComponents
const ( // KCMStereoView_LeftEye: The stereo video track includes a left eye layer. KCMStereoView_LeftEye CMStereoViewComponents = 1 // KCMStereoView_None: A constant for video metadata to have no available stereo frames. KCMStereoView_None CMStereoViewComponents = 0 // KCMStereoView_RightEye: The stereo video track includes a right eye layer. KCMStereoView_RightEye CMStereoViewComponents = 2 )
func (CMStereoViewComponents) String ¶
func (e CMStereoViewComponents) String() string
type CMStereoViewInterpretationOptions ¶
type CMStereoViewInterpretationOptions uint64
See: https://developer.apple.com/documentation/CoreMedia/CMStereoViewInterpretationOptions
const ( // KCMStereoViewInterpretation_AdditionalViews: A flag indicating that the video content contains additional views beyond the left or right eye. KCMStereoViewInterpretation_AdditionalViews CMStereoViewInterpretationOptions = 2 // KCMStereoViewInterpretation_Default: The default options for stereo video views. KCMStereoViewInterpretation_Default CMStereoViewInterpretationOptions = 0 // KCMStereoViewInterpretation_StereoOrderReversed: Changes the default ordering of eye data, switching it from left-to-right to right-to-left. KCMStereoViewInterpretation_StereoOrderReversed CMStereoViewInterpretationOptions = 1 )
func (CMStereoViewInterpretationOptions) String ¶
func (e CMStereoViewInterpretationOptions) String() string
type CMStructVersion ¶
type CMStructVersion = uint32
See: https://developer.apple.com/documentation/CoreMedia/CMStructVersion
type CMSubtitleFormatType ¶
type CMSubtitleFormatType = uint32
CMSubtitleFormatType is a type that represents a text subtitle format.
See: https://developer.apple.com/documentation/CoreMedia/CMSubtitleFormatType
const ( KCMSubtitleFormatType_3GText CMSubtitleFormatType = 't'<<24 | 'x'<<16 | '3'<<8 | 'g' // 'tx3g' KCMSubtitleFormatType_WebVTT CMSubtitleFormatType = 'w'<<24 | 'v'<<16 | 't'<<8 | 't' // 'wvtt' )
type CMTag ¶
type CMTag struct {
Category CMTagCategory // The category assigned to a tag.
DataType CMTagDataType // The data type for the value stored in the tag.
Value CMTagValue // The value of the tag.
}
CMTag - A tag representing additional metadata on tagged media buffers.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreMedia/CMTag-c.struct
var ( // KCMTagInvalid is a constant representing an invalid tag. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTagInvalid KCMTagInvalid CMTag // See: https://developer.apple.com/documentation/CoreMedia/kCMTagMediaSubTypeMebx KCMTagMediaSubTypeMebx CMTag // KCMTagMediaTypeAudio is a value for associating a tag’s media type with audio. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTagMediaTypeAudio KCMTagMediaTypeAudio CMTag // KCMTagMediaTypeMetadata is a value for associating a tag’s media type with metadata. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTagMediaTypeMetadata KCMTagMediaTypeMetadata CMTag // KCMTagMediaTypeVideo is a value for associating a tag’s media type with video. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTagMediaTypeVideo KCMTagMediaTypeVideo CMTag // KCMTagPackingTypeNone is a frame-packing tag value for video without packed frames. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTagPackingTypeNone KCMTagPackingTypeNone CMTag // KCMTagPackingTypeOverUnder is a tag stating that associated video has packed frames with a left eye image on the top and right eye image on the bottom. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTagPackingTypeOverUnder KCMTagPackingTypeOverUnder CMTag // KCMTagPackingTypeSideBySide is a tag stating that associated video has packed frames with a left eye image on the left and right eye image on the right. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTagPackingTypeSideBySide KCMTagPackingTypeSideBySide CMTag // KCMTagProjectionTypeEquirectangular is a value for projection tags indicating that display is on a 360 degree equirectangular projection. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTagProjectionTypeEquirectangular KCMTagProjectionTypeEquirectangular CMTag // KCMTagProjectionTypeFisheye is video content displays as a fisheye projection. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTagProjectionTypeFisheye KCMTagProjectionTypeFisheye CMTag // See: https://developer.apple.com/documentation/CoreMedia/kCMTagProjectionTypeHalfEquirectangular KCMTagProjectionTypeHalfEquirectangular CMTag // See: https://developer.apple.com/documentation/CoreMedia/kCMTagProjectionTypeParametricImmersive KCMTagProjectionTypeParametricImmersive CMTag // KCMTagProjectionTypeRectangular is a value for projection tags indicating that display is on a flat rectangular surface. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTagProjectionTypeRectangular KCMTagProjectionTypeRectangular CMTag // KCMTagStereoInterpretationOrderReversed is a value for a stereo interpretation tag indicating the video data for the left and right eyes are reversed. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTagStereoInterpretationOrderReversed KCMTagStereoInterpretationOrderReversed CMTag // KCMTagStereoLeftAndRightEye is a value for a stereo tag indicating the video track has left and right eye layers. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTagStereoLeftAndRightEye KCMTagStereoLeftAndRightEye CMTag // KCMTagStereoLeftEye is a value for a stereo tag indicating the video track has a left eye layer. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTagStereoLeftEye KCMTagStereoLeftEye CMTag // KCMTagStereoNone is a value for a stereo tag indicating the video track has no eye layer data. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTagStereoNone KCMTagStereoNone CMTag // KCMTagStereoRightEye is a value for a stereo tag indicating the video track has a right eye layer. // // See: https://developer.apple.com/documentation/CoreMedia/kCMTagStereoRightEye KCMTagStereoRightEye CMTag )
func CMTagCollectionApplyUntil ¶
func CMTagCollectionApplyUntil(tagCollection CMTagCollectionRef, applier CMTagCollectionTagFilterFunction, context unsafe.Pointer) CMTag
CMTagCollectionApplyUntil applies a Boolean function to tags in a collection, stopping when it returns true.
It panics if CMTagCollectionApplyUntil is unavailable at run time; use TryCMTagCollectionApplyUntil to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionApplyUntil
func CMTagMakeFromDictionary ¶
func CMTagMakeFromDictionary(dict corefoundation.CFDictionaryRef) CMTag
CMTagMakeFromDictionary create a new tag from a dictionary object.
It panics if CMTagMakeFromDictionary is unavailable at run time; use TryCMTagMakeFromDictionary to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagMakeFromDictionary
func CMTagMakeWithFlagsValue ¶
func CMTagMakeWithFlagsValue(category CMTagCategory, flagsForTag uint64) CMTag
CMTagMakeWithFlagsValue creates a new tag with a given category and a value interpreted as a 64-bit flag field.
It panics if CMTagMakeWithFlagsValue is unavailable at run time; use TryCMTagMakeWithFlagsValue to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagMakeWithFlagsValue
func CMTagMakeWithFloat64Value ¶
func CMTagMakeWithFloat64Value(category CMTagCategory, value float64) CMTag
CMTagMakeWithFloat64Value creates a new tag with a given category and a 64-bit floating point value.
It panics if CMTagMakeWithFloat64Value is unavailable at run time; use TryCMTagMakeWithFloat64Value to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagMakeWithFloat64Value
func CMTagMakeWithOSTypeValue ¶
func CMTagMakeWithOSTypeValue(category CMTagCategory, value uint32) CMTag
CMTagMakeWithOSTypeValue creates a new tag with a given category and a 64-bit value for use by the framework.
It panics if CMTagMakeWithOSTypeValue is unavailable at run time; use TryCMTagMakeWithOSTypeValue to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagMakeWithOSTypeValue
func CMTagMakeWithSInt64Value ¶
func CMTagMakeWithSInt64Value(category CMTagCategory, value int64) CMTag
CMTagMakeWithSInt64Value creates a new tag with a given category and a 64-bit signed integer.
It panics if CMTagMakeWithSInt64Value is unavailable at run time; use TryCMTagMakeWithSInt64Value to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagMakeWithSInt64Value
func TryCMTagCollectionApplyUntil ¶
func TryCMTagCollectionApplyUntil(tagCollection CMTagCollectionRef, applier CMTagCollectionTagFilterFunction, context unsafe.Pointer) (CMTag, error)
TryCMTagCollectionApplyUntil is like CMTagCollectionApplyUntil but returns an error instead of panicking if CMTagCollectionApplyUntil is unavailable at run time.
func TryCMTagMakeFromDictionary ¶
func TryCMTagMakeFromDictionary(dict corefoundation.CFDictionaryRef) (CMTag, error)
TryCMTagMakeFromDictionary is like CMTagMakeFromDictionary but returns an error instead of panicking if CMTagMakeFromDictionary is unavailable at run time.
func TryCMTagMakeWithFlagsValue ¶
func TryCMTagMakeWithFlagsValue(category CMTagCategory, flagsForTag uint64) (CMTag, error)
TryCMTagMakeWithFlagsValue is like CMTagMakeWithFlagsValue but returns an error instead of panicking if CMTagMakeWithFlagsValue is unavailable at run time.
func TryCMTagMakeWithFloat64Value ¶
func TryCMTagMakeWithFloat64Value(category CMTagCategory, value float64) (CMTag, error)
TryCMTagMakeWithFloat64Value is like CMTagMakeWithFloat64Value but returns an error instead of panicking if CMTagMakeWithFloat64Value is unavailable at run time.
func TryCMTagMakeWithOSTypeValue ¶
func TryCMTagMakeWithOSTypeValue(category CMTagCategory, value uint32) (CMTag, error)
TryCMTagMakeWithOSTypeValue is like CMTagMakeWithOSTypeValue but returns an error instead of panicking if CMTagMakeWithOSTypeValue is unavailable at run time.
func TryCMTagMakeWithSInt64Value ¶
func TryCMTagMakeWithSInt64Value(category CMTagCategory, value int64) (CMTag, error)
TryCMTagMakeWithSInt64Value is like CMTagMakeWithSInt64Value but returns an error instead of panicking if CMTagMakeWithSInt64Value is unavailable at run time.
type CMTagCategory ¶
type CMTagCategory uint32
See: https://developer.apple.com/documentation/CoreMedia/CMTagCategory
const ( // KCMTagCategory_ChannelID: A category used for tagging a channel ID. KCMTagCategory_ChannelID CMTagCategory = 'v'<<24 | 'c'<<16 | 'h'<<8 | 'n' // 'vchn' // KCMTagCategory_MediaSubType: A category used for tagging media subtype metadata. KCMTagCategory_MediaSubType CMTagCategory = 'm'<<24 | 's'<<16 | 'u'<<8 | 'b' // 'msub' // KCMTagCategory_MediaType: A category used for tagging media type metadata. KCMTagCategory_MediaType CMTagCategory = 'm'<<24 | 'd'<<16 | 'i'<<8 | 'a' // 'mdia' // KCMTagCategory_PackingType: A category used for tagging frame-packing information. KCMTagCategory_PackingType CMTagCategory = 'p'<<24 | 'a'<<16 | 'c'<<8 | 'k' // 'pack' // KCMTagCategory_PixelFormat: A category used for tagging pixel format information. KCMTagCategory_PixelFormat CMTagCategory = 'p'<<24 | 'i'<<16 | 'x'<<8 | 'f' // 'pixf' // KCMTagCategory_ProjectionType: A category used for tagging projection surface information. KCMTagCategory_ProjectionType CMTagCategory = 'p'<<24 | 'r'<<16 | 'o'<<8 | 'j' // 'proj' // KCMTagCategory_StereoView: A category used for tagging eye information for 3D video. KCMTagCategory_StereoView CMTagCategory = 'e'<<24 | 'y'<<16 | 'e'<<8 | 's' // 'eyes' // KCMTagCategory_StereoViewInterpretation: A category used for tagging how to interpret stereo view metadata. KCMTagCategory_StereoViewInterpretation CMTagCategory = 'e'<<24 | 'y'<<16 | 'i'<<8 | 'p' // 'eyip' // KCMTagCategory_TrackID: A category used for tagging a track ID. KCMTagCategory_TrackID CMTagCategory = 't'<<24 | 'r'<<16 | 'a'<<8 | 'k' // 'trak' // KCMTagCategory_Undefined: An unknown or undefined tag category. KCMTagCategory_Undefined CMTagCategory = 0 // KCMTagCategory_VideoLayerID: A category used for tagging a video layer ID. KCMTagCategory_VideoLayerID CMTagCategory = 'v'<<24 | 'l'<<16 | 'a'<<8 | 'y' // 'vlay' )
func (CMTagCategory) String ¶
func (e CMTagCategory) String() string
type CMTagCollectionApplierFunction ¶
CMTagCollectionApplierFunction is a type for function application over elements of a tag collection.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionApplierFunction
type CMTagCollectionError ¶
type CMTagCollectionError int32
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionError
const ( // KCMTagCollectionError_AllocationFailed: Indicates an internal allocation failed. KCMTagCollectionError_AllocationFailed CMTagCollectionError = -15741 // KCMTagCollectionError_ExhaustedBufferSize: Indicates that a buffer was smaller than the number of requested tags. KCMTagCollectionError_ExhaustedBufferSize CMTagCollectionError = -15748 // KCMTagCollectionError_InternalError: Indicates an error occurred inside of the Core Media framework. KCMTagCollectionError_InternalError CMTagCollectionError = -15742 // KCMTagCollectionError_InvalidTag: Indicates that the collection contains an invalid tag. KCMTagCollectionError_InvalidTag CMTagCollectionError = -15743 // KCMTagCollectionError_InvalidTagCollectionData: Indicates that a Core Foundation data instance failed to initialize a new tag collection. KCMTagCollectionError_InvalidTagCollectionData CMTagCollectionError = -15745 // KCMTagCollectionError_InvalidTagCollectionDataVersion: Indicates that a Core Foundation data instance failed to initialize a new tag collection due to a versioning problem. KCMTagCollectionError_InvalidTagCollectionDataVersion CMTagCollectionError = -15747 // KCMTagCollectionError_InvalidTagCollectionDictionary: Indicates that a Core Foundation dictionary instance failed to initialize a new tag collection. KCMTagCollectionError_InvalidTagCollectionDictionary CMTagCollectionError = -15744 // KCMTagCollectionError_NotYetImplemented: Indicates a function lacks a necessary backing implementation in Core Media. KCMTagCollectionError_NotYetImplemented CMTagCollectionError = -15749 // KCMTagCollectionError_ParamErr: Indicates a parameter to a function was of the wrong type or didn’t meet a necessary condition. KCMTagCollectionError_ParamErr CMTagCollectionError = -15740 // KCMTagCollectionError_TagNotFound: Indicates that there was no match in a collection for a tag. KCMTagCollectionError_TagNotFound CMTagCollectionError = -15746 )
func (CMTagCollectionError) String ¶ added in v0.5.1
func (e CMTagCollectionError) String() string
type CMTagCollectionRef ¶
type CMTagCollectionRef uintptr
CMTagCollectionRef is a reference to a tag collection.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionRef
func CMTaggedBufferGroupGetTagCollectionAtIndex ¶
func CMTaggedBufferGroupGetTagCollectionAtIndex(group CMTaggedBufferGroupRef, index int) CMTagCollectionRef
CMTaggedBufferGroupGetTagCollectionAtIndex gets the collection of tags for a buffer at a given index in the group.
It panics if CMTaggedBufferGroupGetTagCollectionAtIndex is unavailable at run time; use TryCMTaggedBufferGroupGetTagCollectionAtIndex to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTaggedBufferGroupGetTagCollectionAtIndex
func TryCMTaggedBufferGroupGetTagCollectionAtIndex ¶
func TryCMTaggedBufferGroupGetTagCollectionAtIndex(group CMTaggedBufferGroupRef, index int) (CMTagCollectionRef, error)
TryCMTaggedBufferGroupGetTagCollectionAtIndex is like CMTaggedBufferGroupGetTagCollectionAtIndex but returns an error instead of panicking if CMTaggedBufferGroupGetTagCollectionAtIndex is unavailable at run time.
type CMTagCollectionTagFilterFunction ¶
CMTagCollectionTagFilterFunction is a type for filtering of tag collections.
See: https://developer.apple.com/documentation/CoreMedia/CMTagCollectionTagFilterFunction
type CMTagDataType ¶
type CMTagDataType uint32
See: https://developer.apple.com/documentation/CoreMedia/CMTagDataType
const ( // KCMTagDataType_Flags: The tag value is a 64-bit wide bitflag field. KCMTagDataType_Flags CMTagDataType = 7 // KCMTagDataType_Float64: The tag value is a 64-bit floating point number. KCMTagDataType_Float64 CMTagDataType = 3 // KCMTagDataType_Invalid: The tag value isn’t associated with any known data type. KCMTagDataType_Invalid CMTagDataType = 0 // KCMTagDataType_OSType: The tag value is a 64-bit identifier used by the operating system. KCMTagDataType_OSType CMTagDataType = 5 // KCMTagDataType_SInt64: The tag value is a signed 64-bit integer. KCMTagDataType_SInt64 CMTagDataType = 2 )
func CMTagGetValueDataType ¶
func CMTagGetValueDataType(tag CMTag) CMTagDataType
CMTagGetValueDataType retrieves the data type of a tag.
It panics if CMTagGetValueDataType is unavailable at run time; use TryCMTagGetValueDataType to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTagGetValueDataType
func TryCMTagGetValueDataType ¶
func TryCMTagGetValueDataType(tag CMTag) (CMTagDataType, error)
TryCMTagGetValueDataType is like CMTagGetValueDataType but returns an error instead of panicking if CMTagGetValueDataType is unavailable at run time.
func (CMTagDataType) String ¶ added in v0.5.1
func (e CMTagDataType) String() string
type CMTagError ¶
type CMTagError int32
See: https://developer.apple.com/documentation/CoreMedia/CMTagError
const ( // KCMTagError_AllocationFailed: An error where the system can’t allocate enough memory for the tag. KCMTagError_AllocationFailed CMTagError = -15731 // KCMTagError_ParamErr: An error where input or output parameters didn’t match the requirements of Core Media. KCMTagError_ParamErr CMTagError = -15730 )
func (CMTagError) String ¶ added in v0.5.1
func (e CMTagError) String() string
type CMTagValue ¶
type CMTagValue = uint64
CMTagValue is the type used to represent tag values.
See: https://developer.apple.com/documentation/CoreMedia/CMTagValue
type CMTaggedBufferGroupError ¶
type CMTaggedBufferGroupError int32
See: https://developer.apple.com/documentation/CoreMedia/CMTaggedBufferGroupError
const ( // KCMTaggedBufferGroupError_AllocationFailed: Indicates an internal allocation failed. KCMTaggedBufferGroupError_AllocationFailed CMTaggedBufferGroupError = -15781 // KCMTaggedBufferGroupError_InternalError: Indicates an error occurred inside of the Core Media framework. KCMTaggedBufferGroupError_InternalError CMTaggedBufferGroupError = -15782 // KCMTaggedBufferGroupError_ParamErr: Indicates a parameter to a function was of the wrong type or didn’t meet a necessary condition. KCMTaggedBufferGroupError_ParamErr CMTaggedBufferGroupError = -15780 )
func (CMTaggedBufferGroupError) String ¶ added in v0.5.1
func (e CMTaggedBufferGroupError) String() string
type CMTaggedBufferGroupFormatDescriptionRef ¶
type CMTaggedBufferGroupFormatDescriptionRef uintptr
CMTaggedBufferGroupFormatDescriptionRef is a type for tagged buffer format descriptions.
See: https://developer.apple.com/documentation/CoreMedia/CMTaggedBufferGroupFormatDescription
type CMTaggedBufferGroupFormatType ¶
type CMTaggedBufferGroupFormatType = uint32
CMTaggedBufferGroupFormatType is a type for tagged buffer format information.
See: https://developer.apple.com/documentation/CoreMedia/CMTaggedBufferGroupFormatType
const (
KCMTaggedBufferGroupFormatType_TaggedBufferGroup CMTaggedBufferGroupFormatType = 't'<<24 | 'b'<<16 | 'g'<<8 | 'r' // 'tbgr'
)
type CMTaggedBufferGroupRef ¶
type CMTaggedBufferGroupRef uintptr
CMTaggedBufferGroupRef is a reference to a tagged buffer group instance.
See: https://developer.apple.com/documentation/CoreMedia/CMTaggedBufferGroupRef
func CMSampleBufferGetTaggedBufferGroup ¶
func CMSampleBufferGetTaggedBufferGroup(sbuf CMSampleBufferRef) CMTaggedBufferGroupRef
CMSampleBufferGetTaggedBufferGroup gets the tagged buffer group of a sample buffer.
It panics if CMSampleBufferGetTaggedBufferGroup is unavailable at run time; use TryCMSampleBufferGetTaggedBufferGroup to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSampleBufferGetTaggedBufferGroup
func TryCMSampleBufferGetTaggedBufferGroup ¶
func TryCMSampleBufferGetTaggedBufferGroup(sbuf CMSampleBufferRef) (CMTaggedBufferGroupRef, error)
TryCMSampleBufferGetTaggedBufferGroup is like CMSampleBufferGetTaggedBufferGroup but returns an error instead of panicking if CMSampleBufferGetTaggedBufferGroup is unavailable at run time.
type CMTextDescriptionFlavor ¶
type CMTextDescriptionFlavor = corefoundation.CFStringRef
CMTextDescriptionFlavor is types that represent text format descriptions.
See: https://developer.apple.com/documentation/CoreMedia/CMTextDescriptionFlavor
type CMTextDisplayFlags ¶
type CMTextDisplayFlags = uint32
CMTextDisplayFlags is an integer value that describes the display mode flags for text media.
See: https://developer.apple.com/documentation/CoreMedia/CMTextDisplayFlags
const ( // KCMTextDisplayFlag_allSubtitlesForced: A flag that describes treating all subtitle samples as if they contain forced subtitles. KCMTextDisplayFlag_allSubtitlesForced CMTextDisplayFlags = 0x80000000 // KCMTextDisplayFlag_continuousKaraoke: A flag that describes enabling the continuous karaoke mode where the range of karaoke highlighting extends to include additional ranges rather than the highlighting moves onto the next range. KCMTextDisplayFlag_continuousKaraoke CMTextDisplayFlags = 0x800 // KCMTextDisplayFlag_fillTextRegion: A flag that describes the subtitle display bounds are to be filled with the color specified by `kCMTextFormatDescriptionExtension_BackgroundColor`. KCMTextDisplayFlag_fillTextRegion CMTextDisplayFlags = 0x40000 // KCMTextDisplayFlag_forcedSubtitlesPresent: A flag that describes forcing subtitles are present, for example, a subtitle which only displays during foreign language sections of the video. KCMTextDisplayFlag_forcedSubtitlesPresent CMTextDisplayFlags = 0x40000000 // KCMTextDisplayFlag_obeySubtitleFormatting: A flag that describes using the subtitle display bounds to determine if the system places the subtitltes near the top or bottom of the video. KCMTextDisplayFlag_obeySubtitleFormatting CMTextDisplayFlags = 0x20000000 // KCMTextDisplayFlag_scrollDirectionMask: A flag that describes the scrolling direction is set by a two-bit field, obtained from displayFlags using kCMTextDisplayFlag_scrollDirectionMask. KCMTextDisplayFlag_scrollDirectionMask CMTextDisplayFlags = 0x180 // KCMTextDisplayFlag_scrollDirection_bottomToTop: A flag that describes the text is vertically scrolled up (“credits style”), entering from the bottom and leaving towards the top. KCMTextDisplayFlag_scrollDirection_bottomToTop CMTextDisplayFlags = 0 // KCMTextDisplayFlag_scrollDirection_leftToRight: A flag that describes the text is horizontally scrolled, entering from the left and leaving towards the right. KCMTextDisplayFlag_scrollDirection_leftToRight CMTextDisplayFlags = 0x180 // KCMTextDisplayFlag_scrollDirection_rightToLeft: A flag that describes the text is horizontally scrolled (“marquee style”), entering from the right and leaving towards the left. KCMTextDisplayFlag_scrollDirection_rightToLeft CMTextDisplayFlags = 0x80 // KCMTextDisplayFlag_scrollDirection_topToBottom: A flag that describes the text is vertically scrolled down, entering from the top and leaving towards the bottom. KCMTextDisplayFlag_scrollDirection_topToBottom CMTextDisplayFlags = 0x100 // KCMTextDisplayFlag_scrollIn: A flag that describes the text scrolls into the display region. KCMTextDisplayFlag_scrollIn CMTextDisplayFlags = 0x20 // KCMTextDisplayFlag_scrollOut: A flag that describes the text scrolls out of the display region. KCMTextDisplayFlag_scrollOut CMTextDisplayFlags = 0x40 // KCMTextDisplayFlag_writeTextVertically: A flag that describes the text renders vertically. KCMTextDisplayFlag_writeTextVertically CMTextDisplayFlags = 0x20000 )
type CMTextFormatDescriptionRef ¶
type CMTextFormatDescriptionRef uintptr
CMTextFormatDescriptionRef is a type you use to interact with text format descriptions.
See: https://developer.apple.com/documentation/CoreMedia/CMTextFormatDescription
type CMTextFormatType ¶
type CMTextFormatType = uint32
CMTextFormatType is a text format type.
See: https://developer.apple.com/documentation/CoreMedia/CMTextFormatType
const ( // KCMTextFormatType_3GText: A type that describes 3GPP text media. KCMTextFormatType_3GText CMTextFormatType = 't'<<24 | 'x'<<16 | '3'<<8 | 'g' // 'tx3g' // KCMTextFormatType_QTText: A type that describes QuickTime text media. KCMTextFormatType_QTText CMTextFormatType = 't'<<24 | 'e'<<16 | 'x'<<8 | 't' // 'text' )
type CMTextJustificationValue ¶
type CMTextJustificationValue = int8
CMTextJustificationValue is an integer value that describes the justification modes for text media.
See: https://developer.apple.com/documentation/CoreMedia/CMTextJustificationValue
const ( // KCMTextJustification_bottom_right: A type that describes bottom justification when specified for vertical justification, right justification for horizontal justification. KCMTextJustification_bottom_right CMTextJustificationValue = -1 // KCMTextJustification_centered: A type that describes center justification (both horizontal and vertical justification). KCMTextJustification_centered CMTextJustificationValue = 1 // KCMTextJustification_left_top: A type that describes left justification when specified for horizontal justification, top justification for vertical justification. KCMTextJustification_left_top CMTextJustificationValue = 0 )
type CMTime ¶
type CMTime struct {
// contains filtered or unexported fields
}
CMTime - A structure that represents time.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreMedia/CMTime
var ( // KCMTimeIndefinite is a value that represents an indefinite time. // // See: https://developer.apple.com/documentation/CoreMedia/CMTime/indefinite KCMTimeIndefinite CMTime // KCMTimeInvalid is a value that represents an invalid time. // // See: https://developer.apple.com/documentation/CoreMedia/CMTime/invalid KCMTimeInvalid CMTime // KCMTimeNegativeInfinity is a value that represents negative infinity. // // See: https://developer.apple.com/documentation/CoreMedia/CMTime/negativeInfinity KCMTimeNegativeInfinity CMTime // KCMTimePositiveInfinity is a value that represents positive infinity. // // See: https://developer.apple.com/documentation/CoreMedia/CMTime/positiveInfinity KCMTimePositiveInfinity CMTime // KCMTimeZero is a value that represents time zero. // // See: https://developer.apple.com/documentation/CoreMedia/CMTime/zero KCMTimeZero CMTime )
func CMBufferQueueGetDuration ¶
func CMBufferQueueGetDuration(queue CMBufferQueueRef) CMTime
CMBufferQueueGetDuration gets the duration of a buffer queue.
It panics if CMBufferQueueGetDuration is unavailable at run time; use TryCMBufferQueueGetDuration to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueueGetDuration(_:)
func CMBufferQueueGetEndPresentationTimeStamp ¶
func CMBufferQueueGetEndPresentationTimeStamp(queue CMBufferQueueRef) CMTime
CMBufferQueueGetEndPresentationTimeStamp gets the greatest end presentation timestamp of a buffer queue.
It panics if CMBufferQueueGetEndPresentationTimeStamp is unavailable at run time; use TryCMBufferQueueGetEndPresentationTimeStamp to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueueGetEndPresentationTimeStamp(_:)
func CMBufferQueueGetFirstDecodeTimeStamp ¶
func CMBufferQueueGetFirstDecodeTimeStamp(queue CMBufferQueueRef) CMTime
CMBufferQueueGetFirstDecodeTimeStamp gets the decode timestamp of the first buffer in a buffer queue.
It panics if CMBufferQueueGetFirstDecodeTimeStamp is unavailable at run time; use TryCMBufferQueueGetFirstDecodeTimeStamp to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueueGetFirstDecodeTimeStamp(_:)
func CMBufferQueueGetFirstPresentationTimeStamp ¶
func CMBufferQueueGetFirstPresentationTimeStamp(queue CMBufferQueueRef) CMTime
CMBufferQueueGetFirstPresentationTimeStamp gets the presentation timestamp of the first buffer in a buffer queue.
It panics if CMBufferQueueGetFirstPresentationTimeStamp is unavailable at run time; use TryCMBufferQueueGetFirstPresentationTimeStamp to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueueGetFirstPresentationTimeStamp(_:)
func CMBufferQueueGetMaxPresentationTimeStamp ¶
func CMBufferQueueGetMaxPresentationTimeStamp(queue CMBufferQueueRef) CMTime
CMBufferQueueGetMaxPresentationTimeStamp gets the greatest presentation timestamp of a buffer queue.
It panics if CMBufferQueueGetMaxPresentationTimeStamp is unavailable at run time; use TryCMBufferQueueGetMaxPresentationTimeStamp to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueueGetMaxPresentationTimeStamp(_:)
func CMBufferQueueGetMinDecodeTimeStamp ¶
func CMBufferQueueGetMinDecodeTimeStamp(queue CMBufferQueueRef) CMTime
CMBufferQueueGetMinDecodeTimeStamp gets the earliest decode timestamp of a buffer queue.
It panics if CMBufferQueueGetMinDecodeTimeStamp is unavailable at run time; use TryCMBufferQueueGetMinDecodeTimeStamp to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueueGetMinDecodeTimeStamp(_:)
func CMBufferQueueGetMinPresentationTimeStamp ¶
func CMBufferQueueGetMinPresentationTimeStamp(queue CMBufferQueueRef) CMTime
CMBufferQueueGetMinPresentationTimeStamp gets the earliest presentation timestamp of a buffer queue.
It panics if CMBufferQueueGetMinPresentationTimeStamp is unavailable at run time; use TryCMBufferQueueGetMinPresentationTimeStamp to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMBufferQueueGetMinPresentationTimeStamp(_:)
func CMClockGetTime ¶
func CMClockGetTime(clock CMClockRef) CMTime
CMClockGetTime returns the current time from a clock.
It panics if CMClockGetTime is unavailable at run time; use TryCMClockGetTime to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMClockGetTime(_:)
func CMClockMakeHostTimeFromSystemUnits ¶
CMClockMakeHostTimeFromSystemUnits converts a host time from native units to a core media time structure.
It panics if CMClockMakeHostTimeFromSystemUnits is unavailable at run time; use TryCMClockMakeHostTimeFromSystemUnits to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMClockMakeHostTimeFromSystemUnits(_:)
func CMSampleBufferGetDecodeTimeStamp ¶
func CMSampleBufferGetDecodeTimeStamp(sbuf CMSampleBufferRef) CMTime
CMSampleBufferGetDecodeTimeStamp returns the decode timestamp that’s the earliest numerically of all the samples in a sample buffer.
It panics if CMSampleBufferGetDecodeTimeStamp is unavailable at run time; use TryCMSampleBufferGetDecodeTimeStamp to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSampleBufferGetDecodeTimeStamp(_:)
func CMSampleBufferGetDuration ¶
func CMSampleBufferGetDuration(sbuf CMSampleBufferRef) CMTime
CMSampleBufferGetDuration returns the total duration of a sample buffer.
It panics if CMSampleBufferGetDuration is unavailable at run time; use TryCMSampleBufferGetDuration to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSampleBufferGetDuration(_:)
func CMSampleBufferGetOutputDecodeTimeStamp ¶
func CMSampleBufferGetOutputDecodeTimeStamp(sbuf CMSampleBufferRef) CMTime
CMSampleBufferGetOutputDecodeTimeStamp returns the output decode timestamp of a sample buffer.
It panics if CMSampleBufferGetOutputDecodeTimeStamp is unavailable at run time; use TryCMSampleBufferGetOutputDecodeTimeStamp to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSampleBufferGetOutputDecodeTimeStamp(_:)
func CMSampleBufferGetOutputDuration ¶
func CMSampleBufferGetOutputDuration(sbuf CMSampleBufferRef) CMTime
CMSampleBufferGetOutputDuration returns the output duration of a sample buffer.
It panics if CMSampleBufferGetOutputDuration is unavailable at run time; use TryCMSampleBufferGetOutputDuration to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSampleBufferGetOutputDuration(_:)
func CMSampleBufferGetOutputPresentationTimeStamp ¶
func CMSampleBufferGetOutputPresentationTimeStamp(sbuf CMSampleBufferRef) CMTime
CMSampleBufferGetOutputPresentationTimeStamp returns the output presentation timestamp of a sample buffer.
It panics if CMSampleBufferGetOutputPresentationTimeStamp is unavailable at run time; use TryCMSampleBufferGetOutputPresentationTimeStamp to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSampleBufferGetOutputPresentationTimeStamp(_:)
func CMSampleBufferGetPresentationTimeStamp ¶
func CMSampleBufferGetPresentationTimeStamp(sbuf CMSampleBufferRef) CMTime
CMSampleBufferGetPresentationTimeStamp returns the presentation timestamp that’s the earliest numerically of all the samples in a sample buffer.
It panics if CMSampleBufferGetPresentationTimeStamp is unavailable at run time; use TryCMSampleBufferGetPresentationTimeStamp to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSampleBufferGetPresentationTimeStamp(_:)
func CMSyncConvertTime ¶
func CMSyncConvertTime(time CMTime, fromClockOrTimebase CMClockOrTimebaseRef, toClockOrTimebase CMClockOrTimebaseRef) CMTime
CMSyncConvertTime converts a time from one timebase or clock to another timebase or clock.
It panics if CMSyncConvertTime is unavailable at run time; use TryCMSyncConvertTime to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSyncConvertTime(_:from:to:)
func CMSyncGetTime ¶
func CMSyncGetTime(clockOrTimebase CMClockOrTimebaseRef) CMTime
CMSyncGetTime returns the time from a clock or timebase.
It panics if CMSyncGetTime is unavailable at run time; use TryCMSyncGetTime to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMSyncGetTime(_:)
func CMTimeAbsoluteValue ¶
CMTimeAbsoluteValue returns the absolute value of a time.
It panics if CMTimeAbsoluteValue is unavailable at run time; use TryCMTimeAbsoluteValue to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeAbsoluteValue(_:)
func CMTimeAdd ¶
CMTimeAdd returns the sum of two times.
It panics if CMTimeAdd is unavailable at run time; use TryCMTimeAdd to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeAdd(_:_:)
func CMTimeClampToRange ¶
func CMTimeClampToRange(time CMTime, range_ CMTimeRange) CMTime
CMTimeClampToRange returns the nearest time value inside the time range.
It panics if CMTimeClampToRange is unavailable at run time; use TryCMTimeClampToRange to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeClampToRange(_:range:)
func CMTimeCodeFormatDescriptionGetFrameDuration ¶
func CMTimeCodeFormatDescriptionGetFrameDuration(timeCodeFormatDescription CMTimeCodeFormatDescriptionRef) CMTime
CMTimeCodeFormatDescriptionGetFrameDuration returns the duration of each frame.
It panics if CMTimeCodeFormatDescriptionGetFrameDuration is unavailable at run time; use TryCMTimeCodeFormatDescriptionGetFrameDuration to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeCodeFormatDescriptionGetFrameDuration(_:)
func CMTimeConvertScale ¶
func CMTimeConvertScale(time CMTime, newTimescale int32, method CMTimeRoundingMethod) CMTime
CMTimeConvertScale converts the source time to a new timescale using the specified rounding method.
It panics if CMTimeConvertScale is unavailable at run time; use TryCMTimeConvertScale to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeConvertScale(_:timescale:method:)
func CMTimeFoldIntoRange ¶
func CMTimeFoldIntoRange(time CMTime, foldRange CMTimeRange) CMTime
CMTimeFoldIntoRange folds a time into a time range.
It panics if CMTimeFoldIntoRange is unavailable at run time; use TryCMTimeFoldIntoRange to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeFoldIntoRange(_:foldRange:)
func CMTimeMake ¶
CMTimeMake creates a time with a value and timescale.
It panics if CMTimeMake is unavailable at run time; use TryCMTimeMake to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeMake(value:timescale:)
func CMTimeMakeFromDictionary ¶
func CMTimeMakeFromDictionary(dictionaryRepresentation corefoundation.CFDictionaryRef) CMTime
CMTimeMakeFromDictionary creates a time from a dictionary representation of its fields.
It panics if CMTimeMakeFromDictionary is unavailable at run time; use TryCMTimeMakeFromDictionary to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeMakeFromDictionary(_:)
func CMTimeMakeWithEpoch ¶
CMTimeMakeWithEpoch creates a time with a value, timescale, and epoch.
It panics if CMTimeMakeWithEpoch is unavailable at run time; use TryCMTimeMakeWithEpoch to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeMakeWithEpoch(value:timescale:epoch:)
func CMTimeMakeWithSeconds ¶
CMTimeMakeWithSeconds creates a time that represents a number of seconds in a preferred timescale.
It panics if CMTimeMakeWithSeconds is unavailable at run time; use TryCMTimeMakeWithSeconds to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeMakeWithSeconds(_:preferredTimescale:)
func CMTimeMapDurationFromRangeToRange ¶
func CMTimeMapDurationFromRangeToRange(dur CMTime, fromRange CMTimeRange, toRange CMTimeRange) CMTime
CMTimeMapDurationFromRangeToRange translates a duration through a mapping from two time ranges.
It panics if CMTimeMapDurationFromRangeToRange is unavailable at run time; use TryCMTimeMapDurationFromRangeToRange to get an error instead.
func CMTimeMapTimeFromRangeToRange ¶
func CMTimeMapTimeFromRangeToRange(t CMTime, fromRange CMTimeRange, toRange CMTimeRange) CMTime
CMTimeMapTimeFromRangeToRange translates a time through a mapping from two time ranges.
It panics if CMTimeMapTimeFromRangeToRange is unavailable at run time; use TryCMTimeMapTimeFromRangeToRange to get an error instead.
func CMTimeMaximum ¶
CMTimeMaximum returns the greater of two time values.
It panics if CMTimeMaximum is unavailable at run time; use TryCMTimeMaximum to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeMaximum(_:_:)
func CMTimeMinimum ¶
CMTimeMinimum returns the lesser of two time values.
It panics if CMTimeMinimum is unavailable at run time; use TryCMTimeMinimum to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeMinimum(_:_:)
func CMTimeMultiply ¶
CMTimeMultiply returns the result of multiplying a time by an integer multiplier.
It panics if CMTimeMultiply is unavailable at run time; use TryCMTimeMultiply to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeMultiply(_:multiplier:)
func CMTimeMultiplyByFloat64 ¶
CMTimeMultiplyByFloat64 returns the result of multiplying a time by a floating-point multiplier.
It panics if CMTimeMultiplyByFloat64 is unavailable at run time; use TryCMTimeMultiplyByFloat64 to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeMultiplyByFloat64(_:multiplier:)
func CMTimeMultiplyByRatio ¶
CMTimeMultiplyByRatio returns the result of multiplying a time by an integer multiplier, and then dividing the result by the divisor.
It panics if CMTimeMultiplyByRatio is unavailable at run time; use TryCMTimeMultiplyByRatio to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeMultiplyByRatio(_:multiplier:divisor:)
func CMTimeRangeGetEnd ¶
func CMTimeRangeGetEnd(range_ CMTimeRange) CMTime
CMTimeRangeGetEnd returns a time value that represents the end of a time range.
It panics if CMTimeRangeGetEnd is unavailable at run time; use TryCMTimeRangeGetEnd to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeRangeGetEnd(_:)
func CMTimeSubtract ¶
CMTimeSubtract returns the difference between two times.
It panics if CMTimeSubtract is unavailable at run time; use TryCMTimeSubtract to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeSubtract(_:_:)
func CMTimebaseGetTime ¶
func CMTimebaseGetTime(timebase CMTimebaseRef) CMTime
CMTimebaseGetTime returns the current time from a timebase.
It panics if CMTimebaseGetTime is unavailable at run time; use TryCMTimebaseGetTime to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimebaseGetTime(_:)
func CMTimebaseGetTimeWithTimeScale ¶
func CMTimebaseGetTimeWithTimeScale(timebase CMTimebaseRef, timescale CMTimeScale, method CMTimeRoundingMethod) CMTime
CMTimebaseGetTimeWithTimeScale returns the current time from a timebase in the specified timescale.
It panics if CMTimebaseGetTimeWithTimeScale is unavailable at run time; use TryCMTimebaseGetTimeWithTimeScale to get an error instead.
func TryCMBufferQueueGetDuration ¶
func TryCMBufferQueueGetDuration(queue CMBufferQueueRef) (CMTime, error)
TryCMBufferQueueGetDuration is like CMBufferQueueGetDuration but returns an error instead of panicking if CMBufferQueueGetDuration is unavailable at run time.
func TryCMBufferQueueGetEndPresentationTimeStamp ¶
func TryCMBufferQueueGetEndPresentationTimeStamp(queue CMBufferQueueRef) (CMTime, error)
TryCMBufferQueueGetEndPresentationTimeStamp is like CMBufferQueueGetEndPresentationTimeStamp but returns an error instead of panicking if CMBufferQueueGetEndPresentationTimeStamp is unavailable at run time.
func TryCMBufferQueueGetFirstDecodeTimeStamp ¶
func TryCMBufferQueueGetFirstDecodeTimeStamp(queue CMBufferQueueRef) (CMTime, error)
TryCMBufferQueueGetFirstDecodeTimeStamp is like CMBufferQueueGetFirstDecodeTimeStamp but returns an error instead of panicking if CMBufferQueueGetFirstDecodeTimeStamp is unavailable at run time.
func TryCMBufferQueueGetFirstPresentationTimeStamp ¶
func TryCMBufferQueueGetFirstPresentationTimeStamp(queue CMBufferQueueRef) (CMTime, error)
TryCMBufferQueueGetFirstPresentationTimeStamp is like CMBufferQueueGetFirstPresentationTimeStamp but returns an error instead of panicking if CMBufferQueueGetFirstPresentationTimeStamp is unavailable at run time.
func TryCMBufferQueueGetMaxPresentationTimeStamp ¶
func TryCMBufferQueueGetMaxPresentationTimeStamp(queue CMBufferQueueRef) (CMTime, error)
TryCMBufferQueueGetMaxPresentationTimeStamp is like CMBufferQueueGetMaxPresentationTimeStamp but returns an error instead of panicking if CMBufferQueueGetMaxPresentationTimeStamp is unavailable at run time.
func TryCMBufferQueueGetMinDecodeTimeStamp ¶
func TryCMBufferQueueGetMinDecodeTimeStamp(queue CMBufferQueueRef) (CMTime, error)
TryCMBufferQueueGetMinDecodeTimeStamp is like CMBufferQueueGetMinDecodeTimeStamp but returns an error instead of panicking if CMBufferQueueGetMinDecodeTimeStamp is unavailable at run time.
func TryCMBufferQueueGetMinPresentationTimeStamp ¶
func TryCMBufferQueueGetMinPresentationTimeStamp(queue CMBufferQueueRef) (CMTime, error)
TryCMBufferQueueGetMinPresentationTimeStamp is like CMBufferQueueGetMinPresentationTimeStamp but returns an error instead of panicking if CMBufferQueueGetMinPresentationTimeStamp is unavailable at run time.
func TryCMClockGetTime ¶
func TryCMClockGetTime(clock CMClockRef) (CMTime, error)
TryCMClockGetTime is like CMClockGetTime but returns an error instead of panicking if CMClockGetTime is unavailable at run time.
func TryCMClockMakeHostTimeFromSystemUnits ¶
TryCMClockMakeHostTimeFromSystemUnits is like CMClockMakeHostTimeFromSystemUnits but returns an error instead of panicking if CMClockMakeHostTimeFromSystemUnits is unavailable at run time.
func TryCMSampleBufferGetDecodeTimeStamp ¶
func TryCMSampleBufferGetDecodeTimeStamp(sbuf CMSampleBufferRef) (CMTime, error)
TryCMSampleBufferGetDecodeTimeStamp is like CMSampleBufferGetDecodeTimeStamp but returns an error instead of panicking if CMSampleBufferGetDecodeTimeStamp is unavailable at run time.
func TryCMSampleBufferGetDuration ¶
func TryCMSampleBufferGetDuration(sbuf CMSampleBufferRef) (CMTime, error)
TryCMSampleBufferGetDuration is like CMSampleBufferGetDuration but returns an error instead of panicking if CMSampleBufferGetDuration is unavailable at run time.
func TryCMSampleBufferGetOutputDecodeTimeStamp ¶
func TryCMSampleBufferGetOutputDecodeTimeStamp(sbuf CMSampleBufferRef) (CMTime, error)
TryCMSampleBufferGetOutputDecodeTimeStamp is like CMSampleBufferGetOutputDecodeTimeStamp but returns an error instead of panicking if CMSampleBufferGetOutputDecodeTimeStamp is unavailable at run time.
func TryCMSampleBufferGetOutputDuration ¶
func TryCMSampleBufferGetOutputDuration(sbuf CMSampleBufferRef) (CMTime, error)
TryCMSampleBufferGetOutputDuration is like CMSampleBufferGetOutputDuration but returns an error instead of panicking if CMSampleBufferGetOutputDuration is unavailable at run time.
func TryCMSampleBufferGetOutputPresentationTimeStamp ¶
func TryCMSampleBufferGetOutputPresentationTimeStamp(sbuf CMSampleBufferRef) (CMTime, error)
TryCMSampleBufferGetOutputPresentationTimeStamp is like CMSampleBufferGetOutputPresentationTimeStamp but returns an error instead of panicking if CMSampleBufferGetOutputPresentationTimeStamp is unavailable at run time.
func TryCMSampleBufferGetPresentationTimeStamp ¶
func TryCMSampleBufferGetPresentationTimeStamp(sbuf CMSampleBufferRef) (CMTime, error)
TryCMSampleBufferGetPresentationTimeStamp is like CMSampleBufferGetPresentationTimeStamp but returns an error instead of panicking if CMSampleBufferGetPresentationTimeStamp is unavailable at run time.
func TryCMSyncConvertTime ¶
func TryCMSyncConvertTime(time CMTime, fromClockOrTimebase CMClockOrTimebaseRef, toClockOrTimebase CMClockOrTimebaseRef) (CMTime, error)
TryCMSyncConvertTime is like CMSyncConvertTime but returns an error instead of panicking if CMSyncConvertTime is unavailable at run time.
func TryCMSyncGetTime ¶
func TryCMSyncGetTime(clockOrTimebase CMClockOrTimebaseRef) (CMTime, error)
TryCMSyncGetTime is like CMSyncGetTime but returns an error instead of panicking if CMSyncGetTime is unavailable at run time.
func TryCMTimeAbsoluteValue ¶
TryCMTimeAbsoluteValue is like CMTimeAbsoluteValue but returns an error instead of panicking if CMTimeAbsoluteValue is unavailable at run time.
func TryCMTimeAdd ¶
TryCMTimeAdd is like CMTimeAdd but returns an error instead of panicking if CMTimeAdd is unavailable at run time.
func TryCMTimeClampToRange ¶
func TryCMTimeClampToRange(time CMTime, range_ CMTimeRange) (CMTime, error)
TryCMTimeClampToRange is like CMTimeClampToRange but returns an error instead of panicking if CMTimeClampToRange is unavailable at run time.
func TryCMTimeCodeFormatDescriptionGetFrameDuration ¶
func TryCMTimeCodeFormatDescriptionGetFrameDuration(timeCodeFormatDescription CMTimeCodeFormatDescriptionRef) (CMTime, error)
TryCMTimeCodeFormatDescriptionGetFrameDuration is like CMTimeCodeFormatDescriptionGetFrameDuration but returns an error instead of panicking if CMTimeCodeFormatDescriptionGetFrameDuration is unavailable at run time.
func TryCMTimeConvertScale ¶
func TryCMTimeConvertScale(time CMTime, newTimescale int32, method CMTimeRoundingMethod) (CMTime, error)
TryCMTimeConvertScale is like CMTimeConvertScale but returns an error instead of panicking if CMTimeConvertScale is unavailable at run time.
func TryCMTimeFoldIntoRange ¶
func TryCMTimeFoldIntoRange(time CMTime, foldRange CMTimeRange) (CMTime, error)
TryCMTimeFoldIntoRange is like CMTimeFoldIntoRange but returns an error instead of panicking if CMTimeFoldIntoRange is unavailable at run time.
func TryCMTimeMake ¶
TryCMTimeMake is like CMTimeMake but returns an error instead of panicking if CMTimeMake is unavailable at run time.
func TryCMTimeMakeFromDictionary ¶
func TryCMTimeMakeFromDictionary(dictionaryRepresentation corefoundation.CFDictionaryRef) (CMTime, error)
TryCMTimeMakeFromDictionary is like CMTimeMakeFromDictionary but returns an error instead of panicking if CMTimeMakeFromDictionary is unavailable at run time.
func TryCMTimeMakeWithEpoch ¶
TryCMTimeMakeWithEpoch is like CMTimeMakeWithEpoch but returns an error instead of panicking if CMTimeMakeWithEpoch is unavailable at run time.
func TryCMTimeMakeWithSeconds ¶
TryCMTimeMakeWithSeconds is like CMTimeMakeWithSeconds but returns an error instead of panicking if CMTimeMakeWithSeconds is unavailable at run time.
func TryCMTimeMapDurationFromRangeToRange ¶
func TryCMTimeMapDurationFromRangeToRange(dur CMTime, fromRange CMTimeRange, toRange CMTimeRange) (CMTime, error)
TryCMTimeMapDurationFromRangeToRange is like CMTimeMapDurationFromRangeToRange but returns an error instead of panicking if CMTimeMapDurationFromRangeToRange is unavailable at run time.
func TryCMTimeMapTimeFromRangeToRange ¶
func TryCMTimeMapTimeFromRangeToRange(t CMTime, fromRange CMTimeRange, toRange CMTimeRange) (CMTime, error)
TryCMTimeMapTimeFromRangeToRange is like CMTimeMapTimeFromRangeToRange but returns an error instead of panicking if CMTimeMapTimeFromRangeToRange is unavailable at run time.
func TryCMTimeMaximum ¶
TryCMTimeMaximum is like CMTimeMaximum but returns an error instead of panicking if CMTimeMaximum is unavailable at run time.
func TryCMTimeMinimum ¶
TryCMTimeMinimum is like CMTimeMinimum but returns an error instead of panicking if CMTimeMinimum is unavailable at run time.
func TryCMTimeMultiply ¶
TryCMTimeMultiply is like CMTimeMultiply but returns an error instead of panicking if CMTimeMultiply is unavailable at run time.
func TryCMTimeMultiplyByFloat64 ¶
TryCMTimeMultiplyByFloat64 is like CMTimeMultiplyByFloat64 but returns an error instead of panicking if CMTimeMultiplyByFloat64 is unavailable at run time.
func TryCMTimeMultiplyByRatio ¶
TryCMTimeMultiplyByRatio is like CMTimeMultiplyByRatio but returns an error instead of panicking if CMTimeMultiplyByRatio is unavailable at run time.
func TryCMTimeRangeGetEnd ¶
func TryCMTimeRangeGetEnd(range_ CMTimeRange) (CMTime, error)
TryCMTimeRangeGetEnd is like CMTimeRangeGetEnd but returns an error instead of panicking if CMTimeRangeGetEnd is unavailable at run time.
func TryCMTimeSubtract ¶
TryCMTimeSubtract is like CMTimeSubtract but returns an error instead of panicking if CMTimeSubtract is unavailable at run time.
func TryCMTimebaseGetTime ¶
func TryCMTimebaseGetTime(timebase CMTimebaseRef) (CMTime, error)
TryCMTimebaseGetTime is like CMTimebaseGetTime but returns an error instead of panicking if CMTimebaseGetTime is unavailable at run time.
func TryCMTimebaseGetTimeWithTimeScale ¶
func TryCMTimebaseGetTimeWithTimeScale(timebase CMTimebaseRef, timescale CMTimeScale, method CMTimeRoundingMethod) (CMTime, error)
TryCMTimebaseGetTimeWithTimeScale is like CMTimebaseGetTimeWithTimeScale but returns an error instead of panicking if CMTimebaseGetTimeWithTimeScale is unavailable at run time.
func (*CMTime) Epoch ¶
func (s *CMTime) Epoch() CMTimeEpoch
Epoch returns the Epoch field from the record's packed storage.
func (*CMTime) Flags ¶
func (s *CMTime) Flags() CMTimeFlags
Flags returns the Flags field from the record's packed storage.
func (*CMTime) SetEpoch ¶ added in v0.6.17
func (s *CMTime) SetEpoch(v CMTimeEpoch)
SetEpoch updates the Epoch field in the record's packed storage.
func (*CMTime) SetFlags ¶ added in v0.6.17
func (s *CMTime) SetFlags(v CMTimeFlags)
SetFlags updates the Flags field in the record's packed storage.
func (*CMTime) SetTimescale ¶ added in v0.6.17
func (s *CMTime) SetTimescale(v CMTimeScale)
SetTimescale updates the Timescale field in the record's packed storage.
func (*CMTime) SetValue ¶ added in v0.6.17
func (s *CMTime) SetValue(v CMTimeValue)
SetValue updates the Value field in the record's packed storage.
func (*CMTime) Timescale ¶
func (s *CMTime) Timescale() CMTimeScale
Timescale returns the Timescale field from the record's packed storage.
func (*CMTime) Value ¶
func (s *CMTime) Value() CMTimeValue
Value returns the Value field from the record's packed storage.
type CMTimeCodeDescriptionFlavor ¶
type CMTimeCodeDescriptionFlavor = corefoundation.CFStringRef
CMTimeCodeDescriptionFlavor is types that represent time code format descriptions.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeCodeDescriptionFlavor
type CMTimeCodeFormatDescriptionRef ¶
type CMTimeCodeFormatDescriptionRef uintptr
CMTimeCodeFormatDescriptionRef is a type you use to interact with time code format descriptions.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeCodeFormatDescription
type CMTimeCodeFormatType ¶
type CMTimeCodeFormatType = uint32
CMTimeCodeFormatType is a time code format type.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeCodeFormatType
const ( // KCMTimeCodeFormatType_Counter32: 32-bit counter-mode sample. KCMTimeCodeFormatType_Counter32 CMTimeCodeFormatType = 'c'<<24 | 'n'<<16 | '3'<<8 | '2' // 'cn32' // KCMTimeCodeFormatType_Counter64: 64-bit counter-mode sample. KCMTimeCodeFormatType_Counter64 CMTimeCodeFormatType = 'c'<<24 | 'n'<<16 | '6'<<8 | '4' // 'cn64' // KCMTimeCodeFormatType_TimeCode32: 32-bit time code sample. KCMTimeCodeFormatType_TimeCode32 CMTimeCodeFormatType = 't'<<24 | 'm'<<16 | 'c'<<8 | 'd' // 'tmcd' // KCMTimeCodeFormatType_TimeCode64: 64-bit time code sample. KCMTimeCodeFormatType_TimeCode64 CMTimeCodeFormatType = 't'<<24 | 'c'<<16 | '6'<<8 | '4' // 'tc64' )
type CMTimeEpoch ¶
type CMTimeEpoch = int64
CMTimeEpoch is an epoch for a time.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeEpoch
type CMTimeFlags ¶
type CMTimeFlags uint32
See: https://developer.apple.com/documentation/CoreMedia/CMTimeFlags
const ( // KCMTimeFlags_HasBeenRounded: A flag that indicates a previous time calculation rounded the result. KCMTimeFlags_HasBeenRounded CMTimeFlags = 2 // KCMTimeFlags_ImpliedValueFlagsMask: A flag that indicates the time is positive or negative infinity, or indefinite. KCMTimeFlags_ImpliedValueFlagsMask CMTimeFlags = 28 // KCMTimeFlags_Indefinite: A flag that indicates the time is indefinite. KCMTimeFlags_Indefinite CMTimeFlags = 16 // KCMTimeFlags_NegativeInfinity: A flag that indicates the time is negative infinity. KCMTimeFlags_NegativeInfinity CMTimeFlags = 8 // KCMTimeFlags_PositiveInfinity: A flag that indicates the time is positive infinity. KCMTimeFlags_PositiveInfinity CMTimeFlags = 4 // KCMTimeFlags_Valid: A flag that indicates a time is valid. KCMTimeFlags_Valid CMTimeFlags = 1 )
func (CMTimeFlags) String ¶
func (e CMTimeFlags) String() string
type CMTimeMapping ¶
type CMTimeMapping struct {
// contains filtered or unexported fields
}
CMTimeMapping - A structure that maps a segment of a source time range to a target time range.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreMedia/CMTimeMapping
var ( // KCMTimeMappingInvalid is an invalid time mapping. // // See: https://developer.apple.com/documentation/CoreMedia/CMTimeMapping/invalid KCMTimeMappingInvalid CMTimeMapping )
func CMTimeMappingMake ¶
func CMTimeMappingMake(source CMTimeRange, target CMTimeRange) CMTimeMapping
CMTimeMappingMake creates a time mapping with a source and target time range.
It panics if CMTimeMappingMake is unavailable at run time; use TryCMTimeMappingMake to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeMappingMake(source:target:)
func CMTimeMappingMakeEmpty ¶
func CMTimeMappingMakeEmpty(target CMTimeRange) CMTimeMapping
CMTimeMappingMakeEmpty creates a valid time mapping with an empty source.
It panics if CMTimeMappingMakeEmpty is unavailable at run time; use TryCMTimeMappingMakeEmpty to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeMappingMakeEmpty(target:)
func CMTimeMappingMakeFromDictionary ¶
func CMTimeMappingMakeFromDictionary(dictionaryRepresentation corefoundation.CFDictionaryRef) CMTimeMapping
CMTimeMappingMakeFromDictionary creates a time mapping from a dictionary representation.
It panics if CMTimeMappingMakeFromDictionary is unavailable at run time; use TryCMTimeMappingMakeFromDictionary to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeMappingMakeFromDictionary(_:)
func TryCMTimeMappingMake ¶
func TryCMTimeMappingMake(source CMTimeRange, target CMTimeRange) (CMTimeMapping, error)
TryCMTimeMappingMake is like CMTimeMappingMake but returns an error instead of panicking if CMTimeMappingMake is unavailable at run time.
func TryCMTimeMappingMakeEmpty ¶
func TryCMTimeMappingMakeEmpty(target CMTimeRange) (CMTimeMapping, error)
TryCMTimeMappingMakeEmpty is like CMTimeMappingMakeEmpty but returns an error instead of panicking if CMTimeMappingMakeEmpty is unavailable at run time.
func TryCMTimeMappingMakeFromDictionary ¶
func TryCMTimeMappingMakeFromDictionary(dictionaryRepresentation corefoundation.CFDictionaryRef) (CMTimeMapping, error)
TryCMTimeMappingMakeFromDictionary is like CMTimeMappingMakeFromDictionary but returns an error instead of panicking if CMTimeMappingMakeFromDictionary is unavailable at run time.
func (*CMTimeMapping) SetSource ¶ added in v0.6.17
func (s *CMTimeMapping) SetSource(v CMTimeRange)
SetSource updates the Source field in the record's packed storage.
func (*CMTimeMapping) SetTarget ¶ added in v0.6.17
func (s *CMTimeMapping) SetTarget(v CMTimeRange)
SetTarget updates the Target field in the record's packed storage.
func (*CMTimeMapping) Source ¶
func (s *CMTimeMapping) Source() CMTimeRange
Source returns the Source field from the record's packed storage.
func (*CMTimeMapping) Target ¶
func (s *CMTimeMapping) Target() CMTimeRange
Target returns the Target field from the record's packed storage.
type CMTimeRange ¶
type CMTimeRange struct {
// contains filtered or unexported fields
}
CMTimeRange - A structure that represents a time range.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreMedia/CMTimeRange
var ( // KCMTimeRangeInvalid is a constant for generating an invalid time range. // // See: https://developer.apple.com/documentation/CoreMedia/CMTimeRange/invalid KCMTimeRangeInvalid CMTimeRange // KCMTimeRangeZero is a constant for generating an empty time range at zero. // // See: https://developer.apple.com/documentation/CoreMedia/CMTimeRange/zero KCMTimeRangeZero CMTimeRange )
func CMTimeRangeFromTimeToTime ¶
func CMTimeRangeFromTimeToTime(start CMTime, end CMTime) CMTimeRange
CMTimeRangeFromTimeToTime creates a valid time range from a start and end time.
It panics if CMTimeRangeFromTimeToTime is unavailable at run time; use TryCMTimeRangeFromTimeToTime to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeRangeFromTimeToTime(start:end:)
func CMTimeRangeGetIntersection ¶
func CMTimeRangeGetIntersection(range_ CMTimeRange, otherRange CMTimeRange) CMTimeRange
CMTimeRangeGetIntersection returns a new time range with the time elements that are common between the input.
It panics if CMTimeRangeGetIntersection is unavailable at run time; use TryCMTimeRangeGetIntersection to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeRangeGetIntersection(_:otherRange:)
func CMTimeRangeGetUnion ¶
func CMTimeRangeGetUnion(range_ CMTimeRange, otherRange CMTimeRange) CMTimeRange
CMTimeRangeGetUnion returns a new time range with the time elements of the input.
It panics if CMTimeRangeGetUnion is unavailable at run time; use TryCMTimeRangeGetUnion to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeRangeGetUnion(_:otherRange:)
func CMTimeRangeMake ¶
func CMTimeRangeMake(start CMTime, duration CMTime) CMTimeRange
CMTimeRangeMake creates a valid time range with a start time and duration.
It panics if CMTimeRangeMake is unavailable at run time; use TryCMTimeRangeMake to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeRangeMake(start:duration:)
func CMTimeRangeMakeFromDictionary ¶
func CMTimeRangeMakeFromDictionary(dictionaryRepresentation corefoundation.CFDictionaryRef) CMTimeRange
CMTimeRangeMakeFromDictionary creates a time range from a dictionary representation of its fields.
It panics if CMTimeRangeMakeFromDictionary is unavailable at run time; use TryCMTimeRangeMakeFromDictionary to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeRangeMakeFromDictionary(_:)
func TryCMTimeRangeFromTimeToTime ¶
func TryCMTimeRangeFromTimeToTime(start CMTime, end CMTime) (CMTimeRange, error)
TryCMTimeRangeFromTimeToTime is like CMTimeRangeFromTimeToTime but returns an error instead of panicking if CMTimeRangeFromTimeToTime is unavailable at run time.
func TryCMTimeRangeGetIntersection ¶
func TryCMTimeRangeGetIntersection(range_ CMTimeRange, otherRange CMTimeRange) (CMTimeRange, error)
TryCMTimeRangeGetIntersection is like CMTimeRangeGetIntersection but returns an error instead of panicking if CMTimeRangeGetIntersection is unavailable at run time.
func TryCMTimeRangeGetUnion ¶
func TryCMTimeRangeGetUnion(range_ CMTimeRange, otherRange CMTimeRange) (CMTimeRange, error)
TryCMTimeRangeGetUnion is like CMTimeRangeGetUnion but returns an error instead of panicking if CMTimeRangeGetUnion is unavailable at run time.
func TryCMTimeRangeMake ¶
func TryCMTimeRangeMake(start CMTime, duration CMTime) (CMTimeRange, error)
TryCMTimeRangeMake is like CMTimeRangeMake but returns an error instead of panicking if CMTimeRangeMake is unavailable at run time.
func TryCMTimeRangeMakeFromDictionary ¶
func TryCMTimeRangeMakeFromDictionary(dictionaryRepresentation corefoundation.CFDictionaryRef) (CMTimeRange, error)
TryCMTimeRangeMakeFromDictionary is like CMTimeRangeMakeFromDictionary but returns an error instead of panicking if CMTimeRangeMakeFromDictionary is unavailable at run time.
func (*CMTimeRange) Duration ¶
func (s *CMTimeRange) Duration() CMTime
Duration returns the Duration field from the record's packed storage.
func (*CMTimeRange) SetDuration ¶ added in v0.6.17
func (s *CMTimeRange) SetDuration(v CMTime)
SetDuration updates the Duration field in the record's packed storage.
func (*CMTimeRange) SetStart ¶ added in v0.6.17
func (s *CMTimeRange) SetStart(v CMTime)
SetStart updates the Start field in the record's packed storage.
func (*CMTimeRange) Start ¶
func (s *CMTimeRange) Start() CMTime
Start returns the Start field from the record's packed storage.
type CMTimeRoundingMethod ¶
type CMTimeRoundingMethod uint32
See: https://developer.apple.com/documentation/CoreMedia/CMTimeRoundingMethod
const ( // KCMTimeRoundingMethod_Default: The default rounding method. KCMTimeRoundingMethod_Default CMTimeRoundingMethod = 1 // KCMTimeRoundingMethod_QuickTime: Rounds using the QuickTime method. KCMTimeRoundingMethod_QuickTime CMTimeRoundingMethod = 4 // KCMTimeRoundingMethod_RoundAwayFromZero: Rounds away from zero. KCMTimeRoundingMethod_RoundAwayFromZero CMTimeRoundingMethod = 3 // KCMTimeRoundingMethod_RoundHalfAwayFromZero: Rounds half away from zero. KCMTimeRoundingMethod_RoundHalfAwayFromZero CMTimeRoundingMethod = 1 // KCMTimeRoundingMethod_RoundTowardNegativeInfinity: Rounds toward negative infinity. KCMTimeRoundingMethod_RoundTowardNegativeInfinity CMTimeRoundingMethod = 6 // KCMTimeRoundingMethod_RoundTowardPositiveInfinity: Rounds toward positive infinity. KCMTimeRoundingMethod_RoundTowardPositiveInfinity CMTimeRoundingMethod = 5 // KCMTimeRoundingMethod_RoundTowardZero: Rounds toward zero. KCMTimeRoundingMethod_RoundTowardZero CMTimeRoundingMethod = 2 )
func (CMTimeRoundingMethod) String ¶
func (e CMTimeRoundingMethod) String() string
type CMTimeScale ¶
type CMTimeScale = int32
CMTimeScale is an integer timescale.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeScale
type CMTimeValue ¶
type CMTimeValue = int64
CMTimeValue is an integer time value.
See: https://developer.apple.com/documentation/CoreMedia/CMTimeValue
type CMTimebaseRef ¶
type CMTimebaseRef uintptr
CMTimebaseRef is a model of a timeline under application control.
See: https://developer.apple.com/documentation/CoreMedia/CMTimebase
func CMTimebaseCopySourceTimebase ¶
func CMTimebaseCopySourceTimebase(timebase CMTimebaseRef) CMTimebaseRef
CMTimebaseCopySourceTimebase returns the immediate source timebase of a timebase.
It panics if CMTimebaseCopySourceTimebase is unavailable at run time; use TryCMTimebaseCopySourceTimebase to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimebaseCopySourceTimebase(_:)
func CMTimebaseGetMasterTimebase
deprecated
func CMTimebaseGetMasterTimebase(timebase CMTimebaseRef) CMTimebaseRef
CMTimebaseGetMasterTimebase returns the immediate host timebase of a timebase.
It panics if CMTimebaseGetMasterTimebase is unavailable at run time; use TryCMTimebaseGetMasterTimebase to get an error instead.
Deprecated: Deprecated since macOS 10.11. Use [CMTimebaseCopySourceTimebase(_:)](<https://developer.apple.com/documentation/CoreMedia/CMTimebaseCopySourceTimebase(_:)>) instead.
See: https://developer.apple.com/documentation/CoreMedia/CMTimebaseGetMasterTimebase(_:)
func TryCMTimebaseCopySourceTimebase ¶
func TryCMTimebaseCopySourceTimebase(timebase CMTimebaseRef) (CMTimebaseRef, error)
TryCMTimebaseCopySourceTimebase is like CMTimebaseCopySourceTimebase but returns an error instead of panicking if CMTimebaseCopySourceTimebase is unavailable at run time.
func TryCMTimebaseGetMasterTimebase ¶
func TryCMTimebaseGetMasterTimebase(timebase CMTimebaseRef) (CMTimebaseRef, error)
TryCMTimebaseGetMasterTimebase is like CMTimebaseGetMasterTimebase but returns an error instead of panicking if CMTimebaseGetMasterTimebase is unavailable at run time.
type CMVideoCodecType ¶
type CMVideoCodecType = uint32
CMVideoCodecType is a video codec type.
See: https://developer.apple.com/documentation/CoreMedia/CMVideoCodecType
const ( // KCMVideoCodecType_422YpCbCr8: A type that identifies a component with the format of Y’CbCr 8-bit 4:2:2 ordered Cb Y’0 Cr Y’1. KCMVideoCodecType_422YpCbCr8 CMVideoCodecType = '2'<<24 | 'v'<<16 | 'u'<<8 | 'y' // '2vuy' KCMVideoCodecType_AV1 CMVideoCodecType = 'a'<<24 | 'v'<<16 | '0'<<8 | '1' // 'av01' // KCMVideoCodecType_Animation: A type that identifies the apple animation format. KCMVideoCodecType_Animation CMVideoCodecType = 'r'<<24 | 'l'<<16 | 'e'<<8 | ' ' // 'rle ' // KCMVideoCodecType_AppleProRes422: A type that identifies the Apple ProRes 422 format. KCMVideoCodecType_AppleProRes422 CMVideoCodecType = 'a'<<24 | 'p'<<16 | 'c'<<8 | 'n' // 'apcn' // KCMVideoCodecType_AppleProRes422HQ: A type that identifies the Apple ProRes 422 HQ format. KCMVideoCodecType_AppleProRes422HQ CMVideoCodecType = 'a'<<24 | 'p'<<16 | 'c'<<8 | 'h' // 'apch' // KCMVideoCodecType_AppleProRes422LT: A type that identifies the Apple ProRes 422 LT format. KCMVideoCodecType_AppleProRes422LT CMVideoCodecType = 'a'<<24 | 'p'<<16 | 'c'<<8 | 's' // 'apcs' // KCMVideoCodecType_AppleProRes422Proxy: A type that identifies the Apple ProRes 422 proxy format. KCMVideoCodecType_AppleProRes422Proxy CMVideoCodecType = 'a'<<24 | 'p'<<16 | 'c'<<8 | 'o' // 'apco' // KCMVideoCodecType_AppleProRes4444: A type that identifies the Apple ProRes 4444 format. KCMVideoCodecType_AppleProRes4444 CMVideoCodecType = 'a'<<24 | 'p'<<16 | '4'<<8 | 'h' // 'ap4h' // KCMVideoCodecType_AppleProRes4444XQ: A type that identifies the Apple ProRes 4444 XQ format. KCMVideoCodecType_AppleProRes4444XQ CMVideoCodecType = 'a'<<24 | 'p'<<16 | '4'<<8 | 'x' // 'ap4x' // KCMVideoCodecType_AppleProResRAW: A type that identifies the Apple ProRes RAW format. KCMVideoCodecType_AppleProResRAW CMVideoCodecType = 'a'<<24 | 'p'<<16 | 'r'<<8 | 'n' // 'aprn' // KCMVideoCodecType_AppleProResRAWHQ: A type that identifies the Apple ProRes RAW HQ format. KCMVideoCodecType_AppleProResRAWHQ CMVideoCodecType = 'a'<<24 | 'p'<<16 | 'r'<<8 | 'h' // 'aprh' // KCMVideoCodecType_Cinepak: A type that identifies the cinepak format. KCMVideoCodecType_Cinepak CMVideoCodecType = 'c'<<24 | 'v'<<16 | 'i'<<8 | 'd' // 'cvid' // KCMVideoCodecType_DVCNTSC: A type that identifies the DV NTSC format. KCMVideoCodecType_DVCNTSC CMVideoCodecType = 'd'<<24 | 'v'<<16 | 'c'<<8 | ' ' // 'dvc ' // KCMVideoCodecType_DVCPAL: A type that identifies the DV PAL format. KCMVideoCodecType_DVCPAL CMVideoCodecType = 'd'<<24 | 'v'<<16 | 'c'<<8 | 'p' // 'dvcp' // KCMVideoCodecType_DVCPROHD1080i50: A type that identifies the Panasonic DVCPro-HD 1080i50 format. KCMVideoCodecType_DVCPROHD1080i50 CMVideoCodecType = 'd'<<24 | 'v'<<16 | 'h'<<8 | '5' // 'dvh5' // KCMVideoCodecType_DVCPROHD1080i60: A type that identifies the Panasonic DVCPro-HD 1080i60 format. KCMVideoCodecType_DVCPROHD1080i60 CMVideoCodecType = 'd'<<24 | 'v'<<16 | 'h'<<8 | '6' // 'dvh6' // KCMVideoCodecType_DVCPROHD1080p25: A type that identifies the Panasonic DVCPro-HD 1080p25 format. KCMVideoCodecType_DVCPROHD1080p25 CMVideoCodecType = 'd'<<24 | 'v'<<16 | 'h'<<8 | '2' // 'dvh2' // KCMVideoCodecType_DVCPROHD1080p30: A type that identifies the Panasonic DVCPro-HD 1080p30 format. KCMVideoCodecType_DVCPROHD1080p30 CMVideoCodecType = 'd'<<24 | 'v'<<16 | 'h'<<8 | '3' // 'dvh3' // KCMVideoCodecType_DVCPROHD720p50: A type that identifies the Panasonic DVCPro-HD 720p50 format. KCMVideoCodecType_DVCPROHD720p50 CMVideoCodecType = 'd'<<24 | 'v'<<16 | 'h'<<8 | 'q' // 'dvhq' // KCMVideoCodecType_DVCPROHD720p60: A type that identifies the Panasonic DVCPro-HD 720p60 format. KCMVideoCodecType_DVCPROHD720p60 CMVideoCodecType = 'd'<<24 | 'v'<<16 | 'h'<<8 | 'p' // 'dvhp' // KCMVideoCodecType_DVCPro50NTSC: A type that identifies the Panasonic DVCPro-50 NTSC format. KCMVideoCodecType_DVCPro50NTSC CMVideoCodecType = 'd'<<24 | 'v'<<16 | '5'<<8 | 'n' // 'dv5n' // KCMVideoCodecType_DVCPro50PAL: A type that identifies the Panasonic DVCPro-50 PAL format. KCMVideoCodecType_DVCPro50PAL CMVideoCodecType = 'd'<<24 | 'v'<<16 | '5'<<8 | 'p' // 'dv5p' // KCMVideoCodecType_DVCProPAL: A type that identifies the Panasonic DVCPro PAL format. KCMVideoCodecType_DVCProPAL CMVideoCodecType = 'd'<<24 | 'v'<<16 | 'p'<<8 | 'p' // 'dvpp' // KCMVideoCodecType_DepthHEVC: A type that identifies the depth HEVC format. KCMVideoCodecType_DepthHEVC CMVideoCodecType = 'd'<<24 | 'e'<<16 | 'p'<<8 | 'h' // 'deph' // KCMVideoCodecType_DisparityHEVC: A type that identifies the disparity HEVC format. KCMVideoCodecType_DisparityHEVC CMVideoCodecType = 'd'<<24 | 'i'<<16 | 's'<<8 | 'h' // 'dish' // KCMVideoCodecType_DolbyVisionHEVC: A type that identifies the Dolby Vision HEVC format. KCMVideoCodecType_DolbyVisionHEVC CMVideoCodecType = 'd'<<24 | 'v'<<16 | 'h'<<8 | '1' // 'dvh1' // KCMVideoCodecType_H263: A type that identifies the ITU-T H.263 format. KCMVideoCodecType_H263 CMVideoCodecType = 'h'<<24 | '2'<<16 | '6'<<8 | '3' // 'h263' // KCMVideoCodecType_H264: A type that identifies the ITU-T H.264 format. KCMVideoCodecType_H264 CMVideoCodecType = 'a'<<24 | 'v'<<16 | 'c'<<8 | '1' // 'avc1' // KCMVideoCodecType_HEVC: A type that identifies the ITU-T HEVC format. KCMVideoCodecType_HEVC CMVideoCodecType = 'h'<<24 | 'v'<<16 | 'c'<<8 | '1' // 'hvc1' // KCMVideoCodecType_HEVCWithAlpha: A type that identifies the HEVC format with alpha support. KCMVideoCodecType_HEVCWithAlpha CMVideoCodecType = 'm'<<24 | 'u'<<16 | 'x'<<8 | 'a' // 'muxa' // KCMVideoCodecType_JPEG: A type that identifies the Joint Photographic Experts Group (JPEG) format. KCMVideoCodecType_JPEG CMVideoCodecType = 'j'<<24 | 'p'<<16 | 'e'<<8 | 'g' // 'jpeg' // KCMVideoCodecType_JPEG_OpenDML: A type that identifies the JPEG format with Open-DML extensions. KCMVideoCodecType_JPEG_OpenDML CMVideoCodecType = 'd'<<24 | 'm'<<16 | 'b'<<8 | '1' // 'dmb1' KCMVideoCodecType_JPEG_XL CMVideoCodecType = 'j'<<24 | 'x'<<16 | 'l'<<8 | 'c' // 'jxlc' // KCMVideoCodecType_MPEG1Video: A type that identifies the MPEG-1 video format. KCMVideoCodecType_MPEG1Video CMVideoCodecType = 'm'<<24 | 'p'<<16 | '1'<<8 | 'v' // 'mp1v' // KCMVideoCodecType_MPEG2Video: A type that identifies the MPEG-2 video format. KCMVideoCodecType_MPEG2Video CMVideoCodecType = 'm'<<24 | 'p'<<16 | '2'<<8 | 'v' // 'mp2v' // KCMVideoCodecType_MPEG4Video: A type that identifies the Moving Picture Experts Group (MPEG) MPEG-4 Part 2 video format. KCMVideoCodecType_MPEG4Video CMVideoCodecType = 'm'<<24 | 'p'<<16 | '4'<<8 | 'v' // 'mp4v' // KCMVideoCodecType_SorensonVideo: A type that identifies the sorenson video format. KCMVideoCodecType_SorensonVideo CMVideoCodecType = 'S'<<24 | 'V'<<16 | 'Q'<<8 | '1' // 'SVQ1' // KCMVideoCodecType_SorensonVideo3: A type that identifies the sorenson 3 video format. KCMVideoCodecType_SorensonVideo3 CMVideoCodecType = 'S'<<24 | 'V'<<16 | 'Q'<<8 | '3' // 'SVQ3' // KCMVideoCodecType_VP9: A type that identifies the VP9 format. KCMVideoCodecType_VP9 CMVideoCodecType = 'v'<<24 | 'p'<<16 | '0'<<8 | '9' // 'vp09' )
type CMVideoDimensions ¶
type CMVideoDimensions struct {
Width int32 // The width of the video.
Height int32 // The height of the video.
}
CMVideoDimensions - A structure that represents video dimensions.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreMedia/CMVideoDimensions
func CMVideoFormatDescriptionGetDimensions ¶
func CMVideoFormatDescriptionGetDimensions(videoDesc CMVideoFormatDescriptionRef) CMVideoDimensions
CMVideoFormatDescriptionGetDimensions returns the video dimensions, in encoded pixels.
It panics if CMVideoFormatDescriptionGetDimensions is unavailable at run time; use TryCMVideoFormatDescriptionGetDimensions to get an error instead.
See: https://developer.apple.com/documentation/CoreMedia/CMVideoFormatDescriptionGetDimensions(_:)
func TryCMVideoFormatDescriptionGetDimensions ¶
func TryCMVideoFormatDescriptionGetDimensions(videoDesc CMVideoFormatDescriptionRef) (CMVideoDimensions, error)
TryCMVideoFormatDescriptionGetDimensions is like CMVideoFormatDescriptionGetDimensions but returns an error instead of panicking if CMVideoFormatDescriptionGetDimensions is unavailable at run time.
type CMVideoFormatDescriptionRef ¶
type CMVideoFormatDescriptionRef uintptr
CMVideoFormatDescriptionRef is a type you use to interact with video format descriptions.
See: https://developer.apple.com/documentation/CoreMedia/CMVideoFormatDescription
type KCMAudioFormatDescriptionMask
deprecated
type KCMAudioFormatDescriptionMask = CMAudioFormatDescriptionMask
KCMAudioFormatDescriptionMask is the pre-v0.7.0 name of CMAudioFormatDescriptionMask.
Deprecated: use CMAudioFormatDescriptionMask.
type KCMBlockBuffer ¶
type KCMBlockBuffer int32
const ( // KCMBlockBufferBadCustomBlockSourceErr: An error code that indicates the custom block source is invalid. KCMBlockBufferBadCustomBlockSourceErr KCMBlockBuffer = -12702 // KCMBlockBufferBadLengthParameterErr: An error code that indicates the block length is zero or doesn’t equal the size of the memory block. KCMBlockBufferBadLengthParameterErr KCMBlockBuffer = -12704 // KCMBlockBufferBadOffsetParameterErr: An error code that indicates the offset doesn’t point to the location of data in the memory block. KCMBlockBufferBadOffsetParameterErr KCMBlockBuffer = -12703 // KCMBlockBufferBadPointerParameterErr: An error code that indicates the block buffer reference is invalid. KCMBlockBufferBadPointerParameterErr KCMBlockBuffer = -12705 // KCMBlockBufferBlockAllocationFailedErr: An error code that indicates the block allocator failed to allocate a memory block. KCMBlockBufferBlockAllocationFailedErr KCMBlockBuffer = -12701 // KCMBlockBufferEmptyBBufErr: An error code that indicates the block buffer is empty. KCMBlockBufferEmptyBBufErr KCMBlockBuffer = -12706 // KCMBlockBufferInsufficientSpaceErr: An error code that indicates the system failed to create a new buffer because of insufficient space at the buffer out location. KCMBlockBufferInsufficientSpaceErr KCMBlockBuffer = -12708 // KCMBlockBufferNoErr: A code that indicates the system successfully created a block buffer with no errors. KCMBlockBufferNoErr KCMBlockBuffer = 0 // KCMBlockBufferStructureAllocationFailedErr: An error code that indicates the structure allocator failed to allocate a block buffer. KCMBlockBufferStructureAllocationFailedErr KCMBlockBuffer = -12700 // KCMBlockBufferUnallocatedBlockErr: An error code that indicates the system encountered an unallocated memory block. KCMBlockBufferUnallocatedBlockErr KCMBlockBuffer = -12707 )
func (KCMBlockBuffer) String ¶
func (e KCMBlockBuffer) String() string
type KCMBlockBufferCustomBlockSource ¶ added in v0.5.1
type KCMBlockBufferCustomBlockSource uint32
const ( // KCMBlockBufferCustomBlockSourceVersion: The value is the block source version. KCMBlockBufferCustomBlockSourceVersion KCMBlockBufferCustomBlockSource = 0 )
func (KCMBlockBufferCustomBlockSource) String ¶ added in v0.5.1
func (e KCMBlockBufferCustomBlockSource) String() string
type KCMBufferQueueError ¶
type KCMBufferQueueError int32
const ( // KCMBufferQueueError_AllocationFailed: The system failed to allocate memory. KCMBufferQueueError_AllocationFailed KCMBufferQueueError = -12760 // KCMBufferQueueError_BadTriggerDuration: You specified an invalid trigger duration. KCMBufferQueueError_BadTriggerDuration KCMBufferQueueError = -12765 // KCMBufferQueueError_CannotModifyQueueFromTriggerCallback: A trigger callback attempted to modify a queue. KCMBufferQueueError_CannotModifyQueueFromTriggerCallback KCMBufferQueueError = -12766 // KCMBufferQueueError_EnqueueAfterEndOfData: You attempted to enqueue a buffer on a queue that disallows it. KCMBufferQueueError_EnqueueAfterEndOfData KCMBufferQueueError = -12763 // KCMBufferQueueError_InvalidBuffer: A buffer validation callback rejected the buffer. KCMBufferQueueError_InvalidBuffer KCMBufferQueueError = -12769 // KCMBufferQueueError_InvalidCMBufferCallbacksStruct: The format of a callbacks structure isn’t correct. KCMBufferQueueError_InvalidCMBufferCallbacksStruct KCMBufferQueueError = -12762 // KCMBufferQueueError_InvalidTriggerCondition: You specified an invalid trigger condition. KCMBufferQueueError_InvalidTriggerCondition KCMBufferQueueError = -12767 // KCMBufferQueueError_InvalidTriggerToken: You specified a trigger token that isn’t a trigger currently associated with this queue. KCMBufferQueueError_InvalidTriggerToken KCMBufferQueueError = -12768 // KCMBufferQueueError_QueueIsFull: You attempted to enqueue a buffer on a queue that’s full. KCMBufferQueueError_QueueIsFull KCMBufferQueueError = -12764 // KCMBufferQueueError_RequiredParameterMissing: You failed to provide a valid value for a required parameter. KCMBufferQueueError_RequiredParameterMissing KCMBufferQueueError = -12761 )
func (KCMBufferQueueError) String ¶
func (e KCMBufferQueueError) String() string
type KCMClockError ¶
type KCMClockError int32
const ( // KCMClockError_AllocationFailed: A clock error that indicates the memory allocation fails. KCMClockError_AllocationFailed KCMClockError = -12747 // KCMClockError_InvalidParameter: A clock error that indicates a parameter isn’t valid. KCMClockError_InvalidParameter KCMClockError = -12746 // KCMClockError_MissingRequiredParameter: A clock error that indicates a parameter is missing. KCMClockError_MissingRequiredParameter KCMClockError = -12745 // KCMClockError_UnsupportedOperation: A clock error that indicates the operation isn’t supported. KCMClockError_UnsupportedOperation KCMClockError = -12756 )
func (KCMClockError) String ¶
func (e KCMClockError) String() string
type KCMClosedCaptionFormatType
deprecated
type KCMClosedCaptionFormatType = CMClosedCaptionFormatType
KCMClosedCaptionFormatType is the pre-v0.7.0 name of CMClosedCaptionFormatType.
Deprecated: use CMClosedCaptionFormatType.
type KCMFormatDescriptionBridgeError ¶
type KCMFormatDescriptionBridgeError int32
const ( // KCMFormatDescriptionBridgeError_AllocationFailed: A bridge error that indicates when an allocation fails. KCMFormatDescriptionBridgeError_AllocationFailed KCMFormatDescriptionBridgeError = -12713 // KCMFormatDescriptionBridgeError_IncompatibleFormatDescription: A bridge error that indicates the format description has an unknown format. KCMFormatDescriptionBridgeError_IncompatibleFormatDescription KCMFormatDescriptionBridgeError = -12716 // KCMFormatDescriptionBridgeError_InvalidFormatDescription: A bridge error that indicates the format description isn’t valid. KCMFormatDescriptionBridgeError_InvalidFormatDescription KCMFormatDescriptionBridgeError = -12715 // KCMFormatDescriptionBridgeError_InvalidParameter: A bridge error that indicates that the function recieves an empty value for a parameter it requires. KCMFormatDescriptionBridgeError_InvalidParameter KCMFormatDescriptionBridgeError = -12712 // KCMFormatDescriptionBridgeError_InvalidSerializedSampleDescription: A bridge error that indicates that the sample isn’t valid. KCMFormatDescriptionBridgeError_InvalidSerializedSampleDescription KCMFormatDescriptionBridgeError = -12714 // KCMFormatDescriptionBridgeError_InvalidSlice: A bridge error that indicates the slice isn’t valid. KCMFormatDescriptionBridgeError_InvalidSlice KCMFormatDescriptionBridgeError = -12719 // KCMFormatDescriptionBridgeError_UnsupportedSampleDescriptionFlavor: A bridge error that indicates the sample isn’t supported for the format flavor you specify. KCMFormatDescriptionBridgeError_UnsupportedSampleDescriptionFlavor KCMFormatDescriptionBridgeError = -12717 )
func (KCMFormatDescriptionBridgeError) String ¶
func (e KCMFormatDescriptionBridgeError) String() string
type KCMFormatDescriptionError ¶
type KCMFormatDescriptionError int32
const ( // KCMFormatDescriptionError_AllocationFailed: An error that indicates when an allocation fails. KCMFormatDescriptionError_AllocationFailed KCMFormatDescriptionError = -12711 // KCMFormatDescriptionError_InvalidParameter: An error that indicates that the function recieves an empty value for a parameter it requires. KCMFormatDescriptionError_InvalidParameter KCMFormatDescriptionError = -12710 // KCMFormatDescriptionError_ValueNotAvailable: An error that indicates the format description doesn’t contain the value you request. KCMFormatDescriptionError_ValueNotAvailable KCMFormatDescriptionError = -12718 )
func (KCMFormatDescriptionError) String ¶
func (e KCMFormatDescriptionError) String() string
type KCMMPEG2VideoProfile ¶
type KCMMPEG2VideoProfile int32
const ( // KCMMPEG2VideoProfile_HDV_1080i50: A profile that represents the Apple Intermediate Codec HDV 1080i50 format. KCMMPEG2VideoProfile_HDV_1080i50 KCMMPEG2VideoProfile = 'h'<<24 | 'd'<<16 | 'v'<<8 | '3' // 'hdv3' // KCMMPEG2VideoProfile_HDV_1080i60: A profile that represents the Apple Intermediate Codec HDV 1080i60 format. KCMMPEG2VideoProfile_HDV_1080i60 KCMMPEG2VideoProfile = 'h'<<24 | 'd'<<16 | 'v'<<8 | '2' // 'hdv2' // KCMMPEG2VideoProfile_HDV_1080p24: A profile that represents the Apple ProRes 422 codec HDV 1080p24 format. KCMMPEG2VideoProfile_HDV_1080p24 KCMMPEG2VideoProfile = 'h'<<24 | 'd'<<16 | 'v'<<8 | '6' // 'hdv6' // KCMMPEG2VideoProfile_HDV_1080p25: A profile that represents the HDV 1080p25 format. KCMMPEG2VideoProfile_HDV_1080p25 KCMMPEG2VideoProfile = 'h'<<24 | 'd'<<16 | 'v'<<8 | '7' // 'hdv7' // KCMMPEG2VideoProfile_HDV_1080p30: A profile that represents the HDV 1080p30 format. KCMMPEG2VideoProfile_HDV_1080p30 KCMMPEG2VideoProfile = 'h'<<24 | 'd'<<16 | 'v'<<8 | '8' // 'hdv8' // KCMMPEG2VideoProfile_HDV_720p24: A profile that represents the HDV 720p24 format. KCMMPEG2VideoProfile_HDV_720p24 KCMMPEG2VideoProfile = 'h'<<24 | 'd'<<16 | 'v'<<8 | '4' // 'hdv4' // KCMMPEG2VideoProfile_HDV_720p25: A profile that represents the HDV_720p25 format. KCMMPEG2VideoProfile_HDV_720p25 KCMMPEG2VideoProfile = 'h'<<24 | 'd'<<16 | 'v'<<8 | '5' // 'hdv5' // KCMMPEG2VideoProfile_HDV_720p30: A profile that represents the Apple Intermediate Codec HDV 720p30 format. KCMMPEG2VideoProfile_HDV_720p30 KCMMPEG2VideoProfile = 'h'<<24 | 'd'<<16 | 'v'<<8 | '1' // 'hdv1' // KCMMPEG2VideoProfile_HDV_720p50: A profile that represents the HDV 720p50 format. KCMMPEG2VideoProfile_HDV_720p50 KCMMPEG2VideoProfile = 'h'<<24 | 'd'<<16 | 'v'<<8 | 'a' // 'hdva' // KCMMPEG2VideoProfile_HDV_720p60: A profile that represents the HDV 720p60 format. KCMMPEG2VideoProfile_HDV_720p60 KCMMPEG2VideoProfile = 'h'<<24 | 'd'<<16 | 'v'<<8 | '9' // 'hdv9' // KCMMPEG2VideoProfile_XDCAM_EX_1080i50_VBR35: A profile that represents the XDCAM EX 1080i50 HQ video format with HQ 35 Mbps bit rate. KCMMPEG2VideoProfile_XDCAM_EX_1080i50_VBR35 KCMMPEG2VideoProfile = 'x'<<24 | 'd'<<16 | 'v'<<8 | 'c' // 'xdvc' // KCMMPEG2VideoProfile_XDCAM_EX_1080i60_VBR35: A profile that represents the XDCAM EX 1080i60 HQ video format with 35 Mbps bit rate. KCMMPEG2VideoProfile_XDCAM_EX_1080i60_VBR35 KCMMPEG2VideoProfile = 'x'<<24 | 'd'<<16 | 'v'<<8 | 'b' // 'xdvb' // KCMMPEG2VideoProfile_XDCAM_EX_1080p24_VBR35: A profile that represents the XDCAM EX 1080p24 HQ video format with HQ 35 Mbps bit rate. KCMMPEG2VideoProfile_XDCAM_EX_1080p24_VBR35 KCMMPEG2VideoProfile = 'x'<<24 | 'd'<<16 | 'v'<<8 | 'd' // 'xdvd' // KCMMPEG2VideoProfile_XDCAM_EX_1080p25_VBR35: A profile that represents the XDCAM EX 1080p25 HQ video format with 35 Mbps bit rate. KCMMPEG2VideoProfile_XDCAM_EX_1080p25_VBR35 KCMMPEG2VideoProfile = 'x'<<24 | 'd'<<16 | 'v'<<8 | 'e' // 'xdve' // KCMMPEG2VideoProfile_XDCAM_EX_1080p30_VBR35: A profile that represents the XDCAM EX 1080p30 HQ video format with 35 Mbps bit rate. KCMMPEG2VideoProfile_XDCAM_EX_1080p30_VBR35 KCMMPEG2VideoProfile = 'x'<<24 | 'd'<<16 | 'v'<<8 | 'f' // 'xdvf' // KCMMPEG2VideoProfile_XDCAM_EX_720p24_VBR35: A profile that represents the XDCAM EX 720p24 video HQ format with 35 Mbps bit rate. KCMMPEG2VideoProfile_XDCAM_EX_720p24_VBR35 KCMMPEG2VideoProfile = 'x'<<24 | 'd'<<16 | 'v'<<8 | '4' // 'xdv4' // KCMMPEG2VideoProfile_XDCAM_EX_720p25_VBR35: A profile that represents the XDCAM EX 720p25 video HQ format with 35 Mbps bit rate. KCMMPEG2VideoProfile_XDCAM_EX_720p25_VBR35 KCMMPEG2VideoProfile = 'x'<<24 | 'd'<<16 | 'v'<<8 | '5' // 'xdv5' // KCMMPEG2VideoProfile_XDCAM_EX_720p30_VBR35: A profile that represents the XDCAM EX 720p30 video HQ format with 35 Mbps bit rate . KCMMPEG2VideoProfile_XDCAM_EX_720p30_VBR35 KCMMPEG2VideoProfile = 'x'<<24 | 'd'<<16 | 'v'<<8 | '1' // 'xdv1' // KCMMPEG2VideoProfile_XDCAM_EX_720p50_VBR35: A profile that represents the XDCAM EX 720p50 HQ video format with 35 Mbps bit rate. KCMMPEG2VideoProfile_XDCAM_EX_720p50_VBR35 KCMMPEG2VideoProfile = 'x'<<24 | 'd'<<16 | 'v'<<8 | 'a' // 'xdva' // KCMMPEG2VideoProfile_XDCAM_EX_720p60_VBR35: A profile that represents the XDCAM EX 720p60 HQ video format with 35 Mbps bit rate. KCMMPEG2VideoProfile_XDCAM_EX_720p60_VBR35 KCMMPEG2VideoProfile = 'x'<<24 | 'd'<<16 | 'v'<<8 | '9' // 'xdv9' // KCMMPEG2VideoProfile_XDCAM_HD422_1080i50_CBR50: A profile that represents the XDCAM HD422 1080i50 video format with 50 Mbps bit rate. KCMMPEG2VideoProfile_XDCAM_HD422_1080i50_CBR50 KCMMPEG2VideoProfile = 'x'<<24 | 'd'<<16 | '5'<<8 | 'c' // 'xd5c' // KCMMPEG2VideoProfile_XDCAM_HD422_1080i60_CBR50: A profile that represents the XDCAM HD422 1080i60 video format with 50 Mbps bit rate. KCMMPEG2VideoProfile_XDCAM_HD422_1080i60_CBR50 KCMMPEG2VideoProfile = 'x'<<24 | 'd'<<16 | '5'<<8 | 'b' // 'xd5b' // KCMMPEG2VideoProfile_XDCAM_HD422_1080p24_CBR50: A profile that represents the XDCAM HD422 1080p24 video format with 50 Mbps bit rate. KCMMPEG2VideoProfile_XDCAM_HD422_1080p24_CBR50 KCMMPEG2VideoProfile = 'x'<<24 | 'd'<<16 | '5'<<8 | 'd' // 'xd5d' // KCMMPEG2VideoProfile_XDCAM_HD422_1080p25_CBR50: A profile that represents the XDCAM HD422 1080p25 video format with 50 Mbps bit rate. KCMMPEG2VideoProfile_XDCAM_HD422_1080p25_CBR50 KCMMPEG2VideoProfile = 'x'<<24 | 'd'<<16 | '5'<<8 | 'e' // 'xd5e' // KCMMPEG2VideoProfile_XDCAM_HD422_1080p30_CBR50: A profile that represents the XDCAM HD422 1080p30 video format with 50 Mbps bit rate. KCMMPEG2VideoProfile_XDCAM_HD422_1080p30_CBR50 KCMMPEG2VideoProfile = 'x'<<24 | 'd'<<16 | '5'<<8 | 'f' // 'xd5f' // KCMMPEG2VideoProfile_XDCAM_HD422_540p: A profile that represents the XDCAM HD422 540 video format. KCMMPEG2VideoProfile_XDCAM_HD422_540p KCMMPEG2VideoProfile = 'x'<<24 | 'd'<<16 | 'h'<<8 | '2' // 'xdh2' // KCMMPEG2VideoProfile_XDCAM_HD422_720p24_CBR50: A profile that represents the XDCAM HD 422 720p24 video format. KCMMPEG2VideoProfile_XDCAM_HD422_720p24_CBR50 KCMMPEG2VideoProfile = 'x'<<24 | 'd'<<16 | '5'<<8 | '4' // 'xd54' // KCMMPEG2VideoProfile_XDCAM_HD422_720p25_CBR50: A profile that represents the XDCAM HD 422 720p25 video format. KCMMPEG2VideoProfile_XDCAM_HD422_720p25_CBR50 KCMMPEG2VideoProfile = 'x'<<24 | 'd'<<16 | '5'<<8 | '5' // 'xd55' // KCMMPEG2VideoProfile_XDCAM_HD422_720p30_CBR50: A profile that represents the XDCAM HD 422 720p30 video format. KCMMPEG2VideoProfile_XDCAM_HD422_720p30_CBR50 KCMMPEG2VideoProfile = 'x'<<24 | 'd'<<16 | '5'<<8 | '1' // 'xd51' // KCMMPEG2VideoProfile_XDCAM_HD422_720p50_CBR50: A profile that represents the XDCAM HD422 720p50 video format with 50 Mbps bit rate. KCMMPEG2VideoProfile_XDCAM_HD422_720p50_CBR50 KCMMPEG2VideoProfile = 'x'<<24 | 'd'<<16 | '5'<<8 | 'a' // 'xd5a' // KCMMPEG2VideoProfile_XDCAM_HD422_720p60_CBR50: A profile that represents the XDCAM HD422 720p60 video format with 50 Mbps bit rate. KCMMPEG2VideoProfile_XDCAM_HD422_720p60_CBR50 KCMMPEG2VideoProfile = 'x'<<24 | 'd'<<16 | '5'<<8 | '9' // 'xd59' // KCMMPEG2VideoProfile_XDCAM_HD_1080i50_VBR35: A profile that represents the XDCAM HD 1080i50 video HQ format with 35 Mbps bit rate. KCMMPEG2VideoProfile_XDCAM_HD_1080i50_VBR35 KCMMPEG2VideoProfile = 'x'<<24 | 'd'<<16 | 'v'<<8 | '3' // 'xdv3' // KCMMPEG2VideoProfile_XDCAM_HD_1080i60_VBR35: A profile that represents the XDCAM HD 1080i60 video HQ format with 35 Mbps bit rate. KCMMPEG2VideoProfile_XDCAM_HD_1080i60_VBR35 KCMMPEG2VideoProfile = 'x'<<24 | 'd'<<16 | 'v'<<8 | '2' // 'xdv2' // KCMMPEG2VideoProfile_XDCAM_HD_1080p24_VBR35: A profile that represents the XDCAM HD 1080p24 video HQ format with 35 Mbps bit rate. KCMMPEG2VideoProfile_XDCAM_HD_1080p24_VBR35 KCMMPEG2VideoProfile = 'x'<<24 | 'd'<<16 | 'v'<<8 | '6' // 'xdv6' // KCMMPEG2VideoProfile_XDCAM_HD_1080p25_VBR35: A profile that represents the XDCAM HD 1080p25 video HQ format with 35 Mbps bit rate. KCMMPEG2VideoProfile_XDCAM_HD_1080p25_VBR35 KCMMPEG2VideoProfile = 'x'<<24 | 'd'<<16 | 'v'<<8 | '7' // 'xdv7' // KCMMPEG2VideoProfile_XDCAM_HD_1080p30_VBR35: A profile that represents the DCAM HD 1080p30 video HQ format with 35 Mbps bit rate. KCMMPEG2VideoProfile_XDCAM_HD_1080p30_VBR35 KCMMPEG2VideoProfile = 'x'<<24 | 'd'<<16 | 'v'<<8 | '8' // 'xdv8' // KCMMPEG2VideoProfile_XDCAM_HD_540p: A profile that represents the XDCAM HD 540p video format. KCMMPEG2VideoProfile_XDCAM_HD_540p KCMMPEG2VideoProfile = 'x'<<24 | 'd'<<16 | 'h'<<8 | 'd' // 'xdhd' // KCMMPEG2VideoProfile_XF: A profile that represents the XF video format. KCMMPEG2VideoProfile_XF KCMMPEG2VideoProfile = 'x'<<24 | 'f'<<16 | 'z'<<8 | '1' // 'xfz1' )
func (KCMMPEG2VideoProfile) String ¶
func (e KCMMPEG2VideoProfile) String() string
type KCMMemoryPoolError ¶
type KCMMemoryPoolError int32
const ( // KCMMemoryPoolError_AllocationFailed: An error that indicates the system failed to allocate an internal data structure. KCMMemoryPoolError_AllocationFailed KCMMemoryPoolError = -15490 // KCMMemoryPoolError_InvalidParameter: An error that indicates you called an API with an invalid parameter. KCMMemoryPoolError_InvalidParameter KCMMemoryPoolError = -15491 )
func (KCMMemoryPoolError) String ¶
func (e KCMMemoryPoolError) String() string
type KCMMetadataDataTypeRegistryError ¶
type KCMMetadataDataTypeRegistryError int32
const ( // KCMMetadataDataTypeRegistryError_AllocationFailed: An error that indicates the allocation fails. KCMMetadataDataTypeRegistryError_AllocationFailed KCMMetadataDataTypeRegistryError = -16310 // KCMMetadataDataTypeRegistryError_BadDataTypeIdentifier: An error that indicates a bad datatype identifier. KCMMetadataDataTypeRegistryError_BadDataTypeIdentifier KCMMetadataDataTypeRegistryError = -16312 // KCMMetadataDataTypeRegistryError_DataTypeAlreadyRegistered: An error that indicates the datatype is in a registered state. KCMMetadataDataTypeRegistryError_DataTypeAlreadyRegistered KCMMetadataDataTypeRegistryError = -16313 // KCMMetadataDataTypeRegistryError_MultipleConformingBaseTypes: An error that indicates that type you provide has more than one base data type. KCMMetadataDataTypeRegistryError_MultipleConformingBaseTypes KCMMetadataDataTypeRegistryError = -16315 // KCMMetadataDataTypeRegistryError_RequiredParameterMissing: An error that indicates a parameter the function requires is empty. KCMMetadataDataTypeRegistryError_RequiredParameterMissing KCMMetadataDataTypeRegistryError = -16311 // KCMMetadataDataTypeRegistryError_RequiresConformingBaseType: An error that indicates the data type you specify requires a conforming data type that resolves to a base data type. KCMMetadataDataTypeRegistryError_RequiresConformingBaseType KCMMetadataDataTypeRegistryError = -16314 )
func (KCMMetadataDataTypeRegistryError) String ¶
func (e KCMMetadataDataTypeRegistryError) String() string
type KCMMetadataFormatType
deprecated
type KCMMetadataFormatType = CMMetadataFormatType
KCMMetadataFormatType is the pre-v0.7.0 name of CMMetadataFormatType.
Deprecated: use CMMetadataFormatType.
type KCMMetadataIdentifierError ¶
type KCMMetadataIdentifierError int32
const ( // KCMMetadataIdentifierError_AllocationFailed: An error that indicates an allocation fails. KCMMetadataIdentifierError_AllocationFailed KCMMetadataIdentifierError = -16300 // KCMMetadataIdentifierError_BadIdentifier: An error that indicates the identifier isn’t valid. KCMMetadataIdentifierError_BadIdentifier KCMMetadataIdentifierError = -16307 // KCMMetadataIdentifierError_BadKey: An error that indicates a key isn’t valid. KCMMetadataIdentifierError_BadKey KCMMetadataIdentifierError = -16302 // KCMMetadataIdentifierError_BadKeyLength: An error that indicates that a key doesn’t have the correct length. KCMMetadataIdentifierError_BadKeyLength KCMMetadataIdentifierError = -16303 // KCMMetadataIdentifierError_BadKeySpace: An error that indicates the keyspace isn’t valid. KCMMetadataIdentifierError_BadKeySpace KCMMetadataIdentifierError = -16306 // KCMMetadataIdentifierError_BadKeyType: An error that indicates a key has a bad type. KCMMetadataIdentifierError_BadKeyType KCMMetadataIdentifierError = -16304 // KCMMetadataIdentifierError_BadNumberKey: An error that indicates the number for a key isn’t valid. KCMMetadataIdentifierError_BadNumberKey KCMMetadataIdentifierError = -16305 // KCMMetadataIdentifierError_NoKeyValueAvailable: An error that indicates a request for a key value in the anonymous keyspace. KCMMetadataIdentifierError_NoKeyValueAvailable KCMMetadataIdentifierError = -16308 // KCMMetadataIdentifierError_RequiredParameterMissing: An error that indicates a parameter the function requires is empty. KCMMetadataIdentifierError_RequiredParameterMissing KCMMetadataIdentifierError = -16301 )
func (KCMMetadataIdentifierError) String ¶
func (e KCMMetadataIdentifierError) String() string
type KCMMuxedStreamType
deprecated
type KCMMuxedStreamType = CMMuxedStreamType
KCMMuxedStreamType is the pre-v0.7.0 name of CMMuxedStreamType.
Deprecated: use CMMuxedStreamType.
type KCMPersistentTrackID
deprecated
added in
v0.5.1
type KCMPersistentTrackID = CMPersistentTrackID
KCMPersistentTrackID is the pre-v0.7.0 name of CMPersistentTrackID.
Deprecated: use CMPersistentTrackID.
type KCMPixelFormat
deprecated
type KCMPixelFormat = CMPixelFormatType
KCMPixelFormat is the pre-v0.7.0 name of CMPixelFormatType.
Deprecated: use CMPixelFormatType.
type KCMSampleBufferError ¶
type KCMSampleBufferError int32
const ( // KCMSampleBufferError_AllocationFailed: An error code that indicates the system failed to allocate memory. KCMSampleBufferError_AllocationFailed KCMSampleBufferError = -12730 // KCMSampleBufferError_AlreadyHasDataBuffer: An error code that indicates an attempt to set data on a sample buffer failed because that buffer already contains media data. KCMSampleBufferError_AlreadyHasDataBuffer KCMSampleBufferError = -12732 // KCMSampleBufferError_ArrayTooSmall: An error code that indicates the output array isn’t large enough to hold the requested array. KCMSampleBufferError_ArrayTooSmall KCMSampleBufferError = -12737 // KCMSampleBufferError_BufferHasNoSampleSizes: An error code that indicates a request for sample sizes on a buffer failed because the buffer doesn’t provide that information. KCMSampleBufferError_BufferHasNoSampleSizes KCMSampleBufferError = -12735 // KCMSampleBufferError_BufferHasNoSampleTimingInfo: An error code that indicates a request for sample timing on a buffer failed because the buffer doesn’t contain that information. KCMSampleBufferError_BufferHasNoSampleTimingInfo KCMSampleBufferError = -12736 // KCMSampleBufferError_BufferNotReady: An error code that indicates the system can’t make the buffer’s data ready for use. KCMSampleBufferError_BufferNotReady KCMSampleBufferError = -12733 // KCMSampleBufferError_CannotSubdivide: An error code that indicates a sample buffer doesn’t contain sample sizes. KCMSampleBufferError_CannotSubdivide KCMSampleBufferError = -12739 // KCMSampleBufferError_DataCanceled: An error code that indicates a sample buffer canceled its data-loading operation. KCMSampleBufferError_DataCanceled KCMSampleBufferError = -16751 // KCMSampleBufferError_DataFailed: An error code that indicates a sample buffer failed to load its data. KCMSampleBufferError_DataFailed KCMSampleBufferError = -16750 // KCMSampleBufferError_InvalidEntryCount: An error code that indicates a timing or size value isn’t within the allowed range. KCMSampleBufferError_InvalidEntryCount KCMSampleBufferError = -12738 // KCMSampleBufferError_InvalidMediaFormat: An error code that indicates the media format doesn’t match the sample buffer’s format description. KCMSampleBufferError_InvalidMediaFormat KCMSampleBufferError = -12743 // KCMSampleBufferError_InvalidMediaTypeForOperation: An error code that indicates the media type that the format description defines isn’t a value for the requested operation. KCMSampleBufferError_InvalidMediaTypeForOperation KCMSampleBufferError = -12741 // KCMSampleBufferError_InvalidSampleData: An error code that indicates the sample buffer contains bad data. KCMSampleBufferError_InvalidSampleData KCMSampleBufferError = -12742 // KCMSampleBufferError_Invalidated: An error code that indicates a sample buffer invalidated its data. KCMSampleBufferError_Invalidated KCMSampleBufferError = -12744 // KCMSampleBufferError_RequiredParameterMissing: An error code that indicates a required parameter’s value is invalid. KCMSampleBufferError_RequiredParameterMissing KCMSampleBufferError = -12731 // KCMSampleBufferError_SampleIndexOutOfRange: An error code that indicates the sample index is outside the range of samples that the buffer contains. KCMSampleBufferError_SampleIndexOutOfRange KCMSampleBufferError = -12734 // KCMSampleBufferError_SampleTimingInfoInvalid: An error code that indicates the sample buffer unexpectedly contains nonnumeric sample-timing information. KCMSampleBufferError_SampleTimingInfoInvalid KCMSampleBufferError = -12740 )
func (KCMSampleBufferError) String ¶
func (e KCMSampleBufferError) String() string
type KCMSimpleQueueError ¶
type KCMSimpleQueueError int32
const ( // KCMSimpleQueueError_AllocationFailed: The system failed to allocate memory. KCMSimpleQueueError_AllocationFailed KCMSimpleQueueError = -12770 // KCMSimpleQueueError_ParameterOutOfRange: You passed a parameter to a function that’s outside the range of allowed values. KCMSimpleQueueError_ParameterOutOfRange KCMSimpleQueueError = -12772 // KCMSimpleQueueError_QueueIsFull: An operation failed because the queue is full. KCMSimpleQueueError_QueueIsFull KCMSimpleQueueError = -12773 // KCMSimpleQueueError_RequiredParameterMissing: You failed to pass a required parameter to a function. KCMSimpleQueueError_RequiredParameterMissing KCMSimpleQueueError = -12771 )
func (KCMSimpleQueueError) String ¶
func (e KCMSimpleQueueError) String() string
type KCMSubtitleFormatType
deprecated
type KCMSubtitleFormatType = CMSubtitleFormatType
KCMSubtitleFormatType is the pre-v0.7.0 name of CMSubtitleFormatType.
Deprecated: use CMSubtitleFormatType.
type KCMSyncError ¶
type KCMSyncError int32
const ( // KCMSyncError_AllocationFailed: A sync error that indicates the memory allocation fails. KCMSyncError_AllocationFailed KCMSyncError = -12754 // KCMSyncError_InvalidParameter: A sync error that indicates a parameter isn’t valid. KCMSyncError_InvalidParameter KCMSyncError = -12753 // KCMSyncError_MissingRequiredParameter: A sync error that indicates a parameter is missing. KCMSyncError_MissingRequiredParameter KCMSyncError = -12752 // KCMSyncError_RateMustBeNonZero: A sync error that indicates the rate is nonzero. KCMSyncError_RateMustBeNonZero KCMSyncError = -12755 )
func (KCMSyncError) String ¶
func (e KCMSyncError) String() string
type KCMTaggedBufferGroupFormatType
deprecated
added in
v0.5.1
type KCMTaggedBufferGroupFormatType = CMTaggedBufferGroupFormatType
KCMTaggedBufferGroupFormatType is the pre-v0.7.0 name of CMTaggedBufferGroupFormatType.
Deprecated: use CMTaggedBufferGroupFormatType.
type KCMTextDisplayFlag
deprecated
type KCMTextDisplayFlag = CMTextDisplayFlags
KCMTextDisplayFlag is the pre-v0.7.0 name of CMTextDisplayFlags.
Deprecated: use CMTextDisplayFlags.
type KCMTextFormatType
deprecated
type KCMTextFormatType = CMTextFormatType
KCMTextFormatType is the pre-v0.7.0 name of CMTextFormatType.
Deprecated: use CMTextFormatType.
type KCMTextJustification
deprecated
type KCMTextJustification = CMTextJustificationValue
KCMTextJustification is the pre-v0.7.0 name of CMTextJustificationValue.
Deprecated: use CMTextJustificationValue.
type KCMTimeCodeFlag ¶
type KCMTimeCodeFlag uint32
const ( // KCMTimeCodeFlag_24HourMax: A type that describes timecode rolls over every 24 hours. KCMTimeCodeFlag_24HourMax KCMTimeCodeFlag = 2 // KCMTimeCodeFlag_DropFrame: A type that describes timecodes are to be rendered in drop-frame format. KCMTimeCodeFlag_DropFrame KCMTimeCodeFlag = 1 // KCMTimeCodeFlag_NegTimesOK: A type that describes that the track may contain negative timecodes. KCMTimeCodeFlag_NegTimesOK KCMTimeCodeFlag = 4 )
func (KCMTimeCodeFlag) String ¶
func (e KCMTimeCodeFlag) String() string
type KCMTimeCodeFormatType
deprecated
type KCMTimeCodeFormatType = CMTimeCodeFormatType
KCMTimeCodeFormatType is the pre-v0.7.0 name of CMTimeCodeFormatType.
Deprecated: use CMTimeCodeFormatType.
type KCMTimebaseError ¶
type KCMTimebaseError int32
const ( // KCMTimebaseError_AllocationFailed: A timebase error that indicates the memory allocation fails. KCMTimebaseError_AllocationFailed KCMTimebaseError = -12750 // KCMTimebaseError_InvalidParameter: A timebase error that indicates a parameter isn’t valid. KCMTimebaseError_InvalidParameter KCMTimebaseError = -12749 // KCMTimebaseError_MissingRequiredParameter: A timebase error that indicates a parameter is missing. KCMTimebaseError_MissingRequiredParameter KCMTimebaseError = -12748 // KCMTimebaseError_ReadOnly: A timebase error that indicates the system attempts to modify a read-only timebase. KCMTimebaseError_ReadOnly KCMTimebaseError = -12757 // KCMTimebaseError_TimerIntervalTooShort: A timebase error that indicates the time interval is too short. KCMTimebaseError_TimerIntervalTooShort KCMTimebaseError = -12751 )
func (KCMTimebaseError) String ¶
func (e KCMTimebaseError) String() string
type KCMVideoCodecType
deprecated
type KCMVideoCodecType = CMVideoCodecType
KCMVideoCodecType is the pre-v0.7.0 name of CMVideoCodecType.
Deprecated: use CMVideoCodecType.
type KcmattachmentmodeShould ¶
type KcmattachmentmodeShould uint32
const ( // KCMAttachmentMode_ShouldNotPropagate: A mode that doesn’t propagate attachments to another object. KCMAttachmentMode_ShouldNotPropagate KcmattachmentmodeShould = 0 // KCMAttachmentMode_ShouldPropagate: A mode that propagates attachments to another object. KCMAttachmentMode_ShouldPropagate KcmattachmentmodeShould = 1 )
func (KcmattachmentmodeShould) String ¶
func (e KcmattachmentmodeShould) String() string
type KcmaudiocodectypeAac
deprecated
type KcmaudiocodectypeAac = CMAudioCodecType
KcmaudiocodectypeAac is the pre-v0.7.0 name of CMAudioCodecType.
Deprecated: use CMAudioCodecType.
type KcmbufferqueuetriggerWhen
deprecated
type KcmbufferqueuetriggerWhen = CMBufferQueueTriggerCondition
KcmbufferqueuetriggerWhen is the pre-v0.7.0 name of CMBufferQueueTriggerCondition.
Deprecated: use CMBufferQueueTriggerCondition.
type KcmmediatypeAuxiliarypicture
deprecated
type KcmmediatypeAuxiliarypicture = CMMediaType
KcmmediatypeAuxiliarypicture is the pre-v0.7.0 name of CMMediaType.
Deprecated: use CMMediaType.
type KcmmediatypeVideo
deprecated
added in
v0.6.17
type KcmmediatypeVideo = CMMediaType
KcmmediatypeVideo is the pre-v0.7.0 name of CMMediaType.
Deprecated: use CMMediaType.
type KcmsamplebufferflagAudiobufferlist ¶ added in v0.5.1
type KcmsamplebufferflagAudiobufferlist uint32
const ( // KCMSampleBufferFlag_AudioBufferList_Assure16ByteAlignment: Indicates that memory involved in audio buffer lists is 16-byte aligned. KCMSampleBufferFlag_AudioBufferList_Assure16ByteAlignment KcmsamplebufferflagAudiobufferlist = 1 )
func (KcmsamplebufferflagAudiobufferlist) String ¶ added in v0.5.1
func (e KcmsamplebufferflagAudiobufferlist) String() string