gstreamer/tests/check/scenarios
Henry Wilkes 39097f5574 timeline-tree: simplify and fix editing
Editing has been simplified by breaking down each edit into a
combination of three basic single-element edits: MOVE, TRIM_START, and
TRIM_END.

Each edit follows these steps:
+ Determine which elements are to be edited and under which basic mode
+ Determine which track elements will move as a result
+ Snap the edit position to one of the edges of the main edited element,
  (or the edge of one of its descendants, in the case of MOVE), avoiding
  moving elements.
  NOTE: in particular, we can *not* snap to the edge of a neighbouring
  element in a roll edit. This was previously possible, even though the
  neighbour was moving!
+ Determine the edit positions for clips (or track elements with no
  parent) using the snapped value. In addition, we replace any edits of
  a group with an edit of its descendant clips. If any value would be
  out of bounds (e.g. negative start) we do not edit.
  NOTE: this is now done *after* checking the snapping. This allows the
  edit to succeed if snapping would cause it to go from being invalid to
  valid!
+ Determine whether the collection of edits would result in a valid
  timeline-configuration which does not break the rules for sources
  overlapping.
+ If all this succeeds, we emit snapping-started on the timeline.
+ We then perform all the edits. At this point they should all succeed.

The simplification/unification should make it easier to make other
changes.

Fixes https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/issues/97
Fixes https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/issues/98

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/169>
2020-05-07 09:37:15 +01:00
..
edit_while_seeked_with_stop/flow-expectations ges:tests: Fix the ignore-fields format in validatetests 2020-04-30 17:44:33 -04:00
seek_with_stop/flow-expectations tests: Stop recording segment position in seek_with_stop 2020-05-05 23:12:14 -04:00
seek_with_stop.check_clock_sync/flow-expectations ges:tests: Fix the ignore-fields format in validatetests 2020-04-30 17:44:33 -04:00
check_edit_in_frames.scenario ges: Add APIs to have a sens of frame numbers 2020-03-25 11:26:29 -03:00
check_edit_in_frames_with_framerate_mismatch.scenario timeline-tree: simplify and fix editing 2020-05-07 09:37:15 +01:00
check_layer_activness_gaps.scenario ges: Add a way to set layer activeness by track 2020-03-25 15:40:25 -03:00
check_video_track_restriction_scale.scenario framepositioner: Fix some source repositionning rounding issues 2020-04-16 21:52:52 -04:00
check_video_track_restriction_scale_with_keyframes.scenario framepositioner: Reposition source when the user positioned them 2020-02-26 13:39:29 -03:00
edit_while_seeked_with_stop.validatetest ges:tests: Fix the ignore-fields format in validatetests 2020-04-30 17:44:33 -04:00
seek_with_stop.check_clock_sync.validatetest ges:tests: Fix the ignore-fields format in validatetests 2020-04-30 17:44:33 -04:00
seek_with_stop.validatetest tests: Stop recording segment position in seek_with_stop 2020-05-05 23:12:14 -04:00