diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2014-01-31 04:22:58 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-07-17 10:57:29 -0400 |
commit | 6d823a2e9aa78addf5d8bb37ec1d7dc1708eaffd (patch) | |
tree | cbd3113dfacbe7a79e7a48bd60b4ee0b8fa227b9 /Documentation/DocBook | |
parent | 78ea611385f08da6e52ff2ea15f0a26e89acb3ab (diff) |
[media] DocBook: document new v4l motion detection event
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>
Diffstat (limited to 'Documentation/DocBook')
-rw-r--r-- | Documentation/DocBook/media/v4l/vidioc-dqevent.xml | 44 | ||||
-rw-r--r-- | Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml | 8 |
2 files changed, 52 insertions, 0 deletions
diff --git a/Documentation/DocBook/media/v4l/vidioc-dqevent.xml b/Documentation/DocBook/media/v4l/vidioc-dqevent.xml index 820f86e8744b..f3767fb81eef 100644 --- a/Documentation/DocBook/media/v4l/vidioc-dqevent.xml +++ b/Documentation/DocBook/media/v4l/vidioc-dqevent.xml | |||
@@ -94,6 +94,12 @@ | |||
94 | </row> | 94 | </row> |
95 | <row> | 95 | <row> |
96 | <entry></entry> | 96 | <entry></entry> |
97 | <entry>&v4l2-event-motion-det;</entry> | ||
98 | <entry><structfield>motion_det</structfield></entry> | ||
99 | <entry>Event data for event V4L2_EVENT_MOTION_DET.</entry> | ||
100 | </row> | ||
101 | <row> | ||
102 | <entry></entry> | ||
97 | <entry>__u8</entry> | 103 | <entry>__u8</entry> |
98 | <entry><structfield>data</structfield>[64]</entry> | 104 | <entry><structfield>data</structfield>[64]</entry> |
99 | <entry>Event data. Defined by the event type. The union | 105 | <entry>Event data. Defined by the event type. The union |
@@ -258,6 +264,44 @@ | |||
258 | </tgroup> | 264 | </tgroup> |
259 | </table> | 265 | </table> |
260 | 266 | ||
267 | <table frame="none" pgwide="1" id="v4l2-event-motion-det"> | ||
268 | <title>struct <structname>v4l2_event_motion_det</structname></title> | ||
269 | <tgroup cols="3"> | ||
270 | &cs-str; | ||
271 | <tbody valign="top"> | ||
272 | <row> | ||
273 | <entry>__u32</entry> | ||
274 | <entry><structfield>flags</structfield></entry> | ||
275 | <entry> | ||
276 | Currently only one flag is available: if <constant>V4L2_EVENT_MD_FL_HAVE_FRAME_SEQ</constant> | ||
277 | is set, then the <structfield>frame_sequence</structfield> field is valid, | ||
278 | otherwise that field should be ignored. | ||
279 | </entry> | ||
280 | </row> | ||
281 | <row> | ||
282 | <entry>__u32</entry> | ||
283 | <entry><structfield>frame_sequence</structfield></entry> | ||
284 | <entry> | ||
285 | The sequence number of the frame being received. Only valid if the | ||
286 | <constant>V4L2_EVENT_MD_FL_HAVE_FRAME_SEQ</constant> flag was set. | ||
287 | </entry> | ||
288 | </row> | ||
289 | <row> | ||
290 | <entry>__u32</entry> | ||
291 | <entry><structfield>region_mask</structfield></entry> | ||
292 | <entry> | ||
293 | The bitmask of the regions that reported motion. There is at least one | ||
294 | region. If this field is 0, then no motion was detected at all. | ||
295 | If there is no <constant>V4L2_CID_DETECT_MD_REGION_GRID</constant> control | ||
296 | (see <xref linkend="detect-controls" />) to assign a different region | ||
297 | to each cell in the motion detection grid, then that all cells | ||
298 | are automatically assigned to the default region 0. | ||
299 | </entry> | ||
300 | </row> | ||
301 | </tbody> | ||
302 | </tgroup> | ||
303 | </table> | ||
304 | |||
261 | <table pgwide="1" frame="none" id="changes-flags"> | 305 | <table pgwide="1" frame="none" id="changes-flags"> |
262 | <title>Changes</title> | 306 | <title>Changes</title> |
263 | <tgroup cols="3"> | 307 | <tgroup cols="3"> |
diff --git a/Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml b/Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml index 17efa870d4d2..9f6095608837 100644 --- a/Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml +++ b/Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml | |||
@@ -175,6 +175,14 @@ | |||
175 | </entry> | 175 | </entry> |
176 | </row> | 176 | </row> |
177 | <row> | 177 | <row> |
178 | <entry><constant>V4L2_EVENT_MOTION_DET</constant></entry> | ||
179 | <entry>5</entry> | ||
180 | <entry> | ||
181 | <para>Triggered whenever the motion detection state for one or more of the regions | ||
182 | changes. This event has a &v4l2-event-motion-det; associated with it.</para> | ||
183 | </entry> | ||
184 | </row> | ||
185 | <row> | ||
178 | <entry><constant>V4L2_EVENT_PRIVATE_START</constant></entry> | 186 | <entry><constant>V4L2_EVENT_PRIVATE_START</constant></entry> |
179 | <entry>0x08000000</entry> | 187 | <entry>0x08000000</entry> |
180 | <entry>Base event number for driver-private events.</entry> | 188 | <entry>Base event number for driver-private events.</entry> |