Structure

CMTimeMapping

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

Declaration

struct CMTimeMapping

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 a Timebase

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.

Utility Functions

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).

Properties

var source: CMTimeRange

The time range on the source time line.

var target: CMTimeRange

The time range on the target time line.

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).