Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Alex Hung and committed by
Simon Ser
8e304a45 18a4127e

+20
+2
drivers/gpu/drm/drm_colorop.c
··· 77 77 [DRM_COLOROP_1D_CURVE_PQ_125_INV_EOTF] = "PQ 125 Inverse EOTF", 78 78 [DRM_COLOROP_1D_CURVE_BT2020_INV_OETF] = "BT.2020 Inverse OETF", 79 79 [DRM_COLOROP_1D_CURVE_BT2020_OETF] = "BT.2020 OETF", 80 + [DRM_COLOROP_1D_CURVE_GAMMA22] = "Gamma 2.2", 81 + [DRM_COLOROP_1D_CURVE_GAMMA22_INV] = "Gamma 2.2 Inverse", 80 82 }; 81 83 82 84 static const struct drm_prop_enum_list drm_colorop_lut1d_interpolation_list[] = {
+18
include/drm/drm_colorop.h
··· 109 109 DRM_COLOROP_1D_CURVE_BT2020_OETF, 110 110 111 111 /** 112 + * @DRM_COLOROP_1D_CURVE_GAMMA22: 113 + * 114 + * enum string "Gamma 2.2" 115 + * 116 + * A gamma 2.2 power function. This applies a power curve with 117 + * gamma value of 2.2 to the input values. 118 + */ 119 + DRM_COLOROP_1D_CURVE_GAMMA22, 120 + 121 + /** 122 + * @DRM_COLOROP_1D_CURVE_GAMMA22_INV: 123 + * 124 + * enum string "Gamma 2.2 Inverse" 125 + * 126 + * The inverse of &DRM_COLOROP_1D_CURVE_GAMMA22 127 + */ 128 + DRM_COLOROP_1D_CURVE_GAMMA22_INV, 129 + /** 112 130 * @DRM_COLOROP_1D_CURVE_COUNT: 113 131 * 114 132 * enum value denoting the size of the enum