Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Support high bit depth screenshot colors #95

Open
mstoeckl opened this issue Aug 5, 2021 · 2 comments
Open

Support high bit depth screenshot colors #95

mstoeckl opened this issue Aug 5, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@mstoeckl
Copy link
Collaborator

mstoeckl commented Aug 5, 2021

Compositors will eventually be able to render in and output 10-bit deep colors. It would be nice if grim could process screen buffer formats like XBGR2101010 (or even XBGR16161616F) and save them as 16-bit PNG images..

Fortunately, Cairo already supports (can draw in and save) CAIRO_FORMAT_RGB30; since 1.17.2, it even has a CAIRO_FORMAT_RGBA128F format.

@emersion emersion added the enhancement New feature or request label Aug 5, 2021
@emersion
Copy link
Owner

emersion commented Aug 5, 2021

Yes. We should probably extend the screencopy protocol to include color management info as well at some point, but that's a separate issue.

@mstoeckl
Copy link
Collaborator Author

mstoeckl commented Jan 15, 2022

Update: grim now uses Pixman instead of Cairo to composite output buffers. The cleanest way for formats like XBGR16161616 and XBGR16161616F to be supported is if Pixman adds support for corresponding buffer formats. There are currently open MRs for the equivalents of ABGR16161616 and ABGR16161616F.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants