Function

CMTimeCodeFormatDescriptionCopyAsBigEndianTimeCodeDescriptionBlockBuffer

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

Declaration

OSStatus CMTimeCodeFormatDescriptionCopyAsBigEndianTimeCodeDescriptionBlockBuffer(CFAllocatorRef allocator, CMTimeCodeFormatDescriptionRef timeCodeFormatDescription, CMTimeCodeDescriptionFlavor flavor, CMBlockBufferRef  _Nullable *blockBufferOut);

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

CMTimeCodeFormatDescriptionCreate

Creates a format description for a timecode media.

CMTimeCodeFormatDescriptionGetFrameDuration

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

CMTimeCodeFormatDescriptionGetFrameQuanta

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

CMTimeCodeFormatDescriptionGetTimeCodeFlags

Returns the flags for kCMTimeCodeFlag_DropFrame, kCMTimeCodeFlag_24HourMax, kCMTimeCodeFlag_NegTimesOK

CMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionBlockBuffer

Creates a CMTimeCodeFormatDescription from a big-endian TimeCodeDescription data structure in a CMBlockBuffer.

CMTimeCodeFormatDescriptionCreateFromBigEndianTimeCodeDescriptionData

Creates a CMTimeCodeFormatDescription from a big-endian TimeCodeDescription data structure.

CMSwapBigEndianTimeCodeDescriptionToHost

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

CMSwapHostEndianTimeCodeDescriptionToBig

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