From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from perceval.ideasonboard.com ([95.142.166.194]:56420 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751624Ab3HUVjr (ORCPT ); Wed, 21 Aug 2013 17:39:47 -0400 From: Laurent Pinchart To: Hans Verkuil Cc: linux-media@vger.kernel.org, ismael.luceno@corp.bluecherry.net, pete@sensoray.com, sylvester.nawrocki@gmail.com, sakari.ailus@iki.fi, Hans Verkuil Subject: Re: [RFCv2 PATCH 08/10] DocBook: document new v4l motion detection event. Date: Wed, 21 Aug 2013 23:41 +0200 Message-ID: <7288776.lXyIOr0qYX@avalon> In-Reply-To: <1376305113-17128-9-git-send-email-hverkuil@xs4all.nl> References: <1376305113-17128-1-git-send-email-hverkuil@xs4all.nl> <1376305113-17128-9-git-send-email-hverkuil@xs4all.nl> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-media-owner@vger.kernel.org List-ID: Hi Hans, Thank you for the patch. On Monday 12 August 2013 12:58:31 Hans Verkuil wrote: > From: Hans Verkuil > > Signed-off-by: Hans Verkuil > --- > Documentation/DocBook/media/v4l/vidioc-dqevent.xml | 40 +++++++++++++++++++ > .../DocBook/media/v4l/vidioc-subscribe-event.xml | 9 +++++ > 2 files changed, 49 insertions(+) > > diff --git a/Documentation/DocBook/media/v4l/vidioc-dqevent.xml > b/Documentation/DocBook/media/v4l/vidioc-dqevent.xml index 89891ad..23ee1e3 > 100644 > --- a/Documentation/DocBook/media/v4l/vidioc-dqevent.xml > +++ b/Documentation/DocBook/media/v4l/vidioc-dqevent.xml > @@ -94,6 +94,12 @@ > > > > + &v4l2-event-motion-det; > + motion_det > + Event data for event V4L2_EVENT_MOTION_DET. > + > + > + > __u8 > data[64] > Event data. Defined by the event type. The union > @@ -242,6 +248,40 @@ > > > > + > + struct <structname>v4l2_event_motion_det</structname> > + > + &cs-str; > + > + > + __u32 > + flags > + > + Currently only one flag is available: if > V4L2_EVENT_MD_FL_HAVE_FRAME_SEQ + is set, then > the frame_sequence field is valid, + > otherwise that field should be ignored. > + > + > + > + __u32 > + frame_sequence > + > + The sequence number of the frame being received. Only valid if the > + V4L2_EVENT_MD_FL_HAVE_FRAME_SEQ flag was set. > + > + > + > + __u32 > + region_mask > + > + 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. > + > + > + > + > +
> + > > Changes > > diff --git a/Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml > b/Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml index > 5c70b61..d9c3e66 100644 > --- a/Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml > +++ b/Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml > @@ -155,6 +155,15 @@ > > > > + V4L2_EVENT_MOTION_DET > + 5 > + > + Triggered whenever the motion detection state changes, i.e. > + whether motion is detected or not. Isn't the event also triggered when region_mask changes from a non-zero value to a different non-zero value ? The second part of the sentence seems to imply that the even is only triggered when motion starts being detected or stops being detected. > This event has a > + &v4l2-event-motion-det; associated with it. > + > + > + > V4L2_EVENT_PRIVATE_START > 0x08000000 > Base event number for driver-private events. -- Regards, Laurent Pinchart