diff options
author | Kamil Debski <k.debski@samsung.com> | 2013-01-25 04:29:57 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-05 12:53:05 -0500 |
commit | 6aa69f99b2ecc7f9b387fcf22d30e6601b58819f (patch) | |
tree | 4cfb60434345720acec8f88a754ffe7f6bf86176 /include/media | |
parent | 53bf0f446bc387eabdd535dca080789cc74607f4 (diff) |
[media] vb2: Add support for non monotonic timestamps
Not all drivers use monotonic timestamps. This patch adds a way to set the
timestamp type per every queue.
In addition, set proper timestamp type in drivers that I am sure that use
either MONOTONIC or COPY timestamps. Other drivers will correctly report
UNKNOWN timestamp type instead of assuming that all drivers use monotonic
timestamps.
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/videobuf2-core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/media/videobuf2-core.h b/include/media/videobuf2-core.h index 9cfd4ee9e56f..a2d427450780 100644 --- a/include/media/videobuf2-core.h +++ b/include/media/videobuf2-core.h | |||
@@ -326,6 +326,7 @@ struct vb2_queue { | |||
326 | const struct vb2_mem_ops *mem_ops; | 326 | const struct vb2_mem_ops *mem_ops; |
327 | void *drv_priv; | 327 | void *drv_priv; |
328 | unsigned int buf_struct_size; | 328 | unsigned int buf_struct_size; |
329 | u32 timestamp_type; | ||
329 | 330 | ||
330 | /* private: internal use only */ | 331 | /* private: internal use only */ |
331 | enum v4l2_memory memory; | 332 | enum v4l2_memory memory; |