[longomatch: 44/51] Add codec/lenght/format propeties to the project details



commit 141a514dc9a1a7bd89d7b3c413576d7d3b661c67
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Tue May 11 01:47:52 2010 +0200

    Add codec/lenght/format propeties to the project details

 LongoMatch/DB/DataBase.cs           |    8 +++++++-
 LongoMatch/DB/ProjectDescription.cs |   21 +++++++++++++++++++++
 2 files changed, 28 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch/DB/DataBase.cs b/LongoMatch/DB/DataBase.cs
index 8bea903..d5e6bd8 100644
--- a/LongoMatch/DB/DataBase.cs
+++ b/LongoMatch/DB/DataBase.cs
@@ -147,7 +147,13 @@ namespace LongoMatch.DB
 								LocalGoals = p.LocalGoals,
 								VisitorGoals = p.VisitorGoals,
 								MatchDate = p.MatchDate,
-								Preview = p.File.Preview};
+								Preview = p.File.Preview,
+								VideoCodec = p.File.VideoCodec,
+								AudioCodec = p.File.AudioCodec,
+								Length = new Time((int)(p.File.Length/1000)),
+								Format = String.Format("{0}x{1} {2}fps", 
+								                       p.File.VideoWidth, p.File.VideoHeight, p.File.Fps),
+							};
 							list.Add(pd);
 						}catch{	
 							Console.WriteLine("Error retreiving project. Skip");
diff --git a/LongoMatch/DB/ProjectDescription.cs b/LongoMatch/DB/ProjectDescription.cs
index 1dc9201..19a5cdf 100644
--- a/LongoMatch/DB/ProjectDescription.cs
+++ b/LongoMatch/DB/ProjectDescription.cs
@@ -18,6 +18,7 @@
 
 using System;
 using Gdk;
+using LongoMatch.TimeNodes;
 
 namespace LongoMatch.DB
 {
@@ -80,6 +81,26 @@ namespace LongoMatch.DB
 			get;
 			set;
 		}
+		
+		public Time Length {
+			get;
+			set;
+		}
+		
+		public String VideoCodec {
+			get;
+			set;
+		}
+		
+		public String AudioCodec {
+			get;
+			set;
+		}
+		
+		public String Format {
+			get;
+			set;
+		}
 
 		public int CompareTo(object obj) {
 			if (obj is ProjectDescription) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]