TimecodeRate Class

Timecode rate (fps) is a rational number, possibly with drop frames and sub frames (unsupported).

Definition

Namespace: Quine.Schemas.Core
Assembly: Quine.Schemas.Core (in Quine.Schemas.Core.dll) Version: 1.0.0+0ea0706914ee4edf2b0ed66bec3ab4d062a43b68
C#
[DataContractAttribute(Namespace = "http://schemas.quine.no/core/v3_0.xsd")]
[XmlTypeAttribute(Namespace = "http://schemas.quine.no/core/v3_0.xsd")]
public class TimecodeRate : Rational
Inheritance
Object    Rational    TimecodeRate

Constructors

TimecodeRateInitializes a new instance of the TimecodeRate class

Properties

ClockRate Rate as double number.
Den
(Inherited from Rational)
Drop 
Fps2397 
Fps24 
Fps2497 
Fps25 
Fps2997DF 
Fps2997NDF 
Fps30 
MaxFrame Maximum frame number; ToFrameNumber(TimecodeRate) will return a number up to but not including this value.
Num
(Inherited from Rational)
SubFrame 

Methods

FromDouble Approximate conversion of fractional framerates to TimeCodeRate with attempted guessing of SMPTE framerates: if a fractional framerate rounds UP (Ceiling(Double)) to 24, 25, or 30 a SMPTE framerate of 24000/1001, 25000/1001 and 30000/1001 is returned; the latter ALWAYS being assumed to be with drop frame.
FromRational 
ToString
(Overrides RationalToString)

See Also