Re: [PATCH v5 2/5] [media] videodev2: Add V4L2_BUF_FLAG_LAST
On 04/20/2015 10:28 AM, Philipp Zabel wrote: From: Peter Seiderer ps.rep...@gmx.net 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.rep...@gmx.net Signed-off-by: Philipp Zabel p.za...@pengutronix.de Acked-by: Hans Verkuil hans.verk...@cisco.com Thanks! Hans --- Changes since v4: - Split out DocBook changes into a separate patch. --- include/trace/events/v4l2.h| 3 ++- include/uapi/linux/videodev2.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/trace/events/v4l2.h b/include/trace/events/v4l2.h index b9bb1f2..32c33aa 100644 --- a/include/trace/events/v4l2.h +++ b/include/trace/events/v4l2.h @@ -58,7 +58,8 @@ { V4L2_BUF_FLAG_TIMESTAMP_MASK, TIMESTAMP_MASK }, \ { V4L2_BUF_FLAG_TIMESTAMP_UNKNOWN, TIMESTAMP_UNKNOWN }, \ { V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC, TIMESTAMP_MONOTONIC }, \ - { V4L2_BUF_FLAG_TIMESTAMP_COPY, TIMESTAMP_COPY }) + { V4L2_BUF_FLAG_TIMESTAMP_COPY, TIMESTAMP_COPY }, \ + { V4L2_BUF_FLAG_LAST,LAST }) #define show_timecode_flags(flags) \ __print_flags(flags, |, \ diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index fbdc360..c642c10 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -809,6 +809,8 @@ struct v4l2_buffer { #define V4L2_BUF_FLAG_TSTAMP_SRC_MASK0x0007 #define V4L2_BUF_FLAG_TSTAMP_SRC_EOF 0x #define V4L2_BUF_FLAG_TSTAMP_SRC_SOE 0x0001 +/* mem2mem encoder/decoder */ +#define V4L2_BUF_FLAG_LAST 0x0010 /** * struct v4l2_exportbuffer - export of video buffer as DMABUF file descriptor -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH v5 2/5] [media] videodev2: Add V4L2_BUF_FLAG_LAST
From: Peter Seiderer ps.rep...@gmx.net 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.rep...@gmx.net Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- Changes since v4: - Split out DocBook changes into a separate patch. --- include/trace/events/v4l2.h| 3 ++- include/uapi/linux/videodev2.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/trace/events/v4l2.h b/include/trace/events/v4l2.h index b9bb1f2..32c33aa 100644 --- a/include/trace/events/v4l2.h +++ b/include/trace/events/v4l2.h @@ -58,7 +58,8 @@ { V4L2_BUF_FLAG_TIMESTAMP_MASK, TIMESTAMP_MASK }, \ { V4L2_BUF_FLAG_TIMESTAMP_UNKNOWN, TIMESTAMP_UNKNOWN }, \ { V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC, TIMESTAMP_MONOTONIC }, \ - { V4L2_BUF_FLAG_TIMESTAMP_COPY, TIMESTAMP_COPY }) + { V4L2_BUF_FLAG_TIMESTAMP_COPY, TIMESTAMP_COPY }, \ + { V4L2_BUF_FLAG_LAST,LAST }) #define show_timecode_flags(flags) \ __print_flags(flags, |, \ diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index fbdc360..c642c10 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -809,6 +809,8 @@ struct v4l2_buffer { #define V4L2_BUF_FLAG_TSTAMP_SRC_MASK 0x0007 #define V4L2_BUF_FLAG_TSTAMP_SRC_EOF 0x #define V4L2_BUF_FLAG_TSTAMP_SRC_SOE 0x0001 +/* mem2mem encoder/decoder */ +#define V4L2_BUF_FLAG_LAST 0x0010 /** * struct v4l2_exportbuffer - export of video buffer as DMABUF file descriptor -- 2.1.4 -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html