Re: [RFC] Timestamps and V4L2

2012-10-24 Thread Laurent Pinchart
Hi Chris, On Monday 15 October 2012 18:25:32 Chris MacGregor wrote: On 10/15/2012 12:59 PM, Sakari Ailus wrote: On Mon, Oct 15, 2012 at 11:53:56AM -0700, Chris MacGregor wrote: On 10/15/2012 11:45 AM, Laurent Pinchart wrote: On Monday 15 October 2012 19:05:49 Sakari Ailus wrote: Hi all,

Re: [RFC] Timestamps and V4L2

2012-10-16 Thread Hans Verkuil
On Mon October 15 2012 20:45:45 Laurent Pinchart wrote: Hi Sakari, On Monday 15 October 2012 19:05:49 Sakari Ailus wrote: Hi all, As a summar from the discussion, I think we have reached the following conclusion. Please say if you agree or disagree with what's below. :-) - The

Re: [RFC] Timestamps and V4L2

2012-10-15 Thread Sakari Ailus
Hi all, As a summar from the discussion, I think we have reached the following conclusion. Please say if you agree or disagree with what's below. :-) - The drivers will be moved to use monotonic timestamps for video buffers. - The user space will learn about the type of the timestamp through

Re: [RFC] Timestamps and V4L2

2012-10-15 Thread Laurent Pinchart
Hi Sakari, On Monday 15 October 2012 19:05:49 Sakari Ailus wrote: Hi all, As a summar from the discussion, I think we have reached the following conclusion. Please say if you agree or disagree with what's below. :-) - The drivers will be moved to use monotonic timestamps for video

Re: [RFC] Timestamps and V4L2

2012-10-15 Thread Chris MacGregor
Hi, all. On 10/15/2012 11:45 AM, Laurent Pinchart wrote: Hi Sakari, On Monday 15 October 2012 19:05:49 Sakari Ailus wrote: Hi all, As a summar from the discussion, I think we have reached the following conclusion. Please say if you agree or disagree with what's below. :-) - The drivers will

Re: [RFC] Timestamps and V4L2

2012-10-15 Thread Sakari Ailus
Hi Chris, On Mon, Oct 15, 2012 at 11:53:56AM -0700, Chris MacGregor wrote: On 10/15/2012 11:45 AM, Laurent Pinchart wrote: Hi Sakari, On Monday 15 October 2012 19:05:49 Sakari Ailus wrote: Hi all, As a summar from the discussion, I think we have reached the following conclusion. Please

Re: [RFC] Timestamps and V4L2

2012-10-15 Thread Rémi Denis-Courmont
Le lundi 15 octobre 2012 22:59:06, Sakari Ailus a écrit : For the latter the realtime clock fits poorly to begin with: it jumps around e.g. when the daylight saving time changes. Wrong. The real time clock is always UTC. It is not subject to time zone offsets. It only jumps when the clock is

Re: [RFC] Timestamps and V4L2

2012-10-15 Thread Chris MacGregor
Hi, Sakari. On 10/15/2012 12:59 PM, Sakari Ailus wrote: Hi Chris, On Mon, Oct 15, 2012 at 11:53:56AM -0700, Chris MacGregor wrote: On 10/15/2012 11:45 AM, Laurent Pinchart wrote: Hi Sakari, On Monday 15 October 2012 19:05:49 Sakari Ailus wrote: Hi all, As a summar from the discussion, I

Re: [RFC] Timestamps and V4L2

2012-09-27 Thread Laurent Pinchart
Hi Sylwester, On Thursday 27 September 2012 00:30:49 Sylwester Nawrocki wrote: On 09/25/2012 02:35 AM, Laurent Pinchart wrote: Does the clock type need to be selectable for mem-to-mem devices ? Do device- specific timestamps make sense there ? I'd like to clarify one thing here, i.e. if

Re: [RFC] Timestamps and V4L2

2012-09-27 Thread Laurent Pinchart
Hi Sakari, On Wednesday 26 September 2012 22:17:22 Sakari Ailus wrote: Laurent Pinchart wrote: On Tuesday 25 September 2012 23:12:00 Sakari Ailus wrote: Hans Verkuil wrote: On Tue 25 September 2012 12:48:01 Laurent Pinchart wrote: On Tuesday 25 September 2012 08:47:45 Hans Verkuil wrote:

