Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54360baf authored by Abhinav Kumar's avatar Abhinav Kumar
Browse files

uapi/drm: add colorspace definitions for external displays



Add colorspace definitions for external displays. These are retrieved
by parsing colorimetry data block from the EDID.

Change-Id: I2be4739c48a7ef1ffb9ed60a30cbbbaf56a1e7ba
Signed-off-by: default avatarAbhinav Kumar <abhinavk@codeaurora.org>
parent a2965321
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -68,6 +68,21 @@ struct drm_msm_timespec {
	__s64 tv_nsec;         /* nanoseconds */
};

/*
 * Colorimetry Data Block values
 * These bit nums are defined as per the CTA spec
 * and indicate the colorspaces supported by the sink
 */
#define DRM_EDID_CLRMETRY_xvYCC_601   (1 << 0)
#define DRM_EDID_CLRMETRY_xvYCC_709   (1 << 1)
#define DRM_EDID_CLRMETRY_sYCC_601    (1 << 2)
#define DRM_EDID_CLRMETRY_ADOBE_YCC_601  (1 << 3)
#define DRM_EDID_CLRMETRY_ADOBE_RGB     (1 << 4)
#define DRM_EDID_CLRMETRY_BT2020_CYCC (1 << 5)
#define DRM_EDID_CLRMETRY_BT2020_YCC  (1 << 6)
#define DRM_EDID_CLRMETRY_BT2020_RGB  (1 << 7)
#define DRM_EDID_CLRMETRY_DCI_P3      (1 << 15)

/*
 * HDR Metadata
 * These are defined as per EDID spec and shall be used by the sink