summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlex Hung <alex.hung@amd.com>2025-11-14 17:02:15 -0700
committerSimon Ser <contact@emersion.fr>2025-11-26 23:09:44 +0100
commit8e304a45116a567a33cfbd9f104356622c6aefbc (patch)
tree78b5574f6491d0b7652e6cf87b9f8579bf5ae1a9 /include
parent18a4127e9315645d30c6b93a820efa0cba299c20 (diff)
drm/colorop: Add DRM_COLOROP_1D_CURVE_GAMMA22 to 1D Curve
Add "DRM_COLOROP_1D_CURVE_GAMMA22" and DRM_COLOROP_1D_CURVE_GAMMA22_INV subtypes to drm_colorop of DRM_COLOROP_1D_CURVE. Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Hung <alex.hung@amd.com> Signed-off-by: Simon Ser <contact@emersion.fr> Link: https://patch.msgid.link/20251115000237.3561250-51-alex.hung@amd.com
Diffstat (limited to 'include')
-rw-r--r--include/drm/drm_colorop.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/drm/drm_colorop.h b/include/drm/drm_colorop.h
index 9773e30e15ae..a3a32f9f918c 100644
--- a/include/drm/drm_colorop.h
+++ b/include/drm/drm_colorop.h
@@ -109,6 +109,24 @@ enum drm_colorop_curve_1d_type {
DRM_COLOROP_1D_CURVE_BT2020_OETF,
/**
+ * @DRM_COLOROP_1D_CURVE_GAMMA22:
+ *
+ * enum string "Gamma 2.2"
+ *
+ * A gamma 2.2 power function. This applies a power curve with
+ * gamma value of 2.2 to the input values.
+ */
+ DRM_COLOROP_1D_CURVE_GAMMA22,
+
+ /**
+ * @DRM_COLOROP_1D_CURVE_GAMMA22_INV:
+ *
+ * enum string "Gamma 2.2 Inverse"
+ *
+ * The inverse of &DRM_COLOROP_1D_CURVE_GAMMA22
+ */
+ DRM_COLOROP_1D_CURVE_GAMMA22_INV,
+ /**
* @DRM_COLOROP_1D_CURVE_COUNT:
*
* enum value denoting the size of the enum