compositor: Implement different operators via per-pad property
authorSebastian Dröge <sebastian@centricular.com>
Sat, 27 Oct 2018 15:44:27 +0000 (16:44 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Sun, 28 Oct 2018 17:13:26 +0000 (17:13 +0000)
commitaae25e003280897b05594aaa63d5101c972c7369
tree4b6f356ce869637449c391ed9e29e28ba26ca98d
parent55134df54c99b09556d3d0f60b9b4f029123af0e
compositor: Implement different operators via per-pad property

This removes the crossfade-ratio property and replaces it with an
operator property. Currently this implements the following operators:

- SOURCE: Copy over the source and don't look at the destination
- OVER: Default blending of the source over the destination
- ADD: Like OVER but simply adding the alpha instead

See the example for how to implement crossfading with this.

https://bugzilla.gnome.org/show_bug.cgi?id=797169
gst/compositor/blend.c
gst/compositor/blend.h
gst/compositor/compositor.c
gst/compositor/compositor.h
gst/compositor/compositororc.orc
tests/examples/compositor/crossfade.c