Re: [RFC] Timestamps and V4L2

2012-09-26 Thread Laurent Pinchart
Hi Sakari, On Tuesday 25 September 2012 23:12:00 Sakari Ailus wrote: Hans Verkuil wrote: On Tue 25 September 2012 12:48:01 Laurent Pinchart wrote: On Tuesday 25 September 2012 08:47:45 Hans Verkuil wrote: On Tue September 25 2012 02:00:55 Laurent Pinchart wrote: BTW, I think we should

Re: [RFC] Timestamps and V4L2

2012-09-26 Thread Sakari Ailus
Hi Laurent, Laurent Pinchart wrote: On Tuesday 25 September 2012 23:12:00 Sakari Ailus wrote: Hans Verkuil wrote: On Tue 25 September 2012 12:48:01 Laurent Pinchart wrote: On Tuesday 25 September 2012 08:47:45 Hans Verkuil wrote: On Tue September 25 2012 02:00:55 Laurent Pinchart wrote: BTW,

Re: [RFC] Timestamps and V4L2

2012-09-26 Thread Sylwester Nawrocki
Hi Laurent, On 09/25/2012 02:35 AM, Laurent Pinchart wrote: Does the clock type need to be selectable for mem-to-mem devices ? Do device- specific timestamps make sense there ? I'd like to clarify one thing here, i.e. if we select device-specific timestamps how should the

Re: [RFC] Timestamps and V4L2

2012-09-25 Thread Hans Verkuil
On Tue September 25 2012 02:00:55 Laurent Pinchart wrote: Hi Hans, On Friday 21 September 2012 11:33:24 Hans Verkuil wrote: On Thu September 20 2012 22:21:22 Sakari Ailus wrote: Hi all, This RFC intends to summarise and further the recent discussion on linux-media regarding

Re: [RFC] Timestamps and V4L2

2012-09-25 Thread Hans Verkuil
On Mon September 24 2012 22:11:50 Rémi Denis-Courmont wrote: Le dimanche 23 septembre 2012 14:43:42, Sakari Ailus a écrit : I think I like this idea best, it's relatively simple (even with adding support for reporting flags in VIDIOC_QUERYBUF) for the purpose. If we ever need the

Re: [RFC] Timestamps and V4L2

2012-09-25 Thread Laurent Pinchart
Hi Hans, On Tuesday 25 September 2012 08:47:45 Hans Verkuil wrote: On Tue September 25 2012 02:00:55 Laurent Pinchart wrote: On Friday 21 September 2012 11:33:24 Hans Verkuil wrote: On Thu September 20 2012 22:21:22 Sakari Ailus wrote: Hi all, This RFC intends to summarise and

Re: [RFC] Timestamps and V4L2

2012-09-25 Thread Hans Verkuil
On Tue 25 September 2012 12:48:01 Laurent Pinchart wrote: Hi Hans, On Tuesday 25 September 2012 08:47:45 Hans Verkuil wrote: On Tue September 25 2012 02:00:55 Laurent Pinchart wrote: BTW, I think we should also fix the description of the timestamp in the spec. Currently it says: For

Re: [RFC] Timestamps and V4L2

2012-09-25 Thread Laurent Pinchart
Hi Hans, On Tuesday 25 September 2012 12:54:34 Hans Verkuil wrote: On Tue 25 September 2012 12:48:01 Laurent Pinchart wrote: On Tuesday 25 September 2012 08:47:45 Hans Verkuil wrote: On Tue September 25 2012 02:00:55 Laurent Pinchart wrote: BTW, I think we should also fix the description

RE: Re: [RFC] Timestamps and V4L2

2012-09-25 Thread Kamil Debski
Hi, Sorry for such a long absence on the mailing list after the Mini summit, I was out of office. I see that the discussion about timestamps has already started, so I would like to add some comments. Especially about mem-to-mem devices. Subject: Re: [RFC] Timestamps and V4L2 Date: Tue, 25 Sep

Re: [RFC] Timestamps and V4L2

