On Wednesday, September 28, 2011 10:29:37 Laurent Pinchart wrote:
> Hi Hans,
> 
> On Wednesday 28 September 2011 10:01:03 Hans Verkuil wrote:
> > On Tuesday, September 27, 2011 18:46:10 Tomasz Stanislawski wrote:
> > > On 09/27/2011 04:10 PM, Mauro Carvalho Chehab wrote:
> > > > Em 27-09-2011 10:02, Tomasz Stanislawski escreveu:
> > > >> On 09/26/2011 02:10 PM, Mauro Carvalho Chehab wrote:
> > > >>> Em 26-09-2011 05:42, Tomasz Stanislawski escreveu:
> > > >>>> On 09/24/2011 05:58 AM, Mauro Carvalho Chehab wrote:
> > > >>>>> Em 22-09-2011 12:13, Marek Szyprowski escreveu:
> 
> [snip]
> 
> > > The legacy applications would be supported by simulation of old API
> > > using selection API.
> > 
> > As I said before, G/S_CROP is perfectly valid and will not go away or be
> > deprecated. Just as S_CTRL is not replaced by S_EXT_CTRLS. There is no need
> > to force apps to move to the selection API. The selection API extends the
> > old crop API for good reasons, but for simple cropping S_CROP remains
> > perfectly fine.
> 
> Now, of course. In a couple years time, the story will likely be different, 
> and we might want to deprecate the G/S_CROP API. Shouldn't this message be 
> conveyed to userspace developers ? I like the idea of asking them to favor 
> the 
> selection API over the crop API for new applications.

Why? It's like asking them not to use G_CTRL. Never going to happen.

For one thing even if the new API arrives in, say, kernel 3.2 it will take
at least 3 years before applications can even start to assume that most users
will have upgraded to a selection-aware kernel.

It's fine of course to refer to the selection API in the current crop 
documentation,
particularly when using the crop API for output devices (since the old API is
very confusing in that particular use-case).

But you just can't deprecate it, nor is there IMHO any reason to do so.

I'm not sure if we ever deprecated any V4L2 API in the past. If we have it
was probably for either unused or ambiguous features that apps couldn't rely
on anyway.

Regards,

        Hans

> > What would be nice is to deprecate the old crop ops for new drivers and
> > (ideally) convert existing drivers that use vidioc_g/s_crop to the new
> > vidioc_g/s_selection (with the final goal of removing vidioc_g/s_crop).
> > 
> > And also note that cropcap is still needed to get the pixelaspect.
> 
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to