Function

CMTimeRangeCopyDescription

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

Declaration

CFStringRef CMTimeRangeCopyDescription(CFAllocatorRef allocator, CMTimeRange range);

Parameters

allocator

CFAllocator for allocating memory for description. Pass kCFAllocatorDefault to use the default allocator.

range

The CMTimeRange to describe.

Return Value

The created CFString description.

Discussion

This is used from within CFShow on an object that contains CMTimeRange fields. It is also useful from other client debugging code. The caller owns the returned CFString and is responsible for releasing it.

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.

CMTimeRangeCopyAsDictionary

Returns a CFDictionary version of a CMTimeRange.

CMTimeRangeShow

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