[PATCH] winegstreamer: Fix YUV->RGB conversion by copying colorimetry information.

Zebediah Figura (she/her) zfigura at codeweavers.com
Mon Nov 16 10:36:16 CST 2020


On 11/16/20 8:03 AM, Akihiro Sagawa wrote:
> On Sun, 15 Nov 2020 19:52:31 -0600, Zebediah Figura (she/her) wrote:
>> Something like this is probably fine if we can't get a better solution
>> upstream, but it would really be nice to be able to have videoconvert
>> propagate colorimetry information—either as the default when converting
>> YUV <-> YUV or RGB <-> RGB, or as a configurable option. We'd want to
>> look at gst_video_convert_fixate_caps(), I believe.
> 
> Regarding videoconvert element, I found gst-base-plugin issue #614[1]
> and its merge request !263[2]. I'll try the patch set in the merge
> request. It might also solve the our issue though they aren't updated
> for several months.

That does look like it's trying to achieve about the same thing, yeah.
That said, I'm not a GStreamer reviewer, but I'd think the code path
should look more similar to gst_video_convert_fixate_format() above
(maybe even using the same function for both format and colorimetry?) Of
course any attempt to upstream that or a similar patch should be
accompanied by an explanation of why we want it for wine.

> What do you think about implementing our own videoconvert element based
> on the above patch?

It's another option. Arguably it's architecturally a little nicer than
"yuvfixup", but at the same time it may mean copying a lot more code.

> [1] https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues/614
> [2] https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/263
> 
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20201116/5efc5e16/attachment-0001.sig>


More information about the wine-devel mailing list