[media] DocBook: document new v4l motion detection event
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 31 Jan 2014 09:22:58 +0000 (06:22 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Thu, 17 Jul 2014 14:57:29 +0000 (11:57 -0300)
Document the new motion detection event.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Documentation/DocBook/media/v4l/vidioc-dqevent.xml
Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml

index 820f86e8744b356ae5a59144e25d4ee5edf57900..f3767fb81eefc11b3f467989be854352c86a2d9d 100644 (file)
             <entry><structfield>frame_sync</structfield></entry>
            <entry>Event data for event V4L2_EVENT_FRAME_SYNC.</entry>
          </row>
+         <row>
+           <entry></entry>
+           <entry>&v4l2-event-motion-det;</entry>
+            <entry><structfield>motion_det</structfield></entry>
+           <entry>Event data for event V4L2_EVENT_MOTION_DET.</entry>
+         </row>
          <row>
            <entry></entry>
            <entry>__u8</entry>
       </tgroup>
     </table>
 
+    <table frame="none" pgwide="1" id="v4l2-event-motion-det">
+      <title>struct <structname>v4l2_event_motion_det</structname></title>
+      <tgroup cols="3">
+       &cs-str;
+       <tbody valign="top">
+         <row>
+           <entry>__u32</entry>
+           <entry><structfield>flags</structfield></entry>
+           <entry>
+             Currently only one flag is available: if <constant>V4L2_EVENT_MD_FL_HAVE_FRAME_SEQ</constant>
+             is set, then the <structfield>frame_sequence</structfield> field is valid,
+             otherwise that field should be ignored.
+           </entry>
+         </row>
+         <row>
+           <entry>__u32</entry>
+           <entry><structfield>frame_sequence</structfield></entry>
+           <entry>
+             The sequence number of the frame being received. Only valid if the
+             <constant>V4L2_EVENT_MD_FL_HAVE_FRAME_SEQ</constant> flag was set.
+           </entry>
+         </row>
+         <row>
+           <entry>__u32</entry>
+           <entry><structfield>region_mask</structfield></entry>
+           <entry>
+             The bitmask of the regions that reported motion. There is at least one
+             region. If this field is 0, then no motion was detected at all.
+             If there is no <constant>V4L2_CID_DETECT_MD_REGION_GRID</constant> control
+             (see <xref linkend="detect-controls" />) to assign a different region
+             to each cell in the motion detection grid, then that all cells
+             are automatically assigned to the default region 0.
+           </entry>
+         </row>
+       </tbody>
+      </tgroup>
+    </table>
+
     <table pgwide="1" frame="none" id="changes-flags">
       <title>Changes</title>
       <tgroup cols="3">
index 17efa870d4d2a569d54ed18b2b55713dd6bbf1c8..9f6095608837b29085aa49171f544474801d3c6e 100644 (file)
              will have the ORed value of all the events generated.</para>
            </entry>
          </row>
+         <row>
+           <entry><constant>V4L2_EVENT_MOTION_DET</constant></entry>
+           <entry>5</entry>
+           <entry>
+             <para>Triggered whenever the motion detection state for one or more of the regions
+             changes. This event has a &v4l2-event-motion-det; associated with it.</para>
+           </entry>
+         </row>
          <row>
            <entry><constant>V4L2_EVENT_PRIVATE_START</constant></entry>
            <entry>0x08000000</entry>