mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dmitry Osipenko <dmitry.osipenko@collabora.com>
To: Hans Verkuil <hverkuil-cisco@xs4all.nl>,
	Nicolas Dufresne <nicolas@ndufresne.ca>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	Tomasz Figa <tfiga@chromium.org>,
	Marek Szyprowski <m.szyprowski@samsung.com>,
	Benjamin Gaignard <benjamin.gaignard@collabora.com>,
	Andrzej Pietrasiewicz <andrzej.p@collabora.com>,
	Gustavo Padovan <gustavo.padovan@collabora.com>,
	Boris Brezillon <bbrezillon@collabora.com>,
	Daniel Almeida <daniel.almeida@collabora.com>,
	Sebastian Fricke <sebastian.fricke@collabora.com>,
	Laura Nao <laura.nao@collabora.com>
Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
	Dmitry Osipenko <digetx@gmail.com>
Subject: Re: [PATCH v1] media: videobuf2: Allow applications customize data offsets of capture buffers
Date: Thu, 19 May 2022 13:22:38 +0300	[thread overview]
Message-ID: <11bd51f2-ca35-4e01-95e9-ad35b37f26d8@collabora.com> (raw)
In-Reply-To: <1c1fda82-334a-04ec-fc2e-d1ea2da466e9@xs4all.nl>

Hello Hans,

On 5/18/22 13:26, Hans Verkuil wrote:
> 
> 
> On 3/25/22 13:32, Nicolas Dufresne wrote:
>> Le jeudi 24 mars 2022 à 21:20 +0300, Dmitry Osipenko a écrit :
>>> The root of the problem is that DRM UAPI is more flexible and allows to
>>> customize offsets for both S/MPLANEs, while V4L doesn't allow to do it
>>> at all. I'm exploring all the potential options, so far neither of the
>>> proposed variants is ideal.
>>
>> In GStreamer kmssink, the way DRM is used, is that if you have 2 planes in your
>> pixel format, but only received 1 DMABuf, we will pass this DMABuf twice (well
>> GEM handles, but twice), with appropriate offset.
>>
>> With this in mind, the idea for V4L2 could be to always resort to MPLANE for
>> this purpose. The tricky part for userland is that it needs to know the dual
>> pixel format and map that accordingly. That is a bit difficult and this is
>> something Helen was trying to address with the v4l2_buffer_ext (that and
>> allowing space to store DRM Modifiers in the future).
> 
> FYI: here is Helen's last patch series. Since Helen is no longer active in
> the media subsystem, someone else who is sufficiently motivated would have to
> take over.
> 
> https://patchwork.linuxtv.org/project/linux-media/cover/20210114180738.1758707-1-helen.koike@collabora.com/
> 
> I'm not enthusiastic about messing with data_offset: it was - in hindsight - a
> bad idea.

I'm aware of the Helen's work. To me the addition of the new IOCTLs that
partially duplicate the older ones doesn't feel like the best approach.
But since you're good with it, then I'll try to refresh the Helen's work
for 5.20 and we'll see where it will go.

-- 
Best regards,
Dmitry

  reply	other threads:[~2022-05-19 10:22 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-22 13:23 Dmitry Osipenko
2022-03-23 13:05 ` Nicolas Dufresne
2022-03-23 14:28   ` Dmitry Osipenko
2022-03-23 19:21     ` Nicolas Dufresne
2022-03-24 18:20       ` Dmitry Osipenko
2022-03-25 12:32         ` Nicolas Dufresne
2022-03-25 13:11           ` Dave Stevenson
2022-04-22 22:50             ` Dmitry Osipenko
2022-05-18 10:26           ` Hans Verkuil
2022-05-19 10:22             ` Dmitry Osipenko [this message]
2022-06-29 15:37               ` Dmitry Osipenko
2025-12-02 20:07 ` Hirokazu Honda
2025-12-03  8:28   ` Hans Verkuil
2025-12-12 23:15     ` Hirokazu Honda
2025-12-15 20:56       ` Nicolas Dufresne
2025-12-17  8:44         ` Tomasz Figa
2025-12-17 10:02         ` Hans Verkuil
2025-12-19  2:01           ` Hirokazu Honda
2025-12-19 15:18           ` Nicolas Dufresne
2025-12-24  6:09             ` Tomasz Figa

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=11bd51f2-ca35-4e01-95e9-ad35b37f26d8@collabora.com \
    --to=dmitry.osipenko@collabora.com \
    --cc=andrzej.p@collabora.com \
    --cc=bbrezillon@collabora.com \
    --cc=benjamin.gaignard@collabora.com \
    --cc=daniel.almeida@collabora.com \
    --cc=digetx@gmail.com \
    --cc=gustavo.padovan@collabora.com \
    --cc=hverkuil-cisco@xs4all.nl \
    --cc=laura.nao@collabora.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    --cc=mchehab@kernel.org \
    --cc=nicolas@ndufresne.ca \
    --cc=sebastian.fricke@collabora.com \
    --cc=tfiga@chromium.org \
    /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

all inboxes | Powered by JetHome®