CMTime CMTime Struct

Definition

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

public struct CMTime
type CMTime = struct
Inheritance
CMTimeCMTime

Constructors

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

Fields

EpochKey EpochKey
FlagsKey FlagsKey
Indefinite Indefinite

Constant that contains an indefinite CMTime.

Invalid Invalid

Constant that contains an invalid CMTime.

MaxTimeScale MaxTimeScale

Maximum supported time scale.

NegativeInfinity NegativeInfinity

Constant that contains a negative infinity CMTime.

PositiveInfinity PositiveInfinity

Constant that contains a positive infinity CMTime.

ScaleKey ScaleKey

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

TimeEpoch TimeEpoch

The time epoch.

TimeFlags TimeFlags

Flags set on the CMTime

TimeScale TimeScale

Timescale for the CMTime (the denominator).

Value Value

Value component of a CMTime (the numerator).

ValueKey ValueKey

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

Zero Zero

Constant that contains a zero CMTime.

Properties

AbsoluteValue AbsoluteValue
Description Description
HasBeenRounded HasBeenRounded

Indicates that the CMTime was rounded.

IsIndefinite IsIndefinite

Indicates that the CMTime is indefinite.

IsInvalid IsInvalid

Indicates that the CMTime value stored is invalid.

IsNegativeInfinity IsNegativeInfinity

Indicates if the CMTime represents negative infinity.

IsNumeric IsNumeric

Indicates if the CMTime is numeric.

IsPositiveInfinity IsPositiveInfinity

Indicates if the CMTime represents positive infinity.

Seconds Seconds

Number of seconds

Methods

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

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

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

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

Multiply(CMTime, Double) Multiply(CMTime, Double)

Multiples a CMTime by a double value.

Multiply(CMTime, Int32) Multiply(CMTime, Int32)

Multiples a CMTime by an integer value.

Subtract(CMTime, CMTime) Subtract(CMTime, CMTime)

Substracts a CMTime from another CMTime.

ToDictionary() ToDictionary()
ToString() ToString()

Human readable description of the CMTime.

Operators

Addition(CMTime, CMTime) Addition(CMTime, CMTime)

Adds two CMTimes and returns a new one.

Equality(CMTime, CMTime) Equality(CMTime, CMTime)

Compares two CMTimes for equality

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

Compares two CMTimes for inequality

LessThan(CMTime, CMTime) LessThan(CMTime, CMTime)
LessThanOrEqual(CMTime, CMTime) LessThanOrEqual(CMTime, CMTime)
Multiply(CMTime, Int32) Multiply(CMTime, Int32)

Multiples a CMTime by an integer.

Multiply(CMTime, Double) Multiply(CMTime, Double)

Multiples a CMTime by a double.

Subtraction(CMTime, CMTime) Subtraction(CMTime, CMTime)

Substracts a CMTime from another CMTime.

Applies to

See also