CMTimeMapping

A struct used to specify the mapping of a segment of one time line into another.

Overview

A CMTimeMapping specifies the mapping of a segment of one time line (called the source) into another time line (called the target). When used for movie edit lists, the source time line is the media and the target time line is the track or movie.

Topics

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.

func CMTimeMappingMakeFromDictionary(CFDictionary) -> CMTimeMapping

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

Performing Utility Operations

func CMTimeMappingCopyDescription(allocator: CFAllocator?, mapping: CMTimeMapping) -> CFString?

Creates a CFString with a description of a CMTimeMapping (just like CFCopyDescription).

func CMTimeMappingShow(CMTimeMapping)

Prints a description of a CMTimeMapping (just like CFShow).

Data Types

struct CMTimeMapping

A struct used to specify the mapping of a segment of one time line into another.

Constants

static let invalid: CMTimeMapping

Used to indicate an invalid CMTimeMapping.

let kCMTimeMappingSourceKey: CFString

Dictionary key for the source field of a CMTimeMapping (CMTimeRange).

let kCMTimeMappingTargetKey: CFString

Dictionary key for the target field of a CMTimeMapping (CMTimeRange).

See Also

Time Representation

CMTime

A struct representing a time value such as a timestamp or duration.

CMTimeRange

A struct representing a range of time.