mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-13 23:22:54 +00:00
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:
parent
b09ca8635f
commit
18f2f83b4a
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue