Function

CMTimeRangeGetEnd

Returns a CMTime structure representing the end of a time range.

Declaration

CMTime CMTimeRangeGetEnd(CMTimeRange range);

Parameters

range

The CMTimeRange from which to find the end of time range.

Return Value

A CMTime structure representing the end of the specified time range.

Discussion

This function returns a CMTime structure that indicates the end of the time range specified by the range parameter. CMTimeRangeContainsTime(range, CMTimeRangeGetEnd(range)) is always false.

See Also

Inspecting Time Ranges

CMTIMERANGE_IS_EMPTY

Returns a Boolean value that indicates whether a given CMTimeRange has a duration of 0.

CMTIMERANGE_IS_INDEFINITE

Returns a Boolean value that indicates whether a given CMTimeRange is indefinite.

CMTIMERANGE_IS_INVALID

Returns a Boolean value that indicates whether a given CMTimeRange is invalid.

CMTIMERANGE_IS_VALID

Returns a Boolean value that indicates whether a given CMTimeRange is valid.

CMTimeRangeGetIntersection

Returns the intersection of two CMTimeRanges.

CMTimeRangeGetUnion

Returns the union of two CMTimeRanges.