From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: [PATCH] V4L: soc-camera: add selection API host operations
Date: Wed, 19 Sep 2012 21:05:59 +0200 [thread overview]
Message-ID: <13635337.rYxAaDZnVE@avalon> (raw)
In-Reply-To: <Pine.LNX.4.64.1207111755180.18999@axis700.grange>
Hi Guennadi,
On Wednesday 11 July 2012 18:10:05 Guennadi Liakhovetski wrote:
Wow, that's an old mail :-)
> On Fri, 6 Jul 2012, Laurent Pinchart wrote:
> > On Friday 22 June 2012 18:40:08 Guennadi Liakhovetski wrote:
> > > Add .get_selection() and .set_selection() soc-camera host driver
> > > operations. Additionally check, that the user is not trying to change
> > > the output sizes during a running capture.
> >
> > How will that interact with the crop operations ? The goal is to move away
> > from crop operations to selection operations, so we need to establish
> > clear rules.
>
> Nicely:-) My understanding is, that the V4L2 core now is doing a large
> part (all of?) compatibility / conversion work? As you know, soc-camera is
> a kind of a glue layer between the V4L2 core and host drivers with some
> helper functionality for client drivers. All V4L2 API calls go via the
> soc-camera core and most of them are passed, possibly after some
> preprocessing, to host drivers. Same holds for cropping and selection
> calls. They are passed on to host drivers. As long as drivers use the
> cropping API, the soc-camera core has to support it. Only after all host
> drivers have been ported over, the soc-camera core can abandon it too. I
> don't see another way out, do you?
My point was that it might be quite complex for soc-camera clients to
implement both crop and selection operations. As the goal is to move both
clients and hosts to selection operations, the soc-camera core could translate
crop calls to selection calls if crop operations are not provided. Clients
could then replace crop callbacks with selection callbacks without having to
implement both as an interim solution.
--
Regards,
Laurent Pinchart
prev parent reply other threads:[~2012-09-19 19:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-22 16:40 [PATCH] V4L: soc-camera: add selection API host operations Guennadi Liakhovetski
2012-07-05 22:17 ` Laurent Pinchart
2012-07-11 16:10 ` Guennadi Liakhovetski
2012-09-19 19:05 ` Laurent Pinchart [this message]
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=13635337.rYxAaDZnVE@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=g.liakhovetski@gmx.de \
--cc=linux-media@vger.kernel.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