gst-plugins-rs/video
Sebastian Dröge 9dcb68edc8 gtk4: Improve handling of RGBA GL textures in GTK
GTK 4.14 comes with a new GL renderer that does not support GL shader
nodes anymore, so the conversion from non-premultiplied alpha to
premultiplied alpha has to happen differently.

For GTK 4.14 or newer we use the correct format directly when building the
texture, but only if a GLES3+ context is used. In that case the NGL renderer is
used by GTK, which supports non-premultiplied formats correctly and fast.

For GTK 4.10-4.12, or 4.14 and newer if a GLES2 context is used, we use a
self-mask to pre-multiply the alpha.

For GTK before 4.10, we use a GL shader and hope that it works.

Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/488

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1457>
2024-02-12 17:51:27 +02:00
..
cdg Update versions to 0.11.3 2023-12-18 12:13:48 +02:00
closedcaption Update versions to 0.11.3 2023-12-18 12:13:48 +02:00
dav1d Update versions to 0.11.3 2023-12-18 12:13:48 +02:00
ffv1 Update versions to 0.11.3 2023-12-18 12:13:48 +02:00
gif gif: Update to gif 0.13 2024-02-12 17:48:42 +02:00
gtk4 gtk4: Improve handling of RGBA GL textures in GTK 2024-02-12 17:51:27 +02:00
hsv Update versions to 0.11.3 2023-12-18 12:13:48 +02:00
png Update versions to 0.11.3 2023-12-18 12:13:48 +02:00
rav1e rav1e: Update to rav1e 0.7 2024-02-12 17:44:16 +02:00
videofx Update versions to 0.11.3 2023-12-18 12:13:48 +02:00
webp Update versions to 0.11.3 2023-12-18 12:13:48 +02:00