Function

CMTimeRangeCopyAsDictionary

Returns a CFDictionary version of a CMTimeRange.

Declaration

CFDictionaryRef CMTimeRangeCopyAsDictionary(CMTimeRange range, CFAllocatorRef allocator);

Parameters

range

The CMTimeRange from which to create a dictionary.

allocator

CFAllocator with which to create a dictionary. Pass kCFAllocatorDefault to use the default allocator

Return Value

A CFDictionary version of the CMTimeRange.

Discussion

This is useful when putting CMTimeRanges in Core Foundation container types. For keys, see CFDictionary Keys.

See Also

Utility Functions

CMTimeClampToRange

For a given CMTime and CMTimeRange, returns the nearest CMTime inside that time range.

CMTimeMapDurationFromRangeToRange

Translates a duration through a mapping from CMTimeRange to CMTimeRange.

CMTimeMapTimeFromRangeToRange

Translates a time through a mapping from CMTimeRange to CMTimeRange.

CMTimeRangeCopyDescription

Creates a CFString with a description of a CMTimeRange (similar to CFCopyDescription).

CMTimeRangeShow

Prints a description of the CMTimeRange to stderr (similar to CFShow).