← Back to team overview

openshot.bugs team mailing list archive

[Bug 722285] Re: timeline only shows 320 times the zoom slider setting

 

Follow-up on #11 -- Goocanvas issue?
==============================

http://developer.gnome.org/goocanvas/unstable/goocanvas-coordinates.html
-- Coordinate Limits

<< GooCanvas uses the Cairo graphics library to render canvas items. For
performance reasons Cairo uses 32-bit fixed point integers internally
when rendering graphics, with 24 bits used for the integer part of
values and 8 bits used for the fractional part. This means that values
are limited to roughly +/- 8,388,608.  >>

Since there is also a decimal part on 8 bits, which encompasses the range from 00 to 99 (but not to 999), Goocanvas can work with coordinates ranging from -8,388,608.00 to +8,388,607.99 . Assuming that a desired time-line precision would be 1/100 sec, Goocanvas should be able to accommodate a time-line of 16,777,216 seconds, which is ... 4660 hours (and a handful of additional minutes, around 20)!! 
And even if one wanted to go for a 1/1000 sec precision, Goocanvas would accommodate a time-line of 466 hours. 

The 2-hour video projects that we are speaking about should fit in,
couldn't they?

-- 
You received this bug notification because you are a member of OpenShot
Bugs, which is subscribed to OpenShot Video Editor.
https://bugs.launchpad.net/bugs/722285

Title:
  timeline only shows 320 times the zoom slider setting

Status in libcairo  -  cairo vector graphics library:
  Confirmed
Status in OpenShot Video Editor:
  Confirmed

Bug description:
  The timeline only shows the first (320*zoom seeting) seconds of a project.
  So if the zoom slider setting is set to 1 s, the timeline stops at 5'20'' (=320'')
  if it set to 2 s, it stops at 10'40'' (=640''), 4 s it stops at 21'20'' (=1280''), etc.

  How to reproduce:
  -launch OpenShot and create a new project of 60 min
  -with the default 8 s zoom setting you can only move the timeline up to 42'40'' (=2560 = 320*8)
  -try zooming in and see the timeline shorten as you zoom more

  1. Ubuntu 10.10 x64
  2. PPA installation
  3. OpenShot 1.3.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/libcairo/+bug/722285/+subscriptions