[clutter-gst/clutter-gst-3.0] video-sink: set pixel format to premultiplied for ayuv
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gst/clutter-gst-3.0] video-sink: set pixel format to premultiplied for ayuv
- Date: Fri, 4 Sep 2015 11:50:46 +0000 (UTC)
commit 6ce7f4cc3fc606c831070ed93081b23ab98e286b
Author: Lionel Landwerlin <lionel g landwerlin intel com>
Date: Fri Sep 4 11:53:55 2015 +0100
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 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))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]