Re: [RFC] snapshot mode, flash capabilities and control

2011-03-06 Thread Sakari Ailus
Guennadi Liakhovetski wrote: On Fri, 25 Feb 2011, Sakari Ailus wrote: On Fri, Feb 25, 2011 at 06:08:07PM +0100, Guennadi Liakhovetski wrote: Hi Sakari Hi Guennadi, On Fri, 25 Feb 2011, Sakari Ailus wrote: I agree with that. Flash synchronisation is just one of the many parameters that

Re: [RFC] snapshot mode, flash capabilities and control

2011-03-03 Thread Guennadi Liakhovetski
On Wed, 2 Mar 2011, Hans Verkuil wrote: On Wednesday, March 02, 2011 18:51:43 Guennadi Liakhovetski wrote: ...Just occurred to me: On Mon, 28 Feb 2011, Guennadi Liakhovetski wrote: On Mon, 28 Feb 2011, Guennadi Liakhovetski wrote: On Mon, 28 Feb 2011, Hans Verkuil wrote:

Re: [RFC] snapshot mode, flash capabilities and control

2011-03-03 Thread Hans Verkuil
On Thursday, March 03, 2011 09:02:20 Guennadi Liakhovetski wrote: On Wed, 2 Mar 2011, Hans Verkuil wrote: On Wednesday, March 02, 2011 18:51:43 Guennadi Liakhovetski wrote: ...Just occurred to me: On Mon, 28 Feb 2011, Guennadi Liakhovetski wrote: On Mon, 28 Feb 2011,

Re: [RFC] snapshot mode, flash capabilities and control

2011-03-03 Thread Laurent Pinchart
Hi Andy, On Thursday 03 March 2011 02:05:00 Andy Walls wrote: On Wed, 2011-03-02 at 19:19 +0100, Hans Verkuil wrote: On Wednesday, March 02, 2011 18:51:43 Guennadi Liakhovetski wrote: ...Just occurred to me: On Mon, 28 Feb 2011, Guennadi Liakhovetski wrote: On Mon, 28 Feb 2011,

Re: [RFC] snapshot mode, flash capabilities and control

2011-03-03 Thread Andy Walls
On Thu, 2011-03-03 at 12:50 +0100, Laurent Pinchart wrote: Hi Andy, On Thursday 03 March 2011 02:05:00 Andy Walls wrote: On Wed, 2011-03-02 at 19:19 +0100, Hans Verkuil wrote: On Wednesday, March 02, 2011 18:51:43 Guennadi Liakhovetski wrote: ...Just occurred to me: On Mon,

Re: [RFC] snapshot mode, flash capabilities and control

2011-03-03 Thread Laurent Pinchart
Hi Andy, On Thursday 03 March 2011 14:56:25 Andy Walls wrote: On Thu, 2011-03-03 at 12:50 +0100, Laurent Pinchart wrote: On Thursday 03 March 2011 02:05:00 Andy Walls wrote: On Wed, 2011-03-02 at 19:19 +0100, Hans Verkuil wrote: On Wednesday, March 02, 2011 18:51:43 Guennadi

Re: [RFC] snapshot mode, flash capabilities and control

2011-03-03 Thread Sakari Ailus
On Thu, Mar 03, 2011 at 08:56:25AM -0500, Andy Walls wrote: With embedded platforms, like a mobile phone, are the LEDs really tied to the camera device: controlled by the GPIOs from the camera bridge chip or sensor chip? Or are they more general purpose peripherals, not necessarily tied to

Re: [RFC] snapshot mode, flash capabilities and control

2011-03-03 Thread Andy Walls
On Thu, 2011-03-03 at 15:04 +0100, Laurent Pinchart wrote: The LED API is too limited. We need to program flash time, pre-flash time, current limits, report overheat/overcurrent events, ... See http://www.analog.com/static/imported-files/data_sheets/ADP1653.pdf for an example of the

Re: [RFC] snapshot mode, flash capabilities and control

2011-03-02 Thread Guennadi Liakhovetski
...Just occurred to me: On Mon, 28 Feb 2011, Guennadi Liakhovetski wrote: On Mon, 28 Feb 2011, Guennadi Liakhovetski wrote: On Mon, 28 Feb 2011, Hans Verkuil wrote: Does anyone know which drivers stop capture if there are no buffers available? I'm not aware of any. Many

Re: [RFC] snapshot mode, flash capabilities and control

2011-03-02 Thread Hans Verkuil
On Wednesday, March 02, 2011 18:51:43 Guennadi Liakhovetski wrote: ...Just occurred to me: On Mon, 28 Feb 2011, Guennadi Liakhovetski wrote: On Mon, 28 Feb 2011, Guennadi Liakhovetski wrote: On Mon, 28 Feb 2011, Hans Verkuil wrote: Does anyone know which drivers stop capture

