Linux Media Controller development
 help / color / mirror / Atom feed
From: Sakari Ailus <sakari.ailus@iki.fi>
To: Sylwester Nawrocki <snjw23@gmail.com>
Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>,
	linux-media@vger.kernel.org, m.szyprowski@samsung.com,
	kyungmin.park@samsung.com, laurent.pinchart@ideasonboard.com,
	sw0312.kim@samsung.com, riverful.kim@samsung.com
Subject: Re: [PATCH v2 2/2] v4l: Add v4l2 subdev driver for S5K6AAFX sensor
Date: Fri, 7 Oct 2011 00:36:41 +0300	[thread overview]
Message-ID: <20111006213641.GA8908@valkosipuli.localdomain> (raw)
In-Reply-To: <4E8E08F2.10904@gmail.com>

On Thu, Oct 06, 2011 at 10:00:50PM +0200, Sylwester Nawrocki wrote:
> Moikka Sakari,

Hi, Sylwester!

> On 10/02/2011 09:20 AM, Sakari Ailus wrote:
> > On Sat, Oct 01, 2011 at 11:17:27AM +0200, Sylwester Nawrocki wrote:

[clip]

> > That's fine because it's implemented by the sensor already. My point is that
> > we should only show this fact in V4L2 API as little as possible.
> > 
> > I remember Guennadi had sensors which provide something called "snapshot
> > mode". A single boolean control to turn this on or off would suffice ---
> > snapshot mode is something that's going to be discussed in the Multimedia
> > summit if my memory serves me right.
> 
> Perhaps, although I don't expect huge outcome from one or two days meeting. 
> Hopefully it gets us closer into the right direction. 
> I'll try to prepare a brief summary of the m-5mols sensor requirements. 
> 
> > 
> > This could be one option for this sensor as well but the implementation
> > might not be quite optimal since you'd still need to switch the
> > configuration.
> 
> I believe the final result would be acceptable as well.
> 
> However I recall going through a datasheet of a camera device which was capable
> of generating simultaneously low resolution YUV and a higher resolution capture 
> JPEG data stream. Either on same MIPI-CSI channel or on separate ones. This was
> to achieve so called "zero shutter lag".
> For this kind of device you may need two separate resolutions, at least
> an application and the driver must keep track of them.   

This kind of device requires two source pads.

The same goes for the CSI-2 reciever: the CSI-2 channels are freely
configurable even if the current drivers typically only use one.

Two video nodes are required, too, since the images are independent of each
other.

In other words, this is already supported by the V4L2 interface. :-)

[clip]

> >>>> If the hardware (or it's firmware) supports something natively why should
> >>>> we go for a less efficient SW emulated replacement? After all, preview and
> >>>> capture mode seem pretty basic features that applications will want to
> >>>> use.
> >>>
> >>> I think it depends on an application. If your application only knows it
> >>> wants to do "viewfinder" or "capture" then it might be V4L2 could be a too
> >>> low level interface for that job.
> >>
> >> Sorry, this is all not about the applications capabilities. Only about the V4L2 API
> >> limitations in using the existing devices.
> >>
> >>>
> >>> I might suggest GSTphotography instead.
> >>
> >> GstPhotography is not really impressive in its current state:
> >> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-bad-plugins/html/GstPhotography.html
> > 
> > I'm probably not the best person to comment on this, but do you think
> > something is e.g. either missing or should be implemented differently?
> 
> I'm not a big expert either. The GstPhotography interface seems not well documented,
> I just tried to imagine how it could be used with above mentioned camera chip
> supporting interlaced viewfinder/capture data stream.  

The lack of documentation aspect might be a valid complaint. :)

I'm not a Gstreamer expert so take this with a grain of salt:

This interface is used to control the capture process, and setting the
resolutions is not part of that interface. The GSTphotography interface is
provided by the camera source. A source used with Camerabin2 has three
output pads: one of the pads provides viewfinder stream while another one
provides captured images. The third putput pad is for video.

<URL:http://gstreamer.freedesktop.org/wiki/CameraBin>

I your case the source provides the viewfinder and captures images through
the two pads.

Kind regards,

-- 
Sakari Ailus
e-mail: sakari.ailus@iki.fi	jabber/XMPP/Gmail: sailus@retiisi.org.uk

  reply	other threads:[~2011-10-06 21:36 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-21 17:45 [PATCH v2 0/3] Add v4l2 subdev driver for S5K6AAFX sensor Sylwester Nawrocki
2011-09-21 17:45 ` [PATCH v2 1/2] v4l: Add AUTO option for the V4L2_CID_POWER_LINE_FREQUENCY control Sylwester Nawrocki
2011-09-21 17:45 ` [PATCH v2 2/2] v4l: Add v4l2 subdev driver for S5K6AAFX sensor Sylwester Nawrocki
2011-09-22 22:02   ` Sakari Ailus
2011-09-23 10:12     ` Sylwester Nawrocki
2011-09-25 10:08       ` Sakari Ailus
2011-09-25 16:59         ` Sylwester Nawrocki
2011-09-27 20:55           ` Sakari Ailus
2011-09-27 20:58             ` Sakari Ailus
2011-09-28  7:50               ` Sylwester Nawrocki
2011-10-01  9:17             ` Sylwester Nawrocki
2011-10-02  7:20               ` Sakari Ailus
2011-10-03  8:33                 ` Laurent Pinchart
2011-10-06 20:00                 ` Sylwester Nawrocki
2011-10-06 21:36                   ` Sakari Ailus [this message]
2011-09-26 13:21   ` Hans Verkuil
2011-09-26 21:49     ` Sylwester Nawrocki
2011-09-27  7:14       ` Hans Verkuil
2011-09-27  8:07         ` Sylwester Nawrocki

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=20111006213641.GA8908@valkosipuli.localdomain \
    --to=sakari.ailus@iki.fi \
    --cc=kyungmin.park@samsung.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    --cc=riverful.kim@samsung.com \
    --cc=s.nawrocki@samsung.com \
    --cc=snjw23@gmail.com \
    --cc=sw0312.kim@samsung.com \
    /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