Re: [PATCHv4 0/5] media: uvcvideo: implement UVC 1.5 ROI

From: Sergey Senozhatsky
Date: Fri Apr 30 2021 - 22:00:01 EST


Hi Hans,

On (21/04/30 14:49), Hans Verkuil wrote:
> Hi Sergey,
>
> On 30/04/2021 13:26, Sergey Senozhatsky wrote:
> > Hello,
> >
> > This patch set implements UVC 1.5 ROI using v4l2_selection API.
>
> Is the selection API the right approach for this? Wouldn't it make
> sense to use controls instead?

[..]

> If this was discussed before, then can you give a me pointer to that discussion?
> I couldn't find anything for that, but I didn't look very long for it :-)

I believe Tomasz raised this question over IRC back in the days and there
was no clear conclusion at the end: selection API vs control - 50/50 split.
After internal discussions we decided to go with the selection API.

> In any case, it doesn't really feel like it is the right API for this job.

Well, we pass a rectangle to the driver. The driver already knows what
to do with some of those rectangles, we teach it to handle one more. So
we don't introduce anything new, but use the existing API instead.