Function

CMTextFormatDescriptionCreateFromBigEndianTextDescriptionBlockBuffer(allocator:bigEndianTextDescriptionBlockBuffer:flavor:mediaType:formatDescriptionOut:)

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

Declaration

func CMTextFormatDescriptionCreateFromBigEndianTextDescriptionBlockBuffer(allocator: CFAllocator?, bigEndianTextDescriptionBlockBuffer textDescriptionBlockBuffer: CMBlockBuffer, flavor: CMTextDescriptionFlavor?, mediaType: CMMediaType, formatDescriptionOut: UnsafeMutablePointer<CMTextFormatDescription?>) -> OSStatus

Parameters

allocator

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

textDescriptionBlockBuffer

CMBlockBuffer containing TextDescription data structure in big-endian byte ordering.

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.