Function

CMTimeMinimum(_:_:)

Returns the lesser of two CMTimes (as defined by CMTimeCompare(_:_:)).

Declaration

func CMTimeMinimum(_ time1: CMTime, _ time2: CMTime) -> CMTime

Parameters

time1

A CMTime.

time2

Another CMTime.

Return Value

The lesser of the two CMTimes.

See Also

Inspecting and Evaluating Times

func CMTimeCompare(CMTime, CMTime) -> Int32

Returns the numerical relationship of two CMTimes.

func CMTimeAbsoluteValue(CMTime) -> CMTime

Returns the absolute value of a CMTime.

func CMTimeGetSeconds(CMTime) -> Float64

Converts a CMTime to seconds.

func CMTimeMaximum(CMTime, CMTime) -> CMTime

Returns the greater of two CMTimes (as defined by CMTimeCompare(_:_:)).

func CMTIME_IS_VALID(CMTime) -> Bool

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

func CMTIME_IS_INVALID(CMTime) -> Bool

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

func CMTIME_IS_POSITIVEINFINITY(CMTime) -> Bool

Returns a Boolean value that indicates whether a given time is positive infinity.

func CMTIME_IS_NEGATIVEINFINITY(CMTime) -> Bool

Returns a Boolean value that indicates whether a given time is negative infinity.

func CMTIME_IS_INDEFINITE(CMTime) -> Bool

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

func CMTIME_IS_NUMERIC(CMTime) -> Bool

Returns a Boolean value that indicates whether a given time is numeric.

func CMTIME_HAS_BEEN_ROUNDED(CMTime) -> Bool

Returns a Boolean value that indicates whether a given time has been rounded.