[gst-cvs] gst-plugins-good: videomixer: Fix ARGB blending to actually work

Sebastian Dröge slomo at kemper.freedesktop.org
Thu May 28 04:59:40 PDT 2009


Module: gst-plugins-good
Branch: master
Commit: ad1f79fd817c0a8d7f40258c8e0ff94d20c1ef89
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=ad1f79fd817c0a8d7f40258c8e0ff94d20c1ef89

Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Thu May 28 13:14:13 2009 +0200

videomixer: Fix ARGB blending to actually work

---

 gst/videomixer/blend_bgra.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gst/videomixer/blend_bgra.c b/gst/videomixer/blend_bgra.c
index f3d58f3..d939bf9 100644
--- a/gst/videomixer/blend_bgra.c
+++ b/gst/videomixer/blend_bgra.c
@@ -70,7 +70,7 @@ gst_videomixer_blend_bgra_bgra (guint8 * src, gint xpos, gint ypos,
   for (i = 0; i < src_height; i++) {
     for (j = 0; j < src_width; j++) {
       alpha = (src[3] * b_alpha) >> 8;
-      BLEND_MODE (dest[1], dest[2], dest[3], src[1], src[2], src[3],
+      BLEND_MODE (dest[0], dest[1], dest[2], src[0], src[1], src[2],
           B, G, R, alpha);
       dest[0] = B;
       dest[1] = G;





More information about the Gstreamer-commits mailing list