Function

CMTimeMappingMake(source:target:)

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

Declaration

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

Parameters

source

Initializes the source field of the resulting CMTimeMapping.

target

Initializes the target field of the resulting CMTimeMapping.

Return Value

The resulting CMTimeMapping.

Discussion

The source and target parameters must have durations whose epoch is 0; otherwise an invalid time mapping will be returned.

See Also

Creating Time Mappings

func CMTimeMappingMakeEmpty(target: CMTimeRange) -> CMTimeMapping

Makes a valid CMTimeMapping with an empty source.

func CMTimeMappingMakeFromDictionary(CFDictionary) -> CMTimeMapping

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