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

Reimplement gamma functions #35

Merged
merged 1 commit into from
May 16, 2019
Merged

Conversation

Drakulix
Copy link
Member

@Drakulix Drakulix commented May 7, 2019

Another quick reimplementation.

In #25 you mention, that you do not want to do any memory allocations in drm-rs anymore, which is why I removed the previously existing GammaRamp struct (containing Box<[u16]> color ramps) and used slices instead.

This gives us a c-style-output-argument function signature for get_gamma, but I was unable to come up with a better solution, since the gamma_length can vary between devices (and theoretically CRTCs of the same device).

@Drakulix
Copy link
Member Author

Rebased onto latest develop

@Slabity Slabity merged commit 664678f into Smithay:develop May 16, 2019
@Drakulix Drakulix deleted the feature/gamma branch May 17, 2019 08:30
@Drakulix Drakulix mentioned this pull request May 17, 2019
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.

2 participants