Merge tag 'iwlwifi-next-for-kalle-2014-12-30' of https://git.kernel.org/pub/scm/linux...
[cascardo/linux.git] / Documentation / DocBook / media / v4l / v4l2.xml
1  <partinfo>
2     <authorgroup>
3       <author>
4         <firstname>Michael</firstname>
5         <surname>Schimek</surname>
6         <othername role="mi">H</othername>
7         <affiliation>
8           <address>
9             <email>mschimek@gmx.at</email>
10           </address>
11         </affiliation>
12       </author>
13
14       <author>
15         <firstname>Bill</firstname>
16         <surname>Dirks</surname>
17         <!-- Commented until Bill opts in to be spammed.
18         <affiliation>
19           <address>
20             <email>bill@thedirks.org</email>
21           </address>
22         </affiliation> -->
23         <contrib>Original author of the V4L2 API and
24 documentation.</contrib>
25       </author>
26
27       <author>
28         <firstname>Hans</firstname>
29         <surname>Verkuil</surname>
30         <contrib>Designed and documented the VIDIOC_LOG_STATUS ioctl,
31 the extended control ioctls, major parts of the sliced VBI API, the
32 MPEG encoder and decoder APIs and the DV Timings API.</contrib>
33         <affiliation>
34           <address>
35             <email>hverkuil@xs4all.nl</email>
36           </address>
37         </affiliation>
38       </author>
39
40       <author>
41         <firstname>Martin</firstname>
42         <surname>Rubli</surname>
43         <!--
44         <affiliation>
45           <address>
46             <email>martin_rubli@logitech.com</email>
47           </address>
48         </affiliation> -->
49         <contrib>Designed and documented the VIDIOC_ENUM_FRAMESIZES
50 and VIDIOC_ENUM_FRAMEINTERVALS ioctls.</contrib>
51       </author>
52
53       <author>
54         <firstname>Andy</firstname>
55         <surname>Walls</surname>
56         <contrib>Documented the fielded V4L2_MPEG_STREAM_VBI_FMT_IVTV
57 MPEG stream embedded, sliced VBI data format in this specification.
58 </contrib>
59         <affiliation>
60           <address>
61             <email>awalls@md.metrocast.net</email>
62           </address>
63         </affiliation>
64       </author>
65
66       <author>
67         <firstname>Mauro</firstname>
68         <surname>Carvalho Chehab</surname>
69         <contrib>Documented libv4l, designed and added v4l2grab example,
70 Remote Controller chapter.</contrib>
71         <affiliation>
72           <address>
73             <email>m.chehab@samsung.com</email>
74           </address>
75         </affiliation>
76       </author>
77
78       <author>
79         <firstname>Muralidharan</firstname>
80         <surname>Karicheri</surname>
81         <contrib>Documented the Digital Video timings API.</contrib>
82         <affiliation>
83           <address>
84             <email>m-karicheri2@ti.com</email>
85           </address>
86         </affiliation>
87       </author>
88
89       <author>
90         <firstname>Pawel</firstname>
91         <surname>Osciak</surname>
92         <contrib>Designed and documented the multi-planar API.</contrib>
93         <affiliation>
94           <address>
95             <email>pawel AT osciak.com</email>
96           </address>
97         </affiliation>
98       </author>
99
100       <author>
101         <firstname>Sakari</firstname>
102         <surname>Ailus</surname>
103         <contrib>Subdev selections API.</contrib>
104         <affiliation>
105           <address>
106             <email>sakari.ailus@iki.fi</email>
107           </address>
108         </affiliation>
109       </author>
110       <author>
111         <firstname>Antti</firstname>
112         <surname>Palosaari</surname>
113         <contrib>SDR API.</contrib>
114         <affiliation>
115           <address>
116             <email>crope@iki.fi</email>
117           </address>
118         </affiliation>
119       </author>
120     </authorgroup>
121
122     <copyright>
123       <year>1999</year>
124       <year>2000</year>
125       <year>2001</year>
126       <year>2002</year>
127       <year>2003</year>
128       <year>2004</year>
129       <year>2005</year>
130       <year>2006</year>
131       <year>2007</year>
132       <year>2008</year>
133       <year>2009</year>
134       <year>2010</year>
135       <year>2011</year>
136       <year>2012</year>
137       <year>2013</year>
138       <year>2014</year>
139       <holder>Bill Dirks, Michael H. Schimek, Hans Verkuil, Martin
140 Rubli, Andy Walls, Muralidharan Karicheri, Mauro Carvalho Chehab,
141         Pawel Osciak</holder>
142     </copyright>
143     <legalnotice>
144     <para>Except when explicitly stated as GPL, programming examples within
145             this part can be used and distributed without restrictions.</para>
146     </legalnotice>
147     <revhistory>
148       <!-- Put document revisions here, newest first. -->
149       <!-- API revisions (changes and additions of defines, enums,
150 structs, ioctls) must be noted in more detail in the history chapter
151 (compat.xml), along with the possible impact on existing drivers and
152 applications. -->
153
154       <revision>
155         <revnumber>3.19</revnumber>
156         <date>2014-12-05</date>
157         <authorinitials>hv</authorinitials>
158         <revremark>Rewrote Colorspace chapter, added new &v4l2-ycbcr-encoding; and &v4l2-quantization; fields
159 to &v4l2-pix-format;, &v4l2-pix-format-mplane; and &v4l2-mbus-framefmt;.
160         </revremark>
161       </revision>
162
163       <revision>
164         <revnumber>3.17</revnumber>
165         <date>2014-08-04</date>
166         <authorinitials>lp, hv</authorinitials>
167         <revremark>Extended &v4l2-pix-format;. Added format flags. Added compound control types
168 and VIDIOC_QUERY_EXT_CTRL.
169         </revremark>
170       </revision>
171
172       <revision>
173         <revnumber>3.15</revnumber>
174         <date>2014-02-03</date>
175         <authorinitials>hv, ap</authorinitials>
176         <revremark>Update several sections of "Common API Elements": "Opening and Closing Devices"
177 "Querying Capabilities", "Application Priority", "Video Inputs and Outputs", "Audio Inputs and Outputs"
178 "Tuners and Modulators", "Video Standards" and "Digital Video (DV) Timings". Added SDR API.
179         </revremark>
180       </revision>
181
182       <revision>
183         <revnumber>3.14</revnumber>
184         <date>2013-11-25</date>
185         <authorinitials>rr</authorinitials>
186         <revremark>Set width and height as unsigned on v4l2_rect.
187         </revremark>
188       </revision>
189
190       <revision>
191         <revnumber>3.11</revnumber>
192         <date>2013-05-26</date>
193         <authorinitials>hv</authorinitials>
194         <revremark>Remove obsolete VIDIOC_DBG_G_CHIP_IDENT ioctl.
195         </revremark>
196       </revision>
197
198       <revision>
199         <revnumber>3.10</revnumber>
200         <date>2013-03-25</date>
201         <authorinitials>hv</authorinitials>
202         <revremark>Remove obsolete and unused DV_PRESET ioctls:
203         VIDIOC_G_DV_PRESET, VIDIOC_S_DV_PRESET, VIDIOC_QUERY_DV_PRESET and
204         VIDIOC_ENUM_DV_PRESET. Remove the related v4l2_input/output capability
205         flags V4L2_IN_CAP_PRESETS and V4L2_OUT_CAP_PRESETS. Added VIDIOC_DBG_G_CHIP_INFO.
206         </revremark>
207       </revision>
208
209       <revision>
210         <revnumber>3.9</revnumber>
211         <date>2012-12-03</date>
212         <authorinitials>sa, sn</authorinitials>
213         <revremark>Added timestamp types to v4l2_buffer.
214         Added V4L2_EVENT_CTRL_CH_RANGE control event changes flag.
215         </revremark>
216       </revision>
217
218       <revision>
219         <revnumber>3.6</revnumber>
220         <date>2012-07-02</date>
221         <authorinitials>hv</authorinitials>
222         <revremark>Added VIDIOC_ENUM_FREQ_BANDS.
223         </revremark>
224       </revision>
225
226       <revision>
227         <revnumber>3.5</revnumber>
228         <date>2012-05-07</date>
229         <authorinitials>sa, sn, hv</authorinitials>
230         <revremark>Added V4L2_CTRL_TYPE_INTEGER_MENU and V4L2 subdev
231             selections API. Improved the description of V4L2_CID_COLORFX
232             control, added V4L2_CID_COLORFX_CBCR control.
233             Added camera controls V4L2_CID_AUTO_EXPOSURE_BIAS,
234             V4L2_CID_AUTO_N_PRESET_WHITE_BALANCE, V4L2_CID_IMAGE_STABILIZATION,
235             V4L2_CID_ISO_SENSITIVITY, V4L2_CID_ISO_SENSITIVITY_AUTO,
236             V4L2_CID_EXPOSURE_METERING, V4L2_CID_SCENE_MODE,
237             V4L2_CID_3A_LOCK, V4L2_CID_AUTO_FOCUS_START,
238             V4L2_CID_AUTO_FOCUS_STOP, V4L2_CID_AUTO_FOCUS_STATUS
239             and V4L2_CID_AUTO_FOCUS_RANGE.
240             Added VIDIOC_ENUM_DV_TIMINGS, VIDIOC_QUERY_DV_TIMINGS and
241             VIDIOC_DV_TIMINGS_CAP.
242         </revremark>
243       </revision>
244
245       <revision>
246         <revnumber>3.4</revnumber>
247         <date>2012-01-25</date>
248         <authorinitials>sn</authorinitials>
249         <revremark>Added <link linkend="jpeg-controls">JPEG compression
250             control class.</link>
251         </revremark>
252       </revision>
253
254       <revision>
255         <revnumber>3.3</revnumber>
256         <date>2012-01-11</date>
257         <authorinitials>hv</authorinitials>
258         <revremark>Added device_caps field to struct v4l2_capabilities.</revremark>
259       </revision>
260
261       <revision>
262         <revnumber>3.2</revnumber>
263         <date>2011-08-26</date>
264         <authorinitials>hv</authorinitials>
265         <revremark>Added V4L2_CTRL_FLAG_VOLATILE.</revremark>
266       </revision>
267
268       <revision>
269         <revnumber>3.1</revnumber>
270         <date>2011-06-27</date>
271         <authorinitials>mcc, po, hv</authorinitials>
272         <revremark>Documented that VIDIOC_QUERYCAP now returns a per-subsystem version instead of a per-driver one.
273                    Standardize an error code for invalid ioctl.
274                    Added V4L2_CTRL_TYPE_BITMASK.</revremark>
275       </revision>
276
277       <revision>
278         <revnumber>2.6.39</revnumber>
279         <date>2011-03-01</date>
280         <authorinitials>mcc, po</authorinitials>
281         <revremark>Removed VIDIOC_*_OLD from videodev2.h header and update it to reflect latest changes. Added the <link linkend="planar-apis">multi-planar API</link>.</revremark>
282       </revision>
283
284       <revision>
285         <revnumber>2.6.37</revnumber>
286         <date>2010-08-06</date>
287         <authorinitials>hv</authorinitials>
288         <revremark>Removed obsolete vtx (videotext) API.</revremark>
289       </revision>
290
291       <revision>
292         <revnumber>2.6.33</revnumber>
293         <date>2009-12-03</date>
294         <authorinitials>mk</authorinitials>
295         <revremark>Added documentation for the Digital Video timings API.</revremark>
296       </revision>
297
298       <revision>
299         <revnumber>2.6.32</revnumber>
300         <date>2009-08-31</date>
301         <authorinitials>mcc</authorinitials>
302         <revremark>Now, revisions will match the kernel version where
303 the V4L2 API changes will be used by the Linux Kernel.
304 Also added Remote Controller chapter.</revremark>
305       </revision>
306
307       <revision>
308         <revnumber>0.29</revnumber>
309         <date>2009-08-26</date>
310         <authorinitials>ev</authorinitials>
311         <revremark>Added documentation for string controls and for FM Transmitter controls.</revremark>
312       </revision>
313
314       <revision>
315         <revnumber>0.28</revnumber>
316         <date>2009-08-26</date>
317         <authorinitials>gl</authorinitials>
318         <revremark>Added V4L2_CID_BAND_STOP_FILTER documentation.</revremark>
319       </revision>
320
321       <revision>
322         <revnumber>0.27</revnumber>
323         <date>2009-08-15</date>
324         <authorinitials>mcc</authorinitials>
325         <revremark>Added libv4l and Remote Controller documentation;
326 added v4l2grab and keytable application examples.</revremark>
327       </revision>
328
329       <revision>
330         <revnumber>0.26</revnumber>
331         <date>2009-07-23</date>
332         <authorinitials>hv</authorinitials>
333         <revremark>Finalized the RDS capture API. Added modulator and RDS encoder
334 capabilities. Added support for string controls.</revremark>
335       </revision>
336
337       <revision>
338         <revnumber>0.25</revnumber>
339         <date>2009-01-18</date>
340         <authorinitials>hv</authorinitials>
341         <revremark>Added pixel formats VYUY, NV16 and NV61, and changed
342 the debug ioctls VIDIOC_DBG_G/S_REGISTER and VIDIOC_DBG_G_CHIP_IDENT.
343 Added camera controls V4L2_CID_ZOOM_ABSOLUTE, V4L2_CID_ZOOM_RELATIVE,
344 V4L2_CID_ZOOM_CONTINUOUS and V4L2_CID_PRIVACY.</revremark>
345       </revision>
346
347       <revision>
348         <revnumber>0.24</revnumber>
349         <date>2008-03-04</date>
350         <authorinitials>mhs</authorinitials>
351         <revremark>Added pixel formats Y16 and SBGGR16, new controls
352 and a camera controls class. Removed VIDIOC_G/S_MPEGCOMP.</revremark>
353       </revision>
354
355       <revision>
356         <revnumber>0.23</revnumber>
357         <date>2007-08-30</date>
358         <authorinitials>mhs</authorinitials>
359         <revremark>Fixed a typo in VIDIOC_DBG_G/S_REGISTER.
360 Clarified the byte order of packed pixel formats.</revremark>
361       </revision>
362
363       <revision>
364         <revnumber>0.22</revnumber>
365         <date>2007-08-29</date>
366         <authorinitials>mhs</authorinitials>
367         <revremark>Added the Video Output Overlay interface, new MPEG
368 controls, V4L2_FIELD_INTERLACED_TB and V4L2_FIELD_INTERLACED_BT,
369 VIDIOC_DBG_G/S_REGISTER, VIDIOC_(TRY_)ENCODER_CMD,
370 VIDIOC_G_CHIP_IDENT, VIDIOC_G_ENC_INDEX, new pixel formats.
371 Clarifications in the cropping chapter, about RGB pixel formats, the
372 mmap(), poll(), select(), read() and write() functions. Typographical
373 fixes.</revremark>
374       </revision>
375
376       <revision>
377         <revnumber>0.21</revnumber>
378         <date>2006-12-19</date>
379         <authorinitials>mhs</authorinitials>
380         <revremark>Fixed a link in the VIDIOC_G_EXT_CTRLS section.</revremark>
381       </revision>
382
383       <revision>
384         <revnumber>0.20</revnumber>
385         <date>2006-11-24</date>
386         <authorinitials>mhs</authorinitials>
387         <revremark>Clarified the purpose of the audioset field in
388 struct v4l2_input and v4l2_output.</revremark>
389       </revision>
390
391       <revision>
392         <revnumber>0.19</revnumber>
393         <date>2006-10-19</date>
394         <authorinitials>mhs</authorinitials>
395         <revremark>Documented V4L2_PIX_FMT_RGB444.</revremark>
396       </revision>
397
398       <revision>
399         <revnumber>0.18</revnumber>
400         <date>2006-10-18</date>
401         <authorinitials>mhs</authorinitials>
402         <revremark>Added the description of extended controls by Hans
403 Verkuil. Linked V4L2_PIX_FMT_MPEG to V4L2_CID_MPEG_STREAM_TYPE.</revremark>
404       </revision>
405
406       <revision>
407         <revnumber>0.17</revnumber>
408         <date>2006-10-12</date>
409         <authorinitials>mhs</authorinitials>
410         <revremark>Corrected V4L2_PIX_FMT_HM12 description.</revremark>
411       </revision>
412
413       <revision>
414         <revnumber>0.16</revnumber>
415         <date>2006-10-08</date>
416         <authorinitials>mhs</authorinitials>
417         <revremark>VIDIOC_ENUM_FRAMESIZES and
418 VIDIOC_ENUM_FRAMEINTERVALS are now part of the API.</revremark>
419       </revision>
420
421       <revision>
422         <revnumber>0.15</revnumber>
423         <date>2006-09-23</date>
424         <authorinitials>mhs</authorinitials>
425         <revremark>Cleaned up the bibliography, added BT.653 and
426 BT.1119. capture.c/start_capturing() for user pointer I/O did not
427 initialize the buffer index. Documented the V4L MPEG and MJPEG
428 VID_TYPEs and V4L2_PIX_FMT_SBGGR8. Updated the list of reserved pixel
429 formats. See the history chapter for API changes.</revremark>
430       </revision>
431
432       <revision>
433         <revnumber>0.14</revnumber>
434         <date>2006-09-14</date>
435         <authorinitials>mr</authorinitials>
436         <revremark>Added VIDIOC_ENUM_FRAMESIZES and
437 VIDIOC_ENUM_FRAMEINTERVALS proposal for frame format enumeration of
438 digital devices.</revremark>
439       </revision>
440
441       <revision>
442         <revnumber>0.13</revnumber>
443         <date>2006-04-07</date>
444         <authorinitials>mhs</authorinitials>
445         <revremark>Corrected the description of struct v4l2_window
446 clips. New V4L2_STD_ and V4L2_TUNER_MODE_LANG1_LANG2
447 defines.</revremark>
448       </revision>
449
450       <revision>
451         <revnumber>0.12</revnumber>
452         <date>2006-02-03</date>
453         <authorinitials>mhs</authorinitials>
454         <revremark>Corrected the description of struct
455 v4l2_captureparm and v4l2_outputparm.</revremark>
456       </revision>
457
458       <revision>
459         <revnumber>0.11</revnumber>
460         <date>2006-01-27</date>
461         <authorinitials>mhs</authorinitials>
462         <revremark>Improved the description of struct
463 v4l2_tuner.</revremark>
464       </revision>
465
466       <revision>
467         <revnumber>0.10</revnumber>
468         <date>2006-01-10</date>
469         <authorinitials>mhs</authorinitials>
470         <revremark>VIDIOC_G_INPUT and VIDIOC_S_PARM
471 clarifications.</revremark>
472       </revision>
473
474       <revision>
475         <revnumber>0.9</revnumber>
476         <date>2005-11-27</date>
477         <authorinitials>mhs</authorinitials>
478         <revremark>Improved the 525 line numbering diagram. Hans
479 Verkuil and I rewrote the sliced VBI section. He also contributed a
480 VIDIOC_LOG_STATUS page. Fixed VIDIOC_S_STD call in the video standard
481 selection example. Various updates.</revremark>
482       </revision>
483
484       <revision>
485         <revnumber>0.8</revnumber>
486         <date>2004-10-04</date>
487         <authorinitials>mhs</authorinitials>
488         <revremark>Somehow a piece of junk slipped into the capture
489 example, removed.</revremark>
490       </revision>
491
492       <revision>
493         <revnumber>0.7</revnumber>
494         <date>2004-09-19</date>
495         <authorinitials>mhs</authorinitials>
496         <revremark>Fixed video standard selection, control
497 enumeration, downscaling and aspect example. Added read and user
498 pointer i/o to video capture example.</revremark>
499       </revision>
500
501       <revision>
502         <revnumber>0.6</revnumber>
503         <date>2004-08-01</date>
504         <authorinitials>mhs</authorinitials>
505         <revremark>v4l2_buffer changes, added video capture example,
506 various corrections.</revremark>
507       </revision>
508
509       <revision>
510         <revnumber>0.5</revnumber>
511         <date>2003-11-05</date>
512         <authorinitials>mhs</authorinitials>
513         <revremark>Pixel format erratum.</revremark>
514       </revision>
515
516       <revision>
517         <revnumber>0.4</revnumber>
518         <date>2003-09-17</date>
519         <authorinitials>mhs</authorinitials>
520         <revremark>Corrected source and Makefile to generate a PDF.
521 SGML fixes. Added latest API changes. Closed gaps in the history
522 chapter.</revremark>
523       </revision>
524
525       <revision>
526         <revnumber>0.3</revnumber>
527         <date>2003-02-05</date>
528         <authorinitials>mhs</authorinitials>
529         <revremark>Another draft, more corrections.</revremark>
530       </revision>
531
532       <revision>
533         <revnumber>0.2</revnumber>
534         <date>2003-01-15</date>
535         <authorinitials>mhs</authorinitials>
536         <revremark>Second draft, with corrections pointed out by Gerd
537 Knorr.</revremark>
538       </revision>
539
540       <revision>
541         <revnumber>0.1</revnumber>
542         <date>2002-12-01</date>
543         <authorinitials>mhs</authorinitials>
544         <revremark>First draft, based on documentation by Bill Dirks
545 and discussions on the V4L mailing list.</revremark>
546       </revision>
547     </revhistory>
548 </partinfo>
549
550 <title>Video for Linux Two API Specification</title>
551  <subtitle>Revision 3.19</subtitle>
552
553   <chapter id="common">
554     &sub-common;
555   </chapter>
556
557   <chapter id="pixfmt">
558     &sub-pixfmt;
559   </chapter>
560
561   <chapter id="io">
562     &sub-io;
563   </chapter>
564
565   <chapter id="devices">
566     <title>Interfaces</title>
567
568     <section id="capture"> &sub-dev-capture; </section>
569     <section id="overlay"> &sub-dev-overlay; </section>
570     <section id="output"> &sub-dev-output; </section>
571     <section id="osd"> &sub-dev-osd; </section>
572     <section id="codec"> &sub-dev-codec; </section>
573     <section id="effect"> &sub-dev-effect; </section>
574     <section id="raw-vbi"> &sub-dev-raw-vbi; </section>
575     <section id="sliced"> &sub-dev-sliced-vbi; </section>
576     <section id="ttx"> &sub-dev-teletext; </section>
577     <section id="radio"> &sub-dev-radio; </section>
578     <section id="rds"> &sub-dev-rds; </section>
579     <section id="sdr"> &sub-dev-sdr; </section>
580     <section id="event"> &sub-dev-event; </section>
581     <section id="subdev"> &sub-dev-subdev; </section>
582   </chapter>
583
584   <chapter id="driver">
585           &sub-driver;
586   </chapter>
587
588   <chapter id="libv4l">
589           &sub-libv4l;
590   </chapter>
591
592   <chapter id="compat">
593           &sub-compat;
594   </chapter>
595
596   <appendix id="user-func">
597   <title>Function Reference</title>
598
599     <!-- Keep this alphabetically sorted. -->
600
601     &sub-close;
602     &sub-ioctl;
603     <!-- All ioctls go here. -->
604     &sub-create-bufs;
605     &sub-cropcap;
606     &sub-dbg-g-chip-info;
607     &sub-dbg-g-register;
608     &sub-decoder-cmd;
609     &sub-dqevent;
610     &sub-dv-timings-cap;
611     &sub-encoder-cmd;
612     &sub-enumaudio;
613     &sub-enumaudioout;
614     &sub-enum-dv-timings;
615     &sub-enum-fmt;
616     &sub-enum-framesizes;
617     &sub-enum-frameintervals;
618     &sub-enum-freq-bands;
619     &sub-enuminput;
620     &sub-enumoutput;
621     &sub-enumstd;
622     &sub-expbuf;
623     &sub-g-audio;
624     &sub-g-audioout;
625     &sub-g-crop;
626     &sub-g-ctrl;
627     &sub-g-dv-timings;
628     &sub-g-edid;
629     &sub-g-enc-index;
630     &sub-g-ext-ctrls;
631     &sub-g-fbuf;
632     &sub-g-fmt;
633     &sub-g-frequency;
634     &sub-g-input;
635     &sub-g-jpegcomp;
636     &sub-g-modulator;
637     &sub-g-output;
638     &sub-g-parm;
639     &sub-g-priority;
640     &sub-g-selection;
641     &sub-g-sliced-vbi-cap;
642     &sub-g-std;
643     &sub-g-tuner;
644     &sub-log-status;
645     &sub-overlay;
646     &sub-prepare-buf;
647     &sub-qbuf;
648     &sub-querybuf;
649     &sub-querycap;
650     &sub-queryctrl;
651     &sub-query-dv-timings;
652     &sub-querystd;
653     &sub-reqbufs;
654     &sub-s-hw-freq-seek;
655     &sub-streamon;
656     &sub-subdev-enum-frame-interval;
657     &sub-subdev-enum-frame-size;
658     &sub-subdev-enum-mbus-code;
659     &sub-subdev-g-crop;
660     &sub-subdev-g-fmt;
661     &sub-subdev-g-frame-interval;
662     &sub-subdev-g-selection;
663     &sub-subscribe-event;
664     <!-- End of ioctls. -->
665     &sub-mmap;
666     &sub-munmap;
667     &sub-open;
668     &sub-poll;
669     &sub-read;
670     &sub-select;
671     &sub-write;
672   </appendix>
673
674   <appendix>
675     <title>Common definitions for V4L2 and V4L2 subdev interfaces</title>
676       &sub-selections-common;
677   </appendix>
678
679   <appendix id="videodev">
680     <title>Video For Linux Two Header File</title>
681     &sub-videodev2-h;
682   </appendix>
683
684   <appendix id="capture-example">
685     <title>Video Capture Example</title>
686     &sub-capture-c;
687   </appendix>
688
689   <appendix id="v4l2grab-example">
690     <title>Video Grabber example using libv4l</title>
691     <para>This program demonstrates how to grab V4L2 images in ppm format by
692 using libv4l handlers. The advantage is that this grabber can potentially work
693 with any V4L2 driver.</para>
694     &sub-v4l2grab-c;
695   </appendix>
696
697   &sub-media-indices;
698
699   &sub-biblio;
700