[longomatch] Remove FPS from plays
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Remove FPS from plays
- Date: Mon, 7 Jul 2014 11:33:40 +0000 (UTC)
commit c811b8050505627f488e4737cad73e89688d6b44
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Mon Jul 7 12:45:38 2014 +0200
Remove FPS from plays
LongoMatch.Core/Store/Play.cs | 24 -----------------------
LongoMatch.Core/Store/Project.cs | 1 -
LongoMatch.Services/Services/ProjectsManager.cs | 3 --
Tests/Core/TestPlay.cs | 1 -
4 files changed, 0 insertions(+), 29 deletions(-)
---
diff --git a/LongoMatch.Core/Store/Play.cs b/LongoMatch.Core/Store/Play.cs
index b3b7266..6ec4769 100644
--- a/LongoMatch.Core/Store/Play.cs
+++ b/LongoMatch.Core/Store/Play.cs
@@ -42,7 +42,6 @@ namespace LongoMatch.Store
Drawings = new List<FrameDrawing>();
Players = new List<Player> ();
Tags = new List<Tag>();
- Fps = 25;
PlaybackRate = 1.0;
ID = Guid.NewGuid ();
}
@@ -72,29 +71,6 @@ namespace LongoMatch.Store
}
/// <summary>
- /// Video framerate in frames per second. This value is taken from the
- /// video file properties and used to translate from seconds
- /// to frames: second 100 is equivalent to frame 100*fps
- /// </summary>
- public uint Fps {
- get;
- set;
- }
-
- /// <summary>
- /// Start frame number
- /// </summary>
- [JsonIgnore]
- public uint StartFrame {
- get {
- return (uint)(Start.MSeconds * Fps / 1000);
- }
- set {
- Start = new Time {MSeconds = (int)(1000 * value / Fps)};
- }
- }
-
- /// <summary>
/// Get/Set wheter this play is actually loaded. Used in <see
cref="LongoMatch.Gui.Component.TimeScale">
/// </summary>
public bool Selected {
diff --git a/LongoMatch.Core/Store/Project.cs b/LongoMatch.Core/Store/Project.cs
index 761b368..85f28c0 100644
--- a/LongoMatch.Core/Store/Project.cs
+++ b/LongoMatch.Core/Store/Project.cs
@@ -176,7 +176,6 @@ namespace LongoMatch.Store
Category = category,
Notes = "",
Miniature = miniature,
- Fps = Description.File.Fps,
};
Timeline.Add(play);
return play;
diff --git a/LongoMatch.Services/Services/ProjectsManager.cs b/LongoMatch.Services/Services/ProjectsManager.cs
index 1fb65f7..dbca7c1 100644
--- a/LongoMatch.Services/Services/ProjectsManager.cs
+++ b/LongoMatch.Services/Services/ProjectsManager.cs
@@ -146,9 +146,6 @@ namespace LongoMatch.Services
Log.Debug("Reloading saved file: " + filePath);
project.Description.File = multimediaToolkit.DiscoverFile(filePath);
- foreach (Play play in project.Timeline) {
- play.Fps = project.Description.File.Fps;
- }
DB.AddProject(project);
} catch(Exception ex) {
Log.Exception(ex);
diff --git a/Tests/Core/TestPlay.cs b/Tests/Core/TestPlay.cs
index 6feeae5..c991e9a 100644
--- a/Tests/Core/TestPlay.cs
+++ b/Tests/Core/TestPlay.cs
@@ -33,7 +33,6 @@ namespace Tests.Core
play.Category = cat1;
play.Notes = "notes";
- play.Fps = 30;
play.Selected = true;
play.Team = LongoMatch.Common.Team.LOCAL;
play.FieldPosition = new Coordinates();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]