Function

CMTimeRangeGetUnion

Returns the union of two CMTimeRanges.

Declaration

CMTimeRange CMTimeRangeGetUnion(CMTimeRange range, CMTimeRange otherRange);

Parameters

range1

CMTimeRange to be unified.

range2

Another CMTimeRange to be unified.

Return Value

The union of the two CMTimeRanges.

Discussion

This function returns a CMTimeRange structure that represents the union of the time ranges specified by the range1 and range2 parameters. This is the smallest range that includes all times that are in either range.

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.

CMTimeRangeGetEnd

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

CMTimeRangeGetIntersection

Returns the intersection of two CMTimeRanges.