Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUD_PIXEL_FORMAT_ARGB8888 should be deprecated, doesn't work #23

Open
notro opened this issue Dec 11, 2023 · 4 comments
Open

GUD_PIXEL_FORMAT_ARGB8888 should be deprecated, doesn't work #23

notro opened this issue Dec 11, 2023 · 4 comments

Comments

@notro
Copy link
Owner

notro commented Dec 11, 2023

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.

@oniongarlic
Copy link

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 ?

@notro
Copy link
Owner Author

notro commented Apr 22, 2024

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.

@oniongarlic
Copy link

So framebuffers don't support RGBA ?

@notro
Copy link
Owner Author

notro commented Apr 23, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants