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
pull/1354/merge
Alex Hung 2025-11-14 17:02:15 -07:00 committed by Simon Ser
parent 18a4127e93
commit 8e304a4511
2 changed files with 20 additions and 0 deletions

View File

@ -77,6 +77,8 @@ static const char * const colorop_curve_1d_type_names[] = {
[DRM_COLOROP_1D_CURVE_PQ_125_INV_EOTF] = "PQ 125 Inverse EOTF",
[DRM_COLOROP_1D_CURVE_BT2020_INV_OETF] = "BT.2020 Inverse OETF",
[DRM_COLOROP_1D_CURVE_BT2020_OETF] = "BT.2020 OETF",
[DRM_COLOROP_1D_CURVE_GAMMA22] = "Gamma 2.2",
[DRM_COLOROP_1D_CURVE_GAMMA22_INV] = "Gamma 2.2 Inverse",
};
static const struct drm_prop_enum_list drm_colorop_lut1d_interpolation_list[] = {

View File

@ -108,6 +108,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:
*