[pitivi] ExportSettings: add a method to get the current DAR
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] ExportSettings: add a method to get the current DAR
- Date: Fri, 10 Dec 2010 17:50:26 +0000 (UTC)
commit d0b4f085d29fd89a7277a0e0d11afe997c30252d
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Fri Nov 19 19:20:15 2010 +0000
ExportSettings: add a method to get the current DAR
pitivi/settings.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/settings.py b/pitivi/settings.py
index f1731ad..67e430a 100644
--- a/pitivi/settings.py
+++ b/pitivi/settings.py
@@ -494,6 +494,9 @@ class ExportSettings(Signallable, Loggable):
ret.vcodecsettings = dict(self.vcodecsettings)
return ret
+ def getDAR(self):
+ return gst.Fraction(self.videowidth, self.videoheight) * self.videopar
+
def __str__(self):
msg = _("Export Settings\n")
msg += _("Video: ") + str(self.videowidth) + " " + str(self.videoheight) +\
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]