public void ChangeFps(double newFps) { _chapters = _chapters.Select(cts => ChangeFps(cts, newFps)).ToList(); _duration = ChapterTimeSpan.FromFrameRate(_duration.TotalSeconds, _framesPerSecond, newFps); _framesPerSecond = newFps; }
private string GetCellTime(ChapterTimeSpan c) { return ((long)Math.Round(c.TotalSeconds * _framesPerSecond)).ToString(CultureInfo.InvariantCulture); }
public ChapterWriter(Playlist playlist) { _chapters = playlist.Chapters.Select(chapter => new ChapterTimeSpan(chapter.StartTime)).ToList(); _duration = new ChapterTimeSpan(playlist.Length); }
private ChapterTimeSpan ChangeFps(ChapterTimeSpan timeSpan, double fps) { return ChapterTimeSpan.FromFrameRate(timeSpan.TotalSeconds, _framesPerSecond, fps); }
private ChapterTimeSpan ChangeFps(ChapterTimeSpan timeSpan, double fps) { return(ChapterTimeSpan.FromFrameRate(timeSpan.TotalSeconds, _framesPerSecond, fps)); }
public void ChangeFps(double newFps) { _chapters = _chapters.Select(cts => ChangeFps(cts, newFps)).ToList(); _duration = ChapterTimeSpan.FromFrameRate(_duration.TotalSeconds, _framesPerSecond, newFps); _framesPerSecond = newFps; }
public ChapterWriter(Playlist playlist) { _chapters = playlist.Chapters.Select(chapter => new ChapterTimeSpan(chapter.StartTime)).ToList(); _duration = new ChapterTimeSpan(playlist.Length); }
private string GetCellTime(ChapterTimeSpan c) { return(((long)Math.Round(c.TotalSeconds * _framesPerSecond)).ToString(CultureInfo.InvariantCulture)); }