[media] v4l: Define video buffer flag for the COPY timestamp type
authorKamil Debski <[email protected]>
Fri, 25 Jan 2013 09:29:56 +0000 (06:29 -0300)
committerMauro Carvalho Chehab <[email protected]>
Tue, 5 Mar 2013 17:49:50 +0000 (14:49 -0300)
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 <[email protected]>
Signed-off-by: Kyungmin Park <[email protected]>
Reviewed-by: Sylwester Nawrocki <[email protected]>
Acked-by: Hans Verkuil <[email protected]>
Signed-off-by: Sylwester Nawrocki <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Documentation/DocBook/media/v4l/io.xml
include/uapi/linux/videodev2.h

index e6c58559ca6b81468895dd7cdcfcc1092f440e5c..2c4c068dde83f26d723382e7c1765b9a4ef95653 100644 (file)
@@ -1145,6 +1145,12 @@ in which case caches have not been used.</entry>
            same clock outside V4L2, use
            <function>clock_gettime(2)</function> .</entry>
          </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>
       </tgroup>
     </table>
index 234d1d87091435e697d149c1da397bd9fc9b3f0e..b5f5cddcf1c3e6f92a3a5f266cfeae70b7d32ccb 100644 (file)
@@ -705,6 +705,7 @@ struct v4l2_buffer {
 #define V4L2_BUF_FLAG_TIMESTAMP_MASK           0xe000
 #define V4L2_BUF_FLAG_TIMESTAMP_UNKNOWN                0x0000
 #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