Function

CMTimeMappingMakeFromDictionary(_:)

Reconstitutes a CMTimeMapping struct from a CFDictionary previously created by CMTimeMappingCopyAsDictionary.

Declaration

func CMTimeMappingMakeFromDictionary(_ dictionaryRepresentation: CFDictionary) -> CMTimeMapping

Return Value

The resulting CMTimeMapping.

Discussion

This is useful when getting a CMTimeMapping from CF container types. If the CFDictionary does not have the requisite keyed values, an invalid time mapping is returned.

See Also

Creating Time Mappings

func CMTimeMappingMake(source: CMTimeRange, target: CMTimeRange) -> CMTimeMapping

Make a valid time mapping with a source and target time range.

func CMTimeMappingMakeEmpty(target: CMTimeRange) -> CMTimeMapping

Makes a valid CMTimeMapping with an empty source.