Define video buffer flag for the COPY timestamp. In this case the timestamp value is copied from the OUTPUT to the corresponding CAPTURE buffer.
Unified · Split
| @@ -1145,6 +1145,12 @@ in which case caches have not been used.</entry> · 1144 unmodified lines | |||
| 1145 | same clock outside V4L2, use | 1145 | 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> |
| @@ -705,6 +705,7 @@ struct v4l2_buffer { · 704 unmodified lines | |||
| 705 | #define V4L2_BUF_FLAG_TIMESTAMP_MASK 0xe000 | 705 | #define V4L2_BUF_FLAG_TIMESTAMP_MASK 0xe000 |
| 706 | #define V4L2_BUF_FLAG_TIMESTAMP_UNKNOWN 0x0000 | 706 | #define V4L2_BUF_FLAG_TIMESTAMP_UNKNOWN 0x0000 |
| 707 | #define V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC 0x2000 | 707 | #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 descriptor | 711 | * struct v4l2_exportbuffer - export of video buffer as DMABUF file descriptor |