From: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Hans Verkuil <hverkuil@xs4all.nl>,
"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
"Zutshi Vimarsh (Nokia-D-MSW/Helsinki)"
<vimarsh.zutshi@nokia.com>, Ivan Ivanov <iivanov@mm-sol.com>,
Cohen David Abraham <david.cohen@nokia.com>,
Guru Raj <gururaj.nagendra@intel.com>
Subject: Re: [RFC] Video events, version 2
Date: Fri, 16 Oct 2009 15:34:28 +0300 [thread overview]
Message-ID: <4AD86854.8060803@maxwell.research.nokia.com> (raw)
In-Reply-To: <200910161024.13340.laurent.pinchart@ideasonboard.com>
Laurent Pinchart wrote:
> On Friday 16 October 2009 09:36:51 Sakari Ailus wrote:
>> Hans Verkuil wrote:
>>> On Thursday 15 October 2009 23:11:33 Laurent Pinchart wrote:
>>>> For efficiency reasons a V4L2_G_EVENTS ioctl could also be provided to
>>>> retrieve multiple events.
>>>>
>>>> struct v4l2_events {
>>>> __u32 count;
>>>> struct v4l2_event __user *events;
>>>> };
>>>>
>>>> #define VIDIOC_G_EVENTS _IOW('V', xx, struct v4l2_events)
>>> Hmm. Premature optimization. Perhaps as a future extension.
>> That *could* save one ioctl sometimes --- then you'd no there are no
>> more events coming right now. But just one should be supported IMO,
>> VIDIOC_G_EVENT or VIDIOC_G_EVENTS.
>
> I forgot to mention in my last mail that we should add a flag to the
> v4l2_event structure to report if more events are pending (or even possible a
> pending event count).
Then the V4L (or driver) would have to check the queue for that type of
events. OTOH, the queue size could be quite small and it'd never
overflow since the maximum size is number of different event types.
Can there be situations when the first or last event timestamp of
certain event would be necessary? If we put count there, then we need to
make a decision which one is useful for the userspace. The last one is
obviously useful for the AF/AEWB algorightms. I currently see no use for
the first one, but that doesn't mean there couldn't be use for it.
--
Sakari Ailus
sakari.ailus@maxwell.research.nokia.com
next prev parent reply other threads:[~2009-10-16 12:36 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-14 13:02 [RFC] Video events, version 2 Sakari Ailus
2009-10-14 17:48 ` Hans Verkuil
2009-10-15 21:11 ` Laurent Pinchart
2009-10-15 21:37 ` Hans Verkuil
2009-10-16 7:36 ` Sakari Ailus
2009-10-16 8:24 ` Laurent Pinchart
2009-10-16 12:34 ` Sakari Ailus [this message]
2009-10-16 12:41 ` Laurent Pinchart
2009-10-16 12:45 ` Sakari Ailus
2009-10-16 8:27 ` Hans Verkuil
2009-10-16 8:55 ` Sakari Ailus
2009-10-16 9:06 ` Laurent Pinchart
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=4AD86854.8060803@maxwell.research.nokia.com \
--to=sakari.ailus@maxwell.research.nokia.com \
--cc=david.cohen@nokia.com \
--cc=gururaj.nagendra@intel.com \
--cc=hverkuil@xs4all.nl \
--cc=iivanov@mm-sol.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=vimarsh.zutshi@nokia.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