2012-09-25 Thread Sakari Ailus
Hi Hans and Laurent, Hans Verkuil wrote: ... Using v4l2_buffer flags to report the clock --- By defining flags like this: V4L2_BUF_FLAG_CLOCK_MASK0x7000 /* Possible Clocks */ V4L2_BUF_FLAG_CLOCK_UNKNOWN 0x /* system or monotonic, we don't

Re: [RFC] Timestamps and V4L2

2012-09-25 Thread Sakari Ailus
Hi Hans, Hans Verkuil wrote: On Tue 25 September 2012 12:48:01 Laurent Pinchart wrote: Hi Hans, On Tuesday 25 September 2012 08:47:45 Hans Verkuil wrote: On Tue September 25 2012 02:00:55 Laurent Pinchart wrote: BTW, I think we should also fix the description of the timestamp in the spec.

Re: [RFC] Timestamps and V4L2

2012-09-25 Thread Sylwester Nawrocki
Hi Laurent, On 09/25/2012 02:34 AM, Laurent Pinchart wrote: On Saturday 22 September 2012 19:12:52 Sylwester Nawrocki wrote: On 09/22/2012 02:38 PM, Sakari Ailus wrote: You are missing one other option: Using v4l2_buffer flags to report the clock ---

Re: [RFC] Timestamps and V4L2

2012-09-24 Thread Hans Verkuil
On Sun September 23 2012 15:07:24 Sakari Ailus wrote: Hi Hans, Hans Verkuil wrote: On Sat September 22 2012 14:38:07 Sakari Ailus wrote: Hi Hans, Thanks for the comments. Hans Verkuil wrote: On Thu September 20 2012 22:21:22 Sakari Ailus wrote: ... Capability flag for

Re: [RFC] Timestamps and V4L2

2012-09-24 Thread Rémi Denis-Courmont
Le dimanche 23 septembre 2012 14:43:42, Sakari Ailus a écrit : I think I like this idea best, it's relatively simple (even with adding support for reporting flags in VIDIOC_QUERYBUF) for the purpose. If we ever need the clock selection API I would vote for an IOCTL. The controls API is

Re: [RFC] Timestamps and V4L2

2012-09-24 Thread Laurent Pinchart
On Friday 21 September 2012 11:33:24 Hans Verkuil wrote: On Thu September 20 2012 22:21:22 Sakari Ailus wrote: Hi all, This RFC intends to summarise and further the recent discussion on linux-media regarding the proposed changes of timestamping V4L2 buffers. The problem

Re: [RFC] Timestamps and V4L2

2012-09-24 Thread Laurent Pinchart
Hi Hans, On Friday 21 September 2012 11:33:24 Hans Verkuil wrote: On Thu September 20 2012 22:21:22 Sakari Ailus wrote: Hi all, This RFC intends to summarise and further the recent discussion on linux-media regarding the proposed changes of timestamping V4L2 buffers. The

Re: [RFC] Timestamps and V4L2

2012-09-24 Thread Laurent Pinchart
Hi Hans, On Sunday 23 September 2012 11:18:45 Hans Verkuil wrote: On Sat September 22 2012 14:38:07 Sakari Ailus wrote: Hans Verkuil wrote: On Thu September 20 2012 22:21:22 Sakari Ailus wrote: Hi all, This RFC intends to summarise and further the recent discussion on

Re: [RFC] Timestamps and V4L2

2012-09-24 Thread Laurent Pinchart
Hi Sylwester, On Saturday 22 September 2012 19:12:52 Sylwester Nawrocki wrote: On 09/22/2012 02:38 PM, Sakari Ailus wrote: You are missing one other option: Using v4l2_buffer flags to report the clock --- By defining flags like this:

Re: [RFC] Timestamps and V4L2

2012-09-24 Thread Laurent Pinchart
Hi Sylwester, On Sunday 23 September 2012 20:40:36 Sylwester Nawrocki wrote: On 09/22/2012 10:28 PM, Daniel Glöckner wrote: On Sat, Sep 22, 2012 at 07:12:52PM +0200, Sylwester Nawrocki wrote: If we ever need the clock selection API I would vote for an IOCTL. The controls API is a bad

Re: [RFC] Timestamps and V4L2

2012-09-23 Thread Hans Verkuil
On Sat September 22 2012 14:38:07 Sakari Ailus wrote: Hi Hans, Thanks for the comments. Hans Verkuil wrote: On Thu September 20 2012 22:21:22 Sakari Ailus wrote: Hi all, This RFC intends to summarise and further the recent discussion on linux-media regarding the proposed changes

Re: [RFC] Timestamps and V4L2

2012-09-23 Thread Sakari Ailus
Hi Sylwester, On Sat, Sep 22, 2012 at 07:12:52PM +0200, Sylwester Nawrocki wrote: On 09/22/2012 02:38 PM, Sakari Ailus wrote: You are missing one other option: Using v4l2_buffer flags to report the clock --- By defining flags like this:

Re: [RFC] Timestamps and V4L2

2012-09-23 Thread Sakari Ailus
Hi Hans, Hans Verkuil wrote: On Sat September 22 2012 14:38:07 Sakari Ailus wrote: Hi Hans, Thanks for the comments. Hans Verkuil wrote: On Thu September 20 2012 22:21:22 Sakari Ailus wrote: ... Capability flag for monotonic timestamps A

Re: [RFC] Timestamps and V4L2

2012-09-23 Thread Sylwester Nawrocki
On 09/22/2012 10:28 PM, Daniel Glöckner wrote: On Sat, Sep 22, 2012 at 07:12:52PM +0200, Sylwester Nawrocki wrote: If we ever need the clock selection API I would vote for an IOCTL. The controls API is a bad choice for something such fundamental as type of clock for buffer timestamping IMHO.

Re: [RFC] Timestamps and V4L2

2012-09-22 Thread Sakari Ailus
Hi Hans, Thanks for the comments. Hans Verkuil wrote: On Thu September 20 2012 22:21:22 Sakari Ailus wrote: Hi all, This RFC intends to summarise and further the recent discussion on linux-media regarding the proposed changes of timestamping V4L2 buffers. The problem === The V4L2

Re: [RFC] Timestamps and V4L2

2012-09-22 Thread Sylwester Nawrocki
On 09/22/2012 02:38 PM, Sakari Ailus wrote: You are missing one other option: Using v4l2_buffer flags to report the clock --- By defining flags like this: V4L2_BUF_FLAG_CLOCK_MASK 0x7000 /* Possible Clocks */ V4L2_BUF_FLAG_CLOCK_UNKNOWN 0x /*

Re: [RFC] Timestamps and V4L2

2012-09-22 Thread Daniel Glöckner
On Sat, Sep 22, 2012 at 07:12:52PM +0200, Sylwester Nawrocki wrote: If we ever need the clock selection API I would vote for an IOCTL. The controls API is a bad choice for something such fundamental as type of clock for buffer timestamping IMHO. Let's stop making the controls API a dumping

Re: [RFC] Timestamps and V4L2

2012-09-21 Thread Christian Gmeiner
2012/9/20 Sakari Ailus sakari.ai...@iki.fi: Hi all, This RFC intends to summarise and further the recent discussion on linux-media regarding the proposed changes of timestamping V4L2 buffers. The problem === The V4L2 has long used realtime timestamps (such as

Re: [RFC] Timestamps and V4L2

2012-09-21 Thread Hans Verkuil
On Thu September 20 2012 22:21:22 Sakari Ailus wrote: Hi all, This RFC intends to summarise and further the recent discussion on linux-media regarding the proposed changes of timestamping V4L2 buffers. The problem === The V4L2 has long used realtime timestamps (such as

[RFC] Timestamps and V4L2

2012-09-20 Thread Sakari Ailus
Hi all, This RFC intends to summarise and further the recent discussion on linux-media regarding the proposed changes of timestamping V4L2 buffers. The problem === The V4L2 has long used realtime timestamps (such as clock_gettime(CLOCK_REALTIME, ...)) to stamp the video buffers before

Re: [RFC] Timestamps and V4L2

2012-09-20 Thread Rémi Denis-Courmont
Le jeudi 20 septembre 2012 23:21:22, Sakari Ailus a écrit : The problem === The V4L2 has long used realtime timestamps (such as clock_gettime(CLOCK_REALTIME, ...)) to stamp the video buffers before handing them over to the user. This has been found problematic in associating the