25 Sep
2023
25 Sep
'23
10:44 a.m.
Anton Baskanov (@baskanov) commented about dlls/winegstreamer/quartz_transform.c:
+ MAKEFOURCC('U','Y','V','Y'), + BI_RGB, BI_RGB, BI_BITFIELDS, BI_RGB, + }; + + MPEG1VIDEOINFO *input_format; + VIDEOINFOHEADER *output_format; + + if (!filter->sink.pin.peer) + return VFW_S_NO_MORE_ITEMS; + + if (index >= 7) + return VFW_S_NO_MORE_ITEMS; + + input_format = (MPEG1VIDEOINFO*)filter->sink.pin.mt.pbFormat; + + output_format = CoTaskMemAlloc(sizeof(*output_format)); You have to put color masks immediately after the BITMAPINFOHEADER for RGB565. See e.g. amt_from_wg_format_video() in quartz_parser.c
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/3938#note_46607