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

Enable color management #18

Open
klogg opened this issue May 5, 2020 · 2 comments
Open

Enable color management #18

klogg opened this issue May 5, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@klogg
Copy link
Owner

klogg commented May 5, 2020

Using IT66121 capabilities we can enable color conversion and gamma corrections. Something like this needed for start, then LUTs configuration etc.

   /* TODO: Setup color management and probably LUTs */
    drm_crtc_enable_color_mgmt(&drm_if->pipe.crtc, 0, false, 0);

   /* xxx->sRGB translation */
   drm_plane_create_color_properties(&drm_if->pipe.plane,
                   BIT(DRM_COLOR_YCBCR_BT601),
                   BIT(DRM_COLOR_YCBCR_LIMITED_RANGE),
                   DRM_COLOR_YCBCR_BT601,
                   DRM_COLOR_YCBCR_LIMITED_RANGE);
@klogg klogg added the enhancement New feature or request label May 5, 2020
@klogg klogg self-assigned this May 5, 2020
@klogg
Copy link
Owner Author

klogg commented May 27, 2020

There is also palette configuration available [probably] for gamma corrections. Some kind of SRAM onboard?

@klogg
Copy link
Owner Author

klogg commented Jun 6, 2020

Palette configuration is not for gamma corrections. Checked by @steve-m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
1 participant