Function

CMTimeCodeFormatDescriptionCopyAsBigEndianTimeCodeDescriptionBlockBuffer(allocator:timeCodeFormatDescription:flavor:blockBufferOut:)

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

Declaration

func CMTimeCodeFormatDescriptionCopyAsBigEndianTimeCodeDescriptionBlockBuffer(allocator: CFAllocator?, timeCodeFormatDescription: CMTimeCodeFormatDescription, flavor: CMTimeCodeDescriptionFlavor?, blockBufferOut: UnsafeMutablePointer<CMBlockBuffer?>) -> OSStatus

Parameters

allocator

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

timeCodeFormatDescription

CMTimeCodeFormatDescription to be copied.

timeCodeDescriptionFlavor

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

timeCodeDescriptionBlockBufferOut

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

TimeCode-Specific Functions

func CMTimeCodeFormatDescriptionGetFrameDuration(CMTimeCodeFormatDescription) -> CMTime

Returns the duration of each frame (for example 100/2997).

func CMTimeCodeFormatDescriptionGetFrameQuanta(CMTimeCodeFormatDescription) -> UInt32

Returns the frames/sec for timecode (for example, 30) or frames/tick for counter mode.

func CMTimeCodeFormatDescriptionGetTimeCodeFlags(CMTimeCodeFormatDescription) -> UInt32

Returns the flags for kCMTimeCodeFlag_DropFrame, kCMTimeCodeFlag_24HourMax, kCMTimeCodeFlag_NegTimesOK

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

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

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

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