Function

CMTimeRangeMake

Creates a valid CMTimeRange with the given start time and duration.

Declaration

CMTimeRange CMTimeRangeMake(CMTime start, CMTime duration);

Parameters

start

CMTime structure for initializing the start field of the resulting CMTimeRange.

duration

CMTime structure for initializing the duration field of the resulting CMTimeRange.

Return Value

The resulting CMTimeRange.

Discussion

The duration parameter must have an epoch of 0; otherwise an invalid time range will be returned.

See Also

Creating Time Ranges

CMTimeRangeMakeFromDictionary

Reconstitutes a CMTimeRange struct from a CFDictionary previously created by CMTimeRangeCopyAsDictionary.

CMTimeRangeFromTimeToTime

Creates a valid CMTimeRange from the given start and end time.