mbox series

[PATCHv2,0/2] Add helper functions to print a fourcc

Message ID 20190916100433.24367-1-hverkuil-cisco@xs4all.nl (mailing list archive)
Headers show
Series Add helper functions to print a fourcc | expand

Message

Hans Verkuil Sept. 16, 2019, 10:04 a.m. UTC
It turns out that Sakari posted a newer patch in 2018. I used that
for this v2: https://patchwork.linuxtv.org/patch/48372/

Mauro commented on that original patch that there was no need to
have this available for userspace.

I disagree: why wouldn't userspace want to report pixelformats?

It happens in several places in v4l-utils, and there the pixelformats are
printed in different ways as well. Providing a standard way of reporting
a V4L2 fourcc is very useful.

Regards,

	Hans

Hans Verkuil (1):
  v4l2-ioctl.c: use new v4l2_fourcc_conv/args macros

Sakari Ailus (1):
  v4l: Add macros for printing V4L fourcc values

 .../media/videodev2.h.rst.exceptions          |  2 +
 drivers/media/v4l2-core/v4l2-ioctl.c          | 58 ++++++-------------
 include/uapi/linux/videodev2.h                | 27 +++++++++
 3 files changed, 47 insertions(+), 40 deletions(-)

Comments

Sakari Ailus Sept. 16, 2019, 11:52 a.m. UTC | #1
On Mon, Sep 16, 2019 at 12:04:31PM +0200, Hans Verkuil wrote:
> It turns out that Sakari posted a newer patch in 2018. I used that
> for this v2: https://patchwork.linuxtv.org/patch/48372/
> 
> Mauro commented on that original patch that there was no need to
> have this available for userspace.
> 
> I disagree: why wouldn't userspace want to report pixelformats?
> 
> It happens in several places in v4l-utils, and there the pixelformats are
> printed in different ways as well. Providing a standard way of reporting
> a V4L2 fourcc is very useful.

Thanks, Hans!

Can you take these to your tree (perhaps pending some sort of agreement
with Mauro)?
Hans Verkuil Sept. 16, 2019, noon UTC | #2
On 9/16/19 1:52 PM, Sakari Ailus wrote:
> On Mon, Sep 16, 2019 at 12:04:31PM +0200, Hans Verkuil wrote:
>> It turns out that Sakari posted a newer patch in 2018. I used that
>> for this v2: https://patchwork.linuxtv.org/patch/48372/
>>
>> Mauro commented on that original patch that there was no need to
>> have this available for userspace.
>>
>> I disagree: why wouldn't userspace want to report pixelformats?
>>
>> It happens in several places in v4l-utils, and there the pixelformats are
>> printed in different ways as well. Providing a standard way of reporting
>> a V4L2 fourcc is very useful.
> 
> Thanks, Hans!
> 
> Can you take these to your tree (perhaps pending some sort of agreement
> with Mauro)?
> 

Certainly.

	Hans
Dave Stevenson Jan. 29, 2020, 11:52 a.m. UTC | #3
Hi Hans.

On Mon, 16 Sep 2019 at 13:00, Hans Verkuil <hverkuil-cisco@xs4all.nl> wrote:
>
> On 9/16/19 1:52 PM, Sakari Ailus wrote:
> > On Mon, Sep 16, 2019 at 12:04:31PM +0200, Hans Verkuil wrote:
> >> It turns out that Sakari posted a newer patch in 2018. I used that
> >> for this v2: https://patchwork.linuxtv.org/patch/48372/
> >>
> >> Mauro commented on that original patch that there was no need to
> >> have this available for userspace.
> >>
> >> I disagree: why wouldn't userspace want to report pixelformats?
> >>
> >> It happens in several places in v4l-utils, and there the pixelformats are
> >> printed in different ways as well. Providing a standard way of reporting
> >> a V4L2 fourcc is very useful.
> >
> > Thanks, Hans!
> >
> > Can you take these to your tree (perhaps pending some sort of agreement
> > with Mauro)?
> >
>
> Certainly.
>
>         Hans

What happened to these? Patchwork is flagging them as rejected[1], but
there's only been positive responses to them on the mailing list.

Thanks.
  Dave

[1] https://patchwork.linuxtv.org/patch/58781/ and
https://patchwork.linuxtv.org/patch/58780/
Kieran Bingham Jan. 30, 2020, 9:38 p.m. UTC | #4
Hi Hans,

On 29/01/2020 11:52, Dave Stevenson wrote:
> Hi Hans.
> 
> On Mon, 16 Sep 2019 at 13:00, Hans Verkuil <hverkuil-cisco@xs4all.nl> wrote:
>>
>> On 9/16/19 1:52 PM, Sakari Ailus wrote:
>>> On Mon, Sep 16, 2019 at 12:04:31PM +0200, Hans Verkuil wrote:
>>>> It turns out that Sakari posted a newer patch in 2018. I used that
>>>> for this v2: https://patchwork.linuxtv.org/patch/48372/
>>>>
>>>> Mauro commented on that original patch that there was no need to
>>>> have this available for userspace.
>>>>
>>>> I disagree: why wouldn't userspace want to report pixelformats?

