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

Configure Feed

Select the types of activity you want to include in your feed.

drm/colorop: add BT2020/BT709 OETF and Inverse OETF

The BT.709 and BT.2020 OETFs are the same, the only difference
being that the BT.2020 variant is defined with more precision
for 10 and 12-bit per color encodings.

Both are used as encoding functions for video content, and are
therefore defined as OETF (opto-electronic transfer function)
instead of as EOTF (electro-optical transfer function).

Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Sebastian Wick <sebastian.wick@redhat.com>
Signed-off-by: Simon Ser <contact@emersion.fr>
Link: https://patch.msgid.link/20251115000237.3561250-34-alex.hung@amd.com

authored by

Harry Wentland and committed by
Simon Ser
a355b3d6 ef3d703f

+25
+2
drivers/gpu/drm/drm_colorop.c
··· 72 72 [DRM_COLOROP_1D_CURVE_SRGB_INV_EOTF] = "sRGB Inverse EOTF", 73 73 [DRM_COLOROP_1D_CURVE_PQ_125_EOTF] = "PQ 125 EOTF", 74 74 [DRM_COLOROP_1D_CURVE_PQ_125_INV_EOTF] = "PQ 125 Inverse EOTF", 75 + [DRM_COLOROP_1D_CURVE_BT2020_INV_OETF] = "BT.2020 Inverse OETF", 76 + [DRM_COLOROP_1D_CURVE_BT2020_OETF] = "BT.2020 OETF", 75 77 }; 76 78 77 79 /* Init Helpers */
+23
include/drm/drm_colorop.h
··· 83 83 DRM_COLOROP_1D_CURVE_PQ_125_INV_EOTF, 84 84 85 85 /** 86 + * @DRM_COLOROP_1D_CURVE_BT2020_INV_OETF: 87 + * 88 + * enum string "BT.2020 Inverse OETF" 89 + * 90 + * The inverse of &DRM_COLOROP_1D_CURVE_BT2020_OETF 91 + */ 92 + DRM_COLOROP_1D_CURVE_BT2020_INV_OETF, 93 + 94 + /** 95 + * @DRM_COLOROP_1D_CURVE_BT2020_OETF: 96 + * 97 + * enum string "BT.2020 OETF" 98 + * 99 + * The BT.2020/BT.709 transfer function. The BT.709 and BT.2020 100 + * transfer functions are the same, the only difference is that 101 + * BT.2020 is defined with more precision for 10 and 12-bit 102 + * encodings. 103 + * 104 + * 105 + */ 106 + DRM_COLOROP_1D_CURVE_BT2020_OETF, 107 + 108 + /** 86 109 * @DRM_COLOROP_1D_CURVE_COUNT: 87 110 * 88 111 * enum value denoting the size of the enum