Function

CMMetadataFormatDescriptionCreateWithMetadataFormatDescriptionAndMetadataSpecifications

Creates a new CMMetadataFormatDescription.

Declaration

OSStatus CMMetadataFormatDescriptionCreateWithMetadataFormatDescriptionAndMetadataSpecifications(CFAllocatorRef allocator, CMMetadataFormatDescriptionRef sourceDescription, CFArrayRef metadataSpecifications, CMMetadataFormatDescriptionRef  _Nullable *formatDescriptionOut);

Parameters

allocator

CFAllocator to be used. kCFAllocatorDefault if you don't care.

srcDesc

Source metadata format description being extended

metadataSpecifications

An array of dictionaries, each dictionary supplies a metadata identifier, a datatype, and an optional language tag.

outDesc

Returned newly created metadata CMFormatDescription

See Also

Metadata-Specific Functions

CMMetadataFormatDescriptionCreateWithKeys

Creates a metadata format description object specified by the key.

CMMetadataFormatDescriptionGetKeyWithLocalID

Returns the key associated with the metadata for the given local id.

CMMetadataFormatDescriptionCopyAsBigEndianMetadataDescriptionBlockBuffer

Copies the contents of a CMMetadataFormatDescription to a CMBlockBuffer in big-endian byte ordering.

CMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionBlockBuffer

Creates a CMMetadataFormatDescription from a big-endian MetadataDescription data structure in a CMBlockBuffer.

CMMetadataFormatDescriptionCreateFromBigEndianMetadataDescriptionData

Creates a CMMetadataFormatDescription from a big-endian MetadataDescription data structure.

CMMetadataFormatDescriptionCreateWithMetadataSpecifications

Creates a new CMMetadataFormatDescription.

CMSwapBigEndianMetadataDescriptionToHost

Converts a MetadataDescription data structure from big-endian to host-endian in place.

CMSwapHostEndianMetadataDescriptionToBig

Converts a MetadataDescription data structure from host-endian to big-endian in place.

CMMetadataFormatDescriptionGetIdentifiers

Gets an array of metadata identifiers from a metadata format description.