Function

CMTimeMappingMakeEmpty(target:)

Makes a valid CMTimeMapping with an empty source.

Declaration

func CMTimeMappingMakeEmpty(target: CMTimeRange) -> CMTimeMapping

Parameters

target

Initializes the target field of the resulting CMTimeMapping.

Return Value

The resulting CMTimeMapping.

Discussion

The target parameter must have a duration whose epoch is 0; otherwise an invalid time mapping will be 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 CMTimeMappingMakeFromDictionary(CFDictionary) -> CMTimeMapping

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