Indeed. I've just had to hand code this for libcamera.
(Though, being C++, I don't think I could have used these macros anyway)

>>>> It happens in several places in v4l-utils, and there the pixelformats are
>>>> printed in different ways as well. Providing a standard way of reporting
>>>> a V4L2 fourcc is very useful.
>>>
>>> Thanks, Hans!
>>>
>>> Can you take these to your tree (perhaps pending some sort of agreement
>>> with Mauro)?
>>>
>>
>> Certainly.
>>
>>         Hans
> 
> What happened to these? Patchwork is flagging them as rejected[1], but
> there's only been positive responses to them on the mailing list.

I'll add another +1 ...
--
Kieran


> 
> Thanks.
>   Dave
> 
> [1] https://patchwork.linuxtv.org/patch/58781/ and
> https://patchwork.linuxtv.org/patch/58780/
Dave Stevenson March 25, 2020, 1:50 p.m. UTC | #5
On Wed, 29 Jan 2020 at 11:52, Dave Stevenson
<dave.stevenson@raspberrypi.com> wrote:
>
> Hi Hans.
>
> On Mon, 16 Sep 2019 at 13:00, Hans Verkuil <hverkuil-cisco@xs4all.nl> wrote:
> >
> > On 9/16/19 1:52 PM, Sakari Ailus wrote:
> > > On Mon, Sep 16, 2019 at 12:04:31PM +0200, Hans Verkuil wrote:
> > >> It turns out that Sakari posted a newer patch in 2018. I used that
> > >> for this v2: https://patchwork.linuxtv.org/patch/48372/
> > >>
> > >> Mauro commented on that original patch that there was no need to
> > >> have this available for userspace.
> > >>
> > >> I disagree: why wouldn't userspace want to report pixelformats?
> > >>
> > >> It happens in several places in v4l-utils, and there the pixelformats are
> > >> printed in different ways as well. Providing a standard way of reporting
> > >> a V4L2 fourcc is very useful.
> > >
> > > Thanks, Hans!
> > >
> > > Can you take these to your tree (perhaps pending some sort of agreement
> > > with Mauro)?
> > >
> >
> > Certainly.
> >
> >         Hans
>
> What happened to these? Patchwork is flagging them as rejected[1], but
> there's only been positive responses to them on the mailing list.

Ping. Why were these patches rejected?
  Dave

> Thanks.
>   Dave
>
> [1] https://patchwork.linuxtv.org/patch/58781/ and
> https://patchwork.linuxtv.org/patch/58780/
Sakari Ailus March 31, 2020, 10:27 a.m. UTC | #6
Hi Dave,

On Wed, Mar 25, 2020 at 01:50:44PM +0000, Dave Stevenson wrote:
> On Wed, 29 Jan 2020 at 11:52, Dave Stevenson
> <dave.stevenson@raspberrypi.com> wrote:
> >
> > Hi Hans.
> >
> > On Mon, 16 Sep 2019 at 13:00, Hans Verkuil <hverkuil-cisco@xs4all.nl> wrote:
> > >
> > > On 9/16/19 1:52 PM, Sakari Ailus wrote:
> > > > On Mon, Sep 16, 2019 at 12:04:31PM +0200, Hans Verkuil wrote:
> > > >> It turns out that Sakari posted a newer patch in 2018. I used that
> > > >> for this v2: https://patchwork.linuxtv.org/patch/48372/
> > > >>
> > > >> Mauro commented on that original patch that there was no need to
> > > >> have this available for userspace.
> > > >>
> > > >> I disagree: why wouldn't userspace want to report pixelformats?
> > > >>
> > > >> It happens in several places in v4l-utils, and there the pixelformats are
> > > >> printed in different ways as well. Providing a standard way of reporting
> > > >> a V4L2 fourcc is very useful.
> > > >
> > > > Thanks, Hans!
> > > >
> > > > Can you take these to your tree (perhaps pending some sort of agreement
> > > > with Mauro)?
> > > >
> > >
> > > Certainly.
> > >
> > >         Hans
> >
> > What happened to these? Patchwork is flagging them as rejected[1], but
> > there's only been positive responses to them on the mailing list.
> 
> Ping. Why were these patches rejected?

This was discussed on media-maint channel. The log is here:

<URL:https://linuxtv.org/irc/irclogger_log/media-maint?date=2020-02-06,Thu&raw=on>
Dave Stevenson March 31, 2020, 2:05 p.m. UTC | #7
Hi Sakari

On Tue, 31 Mar 2020 at 11:28, Sakari Ailus <sakari.ailus@iki.fi> wrote:
>
> Hi Dave,
>
> On Wed, Mar 25, 2020 at 01:50:44PM +0000, Dave Stevenson wrote:
> > On Wed, 29 Jan 2020 at 11:52, Dave Stevenson
> > <dave.stevenson@raspberrypi.com> wrote:
> > >
> > > Hi Hans.
> > >
> > > On Mon, 16 Sep 2019 at 13:00, Hans Verkuil <hverkuil-cisco@xs4all.nl> wrote:
> > > >
> > > > On 9/16/19 1:52 PM, Sakari Ailus wrote:
> > > > > On Mon, Sep 16, 2019 at 12:04:31PM +0200, Hans Verkuil wrote:
> > > > >> It turns out that Sakari posted a newer patch in 2018. I used that
> > > > >> for this v2: https://patchwork.linuxtv.org/patch/48372/
> > > > >>
> > > > >> Mauro commented on that original patch that there was no need to
> > > > >> have this available for userspace.
> > > > >>
> > > > >> I disagree: why wouldn't userspace want to report pixelformats?
> > > > >>
> > > > >> It happens in several places in v4l-utils, and there the pixelformats are
> > > > >> printed in different ways as well. Providing a standard way of reporting
> > > > >> a V4L2 fourcc is very useful.
> > > > >
> > > > > Thanks, Hans!
> > > > >
> > > > > Can you take these to your tree (perhaps pending some sort of agreement
> > > > > with Mauro)?
> > > > >
> > > >
> > > > Certainly.
> > > >
> > > >         Hans
> > >
> > > What happened to these? Patchwork is flagging them as rejected[1], but
> > > there's only been positive responses to them on the mailing list.
> >
> > Ping. Why were these patches rejected?
>
> This was discussed on media-maint channel. The log is here:
>
> <URL:https://linuxtv.org/irc/irclogger_log/media-maint?date=2020-02-06,Thu&raw=on>

Thanks, it's useful to know what's going on. The patchwork information
was pretty opaque.

The log includes
[12:41] <sailus> If you insist, I can write a patch, and put your
Suggested-by: tag there. :^)
[12:41] <mchehab> yeah, please do so
[12:42] <mchehab> the best is to also c/c drm ML
Has that happened and I've missed it, or is it still on the pending queue?

  Dave
