Function

CMTextFormatDescriptionCreateFromBigEndianTextDescriptionData(allocator:bigEndianTextDescriptionData:size:flavor:mediaType:formatDescriptionOut:)

Creates a CMTextFormatDescription from a big-endian TextDescription data structure.

Declaration

func CMTextFormatDescriptionCreateFromBigEndianTextDescriptionData(allocator: CFAllocator?, bigEndianTextDescriptionData textDescriptionData: UnsafePointer<UInt8>, size: Int, flavor: CMTextDescriptionFlavor?, mediaType: CMMediaType, formatDescriptionOut: UnsafeMutablePointer<CMTextFormatDescription?>) -> OSStatus

Parameters

allocator

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

textDescriptionData

TextDescription data structure in big-endian byte ordering.

textDescriptionSize

Size of TextDescription data structure.

textDescriptionFlavor

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

mediaType

Pass kCMMediaType_Text or kCMMediaType_Subtitle.

textFormatDescriptionOut

Receives new CMTextFormatDescription.

See Also

Text-Specific Functions

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

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

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

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