[longomatch/livecapturemerged: 81/84] Add codec/lenght/format propeties to the project details
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/livecapturemerged: 81/84] Add codec/lenght/format propeties to the project details
- Date: Tue, 11 May 2010 00:54:48 +0000 (UTC)
commit 24f0c8712ec5b4b0a8729a9cd9b79de165939df5
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]