History

[media] v4l: Define video buffer flags for timestamp types

Define video buffer flags for different timestamp types. Everything up to now have used either realtime clock or monotonic clock, without a way to tell which clock the timestamp was taken from. Also document that the clock source of the timestamp in the timestamp field depends on buffer flags. [mchehab@redhat.com: fix a few wrong references to Kernel 3.8 - as this patch is meant for 3.9] Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com>

Sakari Ailus committed 14 years ago

Commit 1202ecd1 parent 1b590134 files · +69 −12Browse files

Showing the changes to include/uapi (1 of 4 files). Show all

Unified · Split

include/uapi/linux/videodev2.h+4−0
@@ -701,6 +701,10 @@ struct v4l2_buffer { · 700 unmodified lines
701/* Cache handling flags */701/* Cache handling flags */
702#define V4L2_BUF_FLAG_NO_CACHE_INVALIDATE 0x0800702#define V4L2_BUF_FLAG_NO_CACHE_INVALIDATE 0x0800
703#define V4L2_BUF_FLAG_NO_CACHE_CLEAN 0x1000703#define V4L2_BUF_FLAG_NO_CACHE_CLEAN 0x1000
704/* Timestamp type */
705#define V4L2_BUF_FLAG_TIMESTAMP_MASK 0xe000
706#define V4L2_BUF_FLAG_TIMESTAMP_UNKNOWN 0x0000
707#define V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC 0x2000
704 708
705/**709/**
706 * struct v4l2_exportbuffer - export of video buffer as DMABUF file descriptor710 * struct v4l2_exportbuffer - export of video buffer as DMABUF file descriptor

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t