From: Pekka Paalanen <pekka.paalanen@collabora.com>
To: "Nícolas F. R. A. Prado" <nfraprado@collabora.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
Chun-Kuang Hu <chunkuang.hu@kernel.org>,
Philipp Zabel <p.zabel@pengutronix.de>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
linux-mediatek@lists.infradead.org,
linux-arm-kernel@lists.infradead.org, daniels@collabora.com,
ariel.dalessandro@collabora.com, kernel@collabora.com
Subject: Re: [PATCH 07/11] drm/colorop: Introduce HLG EOTF
Date: Fri, 6 Feb 2026 10:51:02 +0200 [thread overview]
Message-ID: <20260206105102.1208fff9@eldfell> (raw)
In-Reply-To: <20251223-mtk-ovl-pre-blend-colorops-v1-7-0cb99bd0ab33@collabora.com>
[-- Attachment #1: Type: text/plain, Size: 2200 bytes --]
On Tue, 23 Dec 2025 16:44:48 -0300
Nícolas F. R. A. Prado <nfraprado@collabora.com> wrote:
> Introduce definition of a hybrid log-gamma electro-optical transfer
> function for 1D Curve colorops.
>
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
> ---
> drivers/gpu/drm/drm_colorop.c | 1 +
> include/drm/drm_colorop.h | 10 ++++++++++
> 2 files changed, 11 insertions(+)
>
> diff --git a/drivers/gpu/drm/drm_colorop.c b/drivers/gpu/drm/drm_colorop.c
> index fafe45b93ff8..a19e03fb9c7c 100644
> --- a/drivers/gpu/drm/drm_colorop.c
> +++ b/drivers/gpu/drm/drm_colorop.c
> @@ -79,6 +79,7 @@ static const char * const colorop_curve_1d_type_names[] = {
> [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",
> + [DRM_COLOROP_1D_CURVE_HLG_EOTF] = "HLG",
> };
>
> static const struct drm_prop_enum_list drm_colorop_lut1d_interpolation_list[] = {
> diff --git a/include/drm/drm_colorop.h b/include/drm/drm_colorop.h
> index ee6454b08b2d..8ec98521607d 100644
> --- a/include/drm/drm_colorop.h
> +++ b/include/drm/drm_colorop.h
> @@ -126,6 +126,16 @@ enum drm_colorop_curve_1d_type {
> * The inverse of &DRM_COLOROP_1D_CURVE_GAMMA22
> */
> DRM_COLOROP_1D_CURVE_GAMMA22_INV,
> +
> + /**
> + * @DRM_COLOROP_1D_CURVE_HLG_EOTF:
> + *
> + * enum string "HLG"
> + *
> + * Hybrid log-gamma transfer function.
> + */
> + DRM_COLOROP_1D_CURVE_HLG_EOTF,
> +
Hi,
if you read ITU-R BT.2100[1], you will see that the HLG EOTF has three
parameters: the system gamma, the display nominal peak luminance, and
the display black luminance. You cannot define a HLG EOTF or its
inverse without these parameters. One might assume to derive the system
gamma from the peak luminance, but I would like to leave that as a free
parameter if possible, because I'm not convinced the formulas for it are
universally applicable.
The HLG OETF on the other hand is a fixed function. Did you mean that
instead?
[1]: https://gitlab.freedesktop.org/pq/color-and-hdr/-/blob/main/doc/specs.md#itu-r-bt2100
Thanks,
pq
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2026-02-06 8:51 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-23 19:44 [PATCH 00/11] Plane Color Pipeline support for MediaTek Nícolas F. R. A. Prado
2025-12-23 19:44 ` [PATCH 01/11] drm/mediatek: Introduce DDP plane_colorops_init() hook Nícolas F. R. A. Prado
2026-02-06 10:07 ` AngeloGioacchino Del Regno
2026-02-06 14:13 ` Nícolas F. R. A. Prado
2025-12-23 19:44 ` [PATCH 02/11] drm/mediatek: Initialize colorops when creating plane Nícolas F. R. A. Prado
2026-02-06 10:07 ` AngeloGioacchino Del Regno
2025-12-23 19:44 ` [PATCH 03/11] drm/mediatek: ovl: Add supports_plane_colorops flag Nícolas F. R. A. Prado
2025-12-24 2:17 ` Macpaul Lin (林智斌)
2025-12-24 2:17 ` Macpaul Lin (林智斌)
2026-02-06 10:07 ` AngeloGioacchino Del Regno
2026-02-06 14:10 ` Nícolas F. R. A. Prado
2025-12-23 19:44 ` [PATCH 04/11] drm/mediatek: ovl: Enable per-plane color operations on MT8195 Nícolas F. R. A. Prado
2025-12-24 2:19 ` Macpaul Lin (林智斌)
2025-12-24 2:19 ` Macpaul Lin (林智斌)
2026-02-06 10:07 ` AngeloGioacchino Del Regno
2026-02-06 14:11 ` Nícolas F. R. A. Prado
2025-12-23 19:44 ` [PATCH 05/11] drm/mediatek: ovl: Implement support for Inverse Gamma Nícolas F. R. A. Prado
2026-02-25 8:54 ` CK Hu (胡俊光)
2026-02-25 8:54 ` CK Hu (胡俊光)
2026-02-25 9:40 ` CK Hu (胡俊光)
2026-02-25 9:40 ` CK Hu (胡俊光)
2025-12-23 19:44 ` [PATCH 06/11] drm/mediatek: Add plane_colorops_init() DDP hook for OVL Nícolas F. R. A. Prado
2025-12-24 2:20 ` Macpaul Lin (林智斌)
2025-12-24 2:20 ` Macpaul Lin (林智斌)
2026-02-25 8:58 ` CK Hu (胡俊光)
2026-02-25 8:58 ` CK Hu (胡俊光)
2025-12-23 19:44 ` [PATCH 07/11] drm/colorop: Introduce HLG EOTF Nícolas F. R. A. Prado
2025-12-24 2:21 ` Macpaul Lin (林智斌)
2025-12-24 2:21 ` Macpaul Lin (林智斌)
2026-02-06 8:51 ` Pekka Paalanen [this message]
2026-02-06 14:02 ` Nícolas F. R. A. Prado
2025-12-23 19:44 ` [PATCH 08/11] drm/mediatek: ovl: Implement support for Gamma Nícolas F. R. A. Prado
2026-03-03 6:53 ` CK Hu (胡俊光)
2026-03-18 13:04 ` Nícolas F. R. A. Prado
2025-12-23 19:44 ` [PATCH 09/11] drm/colorop: Introduce 3x3 Matrix Nícolas F. R. A. Prado
2026-02-06 9:27 ` Pekka Paalanen
2026-02-06 14:05 ` Nícolas F. R. A. Prado
2025-12-23 19:44 ` [PATCH 10/11] drm/mediatek: ovl: Enable support for R2R Color Space Conversion Nícolas F. R. A. Prado
2026-03-03 7:16 ` CK Hu (胡俊光)
2026-03-18 13:18 ` Nícolas F. R. A. Prado
2025-12-23 19:44 ` [PATCH 11/11] drm/mediatek: Check 3x3 Matrix colorop has DATA set Nícolas F. R. A. Prado
2026-03-03 7:21 ` CK Hu (胡俊光)
2025-12-29 18:53 ` [PATCH 00/11] Plane Color Pipeline support for MediaTek Shengyu Qu
2026-01-01 12:37 ` Shengyu Qu
2026-01-02 18:40 ` Harry Wentland
2026-02-06 9:09 ` Pekka Paalanen
2026-02-06 13:28 ` Nícolas F. R. A. Prado
2026-02-26 6:24 ` CK Hu (胡俊光)
2026-02-26 6:24 ` CK Hu (胡俊光)
2026-02-26 10:26 ` AngeloGioacchino Del Regno
2026-02-26 10:51 ` AngeloGioacchino Del Regno
2026-03-18 12:43 ` Nícolas F. R. A. Prado
2026-01-07 20:01 ` Xaver Hugl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260206105102.1208fff9@eldfell \
--to=pekka.paalanen@collabora.com \
--cc=airlied@gmail.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=ariel.dalessandro@collabora.com \
--cc=chunkuang.hu@kernel.org \
--cc=daniels@collabora.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=kernel@collabora.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=matthias.bgg@gmail.com \
--cc=mripard@kernel.org \
--cc=nfraprado@collabora.com \
--cc=p.zabel@pengutronix.de \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.