Hi Paulo,

On Monday 30 November 2009 17:49:24 Paulo Assis wrote:
> Hi,
> using ktime_get (hrtimer.h) should provide a nice monotonic high res
> timer as a replacement for do_gettimeofday:
> 
> ktime_to_timeval (ktime_get()) should return the timeval struct for
> buf->buf.timestamp.
> 
> This seems the best aproach for video frame time-stamping; it's
> monotonic and it has a more than adequate resolution.

While I agree with you, we have a problem here. The V4L2 specification 
mandates the use of gettimeofday() to fill the v4l2_buffer::timestamp field:

http://www.linuxtv.org/downloads/video4linux/API/V4L2_API/spec-
single/v4l2.html#v4l2-buffer

I'll discuss this with core V4L2 developers.

-- 
Regards,

Laurent Pinchart
_______________________________________________
Linux-uvc-devel mailing list
Linux-uvc-devel@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to