compositor: fix off-by-1 error in blending ARGB
authorJan Schmidt <jan@centricular.com>
Wed, 19 Aug 2020 19:44:46 +0000 (05:44 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 26 Aug 2020 13:10:09 +0000 (13:10 +0000)
commit8cacd54e8fa78cb471ce222a8881f57d6c209cbc
treef84571bff3d83e753a45872d19b522c7e61549e0
parent3edf390b4c6bd4ee9ad40fb3b6705992b2b0b7c0
compositor: fix off-by-1 error in blending ARGB

Use a more naive blend formulation that avoids off-by-one errors
at the 0x00 and 0xff alpha endpoints.

    Fixes #810

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/796>
gst/compositor/compositororc-dist.c
gst/compositor/compositororc.orc