Function

CMClosedCaptionFormatDescriptionCopyAsBigEndianClosedCaptionDescriptionBlockBuffer

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

Declaration

OSStatus CMClosedCaptionFormatDescriptionCopyAsBigEndianClosedCaptionDescriptionBlockBuffer(CFAllocatorRef allocator, CMClosedCaptionFormatDescriptionRef closedCaptionFormatDescription, CMClosedCaptionDescriptionFlavor flavor, CMBlockBufferRef  _Nullable *blockBufferOut);

Parameters

allocator

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

closedCaptionFormatDescription

The CMClosedCaptionFormatDescription to be copied.

closedCaptionDescriptionFlavor

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

closedCaptionDescriptionBlockBufferOut

Receives new CMBlockBuffer containing ClosedCaptionDescription 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

Closed Captioning-Functions

CMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionBlockBuffer

Creates a CMClosedCaptionFormatDescription from a big-endian ClosedCaptionDescription data structure in a CMBlockBuffer.

CMClosedCaptionFormatDescriptionCreateFromBigEndianClosedCaptionDescriptionData

Creates a CMClosedCaptionFormatDescription from a big-endian ClosedCaptionDescription data structure.

CMSwapHostEndianClosedCaptionDescriptionToBig

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

CMSwapBigEndianClosedCaptionDescriptionToHost

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