Function

CMTimeMappingMake

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

Declaration

CMTimeMapping CMTimeMappingMake(CMTimeRange source, CMTimeRange target);

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

CMTimeMappingMakeEmpty

Makes a valid CMTimeMapping with an empty source.

CMTimeMappingMakeFromDictionary

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