diff options
author | Samuel Degrande <Samuel.Degrande@lifl.fr> | 2010-11-30 11:38:11 +0100 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2010-11-30 11:17:23 +0000 |
commit | 063e9574f6ef4cac7592f8ed1fd1fc92dbc545c9 (patch) | |
tree | bf5a988b6d478ca0c0a3da38a3eec0f4e4bf23b6 | |
parent | b4d860cfea6755dd258971712eeceb14ff7b8bb6 (diff) |
ayuv_to_rgba_shader does not compile
The value of the u-channel was missing.
-rw-r--r-- | clutter-gst/clutter-gst-video-sink.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clutter-gst/clutter-gst-video-sink.c b/clutter-gst/clutter-gst-video-sink.c index 151f168..17050ea 100644 --- a/clutter-gst/clutter-gst-video-sink.c +++ b/clutter-gst/clutter-gst-video-sink.c @@ -75,6 +75,7 @@ static gchar *ayuv_to_rgba_shader = \ "void main () {" " vec4 color = texture2D (tex, vec2(" TEX_COORD "));" " float y = 1.1640625 * (color.g - 0.0625);" + " float u = color.b - 0.5;" " float v = color.a - 0.5;" " color.a = color.r;" " color.r = y + 1.59765625 * v;" |