diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2023-04-12 01:29:26 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2023-04-28 14:21:09 +0300 |
commit | 99e7e3b60080d913ff2f94943f4af1f1b76a1c06 (patch) | |
tree | 6dc097aeb756d8e009311729f3705b8e40bb2139 /include/uapi/drm | |
parent | 4b733b2c38b7c9304bbb92cf88f1b23f43ca575d (diff) | |
download | linux-99e7e3b60080d913ff2f94943f4af1f1b76a1c06.tar.gz linux-99e7e3b60080d913ff2f94943f4af1f1b76a1c06.tar.bz2 linux-99e7e3b60080d913ff2f94943f4af1f1b76a1c06.zip |
drm/uapi: Document CTM matrix better
Document in which order the CTM matrix elements are stored.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230411222931.15127-2-ville.syrjala@linux.intel.com
Reviewed-by: Xaver Hugl <xaver.hugl@gmail.com>
Acked-by: Simon Ser <contact@emersion.fr>
Diffstat (limited to 'include/uapi/drm')
-rw-r--r-- | include/uapi/drm/drm_mode.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uapi/drm/drm_mode.h b/include/uapi/drm/drm_mode.h index 46becedf5b2f..43691058d28f 100644 --- a/include/uapi/drm/drm_mode.h +++ b/include/uapi/drm/drm_mode.h @@ -834,6 +834,11 @@ struct drm_color_ctm { /* * Conversion matrix in S31.32 sign-magnitude * (not two's complement!) format. + * + * out matrix in + * |R| |0 1 2| |R| + * |G| = |3 4 5| x |G| + * |B| |6 7 8| |B| */ __u64 matrix[9]; }; |