Sakari Ailus March 31, 2020, 2:29 p.m. UTC | #8
On Tue, Mar 31, 2020 at 03:05:59PM +0100, Dave Stevenson wrote:
> Hi Sakari
> 
> On Tue, 31 Mar 2020 at 11:28, Sakari Ailus <sakari.ailus@iki.fi> wrote:
> >
> > Hi Dave,
> >
> > On Wed, Mar 25, 2020 at 01:50:44PM +0000, Dave Stevenson wrote:
> > > On Wed, 29 Jan 2020 at 11:52, Dave Stevenson
> > > <dave.stevenson@raspberrypi.com> wrote:
> > > >
> > > > Hi Hans.
> > > >
> > > > On Mon, 16 Sep 2019 at 13:00, Hans Verkuil <hverkuil-cisco@xs4all.nl> wrote:
> > > > >
> > > > > On 9/16/19 1:52 PM, Sakari Ailus wrote:
> > > > > > On Mon, Sep 16, 2019 at 12:04:31PM +0200, Hans Verkuil wrote:
> > > > > >> It turns out that Sakari posted a newer patch in 2018. I used that
> > > > > >> for this v2: https://patchwork.linuxtv.org/patch/48372/
> > > > > >>
> > > > > >> Mauro commented on that original patch that there was no need to
> > > > > >> have this available for userspace.
> > > > > >>
> > > > > >> I disagree: why wouldn't userspace want to report pixelformats?
> > > > > >>
> > > > > >> It happens in several places in v4l-utils, and there the pixelformats are
> > > > > >> printed in different ways as well. Providing a standard way of reporting
> > > > > >> a V4L2 fourcc is very useful.
> > > > > >
> > > > > > Thanks, Hans!
> > > > > >
> > > > > > Can you take these to your tree (perhaps pending some sort of agreement
> > > > > > with Mauro)?
> > > > > >
> > > > >
> > > > > Certainly.
> > > > >
> > > > >         Hans
> > > >
> > > > What happened to these? Patchwork is flagging them as rejected[1], but
> > > > there's only been positive responses to them on the mailing list.
> > >
> > > Ping. Why were these patches rejected?
> >
> > This was discussed on media-maint channel. The log is here:
> >
> > <URL:https://linuxtv.org/irc/irclogger_log/media-maint?date=2020-02-06,Thu&raw=on>
> 
> Thanks, it's useful to know what's going on. The patchwork information
> was pretty opaque.
> 
> The log includes
> [12:41] <sailus> If you insist, I can write a patch, and put your
> Suggested-by: tag there. :^)
> [12:41] <mchehab> yeah, please do so
> [12:42] <mchehab> the best is to also c/c drm ML
> Has that happened and I've missed it, or is it still on the pending queue?

Looking at the log reminded me to write it. :-)

I'll test it first and then send it --- I'll cc you as well.