mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
videomixer: Fix ARGB blending to actually work
This commit is contained in:
parent
f66906e891
commit
ad1f79fd81
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ gst_videomixer_blend_bgra_bgra (guint8 * src, gint xpos, gint ypos,
|
||||||
for (i = 0; i < src_height; i++) {
|
for (i = 0; i < src_height; i++) {
|
||||||
for (j = 0; j < src_width; j++) {
|
for (j = 0; j < src_width; j++) {
|
||||||
alpha = (src[3] * b_alpha) >> 8;
|
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);
|
B, G, R, alpha);
|
||||||
dest[0] = B;
|
dest[0] = B;
|
||||||
dest[1] = G;
|
dest[1] = G;
|
||||||
|
|
Loading…
Reference in a new issue