Cargo Features

[dependencies]
objc2-core-media = { version = "0.3.0", default-features = false, features = ["std", "alloc", "bitflags", "block2", "objc2", "objc2-core-audio", "objc2-core-audio-types", "objc2-core-video", "CMAttachment", "CMAudioDeviceClock", "CMBase", "CMBlockBuffer", "CMBufferQueue", "CMFormatDescription", "CMFormatDescriptionBridge", "CMMemoryPool", "CMMetadata", "CMSampleBuffer", "CMSimpleQueue", "CMSync", "CMTag", "CMTagCollection", "CMTaggedBufferGroup", "CMTextMarkup", "CMTime", "CMTimeRange"] }
default = CMAttachment, CMAudioClock, CMAudioDeviceClock, CMBase, CMBlockBuffer, CMBufferQueue, CMFormatDescription, CMFormatDescriptionBridge, CMMemoryPool, CMMetadata, CMSampleBuffer, CMSimpleQueue, CMSync, CMTag, CMTagCollection, CMTaggedBufferGroup, CMTextMarkup, CMTime, CMTimeRange, bitflags, block2, objc2, objc2-core-audio, objc2-core-audio-types, objc2-core-video, std

These default features are set whenever objc2-core-media is added without default-features = false somewhere in the dependency tree.

std default = alloc
alloc std
bitflags default CMTag CMTime

Enables bitflags

block2 default

Enables block2

Affects CMBufferQueue::CMBufferGetBooleanHandler, CMBufferQueue::CMBufferCompareHandler, CMBufferQueue::CMBufferGetSizeHandler, CMBufferQueue::CMBufferQueueTriggerHandler, CMBufferQueue::CMBufferValidationHandler, CMBufferQueue::CMBufferQueueSetValidationHandler, CMSampleBuffer::CMSampleBufferMakeDataReadyHandler, CMSampleBuffer::CMSampleBufferInvalidateHandler, CMSampleBuffer::CMSampleBufferSetInvalidateHandler, CMBufferQueue::CMBufferGetTimeHandler, CMBufferQueue::CMBufferHandlers, CMBufferQueue::CMBufferQueueInstallTriggerHandler, CMBufferQueue::CMBufferQueueInstallTriggerHandlerWithIntegerThreshold, CMSampleBuffer::CMSampleBufferCallBlockForEachSample, CMBufferQueue::CMBufferQueueCreateWithHandlers, CMSampleBuffer::CMSampleBufferCreateForImageBufferWithMakeDataReadyHandler, CMSampleBuffer::CMSampleBufferCreateWithMakeDataReadyHandler, CMSampleBuffer::CMAudioSampleBufferCreateWithPacketDescriptionsAndMakeDataReadyHandler

objc2 default

Enables objc2, objc2 of objc2-core-foundation, optional objc2-core-audio, optional objc2-core-audio-types, and optional objc2-core-video

objc2-core-audio default

Enables objc2-core-audio

Affects CMAudioDeviceClock::CMAudioDeviceClockCreateFromAudioDeviceID, CMAudioDeviceClock::CMAudioDeviceClockSetAudioDeviceID, CMAudioDeviceClock::CMAudioDeviceClockGetAudioDevice

objc2-core-audio-types default

Enables objc2-core-audio-types

Affects CMFormatDescription::CMAudioFormatDescriptionCreate, CMFormatDescription::CMAudioFormatDescriptionGetStreamBasicDescription, CMFormatDescription::CMAudioFormatDescriptionGetChannelLayout, CMFormatDescription::CMAudioFormatDescriptionGetFormatList, CMFormatDescription::CMAudioFormatDescriptionGetRichestDecodableFormat, CMFormatDescription::CMAudioFormatDescriptionGetMostCompatibleFormat, CMSampleBuffer::CMSampleBufferSetDataBufferFromAudioBufferList, CMSampleBuffer::CMSampleBufferGetAudioStreamPacketDescriptions, CMSampleBuffer::CMSampleBufferGetAudioStreamPacketDescriptionsPtr, CMSampleBuffer::CMSampleBufferCopyPCMDataIntoAudioBufferList, CMSampleBuffer::CMSampleBufferGetAudioBufferListWithRetainedBlockBuffer, CMSampleBuffer::CMAudioSampleBufferCreateWithPacketDescriptions, CMSampleBuffer::CMAudioSampleBufferCreateReadyWithPacketDescriptions, CMSampleBuffer::CMAudioSampleBufferCreateWithPacketDescriptionsAndMakeDataReadyHandler

