From: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com>
To: Michael Jones <michael.jones@matrix-vision.de>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>,
laurent.pinchart@ideasonboard.com
Subject: Re: controls, subdevs, and media framework
Date: Wed, 27 Oct 2010 16:48:44 +0300 [thread overview]
Message-ID: <4CC82DBC.4020907@maxwell.research.nokia.com> (raw)
In-Reply-To: <4CC6EEDC.20206@matrix-vision.de>
Hi Michael,
Michael Jones wrote:
> Having settled on a particular video device, (how) do regular
> controls (ie. VIDIOC_[S|G]_CTRL) work? I don't see any support for
> them in ispvideo.c. Is it just yet to be implemented? Or is it
> expected that the application will access the subdevs individually?
The applications will access the subdevs independently. I'd expect that
regular applications won't be interested in things like
V4L2_CID_EXPOSURE (to manually set exposure value) since they'd more
likely want automatic exposure.
These interfaces (subdevs) can be used by specialised applications and
libraries, most likely a general purpose application would not access
them directly. For example, on N900 the automatic exposure algorithm is
a user space beast, so that functionality cannot be implemented in
kernel level at all.
I'd expect general purpose applications to be using libv4l which will
know how to handle the hardware, in future.
> Basically the same Q for CROPCAP: isp_video_cropcap passes it on to
> the last link in the chain, but none of the subdevs in the ISP
> currently have a cropcap function implemented (yet). Does this still
> need to be written?
Setting and getting crop is supported but CROPCAP ioctl isn't actually
even defined for subdevs. I don't think an ioctl similar to CROPCAP even
makes sense since crop is so much more simple for subdevs.
Every time I need to deal with CROPCAP I'll first have to go to read the
specs. ;-)
If there is hardware which has somehow limited crop capability then
there might be a need for an ioctl to query the minimum possible size
after crop. At least the OMAP 3 ISP can crop as much as you want. That
shouldn't be a problem from hardware perspective as fas as I understand.
Cheers,
--
Sakari Ailus
sakari.ailus@maxwell.research.nokia.com
prev parent reply other threads:[~2010-10-27 13:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-26 15:08 controls, subdevs, and media framework Michael Jones
2010-10-26 22:12 ` Laurent Pinchart
2010-10-27 13:48 ` Sakari Ailus [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=4CC82DBC.4020907@maxwell.research.nokia.com \
--to=sakari.ailus@maxwell.research.nokia.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=michael.jones@matrix-vision.de \
/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