compositor: Fix blending functions
authorJan Schmidt <jan@centricular.com>
Sun, 15 Mar 2015 13:22:14 +0000 (00:22 +1100)
committerJan Schmidt <jan@centricular.com>
Sun, 15 Mar 2015 13:33:23 +0000 (00:33 +1100)
commit6a1f97cd508352b6cb1942be816b4719b4ff2856
tree4a6bf96c465ac7bc39fb7fbaa5e4faff65ca1360
parent875e5c0320e3a4d3e9f6220f3f6e47c2dd7dcf70
compositor: Fix blending functions

Correctly calculate alpha in a few places by dividing by 255,
not 256.

Fix the argb and bgra blending functions to avoid an off-by-one
error in the calculations, so painting with alpha = 0xff doesn't
ever bleed through from behind
gst/compositor/compositororc.orc