mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 08:49:45 +00:00
[media] v4l: Define video buffer flag for the COPY timestamp type
Define video buffer flag for the COPY timestamp. In this case the timestamp value is copied from the OUTPUT to the corresponding CAPTURE buffer. 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>
This commit is contained in:
parent
9776e17189
commit
53bf0f446b
2 changed files with 7 additions and 0 deletions
|
@ -1145,6 +1145,12 @@ in which case caches have not been used.</entry>
|
||||||
same clock outside V4L2, use
|
same clock outside V4L2, use
|
||||||
<function>clock_gettime(2)</function> .</entry>
|
<function>clock_gettime(2)</function> .</entry>
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry><constant>V4L2_BUF_FLAG_TIMESTAMP_COPY</constant></entry>
|
||||||
|
<entry>0x4000</entry>
|
||||||
|
<entry>The CAPTURE buffer timestamp has been taken from the
|
||||||
|
corresponding OUTPUT buffer. This flag applies only to mem2mem devices.</entry>
|
||||||
|
</row>
|
||||||
</tbody>
|
</tbody>
|
||||||
</tgroup>
|
</tgroup>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -705,6 +705,7 @@ struct v4l2_buffer {
|
||||||
#define V4L2_BUF_FLAG_TIMESTAMP_MASK 0xe000
|
#define V4L2_BUF_FLAG_TIMESTAMP_MASK 0xe000
|
||||||
#define V4L2_BUF_FLAG_TIMESTAMP_UNKNOWN 0x0000
|
#define V4L2_BUF_FLAG_TIMESTAMP_UNKNOWN 0x0000
|
||||||
#define V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC 0x2000
|
#define V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC 0x2000
|
||||||
|
#define V4L2_BUF_FLAG_TIMESTAMP_COPY 0x4000
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* struct v4l2_exportbuffer - export of video buffer as DMABUF file descriptor
|
* struct v4l2_exportbuffer - export of video buffer as DMABUF file descriptor
|
||||||
|
|
Loading…
Reference in a new issue