upstream: [media] v4l: Add timestamp source flags, mask and document them
authorSakari Ailus <sakari.ailus@iki.fi>
Sun, 25 Aug 2013 20:57:03 +0000 (17:57 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:56:14 +0000 (11:56 +0900)
commitb85d6bd03b978c3a55b06a83003cf46fede4d158
tree86d701d6459ed43f66a18d24294d9517edf88a37
parent75a3ec670fb88e44270bd6d144200908b5add1f5
upstream: [media] v4l: Add timestamp source flags, mask and document them

Some devices do not produce timestamps that correspond to the end of the
frame. The user space should be informed on the matter. This patch achieves
that by adding buffer flags (and a mask) for timestamp sources since more
possible timestamping points are expected than just two.

A three-bit mask is defined (V4L2_BUF_FLAG_TSTAMP_SRC_MASK) and two of the
eight possible values is are defined V4L2_BUF_FLAG_TSTAMP_SRC_EOF for end of
frame (value zero) V4L2_BUF_FLAG_TSTAMP_SRC_SOE for start of exposure (next
value).

Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Acked-by: Kamil Debski <k.debski@samsung.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Documentation/DocBook/media/v4l/io.xml
drivers/media/v4l2-core/videobuf2-core.c
include/media/videobuf2-core.h
include/uapi/linux/videodev2.h