From: "Niklas Söderlund" <niklas.soderlund+renesas@ragnatech.se>
To: Sakari Ailus <sakari.ailus@iki.fi>
Cc: Jacopo Mondi <jacopo.mondi@ideasonboard.com>,
Jai Luthra <jai.luthra+renesas@ideasonboard.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
linux-kernel@vger.kernel.org,
Jacopo Mondi <jacopo.mondi+renesas@ideasonboard.com>
Subject: Re: [PATCH v10 12/13] media: rppx1: ga: Add support for gamma out correction
Date: Thu, 30 Jul 2026 19:08:21 +0200 [thread overview]
Message-ID: <20260730170821.GA2921345@ragnatech.se> (raw)
In-Reply-To: <amjM5n2eYqnrpJfb@valkosipuli.retiisi.eu>
Hej Sakari,
On 2026-07-28 18:38:14 +0300, Sakari Ailus wrote:
> Hejssan,
>
> On Thu, Jun 11, 2026 at 10:41:47PM +0200, Niklas Söderlund wrote:
> > +/**
> > + * struct rppx1_ga_params - Gamma Out Correction configuration
> > + *
> > + * The Gamma Out Correction module is available on the Human Vision Output
> > + * Pipe (HV) and the Machine Vision Output Pipe (MV). Userspace selects
> > + * which pipe to operate by setting the @header.type field to
> > + * RPPX1_PARAMS_BLOCK_TYPE_GA_HV or RPPX1_PARAMS_BLOCK_TYPE_GA_MV.
> > + *
> > + * The module allows to apply a @gamma_y gamma correction curve to RGB data
> > + * represented as a table of 16 entries. The 16 input sampling points can be
> > + * equidistant or segmented using a logarithmic scale according to the value of
> > + * @mode.
> > + *
> > + * The gamma curve values are 12 bits on the HV output pipe and 24 bits on the
> > + * MV output pipe. Userspace is expected to provide the curve values with a
> > + * bit-depth matching the one of pipe in use.
> > + *
> > + * @header: block header (type = RPPX1_PARAMS_BLOCK_TYPE_GA_HV or
> > + * type = RPPX1_PARAMS_BLOCK_TYPE_GA_MV)
> > + * @mode: gamma curve input segmentation mode (see rppx1_ga_seg_mode)
> > + * @gamma_y: gamma out curve y-axis values
> > + */
> > +struct rppx1_ga_params {
> > + struct v4l2_isp_params_block_header header;
> > + __u8 mode;
>
> Please use reserved fields to avoid holes in structs!
Tack.
Jacopo have had a look at this and addressed it. I will soon send out a
new versions witch takes his work into account.
>
> > + __u32 gamma_y[RPPX1_GA_MAX_SAMPLES];
> > +};
> > +
> > /**
> > * RPPX1_PARAMS_MAX_SIZE - Maximum size of all RPP-X1 parameter blocks
> > *
> > @@ -516,7 +565,9 @@ struct rppx1_lsc_params {
> > sizeof(struct rppx1_bls_params) + \
> > sizeof(struct rppx1_ccor_params) + \
> > sizeof(struct rppx1_lsc_params) + \
> > - sizeof(struct rppx1_lsc_params))
> > + sizeof(struct rppx1_lsc_params) + \
> > + sizeof(struct rppx1_ga_params) + \
> > + sizeof(struct rppx1_ga_params))
> >
> > /* ---------------------------------------------------------------------------
> > * Statistics Structures
>
> --
> Regards,
>
> Sakari Ailus
--
Kind Regards,
Niklas Söderlund
next prev parent reply other threads:[~2026-07-30 17:08 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-11 20:41 [PATCH v10 00/13] media: Add support for R-Car ISP using Dreamchip RPPX1 ISP Niklas Söderlund
2026-06-11 20:41 ` [PATCH v10 01/13] media: Add RPP_X1_PARAMS and RPP_X1_STATS meta formats Niklas Söderlund
2026-06-11 20:41 ` [PATCH v10 02/13] media: uapi: Add extensible param and stats blocks for RPPX1 Niklas Söderlund
2026-06-11 20:41 ` [PATCH v10 03/13] media: rppx1: Add framework to support Dreamchip RPPX1 ISP Niklas Söderlund
2026-06-11 20:41 ` [PATCH v10 04/13] media: rcar-isp: Add support for ISPCORE Niklas Söderlund
2026-06-11 20:41 ` [PATCH v10 05/13] media: rppx1: wbmeas: Add support for white balance measurement Niklas Söderlund
2026-06-11 20:41 ` [PATCH v10 06/13] media: rppx1: awbg: Add support for white balance gain settings Niklas Söderlund
2026-06-11 20:41 ` [PATCH v10 07/13] media: rppx1: exm: Add support for exposure measurement Niklas Söderlund
2026-06-11 20:41 ` [PATCH v10 08/13] media: rppx1: hist: Add support histogram measurement Niklas Söderlund
2026-06-11 20:41 ` [PATCH v10 09/13] media: rppx1: bls: Add support for black level compensation Niklas Söderlund
2026-06-11 20:41 ` [PATCH v10 10/13] media: rppx1: ccor: Add support for color correction matrix Niklas Söderlund
2026-06-11 20:41 ` [PATCH v10 11/13] media: rppx1: lsc: Add support for lens shade correction Niklas Söderlund
2026-06-11 20:41 ` [PATCH v10 12/13] media: rppx1: ga: Add support for gamma out correction Niklas Söderlund
2026-07-28 15:38 ` Sakari Ailus
2026-07-28 16:14 ` Jacopo Mondi
2026-07-28 16:49 ` Sakari Ailus
2026-07-30 17:08 ` Niklas Söderlund [this message]
2026-06-11 20:41 ` [PATCH v10 13/13] media: rppx1: lin: Add support for gamma sensor linearization Niklas Söderlund
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=20260730170821.GA2921345@ragnatech.se \
--to=niklas.soderlund+renesas@ragnatech.se \
--cc=jacopo.mondi+renesas@ideasonboard.com \
--cc=jacopo.mondi@ideasonboard.com \
--cc=jai.luthra+renesas@ideasonboard.com \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=sakari.ailus@iki.fi \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox