summaryrefslogtreecommitdiff
path: root/gst/shapewipe
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2010-02-10 10:52:53 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2010-02-12 11:12:35 +0100
commit919e93f1b2ee53d2f8f4d22b688eacf8a521325d (patch)
treee012b04d8cb4a11a6f7af3689bccb4d7b4c78f58 /gst/shapewipe
parente9f9f4cfd48302f5417547b73648a3ef3f6a40cb (diff)
downloadgstreamer-plugins-good-919e93f1b2ee53d2f8f4d22b688eacf8a521325d.tar.gz
[MOVED FROM BAD 29/29] shapewipe: Preserve the input color values in all cases
Diffstat (limited to 'gst/shapewipe')
-rw-r--r--gst/shapewipe/gstshapewipe.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gst/shapewipe/gstshapewipe.c b/gst/shapewipe/gstshapewipe.c
index b74b1c44b..11f24c7f3 100644
--- a/gst/shapewipe/gstshapewipe.c
+++ b/gst/shapewipe/gstshapewipe.c
@@ -804,9 +804,9 @@ gst_shape_wipe_blend_ayuv_##depth (GstShapeWipe * self, GstBuffer * inbuf, \
\
if (in < low_i) { \
output[0] = 0x00; /* A */ \
- output[1] = 0x00; /* Y */ \
- output[2] = 0x80; /* U */ \
- output[3] = 0x80; /* V */ \
+ output[1] = input[1]; /* Y */ \
+ output[2] = input[2]; /* U */ \
+ output[3] = input[3]; /* V */ \
} else if (in >= high_i) { \
output[0] = input[0]; /* A */ \
output[1] = input[1]; /* Y */ \
@@ -873,9 +873,9 @@ gst_shape_wipe_blend_##name##_##depth (GstShapeWipe * self, GstBuffer * inbuf, \
\
if (in < low_i) { \
output[a] = 0x00; /* A */ \
- output[r] = 0x00; /* R */ \
- output[g] = 0x00; /* G */ \
- output[b] = 0x00; /* B */ \
+ output[r] = input[r]; /* R */ \
+ output[g] = input[g]; /* G */ \
+ output[b] = input[b]; /* B */ \
} else if (in >= high_i) { \
output[a] = input[a]; /* A */ \
output[r] = input[r]; /* R */ \