[RFC PATCH v5 06/32] drm-uapi: Add 3x4 CTM
Harry Wentland
harry.wentland at amd.com
Mon Feb 26 21:13:50 UTC 2024
Signed-off-by: Harry Wentland <harry.wentland at amd.com>
---
include/drm-uapi/drm_mode.h | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/include/drm-uapi/drm_mode.h b/include/drm-uapi/drm_mode.h
index c49526bca034..358c5c313bd8 100644
--- a/include/drm-uapi/drm_mode.h
+++ b/include/drm-uapi/drm_mode.h
@@ -847,6 +847,22 @@ struct drm_color_ctm {
__u64 matrix[9];
};
+struct drm_color_ctm_3x4 {
+ /*
+ * Conversion matrix with 3x4 dimensions in S31.32 sign-magnitude
+ * (not two's complement!) format.
+ *
+ * TODO what's the format?
+ *
+ * out matrix in
+ * |R| |0 1 2 3 | | R |
+ * |G| = |4 5 6 7 | x | G |
+ * |B| |8 9 10 12| | B |
+ * |1.0|
+ */
+ __u64 matrix[12];
+};
+
struct drm_color_lut {
/*
* Values are mapped linearly to 0.0 - 1.0 range, with 0x0 == 0.0 and
@@ -859,7 +875,8 @@ struct drm_color_lut {
};
enum drm_colorop_type {
- DRM_COLOROP_1D_CURVE
+ DRM_COLOROP_1D_CURVE,
+ DRM_COLOROP_CTM_3X4,
};
/**
--
2.44.0
More information about the igt-dev
mailing list