-
Notifications
You must be signed in to change notification settings - Fork 224
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
How to set correct colorspace (RGB/BGR/etc.)? #14
Comments
Use |
The issue is that I don't always know the correct encoding/colorspace beforehand, the idea is to find it out using any other drm api if it exists |
I think the idea is that you specify which one to use and the hardware adapts, not the other way around. However, there is likely a way to query the crtc/encoders for the supported four-cc codes, but I am currently not sure about it. I recommend checking what the existing compositors do and how they decide what to use as argument to |
Thanks! I'll close the issue so it doesn't keep around, and will research the reason of this not working as I think it should. |
I'm using the drmModeAddFB() call which requests to add the framebuffer using RGB as the default pixel format, which for some displays seem to be wrong (red and blue are inverted because of the display using BGR colorspace).
Can the correct display colorspace be detected in some way?
IIRC the encoder should take care of adapting the pixel data properly, but for some reason that doesn't happen here...
The text was updated successfully, but these errors were encountered: