Function

CMTimeRangeGetIntersection

Returns the intersection of two CMTimeRanges.

Declaration

CMTimeRange CMTimeRangeGetIntersection(CMTimeRange range, CMTimeRange otherRange);

Parameters

range1

CMTimeRange to be intersected.

range2

Another CMTimeRange to be intersected.

Return Value

The intersection of the two CMTimeRanges.

Discussion

This function returns a CMTimeRange structure that represents the intersection of the time ranges specified by the range1 and range2 parameters. This is the largest range that both ranges include.

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.

CMTimeRangeGetUnion

Returns the union of two CMTimeRanges.