Function

CMTimeRangeMakeFromDictionary

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

Declaration

CMTimeRange CMTimeRangeMakeFromDictionary(CFDictionaryRef dictionaryRepresentation);

Parameters

dict

CFDictionary from which to create a CMTimeRange.

Return Value

The reconstituted CMTimeRange.

Discussion

This is useful when getting CMTimeRanges from Core Foundation container types. If the CFDictionary does not have the requisite keyed values, an invalid time range is returned. For keys, see CFDictionary Keys.

See Also

Creating Time Ranges

CMTimeRangeMake

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

CMTimeRangeFromTimeToTime

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