From 6ce7f4cc3fc606c831070ed93081b23ab98e286b Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Fri, 4 Sep 2015 11:53:55 +0100 Subject: 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 --- clutter-gst/clutter-gst-video-sink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- cgit v1.2.1