From: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
To: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: "Jacopo Mondi" <jacopo.mondi@ideasonboard.com>,
linux-media@vger.kernel.org, hans@jjverkuil.nl,
laurent.pinchart@ideasonboard.com,
Prabhakar <prabhakar.csengg@gmail.com>,
"Kate Hsuan" <hpa@redhat.com>,
"Alexander Shiyan" <eagle.alexander923@gmail.com>,
"Dave Stevenson" <dave.stevenson@raspberrypi.com>,
"Tommaso Merciai" <tomm.merciai@gmail.com>,
"Umang Jain" <umang.jain@ideasonboard.com>,
"Benjamin Mugnier" <benjamin.mugnier@foss.st.com>,
"Sylvain Petinot" <sylvain.petinot@foss.st.com>,
"Christophe JAILLET" <christophe.jaillet@wanadoo.fr>,
"Julien Massot" <julien.massot@collabora.com>,
"Naushir Patuck" <naush@raspberrypi.com>,
"Yan, Dongcheng" <dongcheng.yan@intel.com>,
"Cao, Bingbu" <bingbu.cao@intel.com>,
"Qiu, Tian Shu" <tian.shu.qiu@intel.com>,
"Wang, Hongju" <hongju.wang@intel.com>,
"Stefan Klug" <stefan.klug@ideasonboard.com>,
"Mirela Rabulea" <mirela.rabulea@nxp.com>,
"André Apitzsch" <git@apitzsch.eu>,
"Heimir Thor Sverrisson" <heimir.sverrisson@gmail.com>,
"Kieran Bingham" <kieran.bingham@ideasonboard.com>,
"Stanislaw Gruszka" <stanislaw.gruszka@linux.intel.com>,
"Mehdi Djait" <mehdi.djait@linux.intel.com>,
"Ricardo Ribalda Delgado" <ribalda@kernel.org>,
"Hans de Goede" <hdegoede@redhat.com>,
"Tomi Valkeinen" <tomi.valkeinen@ideasonboard.com>
Subject: Re: [PATCH v10 24/64] media: uapi: ccs: Add metadata layout for MIPI CCS embedded data
Date: Wed, 14 Jan 2026 08:53:46 +0100 [thread overview]
Message-ID: <aWdIqNlFUEe_fkpN@zed> (raw)
In-Reply-To: <aWa54ri2jx_-EwKz@kekkonen.localdomain>
Hi Sakari
On Tue, Jan 13, 2026 at 11:32:18PM +0200, Sakari Ailus wrote:
> Hi Jacopo,
>
> On Fri, Jun 20, 2025 at 03:24:09PM +0200, Jacopo Mondi wrote:
> > Hi Sakari
> >
> > On Thu, Jun 19, 2025 at 02:57:56PM +0300, Sakari Ailus wrote:
> > > Add new metadata layout (V4L2_METADATA_LAYOUT_CCS) for MIPI CCS embedded
> > > data.
> > >
> > > Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
> > > Reviewed-by: Julien Massot <julien.massot@collabora.com>
> > > Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > > ---
> > > .../userspace-api/media/v4l/meta-formats.rst | 1 +
> > > .../media/v4l/metadata-layouts.rst | 39 +++++++++++++++++++
> > > .../media/v4l/subdev-formats.rst | 5 +++
> > > include/uapi/linux/v4l2-controls.h | 1 +
> > > 4 files changed, 46 insertions(+)
> > > create mode 100644 Documentation/userspace-api/media/v4l/metadata-layouts.rst
> > >
> > > diff --git a/Documentation/userspace-api/media/v4l/meta-formats.rst b/Documentation/userspace-api/media/v4l/meta-formats.rst
> > > index bb6876cfc271..c9b908d5fbea 100644
> > > --- a/Documentation/userspace-api/media/v4l/meta-formats.rst
> > > +++ b/Documentation/userspace-api/media/v4l/meta-formats.rst
> > > @@ -15,6 +15,7 @@ These formats are used for the :ref:`metadata` interface only.
> > > metafmt-c3-isp
> > > metafmt-d4xx
> > > metafmt-generic
> > > + metadata-layouts
> > > metafmt-intel-ipu3
> > > metafmt-pisp-be
> > > metafmt-pisp-fe
> > > diff --git a/Documentation/userspace-api/media/v4l/metadata-layouts.rst b/Documentation/userspace-api/media/v4l/metadata-layouts.rst
> > > new file mode 100644
> > > index 000000000000..5f717d54d1ca
> > > --- /dev/null
> > > +++ b/Documentation/userspace-api/media/v4l/metadata-layouts.rst
> > > @@ -0,0 +1,39 @@
> > > +.. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later
> > > +
> > > +.. _media_metadata_layouts:
> > > +
> > > +Metadata Layouts
> > > +----------------
> > > +
> > > +The :ref:`metadata layout control <image_source_control_metadata_layout>`
> > > +specifies the on-bus layout of the metadata on pads with a :ref:`generic
> > > +metadata mbus code <media-bus-format-generic-meta>` independently of the bit
> > > +depth.
> >
> > This has been reviewed by 2 people already, so it might be not having
> > this clear, but I guess the intention is to say that the metadata
> > layout control describes how data on the bus should be interpreted by
> > userspace while the generic metadata mbus code only defines the sample
> > size ?
>
> Hmm. This should probably refer to Data Unit instead.
>
> Do you think that would help? Bit depth doesn't really apply here.
>
I have a few problems with the text overall, at least as I read it
1) "the metadata layout control specifies the on-bus layout of the
metadata on pads with a generic metadata mbus code"
This seems to suggest that the control applies on pads with a generic
metadata mbus code
2) "specifies the on-bus layout"
I understand why you used "on-bus" (because we use generic formats on
pads and when the metadata are written to memory, right ?) but I would
rather use "exact layout" or simply "data layout" as you've done below
?
3) I don't get what "on pads with a metadata mbus code indepedently of
the bit depth". What's independent from the bit depth ?
All in all, I guess what I understand is:
The :ref:`metadata layout control <image_source_control_metadata_layout>`
specifies the exact layout of the metadata stream while the a :ref:`generic
metadata mbus code <media-bus-format-generic-meta>` on the subdevice pads
only describe the data unit size.
if that's what you meant
> >
> > I don't really get that from the above paragraph. Feel free to ignore
> > if it's me only :)
>
> --
> Kind regards,
>
> Sakari Ailus
next prev parent reply other threads:[~2026-01-14 7:53 UTC|newest]
Thread overview: 127+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-19 11:57 [PATCH v10 00/64] Generic line based metadata support, internal pads Sakari Ailus
2025-06-19 11:57 ` [PATCH v10 01/64] media: ov2740: Remove shorthand variables Sakari Ailus
2025-06-20 9:31 ` Jacopo Mondi
2025-06-19 11:57 ` [PATCH v10 02/64] media: Documentation: Move streams documentation one level up Sakari Ailus
2025-06-20 9:49 ` Jacopo Mondi
2025-06-19 11:57 ` [PATCH v10 03/64] media: Documentation: Clean up figure titles Sakari Ailus
2025-07-28 12:55 ` Jacopo Mondi
2025-06-19 11:57 ` [PATCH v10 04/64] media: ccs: No need to set streaming to false in power off Sakari Ailus
2025-06-19 11:57 ` [PATCH v10 05/64] media: ccs: Move ccs_pm_get_init function up Sakari Ailus
2025-06-19 11:57 ` [PATCH v10 06/64] media: ccs: Rename out label of ccs_start_streaming Sakari Ailus
2025-06-19 11:57 ` [PATCH v10 07/64] media: ccs: Move ccs_validate_csi_data_format up Sakari Ailus
2025-06-19 11:57 ` [PATCH v10 08/64] media: Documentation: Refer to internal pads in metadata documentation Sakari Ailus
2025-06-20 10:01 ` Jacopo Mondi
2025-06-20 11:09 ` Jacopo Mondi
2025-06-19 11:57 ` [PATCH v10 09/64] media: ccs: Use {enable,disable}_streams operations Sakari Ailus
2025-06-19 11:57 ` [PATCH v10 10/64] media: ccs: Track streaming state Sakari Ailus
2025-06-19 11:57 ` [PATCH v10 11/64] media: ccs: Support frame descriptors Sakari Ailus
2025-06-19 11:57 ` [PATCH v10 12/64] media: uapi: v4l: subdev: Enable streams API Sakari Ailus
2025-06-20 11:10 ` Jacopo Mondi
2025-07-12 17:21 ` Mirela Rabulea
2025-06-19 11:57 ` [PATCH v10 13/64] media: mc: Add INTERNAL pad flag Sakari Ailus
2025-07-22 22:11 ` Mirela Rabulea
2026-01-13 21:35 ` Sakari Ailus
2025-06-19 11:57 ` [PATCH v10 14/64] media: v4l2-mc: Ignore internal pads in finding source sub-devices Sakari Ailus
2025-06-20 11:16 ` Jacopo Mondi
2025-06-21 8:22 ` Sakari Ailus
2025-06-19 11:57 ` [PATCH v10 15/64] media: uapi: Add generic CSI-2 raw pixelformats Sakari Ailus
2025-06-20 11:50 ` Jacopo Mondi
2026-01-13 8:59 ` Sakari Ailus
[not found] ` <41ad339a-c78c-4c16-922a-b23b6b79bdde@nxp.com>
2026-01-13 12:30 ` [EXT] " Sakari Ailus
2026-02-17 18:24 ` Mirela Rabulea
2025-06-19 11:57 ` [PATCH v10 16/64] media: uapi: Add new media bus codes for generic raw formats Sakari Ailus
2025-06-20 12:03 ` Jacopo Mondi
2025-07-22 22:12 ` Mirela Rabulea
2026-01-13 12:43 ` Sakari Ailus
2025-06-19 11:57 ` [PATCH v10 17/64] media: uapi: Add V4L2_CID_CONFIG_MODEL control Sakari Ailus
2025-06-19 11:57 ` [PATCH v10 18/64] media: uapi: Add V4L2_CID_COLOR_PATTERN for describing color patterns Sakari Ailus
2025-06-20 12:10 ` Jacopo Mondi
2025-06-23 8:00 ` Sakari Ailus
2025-06-23 8:05 ` Jacopo Mondi
2025-07-22 22:13 ` Mirela Rabulea
2025-06-19 11:57 ` [PATCH v10 19/64] media: v4l: uapi: Add a control for color pattern flipping effect Sakari Ailus
2025-06-20 12:14 ` Jacopo Mondi
2025-06-23 8:50 ` Sakari Ailus
2025-07-22 22:14 ` Mirela Rabulea
2026-01-13 12:46 ` Sakari Ailus
2026-01-13 22:39 ` Laurent Pinchart
2026-01-13 22:45 ` Sakari Ailus
2025-06-19 11:57 ` [PATCH v10 20/64] media: Documentation: Document raw mbus codes and CFA for cameras Sakari Ailus
2025-07-22 22:15 ` Mirela Rabulea
2026-01-13 21:53 ` Sakari Ailus
2025-06-19 11:57 ` [PATCH v10 21/64] media: uapi: Add V4L2_CID_METADATA_LAYOUT control Sakari Ailus
2025-06-20 12:25 ` Jacopo Mondi
2025-06-23 8:02 ` Sakari Ailus
2025-07-23 11:51 ` Mirela Rabulea
2026-01-13 12:48 ` Sakari Ailus
2025-06-19 11:57 ` [PATCH v10 22/64] media: Documentation: v4l: Document internal sink pads Sakari Ailus
2025-06-20 12:43 ` Jacopo Mondi
2025-07-23 11:52 ` Mirela Rabulea
2026-01-13 20:37 ` Sakari Ailus
2025-06-19 11:57 ` [PATCH v10 23/64] media: Documentation: Document embedded data guidelines for camera sensors Sakari Ailus
2025-06-20 13:19 ` Jacopo Mondi
2026-01-13 20:43 ` Sakari Ailus
2025-07-23 11:53 ` Mirela Rabulea
2026-01-13 20:47 ` Sakari Ailus
2025-06-19 11:57 ` [PATCH v10 24/64] media: uapi: ccs: Add metadata layout for MIPI CCS embedded data Sakari Ailus
2025-06-20 13:24 ` Jacopo Mondi
2026-01-13 21:32 ` Sakari Ailus
2026-01-14 7:53 ` Jacopo Mondi [this message]
2026-01-14 9:46 ` Sakari Ailus
2025-06-19 11:57 ` [PATCH v10 25/64] media: Documentation: Document non-CCS use of CCS embedded data layout Sakari Ailus
2025-07-23 11:54 ` Mirela Rabulea
2026-01-13 21:57 ` Sakari Ailus
2025-06-19 11:57 ` [PATCH v10 26/64] media: ccs: Add support for embedded data stream Sakari Ailus
2025-06-19 11:57 ` [PATCH v10 27/64] media: Documentation: ccs: Document routing Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 28/64] media: ccs: Remove ccs_get_crop_compose helper Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 29/64] media: ccs: Rely on sub-device state locking Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 30/64] media: ccs: Compute binning configuration from sub-device state Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 31/64] media: ccs: Compute scaling " Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 32/64] media: ccs: Remove which parameter from ccs_propagate Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 33/64] media: ccs: Detemine emb_data_ctrl register from sub-device state Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 34/64] media: Documentation: Rework embedded data documentation Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 35/64] media: Documentation: Add a hyphen to list-based Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 36/64] media: Documentation: Reword split of sensor driver to two classes Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 37/64] media: uapi: Documentation: Improve column width hints for examples Sakari Ailus
2025-07-28 14:23 ` Jacopo Mondi
2025-06-19 11:58 ` [PATCH v10 38/64] media: uapi: Correct generic CSI-2 metadata format 4cc Sakari Ailus
2025-06-20 13:26 ` Jacopo Mondi
2025-06-23 10:05 ` Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 39/64] Revert "media: uapi: v4l: Don't expose generic metadata formats to userspace" Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 40/64] media: Documentation: Add subdev configuration models, raw sensor model Sakari Ailus
2025-07-28 15:00 ` Jacopo Mondi
2026-01-13 22:07 ` Sakari Ailus
2026-01-13 14:50 ` Jacopo Mondi
2026-01-13 22:20 ` Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 41/64] media: Documentation: Add scaling and post-scaler crop for common raw Sakari Ailus
2025-07-28 15:05 ` Jacopo Mondi
2025-06-19 11:58 ` [PATCH v10 42/64] media: uapi: Add MIPI CCS configuration model Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 43/64] media: uapi: Add V4L2_CID_BINNING control for binning configuration Sakari Ailus
2025-07-28 15:24 ` Jacopo Mondi
2026-01-14 10:42 ` Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 44/64] media: uapi: Add controls for sub-sampling configuration Sakari Ailus
2025-07-28 14:27 ` Jacopo Mondi
2025-07-28 15:30 ` Jacopo Mondi
2025-06-19 11:58 ` [PATCH v10 45/64] media: Documentation: Add binning and sub-sampling controls Sakari Ailus
2025-07-28 15:33 ` Jacopo Mondi
2026-01-14 10:43 ` Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 46/64] media: uapi: Add metadata layout for ov2740 embedded data Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 47/64] media: ov2740: Add support for " Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 48/64] media: ov2740: Add support for generic raw formats Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 49/64] media: ov2740: Add metadata layout control Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 50/64] media: ov2740: Add support for G_SELECTION IOCTL Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 51/64] media: v4l: Add V4L2_SUBDEV_ROUTE_FL_IMMUTABLE sub-device routing flag Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 52/64] media: ccs: Add IMMUTABLE route flag Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 53/64] media: ov2740: " Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 54/64] media: i2c: imx219: Inline imx219_update_pad_format() in its caller Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 55/64] media: i2c: imx219: Add internal image sink pad Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 56/64] media: i2c: imx219: Add image stream Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 57/64] media: i2c: imx219: Report internal routes to userspace Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 58/64] media: i2c: imx219: Report streams using frame descriptors Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 59/64] media: i2c: imx219: Add embedded data support Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 60/64] media: imx219: Add support for generic raw formats Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 61/64] media: ccs: Add frame descriptor quirk Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 62/64] media: ipu6: isys: Set embedded data type correctly for metadata formats Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 63/64] media: ipu6: Add support for luma-only formats Sakari Ailus
2025-06-19 11:58 ` [PATCH v10 64/64] media: ipu6: Add support for raw CFA-agnostic formats Sakari Ailus
2025-06-19 22:28 ` [PATCH v10 00/64] Generic line based metadata support, internal pads Laurent Pinchart
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=aWdIqNlFUEe_fkpN@zed \
--to=jacopo.mondi@ideasonboard.com \
--cc=benjamin.mugnier@foss.st.com \
--cc=bingbu.cao@intel.com \
--cc=christophe.jaillet@wanadoo.fr \
--cc=dave.stevenson@raspberrypi.com \
--cc=dongcheng.yan@intel.com \
--cc=eagle.alexander923@gmail.com \
--cc=git@apitzsch.eu \
--cc=hans@jjverkuil.nl \
--cc=hdegoede@redhat.com \
--cc=heimir.sverrisson@gmail.com \
--cc=hongju.wang@intel.com \
--cc=hpa@redhat.com \
--cc=julien.massot@collabora.com \
--cc=kieran.bingham@ideasonboard.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=mehdi.djait@linux.intel.com \
--cc=mirela.rabulea@nxp.com \
--cc=naush@raspberrypi.com \
--cc=prabhakar.csengg@gmail.com \
--cc=ribalda@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=stanislaw.gruszka@linux.intel.com \
--cc=stefan.klug@ideasonboard.com \
--cc=sylvain.petinot@foss.st.com \
--cc=tian.shu.qiu@intel.com \
--cc=tomi.valkeinen@ideasonboard.com \
--cc=tomm.merciai@gmail.com \
--cc=umang.jain@ideasonboard.com \
/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