diff options
author | Lionel Landwerlin <lionel.g.landwerlin@intel.com> | 2015-09-04 11:53:55 +0100 |
---|---|---|
committer | Lionel Landwerlin <lionel.g.landwerlin@intel.com> | 2015-09-04 11:54:07 +0100 |
commit | 6ce7f4cc3fc606c831070ed93081b23ab98e286b (patch) | |
tree | c74d51be151a19409292cad8bdedf2324d89985b | |
parent | 1438afd804ffb969b7e119b1f9644580cfa8d726 (diff) | |
download | clutter-gst-6ce7f4cc3fc606c831070ed93081b23ab98e286b.tar.gz |
video-sink: set pixel format to premultiplied for ayuv
We do premultiply in the fragment shader for the ayuv pixel format, so
set the cogl pixel format to premultiplied so Cogl/Mesa don't do any
work on the data.
https://bugzilla.gnome.org/show_bug.cgi?id=754557
-rw-r--r-- | clutter-gst/clutter-gst-video-sink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clutter-gst/clutter-gst-video-sink.c b/clutter-gst/clutter-gst-video-sink.c index 6c2b65a..8f0bedb 100644 --- a/clutter-gst/clutter-gst-video-sink.c +++ b/clutter-gst/clutter-gst-video-sink.c @@ -1566,7 +1566,7 @@ clutter_gst_ayuv_upload (ClutterGstVideoSink *sink, GstBuffer *buffer) { ClutterGstVideoSinkPrivate *priv = sink->priv; - CoglPixelFormat format = COGL_PIXEL_FORMAT_RGBA_8888; + CoglPixelFormat format = COGL_PIXEL_FORMAT_RGBA_8888_PRE; GstVideoFrame frame; if (!gst_video_frame_map (&frame, &priv->info, buffer, GST_MAP_READ)) |