From: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: "Ivan T. Ivanov" <iivanov@mm-sol.com>,
"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
"Zutshi Vimarsh (Nokia-D-MSW/Helsinki)"
<vimarsh.zutshi@nokia.com>,
Cohen David Abraham <david.cohen@nokia.com>,
Guru Raj <gururaj.nagendra@intel.com>,
Mike Krufky <mkrufky@linuxtv.org>,
Devin Heitmueller <dheitmueller@kernellabs.com>,
Mauro Carvalho Chehab <mchehab@infradead.org>
Subject: Re: [RFC] Video events, version 2.2
Date: Wed, 11 Nov 2009 19:29:52 +0200 [thread overview]
Message-ID: <4AFAF490.6090507@maxwell.research.nokia.com> (raw)
In-Reply-To: <200911110819.59521.hverkuil@xs4all.nl>
Hans Verkuil wrote:
> On Saturday 24 October 2009 23:56:24 Sakari Ailus wrote:
>> Ivan T. Ivanov wrote:
>>> Hi Sakari,
>> Hi,
>>
>>> On Fri, 2009-10-23 at 13:18 +0300, Sakari Ailus wrote:
>> [clip]
>>>> struct v4l2_event {
>>>> __u32 count;
>>>> __u32 type;
>>>> __u32 sequence;
>>>> struct timeval timestamp;
>>> Can we use 'struct timespec' here. This will force actual
>>> implementation to use high-resolution source if possible,
>>> and remove hundreds gettimeofday() in user space, which
>>> should be used for event synchronization, with more
>>> power friendly clock_getres(CLOCK_MONOTONIC).
>> Good point. I originally picked timeval since it was used in
>> v4l2_buffer. The spec tells to use gettimeofday() for system time but
>> clock skewing is causes problems in video encoding.
>> clock_getres(CLOCK_MONOTONIC) is free of clock skewing and thus should
>> be more suitable for this kind of use.
>>
>> I also propose to use timespec instead of timeval.
>>
>
> Hi Sakari,
>
> What is that status of the event API? It is my impression that it is pretty
> much finished. Sakari, can you make a final 2.3 RFC? Then Guru can take over
> and start the implementation.
Ah.
One thing that I was still wondering was that are there use cases where
other kind of time stamps might be useful? I guess that when the V4L2
was designed no-one though of the need for time stamps of different
type. So are there use cases where gettimeofday() style stamps would
still be better?
In that case we might choose to leave it driver's decision to decide
what kind of timestamps to use and in that case application would just
have to know. The alternative would be to use union and a flag telling
what's in there.
--
Sakari Ailus
sakari.ailus@maxwell.research.nokia.com
next prev parent reply other threads:[~2009-11-11 17:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-23 10:18 [RFC] Video events, version 2.2 Sakari Ailus
2009-10-23 12:59 ` Ivan T. Ivanov
2009-10-24 21:56 ` Sakari Ailus
2009-11-11 7:19 ` Hans Verkuil
2009-11-11 17:29 ` Sakari Ailus [this message]
2009-11-11 17:59 ` Hans Verkuil
2009-11-13 15:29 ` Mauro Carvalho Chehab
2009-11-13 16:00 ` Hans Verkuil
2009-11-13 17:30 ` Eino-Ville Talvala
2009-11-13 19:05 ` Sakari Ailus
2009-11-14 20:11 ` Eino-Ville Talvala
2009-11-13 17:44 ` 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=4AFAF490.6090507@maxwell.research.nokia.com \
--to=sakari.ailus@maxwell.research.nokia.com \
--cc=david.cohen@nokia.com \
--cc=dheitmueller@kernellabs.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=mchehab@infradead.org \
--cc=mkrufky@linuxtv.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