cairooverlay: Add property for drawing on a transparent surface and then blending
authorSebastian Dröge <sebastian@centricular.com>
Tue, 25 Sep 2018 12:31:20 +0000 (15:31 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 3 Oct 2018 20:20:10 +0000 (23:20 +0300)
commit9844bdbf7ac44c19a1f87529aaff6e3e5e770f48
tree8b4eb862f05053a0adf386d081ea8c0cd478805f
parentdefae350358660e557c74e41a4fe8a8bb327e9c8
cairooverlay: Add property for drawing on a transparent surface and then blending

This allows us to use the GstVideoOverlayComposition API and correctly
handle pre-multiplied alpha, while also only doing the alpha conversion
once instead of twice for the whole frame.

At a later point we can attach the meta to the buffer instead of
blending ourselves if downstream supports that.

https://bugzilla.gnome.org/show_bug.cgi?id=797091
ext/cairo/gstcairooverlay.c
ext/cairo/gstcairooverlay.h