CMTime Struct

Definition

A time value that represents a rational number Value/P:CoreMedia.CMTime.Timescale.

public struct CMTime
type CMTime = struct
Inheritance
CMTime

Constructors

CMTime(Int64, Int32)
CMTime(Int64, Int32, Int64)

Fields

EpochKey
FlagsKey
Indefinite

Constant that contains an indefinite CMTime.

Invalid

Constant that contains an invalid CMTime.

MaxTimeScale

Maximum supported time scale.

NegativeInfinity

Constant that contains a negative infinity CMTime.

PositiveInfinity

Constant that contains a positive infinity CMTime.

ScaleKey

Key that can be used in NSDictionary objects returned by CMTime to extract the Scale property.

TimeEpoch

The time epoch.

TimeFlags

Flags set on the CMTime

TimeScale

Timescale for the CMTime (the denominator).

Value

Value component of a CMTime (the numerator).

ValueKey

Key that can be used in NSDictionary objects returned by CMTime to extract the Value property.

Zero

Constant that contains a zero CMTime.

Properties

AbsoluteValue
Description
HasBeenRounded

Indicates that the CMTime was rounded.

IsIndefinite

Indicates that the CMTime is indefinite.

IsInvalid

Indicates that the CMTime value stored is invalid.

IsNegativeInfinity

Indicates if the CMTime represents negative infinity.

IsNumeric

Indicates if the CMTime is numeric.

IsPositiveInfinity

Indicates if the CMTime represents positive infinity.

Seconds

Number of seconds

Methods

Add(CMTime, CMTime)
Compare(CMTime, CMTime)
ConvertScale(Int32, CMTimeRoundingMethod)
Equals(Object)
Fold(CMTime, CMTimeRange)
FromDictionary(NSDictionary)
FromSeconds(Double, Int32)

Creates a new instance of CMTime from a second and timescale description.

GetHashCode()
GetMaximum(CMTime, CMTime)
GetMinimum(CMTime, CMTime)
Multiply(CMTime, Double)

Multiples a CMTime by a double value.

Multiply(CMTime, Int32)

Multiples a CMTime by an integer value.

Multiply(CMTime, Int32, Int32)

Multiples a CMTime by a fraction expressed as a multiplier and a divisor.

Subtract(CMTime, CMTime)

Substracts a CMTime from another CMTime.

ToDictionary()
ToString()

Human readable description of the CMTime.

Operators

Addition(CMTime, CMTime)

Adds two CMTimes and returns a new one.

Equality(CMTime, CMTime)

Compares two CMTimes for equality

GreaterThan(CMTime, CMTime)
GreaterThanOrEqual(CMTime, CMTime)
Inequality(CMTime, CMTime)

Compares two CMTimes for inequality

LessThan(CMTime, CMTime)
LessThanOrEqual(CMTime, CMTime)
Multiply(CMTime, Double)

Multiples a CMTime by a double.

Multiply(CMTime, Int32)

Multiples a CMTime by an integer.

Subtraction(CMTime, CMTime)

Substracts a CMTime from another CMTime.

Applies to

See also