Function

CMMetadataFormatDescriptionCopyAsBigEndianMetadataDescriptionBlockBuffer(allocator:metadataFormatDescription:flavor:blockBufferOut:)

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

Declaration

func CMMetadataFormatDescriptionCopyAsBigEndianMetadataDescriptionBlockBuffer(allocator: CFAllocator?, metadataFormatDescription: CMMetadataFormatDescription, flavor: CMMetadataDescriptionFlavor?, blockBufferOut: UnsafeMutablePointer<CMBlockBuffer?>) -> OSStatus

Parameters

allocator

Allocator to use for allocating the CMBlockBuffer object. May be NULL.

metadataFormatDescription

CMMetadataFormatDescriptionRef to be copied.

metadataDescriptionFlavor

Reserved for future use. Pass NULL for QuickTime Movie or ISO flavor.

metadataDescriptionBlockBufferOut

Receives new CMBlockBuffer containing MetadataDescription data structure in big-endian byte ordering.

Discussion

On return, the caller owns the returned CMBlockBuffer, and must release it when done with it.

See Also

Metadata-Specific Functions

func CMSwapBigEndianMetadataDescriptionToHost(UnsafeMutablePointer<UInt8>, Int) -> OSStatus

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

func CMSwapHostEndianMetadataDescriptionToBig(UnsafeMutablePointer<UInt8>, Int) -> OSStatus

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

func CMMetadataFormatDescriptionGetIdentifiers(CMMetadataFormatDescription) -> CFArray?

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