base: lookup RGB format without alpha

librfb requests a colour space for depth 32 and bpp 32 with alpha set to
0x0, treat this the same as depth 24 with bpp 32.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2627>
This commit is contained in:
Marc Leeman 2022-06-14 12:22:22 +02:00 committed by GStreamer Marge Bot
parent b09ca8635f
commit 18f2f83b4a

View file

@ -7454,6 +7454,9 @@ gst_video_format_from_masks (gint depth, gint bpp, gint endianness,
} else if (depth == 24 && bpp == 32) {
format = gst_video_format_from_rgb32_masks (red_mask, green_mask,
blue_mask);
} else if (depth == 32 && bpp == 32 && !alpha_mask) {
format = gst_video_format_from_rgb32_masks (red_mask, green_mask,
blue_mask);
} else if (depth == 32 && bpp == 32 && alpha_mask) {
format = gst_video_format_from_rgba32_masks (red_mask, green_mask,
blue_mask, alpha_mask);