Skip to content

Commit 8e304a4

Browse files
Alex Hungemersion
authored andcommitted
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
1 parent 18a4127 commit 8e304a4

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

drivers/gpu/drm/drm_colorop.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ static const char * const colorop_curve_1d_type_names[] = {
7777
[DRM_COLOROP_1D_CURVE_PQ_125_INV_EOTF] = "PQ 125 Inverse EOTF",
7878
[DRM_COLOROP_1D_CURVE_BT2020_INV_OETF] = "BT.2020 Inverse OETF",
7979
[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",
8082
};
8183

8284
static const struct drm_prop_enum_list drm_colorop_lut1d_interpolation_list[] = {

include/drm/drm_colorop.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,24 @@ enum drm_colorop_curve_1d_type {
108108
*/
109109
DRM_COLOROP_1D_CURVE_BT2020_OETF,
110110

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,
111129
/**
112130
* @DRM_COLOROP_1D_CURVE_COUNT:
113131
*

0 commit comments

Comments
 (0)