Function

CMTIME_IS_NUMERIC(_:)

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

Declaration

func CMTIME_IS_NUMERIC(_ time: CMTime) -> Bool

Return Value

true if the CMTime is numeric, otherwise false. Returns false if the CMTime is invalid, indefinite, or +/- infinity.

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 CMTimeMinimum(CMTime, CMTime) -> CMTime

Returns the lesser 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_HAS_BEEN_ROUNDED(CMTime) -> Bool

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