Function

CMTimeCopyAsDictionary(_:allocator:)

Returns a CFDictionary version of a CMTime.

Declaration

func CMTimeCopyAsDictionary(_ time: CMTime, allocator: CFAllocator?) -> CFDictionary?

Parameters

time

CMTime from which to create dictionary.

allocator

CFAllocator with which to create dictionary. Pass kCFAllocatorDefault to use the default allocator.

Return Value

A CFDictionary version of the CMTime.

Discussion

This is useful when putting CMTimes in Core Foundation container types. For keys in the resulting dictionary, see Dictionary Keys.

See Also

Utility Functions

func CMTimeShow(CMTime)

Prints a description of the CMTime (Similar to CFShow(_:)).

func CMTimeCopyDescription(allocator: CFAllocator?, time: CMTime) -> CFString?

Creates a CFString with a description of a CMTime ( Similar to CFCopyDescription ).