From ab07ccc8ba674d677fd452155c66eede8fb7bfe5 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 15 Sep 2010 16:52:53 +0200 Subject: [PATCH] timeline overview with 16 and 64 pixels height --- bin/oxtimeline | 3 ++- oxgst/timeline.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/oxtimeline b/bin/oxtimeline index 6f0f319..508fa16 100755 --- a/bin/oxtimeline +++ b/bin/oxtimeline @@ -33,6 +33,7 @@ if __name__ == '__main__': timeline.extract(opts.prefix, opts.width, opts.height) oxgst.timeline.createTimelineMultiline(opts.prefix) oxgst.timeline.makeTiles(opts.prefix, 16, 3600) - oxgst.timeline.makeTimelineOverview(opts.prefix, 1920) + oxgst.timeline.makeTimelineOverview(opts.prefix, 1920, height=16) + oxgst.timeline.makeTimelineOverview(opts.prefix, 1920, height=64) diff --git a/oxgst/timeline.py b/oxgst/timeline.py index 39b5896..a0b855c 100644 --- a/oxgst/timeline.py +++ b/oxgst/timeline.py @@ -176,9 +176,9 @@ def makeTimelineByFramesPerPixel(timeline_prefix, frames_per_pixel, inpoint=0, o def makeTimelineOverview(timeline_prefix, width, inpoint=0, outpoint=0, duration=-1, height=16): input_scale = 25 - timeline_file = '%s.overview.%s.png' % (timeline_prefix, width) + timeline_file = '%s.%s.png' % (timeline_prefix, height) if outpoint > 0: - timeline_file = '%s.overview.%s.%d-%d.png' % (timeline_prefix, width, inpoint, outpoint) + timeline_file = '%s.overview.%s.%d-%d.png' % (timeline_prefix, height, inpoint, outpoint) timeline = loadTimeline(timeline_prefix) duration = timeline.size[0]