aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Seiderer <ps.report@gmx.net>2015-05-04 06:51:05 -0400
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-05-12 02:51:39 -0400
commitdc199241624a2fd85d9b0d8303babd60feadd0e6 (patch)
treef24dee9bfc532cc999e3d02c5754109f5f13dd90
parent8cee396bfa77ce3a2e5fe48f597206c1cd547f9c (diff)
[media] videodev2: Add V4L2_BUF_FLAG_LAST
This v4l2_buffer flag can be used by drivers to mark a capture buffer as the last generated buffer, for example after a V4L2_DEC_CMD_STOP command was issued. Signed-off-by: Peter Seiderer <ps.report@gmx.net> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Kamil Debski <k.debski@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rw-r--r--include/trace/events/v4l2.h3
-rw-r--r--include/uapi/linux/videodev2.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/include/trace/events/v4l2.h b/include/trace/events/v4l2.h
index 20112170ff11..89d0497c058a 100644
--- a/include/trace/events/v4l2.h
+++ b/include/trace/events/v4l2.h
@@ -83,7 +83,8 @@ SHOW_FIELD
83 { V4L2_BUF_FLAG_TIMESTAMP_MASK, "TIMESTAMP_MASK" }, \ 83 { V4L2_BUF_FLAG_TIMESTAMP_MASK, "TIMESTAMP_MASK" }, \
84 { V4L2_BUF_FLAG_TIMESTAMP_UNKNOWN, "TIMESTAMP_UNKNOWN" }, \ 84 { V4L2_BUF_FLAG_TIMESTAMP_UNKNOWN, "TIMESTAMP_UNKNOWN" }, \
85 { V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC, "TIMESTAMP_MONOTONIC" }, \ 85 { V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC, "TIMESTAMP_MONOTONIC" }, \
86 { V4L2_BUF_FLAG_TIMESTAMP_COPY, "TIMESTAMP_COPY" }) 86 { V4L2_BUF_FLAG_TIMESTAMP_COPY, "TIMESTAMP_COPY" }, \
87 { V4L2_BUF_FLAG_LAST, "LAST" })
87 88
88#define show_timecode_flags(flags) \ 89#define show_timecode_flags(flags) \
89 __print_flags(flags, "|", \ 90 __print_flags(flags, "|", \
diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h
index fa376f7666ba..0f5a4673f3e4 100644
--- a/include/uapi/linux/videodev2.h
+++ b/include/uapi/linux/videodev2.h
@@ -810,6 +810,8 @@ struct v4l2_buffer {
810#define V4L2_BUF_FLAG_TSTAMP_SRC_MASK 0x00070000 810#define V4L2_BUF_FLAG_TSTAMP_SRC_MASK 0x00070000
811#define V4L2_BUF_FLAG_TSTAMP_SRC_EOF 0x00000000 811#define V4L2_BUF_FLAG_TSTAMP_SRC_EOF 0x00000000
812#define V4L2_BUF_FLAG_TSTAMP_SRC_SOE 0x00010000 812#define V4L2_BUF_FLAG_TSTAMP_SRC_SOE 0x00010000
813/* mem2mem encoder/decoder */
814#define V4L2_BUF_FLAG_LAST 0x00100000
813 815
814/** 816/**
815 * struct v4l2_exportbuffer - export of video buffer as DMABUF file descriptor 817 * struct v4l2_exportbuffer - export of video buffer as DMABUF file descriptor