This repository has been archived by the owner on Mar 30, 2022. It is now read-only.
WIP: Read 10-bit buffers and save 16-bit screenshots #97
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This makes it possible to take screenshots when the compositor has >10 bit output. See also issue #95.
Marked WIP, since it requires Cairo >= 1.17.2 to build, and a bug fix in cairo to run correctly that will probably only be available when Cairo 1.18.0 is released in a few months. Also, 1.17.2 is a development snapshot, and many distributions are still on the most recent official release, 1.16.0.
To test, modify wlroots to select 10-bit formats for one of the backends; for example, see swaywm/wlroots@2eb44bb .