videomixer: I420 blending : Fix main algorithm.
authorEdward Hervey <bilboed@bilboed.com>
Tue, 30 Jun 2009 10:40:02 +0000 (12:40 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 10 Jul 2009 12:37:10 +0000 (14:37 +0200)
commit3c88249d48870b826fd89d287ee6d46b284c4f45
treeac73478af8417ae93ea0967805da1e7728d27d50
parentace4cb229542ae2c4ca8331d840e6bb3acd03c22
videomixer: I420 blending : Fix main algorithm.

When blending a source layer with an alpha of 'a' on top of another
destination layer we take the sum of:
* 'a' percent of the source layer
* (100 - 'a') percent of the destination layer (the remainder)
gst/videomixer/blend_i420.c