Anton Baskanov : winegstreamer: Use RGB15/16 formats instead of BGR15/16.
Alexandre Julliard
julliard at winehq.org
Wed Oct 7 16:04:09 CDT 2020
Module: wine
Branch: master
Commit: e47b45e2f55ea33790aa60fdf207cafa53c9adb0
URL: https://source.winehq.org/git/wine.git/?a=commit;h=e47b45e2f55ea33790aa60fdf207cafa53c9adb0
Author: Anton Baskanov <baskanov at gmail.com>
Date: Wed Oct 7 01:04:56 2020 +0700
winegstreamer: Use RGB15/16 formats instead of BGR15/16.
Gstreamer stores the first component in the most significant bits, same as DirectShow.
Signed-off-by: Anton Baskanov <baskanov at gmail.com>
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winegstreamer/gstdemux.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index acb15dc923..5b5add409c 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -194,11 +194,11 @@ static gboolean amt_from_gst_video_info(const GstVideoInfo *info, AM_MEDIA_TYPE
amt->subtype = MEDIASUBTYPE_RGB24;
bih->biBitCount = 24;
break;
- case GST_VIDEO_FORMAT_BGR16:
+ case GST_VIDEO_FORMAT_RGB16:
amt->subtype = MEDIASUBTYPE_RGB565;
bih->biBitCount = 16;
break;
- case GST_VIDEO_FORMAT_BGR15:
+ case GST_VIDEO_FORMAT_RGB15:
amt->subtype = MEDIASUBTYPE_RGB555;
bih->biBitCount = 16;
break;
@@ -380,8 +380,8 @@ static GstCaps *amt_to_gst_caps_video(const AM_MEDIA_TYPE *mt)
{&MEDIASUBTYPE_ARGB32, GST_VIDEO_FORMAT_BGRA},
{&MEDIASUBTYPE_RGB32, GST_VIDEO_FORMAT_BGRx},
{&MEDIASUBTYPE_RGB24, GST_VIDEO_FORMAT_BGR},
- {&MEDIASUBTYPE_RGB565, GST_VIDEO_FORMAT_BGR16},
- {&MEDIASUBTYPE_RGB555, GST_VIDEO_FORMAT_BGR15},
+ {&MEDIASUBTYPE_RGB565, GST_VIDEO_FORMAT_RGB16},
+ {&MEDIASUBTYPE_RGB555, GST_VIDEO_FORMAT_RGB15},
};
const VIDEOINFOHEADER *vih = (VIDEOINFOHEADER *)mt->pbFormat;
More information about the wine-cvs
mailing list