Function

CMTimeRangeCopyDescription(allocator:range:)

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

Declaration

func CMTimeRangeCopyDescription(allocator: CFAllocator?, range: CMTimeRange) -> CFString?

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

func CMTimeClampToRange(CMTime, range: CMTimeRange) -> CMTime

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

func CMTimeMapDurationFromRangeToRange(CMTime, fromRange: CMTimeRange, toRange: CMTimeRange) -> CMTime

Translates a duration through a mapping from CMTimeRange to CMTimeRange.

func CMTimeMapTimeFromRangeToRange(CMTime, fromRange: CMTimeRange, toRange: CMTimeRange) -> CMTime

Translates a time through a mapping from CMTimeRange to CMTimeRange.

func CMTimeRangeShow(CMTimeRange)

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