Implement Viewer Overlay for GES.VideoUriSource Transformation
@lubosz
Submitted by Lubosz Sarnecki Assigned to Lubosz Sarnecki @lubosz
Description
The following code adds an interactive Overlay on the Viewer, using gtksink and Gtk overlays.
It transforms user input into usable GES.VideoUriSource posx/posy, width/height coordinates.
The graphics are rendered using cairo in Gtk.
The code is placed in "pitivi/overlay", with room for future overlays like crop etc.
Features:
- Cursors
- Edge handles restrict to aspect ratio
- Minimal size restriction, dependent on window / handle size
- Cairo rendering independent from pipeline update
Possible further TODOs:
- Different clips should be selectable in viewer when multiple are visible
- Viewer zoom needs yet to be implemented.
- Handles can also only be drawn over the video, not beyond, the Gtk DrawingArea needs to be placed differently on the video for that.
- Port old transformation box based on the gltransformation plugin to current architecture