C# 클래스 SubLib.Core.Timing.TimingUtil

Contains utilitary methods for synchronization operations.
파일 보기 프로젝트 열기: GNOME/gnome-subtitles 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

FramesToTime() 공개 정적인 메소드

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.
리턴 System.TimeSpan

TimeMillisecondsToFrames() 공개 정적인 메소드

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.
리턴 double

TimeToFrames() 공개 정적인 메소드

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.
리턴 double

TimeToFrames() 공개 정적인 메소드

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.
리턴 double