History

[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.

Kamil Debski committed 13 years ago

Commit 53bf0f41 parent 9776e172 files · +7 −0Browse files

Unified · Split

2 files
  1. Documentation/DocBook/media/v4l/io.xml +6 −0
  2. include/uapi/linux/videodev2.h +1 −0
Documentation/DocBook/media/v4l/io.xml+6−0
@@ -1145,6 +1145,12 @@ in which case caches have not been used.</entry> · 1144 unmodified lines
1145 same clock outside V4L2, use1145 same clock outside V4L2, use
1146 <function>clock_gettime(2)</function> .</entry>1146 <function>clock_gettime(2)</function> .</entry>
1147 </row>1147 </row>
1148 <row>
1149 <entry><constant>V4L2_BUF_FLAG_TIMESTAMP_COPY</constant></entry>
1150 <entry>0x4000</entry>
1151 <entry>The CAPTURE buffer timestamp has been taken from the
1152 corresponding OUTPUT buffer. This flag applies only to mem2mem devices.</entry>
1153 </row>
1148 </tbody>1154 </tbody>
1149 </tgroup>1155 </tgroup>
1150 </table>1156 </table>
include/uapi/linux/videodev2.h+1−0
@@ -705,6 +705,7 @@ struct v4l2_buffer { · 704 unmodified lines
705#define V4L2_BUF_FLAG_TIMESTAMP_MASK 0xe000705#define V4L2_BUF_FLAG_TIMESTAMP_MASK 0xe000
706#define V4L2_BUF_FLAG_TIMESTAMP_UNKNOWN 0x0000706#define V4L2_BUF_FLAG_TIMESTAMP_UNKNOWN 0x0000
707#define V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC 0x2000707#define V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC 0x2000
708#define V4L2_BUF_FLAG_TIMESTAMP_COPY 0x4000
708 709
709/**710/**
710 * struct v4l2_exportbuffer - export of video buffer as DMABUF file descriptor711 * 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