Function

CMTimeCodeFormatDescriptionGetFrameDuration(_:)

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

Declaration

func CMTimeCodeFormatDescriptionGetFrameDuration(_ timeCodeFormatDescription: CMTimeCodeFormatDescription) -> CMTime

Parameters

timeCodeFormatDescription

CMTimeCodeFormatDescription being interrogated.

Return Value

The duration of each frame represented in CMTime format.

See Also

TimeCode-Specific Functions

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.