From: Sakari Ailus <sakari.ailus@iki.fi>
To: Kamil Debski <k.debski@samsung.com>
Cc: 'Hans Verkuil' <hverkuil@xs4all.nl>,
linux-media@vger.kernel.org, laurent.pinchart@ideasonboard.com,
Marek Szyprowski <m.szyprowski@samsung.com>
Subject: Re: [PATCH 4/4] v4l: Tell user space we're using monotonic timestamps
Date: Sat, 05 Jan 2013 22:09:42 +0200 [thread overview]
Message-ID: <50E88886.5020402@iki.fi> (raw)
In-Reply-To: <000201cddc4c$6cf1e5f0$46d5b1d0$%debski@samsung.com>
Hi Kamil,
On Mon, Dec 17, 2012 at 12:48:25PM +0100, Kamil Debski wrote:
> > From: 'Sakari Ailus' [mailto:sakari.ailus@iki.fi]
> > Sent: Monday, December 17, 2012 12:35 PM
> > Subject: Re: [PATCH 4/4] v4l: Tell user space we're using monotonic
> > timestamps
> >
> > Hi Kamil,
> >
> > On Mon, Dec 17, 2012 at 12:19:51PM +0100, Kamil Debski wrote:
> > ...
> > > > > @@ -367,7 +368,8 @@ static void __fill_v4l2_buffer(struct
> > > > > vb2_buffer
> > > > *vb, struct v4l2_buffer *b)
> > > > > /*
> > > > > * Clear any buffer state related flags.
> > > > > */
> > > > > - b->flags &= ~V4L2_BUFFER_STATE_FLAGS;
> > > > > + b->flags &= ~V4L2_BUFFER_MASK_FLAGS;
> > > > > + b->flags |= V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC;
> > >
> > > As far as I know, after __fill_v4l2_buffer is run driver has no means
> > > to change flags. Right?
> >
> > Correct. Querybuf, for example, is implemented in vb2 and no driver
> > involvement is required. And we sure don't want to add it. ;)
>
> I did not suggest that it should be added.
Good. :-)
> >
> > > So how should a driver, which is not using the MONOTONIC timestamps
> > > inform the user space about it?
> >
> > We currently support only monotonic timestamps. Support for different
> > kind of timestamps should be added to videobuf2 when they are needed.
> > The drivers would then be using a videobuf2 equivalent of
> > v4l2_get_timestamp().
>
> Just as I though.
> Mind you - v4l2_get_timestamp() does not apply if the timestamp are simply
> copied.
> This is the case of some of the mem2mem devices, remember?
Yeah. Makes sense.
I guess memory-to-memory devices (apart from possibly those dealing with
compressed data which contains the timestamps) should just copy the
timestamps from output to capture buffers.
--
Cheers,
Sakari Ailus
e-mail: sakari.ailus@iki.fi XMPP: sailus@retiisi.org.uk
prev parent reply other threads:[~2013-01-05 20:06 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
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=50E88886.5020402@iki.fi \
--to=sakari.ailus@iki.fi \
--cc=hverkuil@xs4all.nl \
--cc=k.debski@samsung.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=m.szyprowski@samsung.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.