Re: [RFC] snapshot mode, flash capabilities and control

2011-03-02 Thread Andy Walls
On Wed, 2011-03-02 at 19:19 +0100, Hans Verkuil wrote: On Wednesday, March 02, 2011 18:51:43 Guennadi Liakhovetski wrote: ...Just occurred to me: On Mon, 28 Feb 2011, Guennadi Liakhovetski wrote: On Mon, 28 Feb 2011, Guennadi Liakhovetski wrote: On Mon, 28 Feb 2011, Hans

Re: [RFC] snapshot mode, flash capabilities and control

2011-03-02 Thread Kim, HeungJun
Hi Guennadi, I have another question about capture, not related with exact this topic. Dose the sensor which you use make EXIF information in itself while capturing?? If it is right, how to deliver EXIF information from v4l2(subdev or media driver) to userapplication? Regards, Heungjun Kim

Re: [RFC] snapshot mode, flash capabilities and control

2011-03-02 Thread Guennadi Liakhovetski
Hi On Thu, 3 Mar 2011, Kim, HeungJun wrote: Hi Guennadi, I have another question about capture, not related with exact this topic. Dose the sensor which you use make EXIF information in itself while capturing?? So far we have no sensors, about which we know, that they're delivering

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-28 Thread Laurent Pinchart
On Saturday 26 February 2011 14:03:53 Guennadi Liakhovetski wrote: On Sat, 26 Feb 2011, Hans Verkuil wrote: On Friday, February 25, 2011 18:08:07 Guennadi Liakhovetski wrote: snip configure the sensor to react on an external trigger provided by the flash controller is needed,

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-28 Thread Laurent Pinchart
Hi Hans, On Saturday 26 February 2011 14:56:18 Hans Verkuil wrote: On Saturday, February 26, 2011 14:39:54 Sylwester Nawrocki wrote: On 02/26/2011 02:03 PM, Guennadi Liakhovetski wrote: On Sat, 26 Feb 2011, Hans Verkuil wrote: On Friday, February 25, 2011 18:08:07 Guennadi Liakhovetski

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-28 Thread Laurent Pinchart
On Monday 28 February 2011 11:40:31 Hans Verkuil wrote: On Monday, February 28, 2011 11:28:58 Laurent Pinchart wrote: On Saturday 26 February 2011 14:56:18 Hans Verkuil wrote: On Saturday, February 26, 2011 14:39:54 Sylwester Nawrocki wrote: On 02/26/2011 02:03 PM, Guennadi Liakhovetski

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-28 Thread Hans Verkuil
On Monday, February 28, 2011 11:28:58 Laurent Pinchart wrote: Hi Hans, On Saturday 26 February 2011 14:56:18 Hans Verkuil wrote: On Saturday, February 26, 2011 14:39:54 Sylwester Nawrocki wrote: On 02/26/2011 02:03 PM, Guennadi Liakhovetski wrote: On Sat, 26 Feb 2011, Hans Verkuil

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-28 Thread Guennadi Liakhovetski
On Mon, 28 Feb 2011, Hans Verkuil wrote: On Monday, February 28, 2011 11:28:58 Laurent Pinchart wrote: Hi Hans, On Saturday 26 February 2011 14:56:18 Hans Verkuil wrote: On Saturday, February 26, 2011 14:39:54 Sylwester Nawrocki wrote: On 02/26/2011 02:03 PM, Guennadi Liakhovetski

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-28 Thread Laurent Pinchart
Hi Guennadi, On Monday 28 February 2011 12:02:41 Guennadi Liakhovetski wrote: On Mon, 28 Feb 2011, Hans Verkuil wrote: On Monday, February 28, 2011 11:28:58 Laurent Pinchart wrote: On Saturday 26 February 2011 14:56:18 Hans Verkuil wrote: On Saturday, February 26, 2011 14:39:54

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-28 Thread Hans Verkuil
On Monday, February 28, 2011 12:07:33 Laurent Pinchart wrote: Hi Guennadi, On Monday 28 February 2011 12:02:41 Guennadi Liakhovetski wrote: On Mon, 28 Feb 2011, Hans Verkuil wrote: On Monday, February 28, 2011 11:28:58 Laurent Pinchart wrote: On Saturday 26 February 2011 14:56:18 Hans

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-28 Thread Laurent Pinchart
On Monday 28 February 2011 12:17:12 Hans Verkuil wrote: On Monday, February 28, 2011 12:07:33 Laurent Pinchart wrote: On Monday 28 February 2011 12:02:41 Guennadi Liakhovetski wrote: On Mon, 28 Feb 2011, Hans Verkuil wrote: [snip] It was my understanding that the streaming would stop

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-28 Thread Guennadi Liakhovetski
On Sun, 27 Feb 2011, Sakari Ailus wrote: Hi, Guennadi Liakhovetski wrote: On Fri, 25 Feb 2011, Sakari Ailus wrote: Hi Guennadi, Guennadi Liakhovetski wrote: In principle - yes, and yes, I do realise, that the couple of controls, that I've proposed only cover a very

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-28 Thread Guennadi Liakhovetski
On Mon, 28 Feb 2011, Laurent Pinchart wrote: I don't think snapshot capture is *that* special. I don't expect most embedded SoCs to implement snapshot capture in hardware. What usually happens is that the hardware provides some support (like two independent video streams for

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-28 Thread Guennadi Liakhovetski
On Mon, 28 Feb 2011, Hans Verkuil wrote: Does anyone know which drivers stop capture if there are no buffers available? I'm not aware of any. Many soc-camera hosts do that. I think this is certainly a good initial approach. Can someone make a list of things needed for flash/snapshot?

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-28 Thread Guennadi Liakhovetski
On Fri, 25 Feb 2011, Guennadi Liakhovetski wrote: On Fri, 25 Feb 2011, Sakari Ailus wrote: On Fri, Feb 25, 2011 at 06:08:07PM +0100, Guennadi Liakhovetski wrote: What we could also do, we could add an optional callback to subdev (core?) operations, which, if activated, the host

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-28 Thread Sakari Ailus
On Mon, Feb 28, 2011 at 12:37:06PM +0100, Guennadi Liakhovetski wrote: So, you'd also need a separate control for external exposure, there are also sensors, that can be configured to different shutter / exposure / readout sequence controlling... No, we don't have to support all that

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-28 Thread Guennadi Liakhovetski
On Mon, 28 Feb 2011, Sakari Ailus wrote: On Mon, Feb 28, 2011 at 12:37:06PM +0100, Guennadi Liakhovetski wrote: So, you'd also need a separate control for external exposure, there are also sensors, that can be configured to different shutter / exposure / readout sequence controlling...

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-28 Thread Andy Walls
On Mon, 2011-02-28 at 12:17 +0100, Hans Verkuil wrote: On Monday, February 28, 2011 12:07:33 Laurent Pinchart wrote: So, do I understand it right, that currently there are drivers, that overwrite the last buffers while waiting for a new one, and ones, that stop capture for that time.

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-28 Thread Andy Walls
On Mon, 2011-02-28 at 08:33 -0500, Andy Walls wrote: On Mon, 2011-02-28 at 12:17 +0100, Hans Verkuil wrote: On Monday, February 28, 2011 12:07:33 Laurent Pinchart wrote: So, do I understand it right, that currently there are drivers, that overwrite the last buffers while waiting for a

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-28 Thread Sakari Ailus
On Mon, Feb 28, 2011 at 12:20:52PM +0100, Guennadi Liakhovetski wrote: Sorry, not sure what you mean. Do you mean different APIs when the flash is controlled directly by the sensor and by an external controller? No, of course we need one API, but you either issue those ioctl()s to the

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-28 Thread Sakari Ailus
On Mon, Feb 28, 2011 at 01:44:25PM +0100, Guennadi Liakhovetski wrote: On Mon, 28 Feb 2011, Sakari Ailus wrote: On Mon, Feb 28, 2011 at 12:37:06PM +0100, Guennadi Liakhovetski wrote: So, you'd also need a separate control for external exposure, there are also sensors, that can be

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-28 Thread Guennadi Liakhovetski
On Mon, 28 Feb 2011, Guennadi Liakhovetski wrote: On Mon, 28 Feb 2011, Hans Verkuil wrote: Does anyone know which drivers stop capture if there are no buffers available? I'm not aware of any. Many soc-camera hosts do that. I think this is certainly a good initial approach.

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-26 Thread Hans Verkuil
On Friday, February 25, 2011 18:08:07 Guennadi Liakhovetski wrote: snip configure the sensor to react on an external trigger provided by the flash controller is needed, and that could be a control on the flash sub-device. What we would probably miss is a way to issue a

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-26 Thread Guennadi Liakhovetski
On Sat, 26 Feb 2011, Hans Verkuil wrote: On Friday, February 25, 2011 18:08:07 Guennadi Liakhovetski wrote: snip configure the sensor to react on an external trigger provided by the flash controller is needed, and that could be a control on the flash sub-device. What

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-26 Thread Sylwester Nawrocki
On 02/26/2011 02:03 PM, Guennadi Liakhovetski wrote: On Sat, 26 Feb 2011, Hans Verkuil wrote: On Friday, February 25, 2011 18:08:07 Guennadi Liakhovetski wrote: snip configure the sensor to react on an external trigger provided by the flash controller is needed, and that could be a

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-26 Thread Hans Verkuil
On Saturday, February 26, 2011 14:39:54 Sylwester Nawrocki wrote: On 02/26/2011 02:03 PM, Guennadi Liakhovetski wrote: On Sat, 26 Feb 2011, Hans Verkuil wrote: On Friday, February 25, 2011 18:08:07 Guennadi Liakhovetski wrote: snip configure the sensor to react on an external

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-26 Thread Sylwester Nawrocki
Hi Hans, On 02/26/2011 02:56 PM, Hans Verkuil wrote: On Saturday, February 26, 2011 14:39:54 Sylwester Nawrocki wrote: On 02/26/2011 02:03 PM, Guennadi Liakhovetski wrote: On Sat, 26 Feb 2011, Hans Verkuil wrote: On Friday, February 25, 2011 18:08:07 Guennadi Liakhovetski wrote: snip

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-25 Thread Laurent Pinchart
Hi, On Thursday 24 February 2011 18:57:22 Kim HeungJun wrote: Hi Guennadi, I think, it's maybe a good suggestion for current trend! ( I'm not sure this express *trend* is right :)) But, the flash or strobe control connected with sensor can be controlled by user application directly, not

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-25 Thread Sakari Ailus
On Fri, Feb 25, 2011 at 11:05:05AM +0100, Laurent Pinchart wrote: Hi, Hi, On Thursday 24 February 2011 18:57:22 Kim HeungJun wrote: Hi Guennadi, I think, it's maybe a good suggestion for current trend! ( I'm not sure this express *trend* is right :)) But, the flash or strobe

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-25 Thread Guennadi Liakhovetski
Hi Laurent On Fri, 25 Feb 2011, Laurent Pinchart wrote: Hi, On Thursday 24 February 2011 18:57:22 Kim HeungJun wrote: Hi Guennadi, I think, it's maybe a good suggestion for current trend! ( I'm not sure this express *trend* is right :)) But, the flash or strobe control

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-25 Thread Guennadi Liakhovetski
Hi Sakari On Fri, 25 Feb 2011, Sakari Ailus wrote: On Fri, Feb 25, 2011 at 11:05:05AM +0100, Laurent Pinchart wrote: Hi, Hi, On Thursday 24 February 2011 18:57:22 Kim HeungJun wrote: Hi Guennadi, I think, it's maybe a good suggestion for current trend! ( I'm not sure this

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-25 Thread Sakari Ailus
Hi Guennadi, Guennadi Liakhovetski wrote: In principle - yes, and yes, I do realise, that the couple of controls, that I've proposed only cover a very minor subset of the whole flash function palette. The purposes of my RFC were: Why would there be a different interface for controlling the

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-25 Thread Sakari Ailus
On Fri, Feb 25, 2011 at 06:08:07PM +0100, Guennadi Liakhovetski wrote: Hi Sakari Hi Guennadi, On Fri, 25 Feb 2011, Sakari Ailus wrote: I agree with that. Flash synchronisation is just one of the many parameters that would benefit from frame level synchronisation. Exposure time, gain etc.

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-25 Thread Guennadi Liakhovetski
On Fri, 25 Feb 2011, Sakari Ailus wrote: Hi Guennadi, Guennadi Liakhovetski wrote: In principle - yes, and yes, I do realise, that the couple of controls, that I've proposed only cover a very minor subset of the whole flash function palette. The purposes of my RFC were: Why would

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-25 Thread Guennadi Liakhovetski
On Fri, 25 Feb 2011, Sakari Ailus wrote: On Fri, Feb 25, 2011 at 06:08:07PM +0100, Guennadi Liakhovetski wrote: Hi Sakari Hi Guennadi, On Fri, 25 Feb 2011, Sakari Ailus wrote: I agree with that. Flash synchronisation is just one of the many parameters that would benefit from

[RFC] snapshot mode, flash capabilities and control

2011-02-24 Thread Guennadi Liakhovetski
Agenda. === In a recent RFC [1] I proposed V4L2 API extensions to support fast switching between multiple capture modes or data formats. However, this is not sufficient to efficiently leverage snapshot capabilities of existing hardware - sensors and SoCs, and to satisfy user-space needs, a

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-24 Thread Hans Verkuil
On Thursday, February 24, 2011 13:18:39 Guennadi Liakhovetski wrote: Agenda. === In a recent RFC [1] I proposed V4L2 API extensions to support fast switching between multiple capture modes or data formats. However, this is not sufficient to efficiently leverage snapshot capabilities

Re: [RFC] snapshot mode, flash capabilities and control

2011-02-24 Thread Kim HeungJun
Hi Guennadi, I think, it's maybe a good suggestion for current trend! ( I'm not sure this express *trend* is right :)) But, the flash or strobe control connected with sensor can be controlled by user application directly, not in the sensor subdev device. For example, let's think that there is