[pitivi] previewer.py: make larger audio thumbnail tiles, undersample for smoother appearance
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pitivi] previewer.py: make larger audio thumbnail tiles, undersample for smoother appearance
- Date: Wed, 30 Sep 2009 09:24:42 +0000 (UTC)
commit 6aef9a5e628916b2fdfaf28f1bc29cb0cef0e2c3
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date: Thu Sep 24 15:01:57 2009 -0700
previewer.py: make larger audio thumbnail tiles, undersample for smoother appearance
pitivi/ui/previewer.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/ui/previewer.py b/pitivi/ui/previewer.py
index b56e887..f44118a 100644
--- a/pitivi/ui/previewer.py
+++ b/pitivi/ui/previewer.py
@@ -404,8 +404,8 @@ class StillImagePreviewer(RandomAccessVideoPreviewer):
class RandomAccessAudioPreviewer(RandomAccessPreviewer):
def __init__(self, factory, stream_):
- self.tdur = gst.SECOND
- self.base_width = 50
+ self.tdur = 10 * gst.SECOND
+ self.base_width = int(2.5 * Zoomable.max_zoom)
RandomAccessPreviewer.__init__(self, factory, stream_)
@property
@@ -431,7 +431,7 @@ class RandomAccessAudioPreviewer(RandomAccessPreviewer):
def _segment_for_time(self, time):
# for audio files, we need to know the duration the segment spans
- return time, self.tdur
+ return time - (time % self.tdur), self.tdur
def _bus_message(self, bus, message):
if message.type == gst.MESSAGE_SEGMENT_DONE:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]