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