blob: 3a16ac1f67d030c2a9762cd72800f64439dc1e17 [file] [log] [blame]
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001 <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
24documentation.</contrib>
25 </author>
26
27 <author>
28 <firstname>Hans</firstname>
29 <surname>Verkuil</surname>
30 <contrib>Designed and documented the VIDIOC_LOG_STATUS ioctl,
Hans Verkuil7dcc6062012-05-15 08:04:28 -030031the extended control ioctls, major parts of the sliced VBI API, the
32MPEG encoder and decoder APIs and the DV Timings API.</contrib>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -030033 <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
50and 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
57MPEG stream embedded, sliced VBI data format in this specification.
58</contrib>
59 <affiliation>
60 <address>
Andy Walls6afdeaf2010-05-23 18:53:35 -030061 <email>awalls@md.metrocast.net</email>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -030062 </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,
70Remote Controller chapter.</contrib>
71 <affiliation>
72 <address>
Hans Verkuil7183eeb2014-01-07 06:41:16 -030073 <email>m.chehab@samsung.com</email>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -030074 </address>
75 </affiliation>
76 </author>
Hans Verkuilb33f5f82009-12-03 01:32:12 -030077
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>
Pawel Osciak53b5d572011-01-07 01:41:33 -030088
89 <author>
Hans Verkuilaec67f02011-05-23 07:36:55 -030090 <firstname>Pawel</firstname>
Pawel Osciak53b5d572011-01-07 01:41:33 -030091 <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>
Sakari Ailus955f6452011-12-12 18:17:25 -030099
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>
Mauro Carvalho Chehabfee629e2014-02-07 11:19:37 -0300110 <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>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300120 </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>
Hans Verkuilf44026d2010-08-06 12:52:43 -0300134 <year>2010</year>
Hans Verkuilbda50bc2011-01-16 17:44:17 -0300135 <year>2011</year>
Hans Verkuil7dcc6062012-05-15 08:04:28 -0300136 <year>2012</year>
Hans Verkuil4e5f1132013-03-24 06:08:00 -0300137 <year>2013</year>
Hans Verkuil1b962082014-01-07 06:46:37 -0300138 <year>2014</year>
Mauro Carvalho Chehab15d20422015-02-13 19:59:40 -0200139 <year>2015</year>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300140 <holder>Bill Dirks, Michael H. Schimek, Hans Verkuil, Martin
Pawel Osciak53b5d572011-01-07 01:41:33 -0300141Rubli, Andy Walls, Muralidharan Karicheri, Mauro Carvalho Chehab,
142 Pawel Osciak</holder>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300143 </copyright>
144 <legalnotice>
145 <para>Except when explicitly stated as GPL, programming examples within
146 this part can be used and distributed without restrictions.</para>
147 </legalnotice>
148 <revhistory>
149 <!-- Put document revisions here, newest first. -->
150 <!-- API revisions (changes and additions of defines, enums,
151structs, ioctls) must be noted in more detail in the history chapter
Hans Verkuilf44026d2010-08-06 12:52:43 -0300152(compat.xml), along with the possible impact on existing drivers and
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300153applications. -->
154
155 <revision>
Mauro Carvalho Chehab15d20422015-02-13 19:59:40 -0200156 <revnumber>3.21</revnumber>
157 <date>2015-02-13</date>
158 <authorinitials>mcc</authorinitials>
159 <revremark>Fix documentation for media controller device nodes.
160 </revremark>
161 </revision>
162 <revision>
Hans Verkuil5fdb9672014-12-05 11:23:55 -0300163 <revnumber>3.19</revnumber>
164 <date>2014-12-05</date>
165 <authorinitials>hv</authorinitials>
166 <revremark>Rewrote Colorspace chapter, added new &v4l2-ycbcr-encoding; and &v4l2-quantization; fields
167to &v4l2-pix-format;, &v4l2-pix-format-mplane; and &v4l2-mbus-framefmt;.
168 </revremark>
169 </revision>
170
171 <revision>
Hans Verkuil983ed752014-08-04 06:16:37 -0300172 <revnumber>3.17</revnumber>
173 <date>2014-08-04</date>
174 <authorinitials>lp, hv</authorinitials>
175 <revremark>Extended &v4l2-pix-format;. Added format flags. Added compound control types
176and VIDIOC_QUERY_EXT_CTRL.
Laurent Pinchartd52e2382014-05-27 09:41:05 -0300177 </revremark>
178 </revision>
179
180 <revision>
Hans Verkuil26f08db2014-02-03 07:29:03 -0300181 <revnumber>3.15</revnumber>
182 <date>2014-02-03</date>
Mauro Carvalho Chehabfee629e2014-02-07 11:19:37 -0300183 <authorinitials>hv, ap</authorinitials>
Hans Verkuil5d5f87b2014-02-04 09:55:19 -0300184 <revremark>Update several sections of "Common API Elements": "Opening and Closing Devices"
Hans Verkuil26f08db2014-02-03 07:29:03 -0300185"Querying Capabilities", "Application Priority", "Video Inputs and Outputs", "Audio Inputs and Outputs"
Mauro Carvalho Chehabfee629e2014-02-07 11:19:37 -0300186"Tuners and Modulators", "Video Standards" and "Digital Video (DV) Timings". Added SDR API.
Hans Verkuil26f08db2014-02-03 07:29:03 -0300187 </revremark>
188 </revision>
189
190 <revision>
Ricardo Ribaldaf90580c2013-11-26 05:31:42 -0300191 <revnumber>3.14</revnumber>
192 <date>2013-11-25</date>
193 <authorinitials>rr</authorinitials>
194 <revremark>Set width and height as unsigned on v4l2_rect.
195 </revremark>
196 </revision>
197
198 <revision>
Hans Verkuila6edca32013-05-26 09:45:23 -0300199 <revnumber>3.11</revnumber>
200 <date>2013-05-26</date>
201 <authorinitials>hv</authorinitials>
202 <revremark>Remove obsolete VIDIOC_DBG_G_CHIP_IDENT ioctl.
203 </revremark>
204 </revision>
205
206 <revision>
Hans Verkuil4e5f1132013-03-24 06:08:00 -0300207 <revnumber>3.10</revnumber>
Hans Verkuile3f75862013-03-25 08:49:15 -0300208 <date>2013-03-25</date>
Hans Verkuil4e5f1132013-03-24 06:08:00 -0300209 <authorinitials>hv</authorinitials>
210 <revremark>Remove obsolete and unused DV_PRESET ioctls:
211 VIDIOC_G_DV_PRESET, VIDIOC_S_DV_PRESET, VIDIOC_QUERY_DV_PRESET and
212 VIDIOC_ENUM_DV_PRESET. Remove the related v4l2_input/output capability
Hans Verkuil96b03d22013-04-06 06:16:58 -0300213 flags V4L2_IN_CAP_PRESETS and V4L2_OUT_CAP_PRESETS. Added VIDIOC_DBG_G_CHIP_INFO.
Hans Verkuil4e5f1132013-03-24 06:08:00 -0300214 </revremark>
215 </revision>
216
217 <revision>
Sakari Ailus1202ecd2012-10-21 16:02:47 -0300218 <revnumber>3.9</revnumber>
219 <date>2012-12-03</date>
Sylwester Nawrocki2ccbe772013-01-19 15:51:55 -0300220 <authorinitials>sa, sn</authorinitials>
Hans Verkuil07b64b82013-01-11 08:18:55 -0300221 <revremark>Added timestamp types to v4l2_buffer.
Hans Verkuilb5958dc2013-03-18 13:28:12 -0300222 Added V4L2_EVENT_CTRL_CH_RANGE control event changes flag.
Sakari Ailus1202ecd2012-10-21 16:02:47 -0300223 </revremark>
224 </revision>
225
226 <revision>
Hans Verkuil50121312012-07-05 06:54:38 -0300227 <revnumber>3.6</revnumber>
228 <date>2012-07-02</date>
229 <authorinitials>hv</authorinitials>
230 <revremark>Added VIDIOC_ENUM_FREQ_BANDS.
231 </revremark>
Hans Verkuil571d19c2012-08-09 06:04:43 -0300232 </revision>
233
234 <revision>
Sakari Ailus6ec299f2011-08-06 16:13:47 -0300235 <revnumber>3.5</revnumber>
Sylwester Nawrocki2272ab62012-05-11 06:37:03 -0300236 <date>2012-05-07</date>
Hans Verkuil571d19c2012-08-09 06:04:43 -0300237 <authorinitials>sa, sn, hv</authorinitials>
Sakari Ailus955f6452011-12-12 18:17:25 -0300238 <revremark>Added V4L2_CTRL_TYPE_INTEGER_MENU and V4L2 subdev
Sylwester Nawrocki6491d1a2012-04-02 06:40:19 -0300239 selections API. Improved the description of V4L2_CID_COLORFX
240 control, added V4L2_CID_COLORFX_CBCR control.
Sylwester Nawrocki2272ab62012-05-11 06:37:03 -0300241 Added camera controls V4L2_CID_AUTO_EXPOSURE_BIAS,
242 V4L2_CID_AUTO_N_PRESET_WHITE_BALANCE, V4L2_CID_IMAGE_STABILIZATION,
243 V4L2_CID_ISO_SENSITIVITY, V4L2_CID_ISO_SENSITIVITY_AUTO,
244 V4L2_CID_EXPOSURE_METERING, V4L2_CID_SCENE_MODE,
245 V4L2_CID_3A_LOCK, V4L2_CID_AUTO_FOCUS_START,
246 V4L2_CID_AUTO_FOCUS_STOP, V4L2_CID_AUTO_FOCUS_STATUS
247 and V4L2_CID_AUTO_FOCUS_RANGE.
Hans Verkuil571d19c2012-08-09 06:04:43 -0300248 Added VIDIOC_ENUM_DV_TIMINGS, VIDIOC_QUERY_DV_TIMINGS and
249 VIDIOC_DV_TIMINGS_CAP.
Hans Verkuil7dcc6062012-05-15 08:04:28 -0300250 </revremark>
Sakari Ailus6ec299f2011-08-06 16:13:47 -0300251 </revision>
252
253 <revision>
Sylwester Nawrocki29fa0ee2012-01-20 15:38:50 -0300254 <revnumber>3.4</revnumber>
255 <date>2012-01-25</date>
256 <authorinitials>sn</authorinitials>
257 <revremark>Added <link linkend="jpeg-controls">JPEG compression
258 control class.</link>
259 </revremark>
260 </revision>
261
262 <revision>
Hans Verkuil583aa3a2012-01-11 06:45:05 -0300263 <revnumber>3.3</revnumber>
264 <date>2012-01-11</date>
265 <authorinitials>hv</authorinitials>
266 <revremark>Added device_caps field to struct v4l2_capabilities.</revremark>
267 </revision>
268
269 <revision>
Hans Verkuil74a45792011-08-26 07:31:13 -0300270 <revnumber>3.2</revnumber>
271 <date>2011-08-26</date>
272 <authorinitials>hv</authorinitials>
273 <revremark>Added V4L2_CTRL_FLAG_VOLATILE.</revremark>
274 </revision>
275
276 <revision>
Mauro Carvalho Chehabc20eb182011-06-25 14:11:52 -0300277 <revnumber>3.1</revnumber>
278 <date>2011-06-27</date>
Hans Verkuilaec67f02011-05-23 07:36:55 -0300279 <authorinitials>mcc, po, hv</authorinitials>
280 <revremark>Documented that VIDIOC_QUERYCAP now returns a per-subsystem version instead of a per-driver one.
281 Standardize an error code for invalid ioctl.
282 Added V4L2_CTRL_TYPE_BITMASK.</revremark>
Mauro Carvalho Chehabc20eb182011-06-25 14:11:52 -0300283 </revision>
Mauro Carvalho Chehab9190d192011-07-06 14:08:08 -0300284
Mauro Carvalho Chehabc20eb182011-06-25 14:11:52 -0300285 <revision>
Mauro Carvalho Chehab3822f182011-03-01 16:03:11 -0300286 <revnumber>2.6.39</revnumber>
287 <date>2011-03-01</date>
Pawel Osciakf0e3b642011-03-13 15:20:22 -0300288 <authorinitials>mcc, po</authorinitials>
289 <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>
Pawel Osciak53b5d572011-01-07 01:41:33 -0300290 </revision>
291
292 <revision>
Hans Verkuilf44026d2010-08-06 12:52:43 -0300293 <revnumber>2.6.37</revnumber>
294 <date>2010-08-06</date>
295 <authorinitials>hv</authorinitials>
296 <revremark>Removed obsolete vtx (videotext) API.</revremark>
297 </revision>
298
299 <revision>
Hans Verkuilb33f5f82009-12-03 01:32:12 -0300300 <revnumber>2.6.33</revnumber>
301 <date>2009-12-03</date>
302 <authorinitials>mk</authorinitials>
303 <revremark>Added documentation for the Digital Video timings API.</revremark>
304 </revision>
305
306 <revision>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300307 <revnumber>2.6.32</revnumber>
308 <date>2009-08-31</date>
309 <authorinitials>mcc</authorinitials>
310 <revremark>Now, revisions will match the kernel version where
311the V4L2 API changes will be used by the Linux Kernel.
312Also added Remote Controller chapter.</revremark>
313 </revision>
314
315 <revision>
316 <revnumber>0.29</revnumber>
317 <date>2009-08-26</date>
318 <authorinitials>ev</authorinitials>
319 <revremark>Added documentation for string controls and for FM Transmitter controls.</revremark>
320 </revision>
321
322 <revision>
323 <revnumber>0.28</revnumber>
324 <date>2009-08-26</date>
325 <authorinitials>gl</authorinitials>
326 <revremark>Added V4L2_CID_BAND_STOP_FILTER documentation.</revremark>
327 </revision>
328
329 <revision>
330 <revnumber>0.27</revnumber>
331 <date>2009-08-15</date>
332 <authorinitials>mcc</authorinitials>
333 <revremark>Added libv4l and Remote Controller documentation;
334added v4l2grab and keytable application examples.</revremark>
335 </revision>
336
337 <revision>
338 <revnumber>0.26</revnumber>
339 <date>2009-07-23</date>
340 <authorinitials>hv</authorinitials>
341 <revremark>Finalized the RDS capture API. Added modulator and RDS encoder
342capabilities. Added support for string controls.</revremark>
343 </revision>
344
345 <revision>
346 <revnumber>0.25</revnumber>
347 <date>2009-01-18</date>
348 <authorinitials>hv</authorinitials>
349 <revremark>Added pixel formats VYUY, NV16 and NV61, and changed
350the debug ioctls VIDIOC_DBG_G/S_REGISTER and VIDIOC_DBG_G_CHIP_IDENT.
351Added camera controls V4L2_CID_ZOOM_ABSOLUTE, V4L2_CID_ZOOM_RELATIVE,
352V4L2_CID_ZOOM_CONTINUOUS and V4L2_CID_PRIVACY.</revremark>
353 </revision>
354
355 <revision>
356 <revnumber>0.24</revnumber>
357 <date>2008-03-04</date>
358 <authorinitials>mhs</authorinitials>
359 <revremark>Added pixel formats Y16 and SBGGR16, new controls
360and a camera controls class. Removed VIDIOC_G/S_MPEGCOMP.</revremark>
361 </revision>
362
363 <revision>
364 <revnumber>0.23</revnumber>
365 <date>2007-08-30</date>
366 <authorinitials>mhs</authorinitials>
367 <revremark>Fixed a typo in VIDIOC_DBG_G/S_REGISTER.
368Clarified the byte order of packed pixel formats.</revremark>
369 </revision>
370
371 <revision>
372 <revnumber>0.22</revnumber>
373 <date>2007-08-29</date>
374 <authorinitials>mhs</authorinitials>
375 <revremark>Added the Video Output Overlay interface, new MPEG
376controls, V4L2_FIELD_INTERLACED_TB and V4L2_FIELD_INTERLACED_BT,
377VIDIOC_DBG_G/S_REGISTER, VIDIOC_(TRY_)ENCODER_CMD,
378VIDIOC_G_CHIP_IDENT, VIDIOC_G_ENC_INDEX, new pixel formats.
379Clarifications in the cropping chapter, about RGB pixel formats, the
380mmap(), poll(), select(), read() and write() functions. Typographical
381fixes.</revremark>
382 </revision>
383
384 <revision>
385 <revnumber>0.21</revnumber>
386 <date>2006-12-19</date>
387 <authorinitials>mhs</authorinitials>
388 <revremark>Fixed a link in the VIDIOC_G_EXT_CTRLS section.</revremark>
389 </revision>
390
391 <revision>
392 <revnumber>0.20</revnumber>
393 <date>2006-11-24</date>
394 <authorinitials>mhs</authorinitials>
395 <revremark>Clarified the purpose of the audioset field in
396struct v4l2_input and v4l2_output.</revremark>
397 </revision>
398
399 <revision>
400 <revnumber>0.19</revnumber>
401 <date>2006-10-19</date>
402 <authorinitials>mhs</authorinitials>
403 <revremark>Documented V4L2_PIX_FMT_RGB444.</revremark>
404 </revision>
405
406 <revision>
407 <revnumber>0.18</revnumber>
408 <date>2006-10-18</date>
409 <authorinitials>mhs</authorinitials>
410 <revremark>Added the description of extended controls by Hans
411Verkuil. Linked V4L2_PIX_FMT_MPEG to V4L2_CID_MPEG_STREAM_TYPE.</revremark>
412 </revision>
413
414 <revision>
415 <revnumber>0.17</revnumber>
416 <date>2006-10-12</date>
417 <authorinitials>mhs</authorinitials>
418 <revremark>Corrected V4L2_PIX_FMT_HM12 description.</revremark>
419 </revision>
420
421 <revision>
422 <revnumber>0.16</revnumber>
423 <date>2006-10-08</date>
424 <authorinitials>mhs</authorinitials>
425 <revremark>VIDIOC_ENUM_FRAMESIZES and
426VIDIOC_ENUM_FRAMEINTERVALS are now part of the API.</revremark>
427 </revision>
428
429 <revision>
430 <revnumber>0.15</revnumber>
431 <date>2006-09-23</date>
432 <authorinitials>mhs</authorinitials>
433 <revremark>Cleaned up the bibliography, added BT.653 and
434BT.1119. capture.c/start_capturing() for user pointer I/O did not
435initialize the buffer index. Documented the V4L MPEG and MJPEG
436VID_TYPEs and V4L2_PIX_FMT_SBGGR8. Updated the list of reserved pixel
437formats. See the history chapter for API changes.</revremark>
438 </revision>
439
440 <revision>
441 <revnumber>0.14</revnumber>
442 <date>2006-09-14</date>
443 <authorinitials>mr</authorinitials>
444 <revremark>Added VIDIOC_ENUM_FRAMESIZES and
445VIDIOC_ENUM_FRAMEINTERVALS proposal for frame format enumeration of
446digital devices.</revremark>
447 </revision>
448
449 <revision>
450 <revnumber>0.13</revnumber>
451 <date>2006-04-07</date>
452 <authorinitials>mhs</authorinitials>
453 <revremark>Corrected the description of struct v4l2_window
454clips. New V4L2_STD_ and V4L2_TUNER_MODE_LANG1_LANG2
455defines.</revremark>
456 </revision>
457
458 <revision>
459 <revnumber>0.12</revnumber>
460 <date>2006-02-03</date>
461 <authorinitials>mhs</authorinitials>
462 <revremark>Corrected the description of struct
463v4l2_captureparm and v4l2_outputparm.</revremark>
464 </revision>
465
466 <revision>
467 <revnumber>0.11</revnumber>
468 <date>2006-01-27</date>
469 <authorinitials>mhs</authorinitials>
470 <revremark>Improved the description of struct
471v4l2_tuner.</revremark>
472 </revision>
473
474 <revision>
475 <revnumber>0.10</revnumber>
476 <date>2006-01-10</date>
477 <authorinitials>mhs</authorinitials>
478 <revremark>VIDIOC_G_INPUT and VIDIOC_S_PARM
479clarifications.</revremark>
480 </revision>
481
482 <revision>
483 <revnumber>0.9</revnumber>
484 <date>2005-11-27</date>
485 <authorinitials>mhs</authorinitials>
486 <revremark>Improved the 525 line numbering diagram. Hans
487Verkuil and I rewrote the sliced VBI section. He also contributed a
488VIDIOC_LOG_STATUS page. Fixed VIDIOC_S_STD call in the video standard
489selection example. Various updates.</revremark>
490 </revision>
491
492 <revision>
493 <revnumber>0.8</revnumber>
494 <date>2004-10-04</date>
495 <authorinitials>mhs</authorinitials>
496 <revremark>Somehow a piece of junk slipped into the capture
497example, removed.</revremark>
498 </revision>
499
500 <revision>
501 <revnumber>0.7</revnumber>
502 <date>2004-09-19</date>
503 <authorinitials>mhs</authorinitials>
504 <revremark>Fixed video standard selection, control
505enumeration, downscaling and aspect example. Added read and user
506pointer i/o to video capture example.</revremark>
507 </revision>
508
509 <revision>
510 <revnumber>0.6</revnumber>
511 <date>2004-08-01</date>
512 <authorinitials>mhs</authorinitials>
513 <revremark>v4l2_buffer changes, added video capture example,
514various corrections.</revremark>
515 </revision>
516
517 <revision>
518 <revnumber>0.5</revnumber>
519 <date>2003-11-05</date>
520 <authorinitials>mhs</authorinitials>
521 <revremark>Pixel format erratum.</revremark>
522 </revision>
523
524 <revision>
525 <revnumber>0.4</revnumber>
526 <date>2003-09-17</date>
527 <authorinitials>mhs</authorinitials>
528 <revremark>Corrected source and Makefile to generate a PDF.
529SGML fixes. Added latest API changes. Closed gaps in the history
530chapter.</revremark>
531 </revision>
532
533 <revision>
534 <revnumber>0.3</revnumber>
535 <date>2003-02-05</date>
536 <authorinitials>mhs</authorinitials>
537 <revremark>Another draft, more corrections.</revremark>
538 </revision>
539
540 <revision>
541 <revnumber>0.2</revnumber>
542 <date>2003-01-15</date>
543 <authorinitials>mhs</authorinitials>
544 <revremark>Second draft, with corrections pointed out by Gerd
545Knorr.</revremark>
546 </revision>
547
548 <revision>
549 <revnumber>0.1</revnumber>
550 <date>2002-12-01</date>
551 <authorinitials>mhs</authorinitials>
552 <revremark>First draft, based on documentation by Bill Dirks
553and discussions on the V4L mailing list.</revremark>
554 </revision>
555 </revhistory>
556</partinfo>
557
558<title>Video for Linux Two API Specification</title>
Hans Verkuil5fdb9672014-12-05 11:23:55 -0300559 <subtitle>Revision 3.19</subtitle>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300560
561 <chapter id="common">
562 &sub-common;
563 </chapter>
564
565 <chapter id="pixfmt">
566 &sub-pixfmt;
567 </chapter>
568
569 <chapter id="io">
570 &sub-io;
571 </chapter>
572
573 <chapter id="devices">
574 <title>Interfaces</title>
575
576 <section id="capture"> &sub-dev-capture; </section>
577 <section id="overlay"> &sub-dev-overlay; </section>
578 <section id="output"> &sub-dev-output; </section>
579 <section id="osd"> &sub-dev-osd; </section>
580 <section id="codec"> &sub-dev-codec; </section>
581 <section id="effect"> &sub-dev-effect; </section>
582 <section id="raw-vbi"> &sub-dev-raw-vbi; </section>
583 <section id="sliced"> &sub-dev-sliced-vbi; </section>
584 <section id="ttx"> &sub-dev-teletext; </section>
585 <section id="radio"> &sub-dev-radio; </section>
586 <section id="rds"> &sub-dev-rds; </section>
Antti Palosaari559f40f2013-12-20 01:50:38 -0300587 <section id="sdr"> &sub-dev-sdr; </section>
Sakari Ailusdd966082010-03-27 10:58:24 -0300588 <section id="event"> &sub-dev-event; </section>
Laurent Pinchart333c8b92010-03-15 20:26:04 -0300589 <section id="subdev"> &sub-dev-subdev; </section>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300590 </chapter>
591
592 <chapter id="driver">
593 &sub-driver;
594 </chapter>
595
596 <chapter id="libv4l">
597 &sub-libv4l;
598 </chapter>
599
600 <chapter id="compat">
601 &sub-compat;
602 </chapter>
603
Mauro Carvalho Chehabdb17ab92009-09-17 01:44:22 -0300604 <appendix id="user-func">
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300605 <title>Function Reference</title>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300606
607 <!-- Keep this alphabetically sorted. -->
608
609 &sub-close;
610 &sub-ioctl;
611 <!-- All ioctls go here. -->
Guennadi Liakhovetski55093282011-09-28 08:10:58 -0300612 &sub-create-bufs;
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300613 &sub-cropcap;
Hans Verkuil96b03d22013-04-06 06:16:58 -0300614 &sub-dbg-g-chip-info;
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300615 &sub-dbg-g-register;
Hans Verkuil6b4f1252011-11-24 09:55:53 -0300616 &sub-decoder-cmd;
Sakari Ailusdd966082010-03-27 10:58:24 -0300617 &sub-dqevent;
Hans Verkuil7dcc6062012-05-15 08:04:28 -0300618 &sub-dv-timings-cap;
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300619 &sub-encoder-cmd;
620 &sub-enumaudio;
621 &sub-enumaudioout;
Hans Verkuil7dcc6062012-05-15 08:04:28 -0300622 &sub-enum-dv-timings;
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300623 &sub-enum-fmt;
624 &sub-enum-framesizes;
625 &sub-enum-frameintervals;
Hans Verkuil50121312012-07-05 06:54:38 -0300626 &sub-enum-freq-bands;
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300627 &sub-enuminput;
628 &sub-enumoutput;
629 &sub-enumstd;
Tomasz Stanislawski19b6ef52012-06-14 11:32:22 -0300630 &sub-expbuf;
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300631 &sub-g-audio;
632 &sub-g-audioout;
633 &sub-g-crop;
634 &sub-g-ctrl;
Muralidharan Karicheri007701e2009-12-03 01:13:17 -0300635 &sub-g-dv-timings;
Hans Verkuile2543652014-03-07 11:17:33 -0300636 &sub-g-edid;
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300637 &sub-g-enc-index;
638 &sub-g-ext-ctrls;
639 &sub-g-fbuf;
640 &sub-g-fmt;
641 &sub-g-frequency;
642 &sub-g-input;
643 &sub-g-jpegcomp;
644 &sub-g-modulator;
645 &sub-g-output;
646 &sub-g-parm;
647 &sub-g-priority;
Tomasz Stanislawski8af49222011-08-19 07:00:04 -0300648 &sub-g-selection;
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300649 &sub-g-sliced-vbi-cap;
650 &sub-g-std;
651 &sub-g-tuner;
652 &sub-log-status;
653 &sub-overlay;
Hans Verkuil87736df2012-06-06 17:48:46 -0300654 &sub-prepare-buf;
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300655 &sub-qbuf;
656 &sub-querybuf;
657 &sub-querycap;
658 &sub-queryctrl;
Hans Verkuil7dcc6062012-05-15 08:04:28 -0300659 &sub-query-dv-timings;
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300660 &sub-querystd;
661 &sub-reqbufs;
662 &sub-s-hw-freq-seek;
663 &sub-streamon;
Laurent Pinchart35c30172010-05-05 11:38:35 -0300664 &sub-subdev-enum-frame-interval;
Laurent Pinchart333c8b92010-03-15 20:26:04 -0300665 &sub-subdev-enum-frame-size;
666 &sub-subdev-enum-mbus-code;
Antti Koskipaaf6a5cb12010-06-23 05:03:42 -0300667 &sub-subdev-g-crop;
Laurent Pinchart333c8b92010-03-15 20:26:04 -0300668 &sub-subdev-g-fmt;
Laurent Pinchart35c30172010-05-05 11:38:35 -0300669 &sub-subdev-g-frame-interval;
Sakari Ailus955f6452011-12-12 18:17:25 -0300670 &sub-subdev-g-selection;
Sakari Ailusdd966082010-03-27 10:58:24 -0300671 &sub-subscribe-event;
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300672 <!-- End of ioctls. -->
673 &sub-mmap;
674 &sub-munmap;
675 &sub-open;
676 &sub-poll;
677 &sub-read;
678 &sub-select;
679 &sub-write;
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300680 </appendix>
681
Sakari Ailus64b9ce82012-06-01 13:56:53 -0300682 <appendix>
683 <title>Common definitions for V4L2 and V4L2 subdev interfaces</title>
684 &sub-selections-common;
685 </appendix>
686
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300687 <appendix id="videodev">
688 <title>Video For Linux Two Header File</title>
689 &sub-videodev2-h;
690 </appendix>
691
692 <appendix id="capture-example">
693 <title>Video Capture Example</title>
694 &sub-capture-c;
695 </appendix>
696
697 <appendix id="v4l2grab-example">
698 <title>Video Grabber example using libv4l</title>
699 <para>This program demonstrates how to grab V4L2 images in ppm format by
700using libv4l handlers. The advantage is that this grabber can potentially work
701with any V4L2 driver.</para>
702 &sub-v4l2grab-c;
703 </appendix>
704
705 &sub-media-indices;
706
707 &sub-biblio;
708