All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sylwester Nawrocki <snjw23@gmail.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com>,
	"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
	Nayden Kanchev <nkanchev@mm-sol.com>,
	Guennadi Liakhovetski <g.liakhovetski@gmx.de>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	David Cohen <dacohen@gmail.com>,
	Kim HeungJun <riverful@gmail.com>,
	andrew.b.adams@gmail.com, Sung Hee Park <shpark7@stanford.edu>
Subject: Re: [RFC v4] V4L2 API for flash devices
Date: Sat, 07 May 2011 19:42:50 +0200	[thread overview]
Message-ID: <4DC5849A.9050806@gmail.com> (raw)
In-Reply-To: <201105071446.56843.hverkuil@xs4all.nl>

Hi Hans,

On 05/07/2011 02:46 PM, Hans Verkuil wrote:
> On Thursday, May 05, 2011 20:49:21 Sakari Ailus wrote:
>> Hi,
>>
>> This is a fourth proposal for an interface for controlling flash devices
>> on the V4L2/v4l2_subdev APIs.
>>
>> I want to thank everyone who have participated to the development of the
>> flash interface.
>>
>> Comments and questions are very, very welcome as always.
>>
>>
>> Changes since v3 [12]
>> =====================
>>
>> - V4L2_CID_FLASH_STROBE changed to button control,
>> V4L2_CID_FLASH_STROBE_STOP button control added,
>> V4L2_CID_FLASH_STROBE_STATUS boolean control added.
>>
>> - No reason to say xenon flashes can't use V4L2_CID_FLASH_STROBE.
>>
>> - V4L2_CID_FLASH_STROBE_WHENCE changed to V4L2_CID_FLASH_STROBE_MODE.
>>
>> - V4L2_CID_TORCH_INTENSITY renamed to V4L2_CID_FLASH_TORCH_INTENSITY and
>> V4L2_CID_INDICATOR_INTENSITY renamed to V4L2_CID_FLASH_INDICATOR_INTENSITY.
>>
>> - Moved V4L2_CID_FLASH_EXTERNAL_STROBE_MODE under "Possible future
>> extensions".
>>

[snip]

>>
>> 3. Sensor metadata on frames
>> ----------------------------
>>
>> It'd be useful to be able to read back sensor metadata. If the flash is
>> strobed (on sensor hardware) while streaming, it's difficult to know
>> otherwise which frame in the stream has been exposed with flash.
>
> I wonder if it would make sense to have a V4L2_BUF_FLAG_FLASH buffer flag?
> That way userspace can tell if that particular frame was taken with flash.

This looks more as a workaround for the problem rather than a good long 
term solution. It might be tempting to use the buffer flags which seem
to be be more or less intended for buffer control.
I'd like much more to see a buffer flags to be used to indicate whether
an additional plane of (meta)data is carried by the buffer.
There seem to be many more parameters, than a single flag indicating 
whether the frame has been exposed with flash or not, needed to be 
carried over to user space.
But then we might need some standard format of the meta data, perhaps
control id/value pairs and possibly a per plane configurable memory
type.

Also as Sakari indicated some sensors adopt custom meta data formats
so maybe we need to introduce standard fourcc like IDs for meta data
formats? I am not sure whether it is possible to create common 
description of an image meta data that fits all H/W.

--
Regards,
Sylwester

  reply	other threads:[~2011-05-07 17:42 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-05 18:49 [RFC v4] V4L2 API for flash devices Sakari Ailus
2011-05-07 12:46 ` Hans Verkuil
2011-05-07 17:42   ` Sylwester Nawrocki [this message]
2011-05-08 22:11     ` Sakari Ailus
2011-05-10 20:40       ` Sylwester Nawrocki
2011-05-17 20:34         ` Sakari Ailus
2011-05-18  7:10           ` Laurent Pinchart
2011-05-18  7:30             ` Sakari Ailus
2011-05-18 22:21           ` Sylwester Nawrocki
2011-05-19  8:12             ` Sakari Ailus
2011-06-07 12:17               ` Mauro Carvalho Chehab
2011-05-08 15:48   ` Sakari Ailus
2011-05-14 13:13   ` Andy Walls
2011-05-16  9:23     ` Sakari Ailus

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=4DC5849A.9050806@gmail.com \
    --to=snjw23@gmail.com \
    --cc=andrew.b.adams@gmail.com \
    --cc=dacohen@gmail.com \
    --cc=g.liakhovetski@gmx.de \
    --cc=hverkuil@xs4all.nl \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=nkanchev@mm-sol.com \
    --cc=riverful@gmail.com \
    --cc=sakari.ailus@maxwell.research.nokia.com \
    --cc=shpark7@stanford.edu \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.