After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 737504 - timeline: add API to get sources neighbouring a position.
timeline: add API to get sources neighbouring a position.
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-editing-services
git master
Other Linux
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-09-28 02:24 UTC by Mathieu Duponchelle
Modified: 2018-11-03 12:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Implements the proposed enhancement (10.34 KB, patch)
2014-09-28 02:25 UTC, Mathieu Duponchelle
none Details | Review
Implements the proposed enhancement (10.82 KB, patch)
2014-09-28 02:35 UTC, Mathieu Duponchelle
none Details | Review
Implements the proposed enhancement (11.17 KB, patch)
2014-09-28 02:43 UTC, Mathieu Duponchelle
none Details | Review

Description Mathieu Duponchelle 2014-09-28 02:24:10 UTC
My use case was removing gaps in a timeline, the least complex algorithm I came up with was : find out if a clip overlaps with other clips, if not find the next source and ripple it towards you.

These functions implement the second step correctly with a low complexity (not very theoretically versed but we use a sequence_search so I would guess a logarithmic complexity).

The new API is generic enough (allows to filter by track types and search for either clips ending or starting before or after you), and can come in pretty handy for script writers (or plugin writers for pitivi).

It is extensively tested and the tests obviously pass :)

In the future we could reuse these functions to handle the snapping mechanism internally.
Comment 1 Mathieu Duponchelle 2014-09-28 02:25:50 UTC
Created attachment 287265 [details] [review]
Implements the proposed enhancement
Comment 2 Mathieu Duponchelle 2014-09-28 02:35:39 UTC
Created attachment 287266 [details] [review]
Implements the proposed enhancement

Forgot to update ges-sections.txt
Comment 3 Mathieu Duponchelle 2014-09-28 02:43:10 UTC
Created attachment 287267 [details] [review]
Implements the proposed enhancement

Better to return a reference. I'm done I promise
Comment 4 GStreamer system administrator 2018-11-03 12:52:25 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-editing-services/issues/17.