fl2000_drm icon indicating copy to clipboard operation
fl2000_drm copied to clipboard

Enable color management

Open klogg opened this issue 4 years ago • 2 comments

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 avatar May 05 '20 21:05 klogg

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

klogg avatar May 27 '20 15:05 klogg

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

klogg avatar Jun 06 '20 10:06 klogg