[PATCH 1/5] winegstreamer: Use RGB15/16 formats instead of BGR15/16.
Anton Baskanov
baskanov at gmail.com
Tue Oct 6 13:04:56 CDT 2020
Gstreamer stores the first component in the most significant bits, same as DirectShow.
Signed-off-by: Anton Baskanov <baskanov at gmail.com>
---
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 acb15dc9238..5b5add409c7 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;
--
2.17.1
More information about the wine-devel
mailing list