gud icon indicating copy to clipboard operation
gud copied to clipboard

GUD_PIXEL_FORMAT_ARGB8888 should be deprecated, doesn't work

Open notro opened this issue 2 years ago • 4 comments

GUD_PIXEL_FORMAT_ARGB8888 should never have been added (have no idea what I was thinking). GUD only supports one plane and there's no "background" color so it doesn't make any sense to have an alpha color. On top of that it doesn't work for some reason.

Remove it from gud_from_fourcc() and gud_to_fourcc() and add a comment in include/drm/gud.h.

notro avatar Dec 11 '23 11:12 notro

Was wondering about alpha support, don't know if it is possible, but I would have a use case for splitting the output on dual display devices (Pi4/5) so one output would be key (rgb) and the other mask (alpha). Would something like that even be possible ?

oniongarlic avatar Apr 16 '24 09:04 oniongarlic

Was wondering about alpha support, don't know if it is possible, but I would have a use case for splitting the output on dual display devices (Pi4/5) so one output would be key (rgb) and the other mask (alpha). Would something like that even be possible ?

You would have to write a custom gadget. But how would you use the mask? GUD only supports one plane and there's no way to set a background color.

notro avatar Apr 22 '24 16:04 notro

So framebuffers don't support RGBA ?

oniongarlic avatar Apr 23 '24 09:04 oniongarlic

They can do that if there is support for multiple planes, or if it's possible to set a background color. Something has to be visible through that transparent pixel.

notro avatar Apr 23 '24 15:04 notro