linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Monotonic timestamps
@ 2012-11-15 22:06 Sakari Ailus
  2012-11-15 22:06 ` [PATCH 1/4] v4l: Define video buffer flags for timestamp types Sakari Ailus
                   ` (3 more replies)
  0 siblings, 4 replies; 22+ messages in thread
From: Sakari Ailus @ 2012-11-15 22:06 UTC (permalink / raw)
  To: linux-media; +Cc: hverkuil, laurent.pinchart

Hi all,

Here's my first monotonic timestamps patch series. Since the RFC series,
I've corrected a warning in drivers/media/usb/s2255/s2255drv.c that was
caused by an unused variable.

All affected drivers compile without warnings. I've tested this on the OMAP
3 ISP:

02:11:34 sailus@peruna [~]yavta -c1 -f SGBRG10 -F/tmp/foo -s 2864x2048 /dev/video1
Device /dev/video1 opened.
Device `OMAP3 ISP CSI2a output' on `media' is a video capture device.
Video format set: SGBRG10 (30314247) 2864x2048 (stride 5728) buffer size 11730944
Video format: SGBRG10 (30314247) 2864x2048 (stride 5728) buffer size 11730944
4 buffers requested.
length: 11730944 offset: 0 timestamp type: monotonic
Buffer 0 mapped at address 0xb62cb000.
length: 11730944 offset: 11730944 timestamp type: monotonic
Buffer 1 mapped at address 0xb579b000.
length: 11730944 offset: 23461888 timestamp type: monotonic
Buffer 2 mapped at address 0xb4c6b000.
length: 11730944 offset: 35192832 timestamp type: monotonic
Buffer 3 mapped at address 0xb413b000.
0 (0) [-] 0 11730944 bytes 310.791595 310.792083 13.331 fps
Captured 1 frames in 0.075500 seconds (13.244948 fps, 155375737.438942 B/s).
4 buffers released.

What the patches do is that they

1. Add new buffer flags for timestamp type, and a mask,
2. convert all the drivers to use monotonic timestamps and
3. tell that all drivers are using monotonic timestamps.

The assumption is that all drivers will use monotonic timestamps, especially
the timestamp type is set in videobuf(2) in drivers that use it. This could
be changed later on if we wish to make it selectable; in this case videobuf2
would need to be told, and the helper function v4l2_get_timestamp() would
need to be put to videobuf2 instead.

Comments and questions are very welcome!

Kind regards,

-- 
Sakari Ailus
e-mail: sakari.ailus@iki.fi	XMPP: sailus@retiisi.org.uk

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2013-01-10  0:25 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-15 22:06 [PATCH 0/4] Monotonic timestamps Sakari Ailus
2012-11-15 22:06 ` [PATCH 1/4] v4l: Define video buffer flags for timestamp types Sakari Ailus
2012-11-16 13:51   ` Hans Verkuil
2012-11-16 15:20     ` Sakari Ailus
2012-11-16 15:58       ` Hans Verkuil
2012-11-16 20:49         ` [PATCH v1.1 " Sakari Ailus
2012-11-21 19:13           ` [PATCH v1.2 " Sakari Ailus
2012-11-21 22:53             ` Hans Verkuil
2012-11-21 23:59               ` Sakari Ailus
2012-11-27 16:04                 ` Laurent Pinchart
2012-12-02 20:53                   ` Sakari Ailus
2013-01-10  0:27                     ` Laurent Pinchart
2012-11-15 22:06 ` [PATCH 2/4] v4l: Helper function for obtaining timestamps Sakari Ailus
2012-11-16 13:52   ` Hans Verkuil
2012-11-15 22:06 ` [PATCH 3/4] v4l: Convert drivers to use monotonic timestamps Sakari Ailus
2012-11-16 13:54   ` Hans Verkuil
2012-11-15 22:06 ` [PATCH 4/4] v4l: Tell user space we're using " Sakari Ailus
2012-11-16 13:55   ` Hans Verkuil
2012-12-17 11:19     ` Kamil Debski
2012-12-17 11:34       ` 'Sakari Ailus'
2012-12-17 11:48         ` Kamil Debski
2013-01-05 20:09           ` Sakari Ailus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).