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)
commitbadc0438d6a8f771d586889ad9b5de613565237d
tree502c7722efedfb4e4753d019098ecb69db8806c4
parentab52bfbfa6ba80162204b0b7f89a03f70613423e
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