C# Class SubLib.Core.Timing.TimingUtil

Contains utilitary methods for synchronization operations.
ファイルを表示 Open project: GNOME/gnome-subtitles Class Usage Examples

Public Methods

Method Description
FramesToTime ( double frames, float frameRate ) : System.TimeSpan

Converts the specified frames to time, given a frame rate.

TimeMillisecondsToFrames ( float time, float frameRate ) : double

Converts the specified time to frames, given a frame rate.

TimeToFrames ( System.TimeSpan time, float frameRate ) : double

Converts the specified time to frames, given a frame rate.

TimeToFrames ( float time, float frameRate ) : double

Converts the specified time to frames, given a frame rate.

Method Details

FramesToTime() public static method

Converts the specified frames to time, given a frame rate.
public static FramesToTime ( double frames, float frameRate ) : System.TimeSpan
frames double The frames to convert to time.
frameRate float The frame rate to be used in the conversion.
return System.TimeSpan

TimeMillisecondsToFrames() public static method

Converts the specified time to frames, given a frame rate.
public static TimeMillisecondsToFrames ( float time, float frameRate ) : double
time float The time, in milliseconds, to convert to frames.
frameRate float The frame rate to be used in the conversion.
return double

TimeToFrames() public static method

Converts the specified time to frames, given a frame rate.
public static TimeToFrames ( System.TimeSpan time, float frameRate ) : double
time System.TimeSpan The time to convert to frames.
frameRate float The frame rate to be used in the conversion.
return double

TimeToFrames() public static method

Converts the specified time to frames, given a frame rate.
public static TimeToFrames ( float time, float frameRate ) : double
time float The time, in seconds, to convert to frames.
frameRate float The frame rate to be used in the conversion.
return double