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

Support 10-bit screenshots by downsampling to 8-bit #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

quantum5
Copy link

@quantum5 quantum5 commented Dec 4, 2021

This commit introduces support for all eight 10-bit colour formats supported by wl_shm.

le32toh is used to convert little endian pixels to host endianness. This function is available on Linux in <endian.h> and FreeBSD in <sys/endian.h>.

For readability, the if/else chain is converted into a switch.

This fixes #80.

This commit introduces support for all eight 10-bit colour formats
supported by wl_shm.

le32toh is used to convert little endian pixels to host endianness.
This function is available on Linux in <endian.h> and FreeBSD in
<sys/endian.h>.

For readability, the if/else chain is converted into a switch.
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

Successfully merging this pull request may close these issues.

10-bit colour handling
1 participant