objc2-core-video default

Enables objc2-core-video

Affects CMFormatDescription::CMVideoFormatDescriptionCreateForImageBuffer, CMFormatDescription::CMVideoFormatDescriptionMatchesImageBuffer, CMSampleBuffer::CMSampleBufferGetImageBuffer, CMTaggedBufferGroup::CMTaggedBufferGroupGetCVPixelBufferAtIndex, CMTaggedBufferGroup::CMTaggedBufferGroupGetCVPixelBufferForTag, CMTaggedBufferGroup::CMTaggedBufferGroupGetCVPixelBufferForTagCollection, CMSampleBuffer::CMSampleBufferCreateForImageBuffer, CMSampleBuffer::CMSampleBufferCreateReadyWithImageBuffer, CMSampleBuffer::CMSampleBufferCreateForImageBufferWithMakeDataReadyHandler

CMAttachment default

Enables CFBase and CFDictionary of objc2-core-foundation

CMAudioClock CMAudioDeviceClock default

Enables CFBase of objc2-core-foundation

CMBase default

Enables CFBase of objc2-core-foundation

Affects CMBufferQueue::CMBufferQueueGetBufferCount, CMBufferQueue::CMBufferQueueInstallTriggerWithIntegerThreshold, CMSampleBuffer::CMSampleBufferGetNumSamples, CMSampleBuffer::CMSampleBufferGetSampleSizeArray, CMSampleBuffer::CMSampleBufferGetSampleSize, CMSampleBuffer::CMSampleBufferCallForEachSample, CMTagCollection::CMTagCollectionGetCount, CMTaggedBufferGroup::CMTaggedBufferGroupGetCount, CMBufferQueue::CMBufferQueueCreate, CMBufferQueue::CMBufferQueueInstallTriggerHandlerWithIntegerThreshold, CMSampleBuffer::CMSampleBufferCreateCopyWithNewTiming, CMSampleBuffer::CMSampleBufferGetSampleTimingInfoArray, CMSampleBuffer::CMSampleBufferGetOutputSampleTimingInfoArray, CMSampleBuffer::CMSampleBufferGetSampleTimingInfo, CMSampleBuffer::CMSampleBufferCallBlockForEachSample, CMTagCollection::CMTagCollectionCreate, CMTagCollection::CMTagCollectionContainsSpecifiedTags, CMTagCollection::CMTagCollectionGetCountOfCategory, CMTagCollection::CMTagCollectionGetTags, CMTagCollection::CMTagCollectionGetTagsWithCategory

CMBlockBuffer default

Enables CFBase of objc2-core-foundation

Affects CMFormatDescriptionBridge::CMDoesBigEndianSoundDescriptionRequireLegacyCBRSampleTableLayout, CMSampleBuffer::CMSampleBufferSetDataBuffer, CMSampleBuffer::CMSampleBufferGetDataBuffer, CMFormatDescriptionBridge::CMVideoFormatDescriptionCreateFromBigEndianImageDescriptionBlockBuffer, CMFormatDescriptionBridge::CMVideoFormatDescriptionCopyAsBigEndianImageDescriptionBlockBuffer, CMFormatDescriptionBridge::CMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionBlockBuffer, CMFormatDescriptionBridge::CMAudioFormatDescriptionCopyAsBigEndianSoundDescriptionBlockBuffer, CMFormatDescriptionBridge::CMTextFormatDescriptionCreateFromBigEndianTextDescriptionBlockBuffer, CMFormatDescriptionBridge::CMTextFormatDescriptionCopyAsBigEndianTextDescriptionBlockBuffer, CMFormatDescriptionBridge::CMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionBlockBuffer, CMFormatDescriptionBridge::CMClosedCaptionFormatDescriptionCopyAsBigEndianClosedCaptionDescriptionBlockBuffer, CMFormatDescriptionBridge::CMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionBlockBuffer, CMFormatDescriptionBridge::CMTimeCodeFormatDescriptionCopyAsBigEndianTimeCodeDescriptionBlockBuffer, CMFormatDescriptionBridge::CMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionBlockBuffer, CMFormatDescriptionBridge::CMMetadataFormatDescriptionCopyAsBigEndianMetadataDescriptionBlockBuffer, CMSampleBuffer::CMSampleBufferGetAudioBufferListWithRetainedBlockBuffer, CMSampleBuffer::CMSampleBufferCreate, CMSampleBuffer::CMSampleBufferCreateReady, CMSampleBuffer::CMSampleBufferCreateWithMakeDataReadyHandler, CMSampleBuffer::CMAudioSampleBufferCreateWithPacketDescriptions

CMBufferQueue default

Enables CFBase of objc2-core-foundation

CMFormatDescription default

Enables CFArray, CFBase, CFCGTypes and CFDictionary of objc2-core-foundation

Affects CMFormatDescriptionBridge::CMVideoFormatDescriptionCreateFromBigEndianImageDescriptionData, CMFormatDescriptionBridge::CMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionData, CMFormatDescriptionBridge::CMTextFormatDescriptionCreateFromBigEndianTextDescriptionData, CMFormatDescriptionBridge::CMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionData, CMFormatDescriptionBridge::CMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionData, CMFormatDescriptionBridge::CMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionData, CMSampleBuffer::CMSampleBufferGetFormatDescription, CMTaggedBufferGroup::CMTaggedBufferGroupFormatDescriptionCreateForTaggedBufferGroup, CMTaggedBufferGroup::CMTaggedBufferGroupFormatDescriptionMatchesTaggedBufferGroup, CMFormatDescriptionBridge::CMVideoFormatDescriptionCreateFromBigEndianImageDescriptionBlockBuffer, CMFormatDescriptionBridge::CMVideoFormatDescriptionCopyAsBigEndianImageDescriptionBlockBuffer, CMFormatDescriptionBridge::CMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionBlockBuffer, CMFormatDescriptionBridge::CMAudioFormatDescriptionCopyAsBigEndianSoundDescriptionBlockBuffer, CMFormatDescriptionBridge::CMTextFormatDescriptionCreateFromBigEndianTextDescriptionBlockBuffer, CMFormatDescriptionBridge::CMTextFormatDescriptionCopyAsBigEndianTextDescriptionBlockBuffer, CMFormatDescriptionBridge::CMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionBlockBuffer, CMFormatDescriptionBridge::CMClosedCaptionFormatDescriptionCopyAsBigEndianClosedCaptionDescriptionBlockBuffer, CMFormatDescriptionBridge::CMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionBlockBuffer, CMFormatDescriptionBridge::CMTimeCodeFormatDescriptionCopyAsBigEndianTimeCodeDescriptionBlockBuffer, CMSampleBuffer::CMSampleBufferCreateForImageBuffer

CMFormatDescriptionBridge default

Enables CFBase and CFString of objc2-core-foundation

CMMemoryPool default

Enables CFBase and CFDictionary of objc2-core-foundation

CMMetadata default

Enables CFArray, CFBase and CFData of objc2-core-foundation

CMSampleBuffer default

Enables CFArray and CFBase of objc2-core-foundation

Affects CMTaggedBufferGroup::CMTaggedBufferGroupGetCMSampleBufferAtIndex, CMTaggedBufferGroup::CMSampleBufferGetTaggedBufferGroup, CMTaggedBufferGroup::CMTaggedBufferGroupGetCMSampleBufferForTag, CMTaggedBufferGroup::CMTaggedBufferGroupGetCMSampleBufferForTagCollection, CMTaggedBufferGroup::CMSampleBufferCreateForTaggedBufferGroup

CMSimpleQueue default

Enables CFBase of objc2-core-foundation

CMSync default

Enables CFBase and CFRunLoop of objc2-core-foundation

Affects CMAudioClock::CMAudioClockCreate, CMAudioDeviceClock::CMAudioDeviceClockCreate, CMAudioDeviceClock::CMAudioDeviceClockSetAudioDeviceUID, CMAudioDeviceClock::CMAudioDeviceClockCreateFromAudioDeviceID, CMAudioDeviceClock::CMAudioDeviceClockSetAudioDeviceID, CMAudioDeviceClock::CMAudioDeviceClockGetAudioDevice

CMTag default = bitflags

Enables CFBase and CFDictionary of objc2-core-foundation

Affects CMTagCollection::CMTagCollectionApplierFunction, CMTagCollection::CMTagCollectionTagFilterFunction, CMTagCollection::CMTagCollectionContainsTag, CMTagCollection::CMTagCollectionContainsCategory, CMTagCollection::CMTagCollectionApply, CMTagCollection::CMTagCollectionApplyUntil, CMTagCollection::CMTagCollectionAddTag, CMTagCollection::CMTagCollectionRemoveTag, CMTagCollection::CMTagCollectionRemoveAllTagsOfCategory, CMTagCollection::CMTagCollectionCreate, CMTagCollection::CMTagCollectionContainsSpecifiedTags, CMTagCollection::CMTagCollectionGetCountOfCategory, CMTagCollection::CMTagCollectionGetTags, CMTagCollection::CMTagCollectionGetTagsWithCategory, CMTagCollection::CMTagCollectionCountTagsWithFilterFunction, CMTagCollection::CMTagCollectionGetTagsWithFilterFunction, CMTaggedBufferGroup::CMTaggedBufferGroupGetCVPixelBufferForTag, CMTaggedBufferGroup::CMTaggedBufferGroupGetCMSampleBufferForTag

CMTagCollection default

Enables CFBase, CFData and CFDictionary of objc2-core-foundation

Affects CMTaggedBufferGroup::CMTaggedBufferGroupGetTagCollectionAtIndex, CMTaggedBufferGroup::CMTaggedBufferGroupGetCVPixelBufferForTagCollection, CMTaggedBufferGroup::CMTaggedBufferGroupGetCMSampleBufferForTagCollection, CMTaggedBufferGroup::CMTaggedBufferGroupGetNumberOfMatchesForTagCollection

CMTaggedBufferGroup default

Enables CFArray and CFBase of objc2-core-foundation

CMTextMarkup default

Enables CFBase of objc2-core-foundation

CMTime default = bitflags

Enables CFBase and CFDictionary of objc2-core-foundation

Affects CMBufferQueue::CMBufferGetTimeCallback, CMBufferQueue::CMBufferCallbacks, CMBufferQueue::CMBufferQueueGetCallbacksForUnsortedSampleBuffers, CMBufferQueue::CMBufferQueueGetCallbacksForSampleBuffersSortedByOutputPTS, CMBufferQueue::CMBufferQueueGetDuration, CMBufferQueue::CMBufferQueueGetMinDecodeTimeStamp, CMBufferQueue::CMBufferQueueGetFirstDecodeTimeStamp, CMBufferQueue::CMBufferQueueGetMinPresentationTimeStamp, CMBufferQueue::CMBufferQueueGetFirstPresentationTimeStamp, CMBufferQueue::CMBufferQueueGetMaxPresentationTimeStamp, CMBufferQueue::CMBufferQueueGetEndPresentationTimeStamp, CMBufferQueue::CMBufferQueueInstallTrigger, CMFormatDescription::CMTimeCodeFormatDescriptionCreate, CMFormatDescription::CMTimeCodeFormatDescriptionGetFrameDuration, CMSampleBuffer::CMSampleTimingInfo, CMSampleBuffer::kCMTimingInfoInvalid, CMSampleBuffer::CMSampleBufferGetDuration, CMSampleBuffer::CMSampleBufferGetPresentationTimeStamp, CMSampleBuffer::CMSampleBufferGetDecodeTimeStamp, CMSampleBuffer::CMSampleBufferGetOutputDuration

CMTimeRange default

Enables CFBase and CFDictionary of objc2-core-foundation