[clutter-gst/clutter-gst-3.0] video-sink: fix RGBx/BGRx mapping
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gst/clutter-gst-3.0] video-sink: fix RGBx/BGRx mapping
- Date: Wed, 29 Mar 2017 21:25:06 +0000 (UTC)
commit 59780296b1b8c1ccd2bdc945e0c398daea715ae1
Author: Lionel Landwerlin <lionel g landwerlin intel com>
Date: Wed Mar 29 22:23:19 2017 +0100
video-sink: fix RGBx/BGRx mapping
These should be treated as 24bpp formats.
https://bugzilla.gnome.org/show_bug.cgi?id=780195
clutter-gst/clutter-gst-video-sink.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/clutter-gst/clutter-gst-video-sink.c b/clutter-gst/clutter-gst-video-sink.c
index a572489..f325a09 100644
--- a/clutter-gst/clutter-gst-video-sink.c
+++ b/clutter-gst/clutter-gst-video-sink.c
@@ -1902,20 +1902,20 @@ clutter_gst_video_sink_parse_caps (GstCaps *caps,
format = CLUTTER_GST_NV12;
break;
case GST_VIDEO_FORMAT_RGB:
+ case GST_VIDEO_FORMAT_RGBx:
format = CLUTTER_GST_RGB24;
bgr = FALSE;
break;
case GST_VIDEO_FORMAT_BGR:
+ case GST_VIDEO_FORMAT_BGRx:
format = CLUTTER_GST_RGB24;
bgr = TRUE;
break;
case GST_VIDEO_FORMAT_RGBA:
- case GST_VIDEO_FORMAT_RGBx:
format = CLUTTER_GST_RGB32;
bgr = FALSE;
break;
case GST_VIDEO_FORMAT_BGRA:
- case GST_VIDEO_FORMAT_BGRx:
format = CLUTTER_GST_RGB32;
bgr = TRUE;
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]