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)
commite87fa73e606251036876cccf6d743d6a1eee3b6b
treec60d874245b34c9c07ddc9a8c993020e5b3cd9eb
parentc41439d16f8fada1db6bc498e645bc518c1a88aa
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