Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271679
b: refs/heads/master
c: eab00a0
h: refs/heads/master
i:
  271677: 70682c2
  271675: 8739d4d
  271671: 5adff50
  271663: be78fc5
  271647: f4c749c
  271615: e36eb74
v: v3
  • Loading branch information
Sakari Ailus authored and Mauro Carvalho Chehab committed Aug 29, 2011
1 parent c5e199f commit a62abeb
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c9f88aa976b79a26561fb7754a1e0e00ff7626fe
refs/heads/master: eab00a0da292fa7118aaf20da78e834866de00ae
22 changes: 22 additions & 0 deletions trunk/Documentation/DocBook/media/v4l/vidioc-dqevent.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@
<entry>Event data for event V4L2_EVENT_CTRL.
</entry>
</row>
<row>
<entry></entry>
<entry>&v4l2-event-frame-sync;</entry>
<entry><structfield>frame</structfield></entry>
<entry>Event data for event V4L2_EVENT_FRAME_SYNC.</entry>
</row>
<row>
<entry></entry>
<entry>__u8</entry>
Expand Down Expand Up @@ -220,6 +226,22 @@
</tgroup>
</table>

<table frame="none" pgwide="1" id="v4l2-event-frame-sync">
<title>struct <structname>v4l2_event_frame_sync</structname></title>
<tgroup cols="3">
&cs-str;
<tbody valign="top">
<row>
<entry>__u32</entry>
<entry><structfield>frame_sequence</structfield></entry>
<entry>
The sequence number of the frame being received.
</entry>
</row>
</tbody>
</tgroup>
</table>

<table pgwide="1" frame="none" id="changes-flags">
<title>Changes</title>
<tgroup cols="3">
Expand Down
16 changes: 16 additions & 0 deletions trunk/Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,22 @@
field of the oldest event.</para>
</entry>
</row>
<row>
<entry><constant>V4L2_EVENT_FRAME_SYNC</constant></entry>
<entry>4</entry>
<entry>
<para>Triggered immediately when the reception of a
frame has begun. This event has a
&v4l2-event-frame-sync; associated with it.</para>

<para>If the hardware needs to be stopped in the case of a
buffer underrun it might not be able to generate this event.
In such cases the <structfield>frame_sequence</structfield>
field in &v4l2-event-frame-sync; will not be incremented. This
causes two consecutive frame sequence numbers to have n times
frame interval in between them.</para>
</entry>
</row>
<row>
<entry><constant>V4L2_EVENT_PRIVATE_START</constant></entry>
<entry>0x08000000</entry>
Expand Down
12 changes: 9 additions & 3 deletions trunk/include/linux/videodev2.h
Original file line number Diff line number Diff line change
Expand Up @@ -2006,6 +2006,7 @@ struct v4l2_streamparm {
#define V4L2_EVENT_VSYNC 1
#define V4L2_EVENT_EOS 2
#define V4L2_EVENT_CTRL 3
#define V4L2_EVENT_FRAME_SYNC 4
#define V4L2_EVENT_PRIVATE_START 0x08000000

/* Payload for V4L2_EVENT_VSYNC */
Expand All @@ -2032,12 +2033,17 @@ struct v4l2_event_ctrl {
__s32 default_value;
};

struct v4l2_event_frame_sync {
__u32 frame_sequence;
};

struct v4l2_event {
__u32 type;
union {
struct v4l2_event_vsync vsync;
struct v4l2_event_ctrl ctrl;
__u8 data[64];
struct v4l2_event_vsync vsync;
struct v4l2_event_ctrl ctrl;
struct v4l2_event_frame_sync frame_sync;
__u8 data[64];
} u;
__u32 pending;
__u32 sequence;
Expand Down

0 comments on commit a62abeb

Please sign in to comment.