Skip to content

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

Open
quantum5 wants to merge 1 commit into
mortie:masterfrom
quantum5:10-bit-capture
Open

Support 10-bit screenshots by downsampling to 8-bit#81
quantum5 wants to merge 1 commit into
mortie:masterfrom
quantum5:10-bit-capture

Conversation

@quantum5

@quantum5 quantum5 commented Dec 4, 2021

Copy link
Copy Markdown

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