blob: b445161b912c4329079bada5d11f1e1ab3ceede4 [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 Chehab8e080c22009-09-13 22:16:04 -0300139 <holder>Bill Dirks, Michael H. Schimek, Hans Verkuil, Martin
Pawel Osciak53b5d572011-01-07 01:41:33 -0300140Rubli, Andy Walls, Muralidharan Karicheri, Mauro Carvalho Chehab,
141 Pawel Osciak</holder>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300142 </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,
150structs, ioctls) must be noted in more detail in the history chapter
Hans Verkuilf44026d2010-08-06 12:52:43 -0300151(compat.xml), along with the possible impact on existing drivers and
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300152applications. -->
153
154 <revision>
Hans Verkuil26f08db2014-02-03 07:29:03 -0300155 <revnumber>3.15</revnumber>
156 <date>2014-02-03</date>
Mauro Carvalho Chehabfee629e2014-02-07 11:19:37 -0300157 <authorinitials>hv, ap</authorinitials>
Hans Verkuil5d5f87b2014-02-04 09:55:19 -0300158 <revremark>Update several sections of "Common API Elements": "Opening and Closing Devices"
Hans Verkuil26f08db2014-02-03 07:29:03 -0300159"Querying Capabilities", "Application Priority", "Video Inputs and Outputs", "Audio Inputs and Outputs"
Mauro Carvalho Chehabfee629e2014-02-07 11:19:37 -0300160"Tuners and Modulators", "Video Standards" and "Digital Video (DV) Timings". Added SDR API.
Hans Verkuil26f08db2014-02-03 07:29:03 -0300161 </revremark>
162 </revision>
163
164 <revision>
Ricardo Ribaldaf90580c2013-11-26 05:31:42 -0300165 <revnumber>3.14</revnumber>
166 <date>2013-11-25</date>
167 <authorinitials>rr</authorinitials>
168 <revremark>Set width and height as unsigned on v4l2_rect.
169 </revremark>
170 </revision>
171
172 <revision>
Hans Verkuila6edca32013-05-26 09:45:23 -0300173 <revnumber>3.11</revnumber>
174 <date>2013-05-26</date>
175 <authorinitials>hv</authorinitials>
176 <revremark>Remove obsolete VIDIOC_DBG_G_CHIP_IDENT ioctl.
177 </revremark>
178 </revision>
179
180 <revision>
Hans Verkuil4e5f1132013-03-24 06:08:00 -0300181 <revnumber>3.10</revnumber>
Hans Verkuile3f75862013-03-25 08:49:15 -0300182 <date>2013-03-25</date>
Hans Verkuil4e5f1132013-03-24 06:08:00 -0300183 <authorinitials>hv</authorinitials>
184 <revremark>Remove obsolete and unused DV_PRESET ioctls:
185 VIDIOC_G_DV_PRESET, VIDIOC_S_DV_PRESET, VIDIOC_QUERY_DV_PRESET and
186 VIDIOC_ENUM_DV_PRESET. Remove the related v4l2_input/output capability
Hans Verkuil96b03d22013-04-06 06:16:58 -0300187 flags V4L2_IN_CAP_PRESETS and V4L2_OUT_CAP_PRESETS. Added VIDIOC_DBG_G_CHIP_INFO.
Hans Verkuil4e5f1132013-03-24 06:08:00 -0300188 </revremark>
189 </revision>
190
191 <revision>
Sakari Ailus1202ecd2012-10-21 16:02:47 -0300192 <revnumber>3.9</revnumber>
193 <date>2012-12-03</date>
Sylwester Nawrocki2ccbe772013-01-19 15:51:55 -0300194 <authorinitials>sa, sn</authorinitials>
Hans Verkuil07b64b82013-01-11 08:18:55 -0300195 <revremark>Added timestamp types to v4l2_buffer.
Hans Verkuilb5958dc2013-03-18 13:28:12 -0300196 Added V4L2_EVENT_CTRL_CH_RANGE control event changes flag.
Sakari Ailus1202ecd2012-10-21 16:02:47 -0300197 </revremark>
198 </revision>
199
200 <revision>
Hans Verkuil50121312012-07-05 06:54:38 -0300201 <revnumber>3.6</revnumber>
202 <date>2012-07-02</date>
203 <authorinitials>hv</authorinitials>
204 <revremark>Added VIDIOC_ENUM_FREQ_BANDS.
205 </revremark>
Hans Verkuil571d19c2012-08-09 06:04:43 -0300206 </revision>
207
208 <revision>
Sakari Ailus6ec299f2011-08-06 16:13:47 -0300209 <revnumber>3.5</revnumber>
Sylwester Nawrocki2272ab62012-05-11 06:37:03 -0300210 <date>2012-05-07</date>
Hans Verkuil571d19c2012-08-09 06:04:43 -0300211 <authorinitials>sa, sn, hv</authorinitials>
Sakari Ailus955f6452011-12-12 18:17:25 -0300212 <revremark>Added V4L2_CTRL_TYPE_INTEGER_MENU and V4L2 subdev
Sylwester Nawrocki6491d1a2012-04-02 06:40:19 -0300213 selections API. Improved the description of V4L2_CID_COLORFX
214 control, added V4L2_CID_COLORFX_CBCR control.
Sylwester Nawrocki2272ab62012-05-11 06:37:03 -0300215 Added camera controls V4L2_CID_AUTO_EXPOSURE_BIAS,
216 V4L2_CID_AUTO_N_PRESET_WHITE_BALANCE, V4L2_CID_IMAGE_STABILIZATION,
217 V4L2_CID_ISO_SENSITIVITY, V4L2_CID_ISO_SENSITIVITY_AUTO,
218 V4L2_CID_EXPOSURE_METERING, V4L2_CID_SCENE_MODE,
219 V4L2_CID_3A_LOCK, V4L2_CID_AUTO_FOCUS_START,
220 V4L2_CID_AUTO_FOCUS_STOP, V4L2_CID_AUTO_FOCUS_STATUS
221 and V4L2_CID_AUTO_FOCUS_RANGE.
Hans Verkuil571d19c2012-08-09 06:04:43 -0300222 Added VIDIOC_ENUM_DV_TIMINGS, VIDIOC_QUERY_DV_TIMINGS and
223 VIDIOC_DV_TIMINGS_CAP.
Hans Verkuil7dcc6062012-05-15 08:04:28 -0300224 </revremark>
Sakari Ailus6ec299f2011-08-06 16:13:47 -0300225 </revision>
226
227 <revision>
Sylwester Nawrocki29fa0ee2012-01-20 15:38:50 -0300228 <revnumber>3.4</revnumber>
229 <date>2012-01-25</date>
230 <authorinitials>sn</authorinitials>
231 <revremark>Added <link linkend="jpeg-controls">JPEG compression
232 control class.</link>
233 </revremark>
234 </revision>
235
236 <revision>
Hans Verkuil583aa3a2012-01-11 06:45:05 -0300237 <revnumber>3.3</revnumber>
238 <date>2012-01-11</date>
239 <authorinitials>hv</authorinitials>
240 <revremark>Added device_caps field to struct v4l2_capabilities.</revremark>
241 </revision>
242
243 <revision>
Hans Verkuil74a45792011-08-26 07:31:13 -0300244 <revnumber>3.2</revnumber>
245 <date>2011-08-26</date>
246 <authorinitials>hv</authorinitials>
247 <revremark>Added V4L2_CTRL_FLAG_VOLATILE.</revremark>
248 </revision>
249
250 <revision>
Mauro Carvalho Chehabc20eb182011-06-25 14:11:52 -0300251 <revnumber>3.1</revnumber>
252 <date>2011-06-27</date>
Hans Verkuilaec67f02011-05-23 07:36:55 -0300253 <authorinitials>mcc, po, hv</authorinitials>
254 <revremark>Documented that VIDIOC_QUERYCAP now returns a per-subsystem version instead of a per-driver one.
255 Standardize an error code for invalid ioctl.
256 Added V4L2_CTRL_TYPE_BITMASK.</revremark>
Mauro Carvalho Chehabc20eb182011-06-25 14:11:52 -0300257 </revision>
Mauro Carvalho Chehab9190d192011-07-06 14:08:08 -0300258
Mauro Carvalho Chehabc20eb182011-06-25 14:11:52 -0300259 <revision>
Mauro Carvalho Chehab3822f182011-03-01 16:03:11 -0300260 <revnumber>2.6.39</revnumber>
261 <date>2011-03-01</date>
Pawel Osciakf0e3b642011-03-13 15:20:22 -0300262 <authorinitials>mcc, po</authorinitials>
263 <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 -0300264 </revision>
265
266 <revision>
Hans Verkuilf44026d2010-08-06 12:52:43 -0300267 <revnumber>2.6.37</revnumber>
268 <date>2010-08-06</date>
269 <authorinitials>hv</authorinitials>
270 <revremark>Removed obsolete vtx (videotext) API.</revremark>
271 </revision>
272
273 <revision>
Hans Verkuilb33f5f82009-12-03 01:32:12 -0300274 <revnumber>2.6.33</revnumber>
275 <date>2009-12-03</date>
276 <authorinitials>mk</authorinitials>
277 <revremark>Added documentation for the Digital Video timings API.</revremark>
278 </revision>
279
280 <revision>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300281 <revnumber>2.6.32</revnumber>
282 <date>2009-08-31</date>
283 <authorinitials>mcc</authorinitials>
284 <revremark>Now, revisions will match the kernel version where
285the V4L2 API changes will be used by the Linux Kernel.
286Also added Remote Controller chapter.</revremark>
287 </revision>
288
289 <revision>
290 <revnumber>0.29</revnumber>
291 <date>2009-08-26</date>
292 <authorinitials>ev</authorinitials>
293 <revremark>Added documentation for string controls and for FM Transmitter controls.</revremark>
294 </revision>
295
296 <revision>
297 <revnumber>0.28</revnumber>
298 <date>2009-08-26</date>
299 <authorinitials>gl</authorinitials>
300 <revremark>Added V4L2_CID_BAND_STOP_FILTER documentation.</revremark>
301 </revision>
302
303 <revision>
304 <revnumber>0.27</revnumber>
305 <date>2009-08-15</date>
306 <authorinitials>mcc</authorinitials>
307 <revremark>Added libv4l and Remote Controller documentation;
308added v4l2grab and keytable application examples.</revremark>
309 </revision>
310
311 <revision>
312 <revnumber>0.26</revnumber>
313 <date>2009-07-23</date>
314 <authorinitials>hv</authorinitials>
315 <revremark>Finalized the RDS capture API. Added modulator and RDS encoder
316capabilities. Added support for string controls.</revremark>
317 </revision>
318
319 <revision>
320 <revnumber>0.25</revnumber>
321 <date>2009-01-18</date>
322 <authorinitials>hv</authorinitials>
323 <revremark>Added pixel formats VYUY, NV16 and NV61, and changed
324the debug ioctls VIDIOC_DBG_G/S_REGISTER and VIDIOC_DBG_G_CHIP_IDENT.
325Added camera controls V4L2_CID_ZOOM_ABSOLUTE, V4L2_CID_ZOOM_RELATIVE,
326V4L2_CID_ZOOM_CONTINUOUS and V4L2_CID_PRIVACY.</revremark>
327 </revision>
328
329 <revision>
330 <revnumber>0.24</revnumber>
331 <date>2008-03-04</date>
332 <authorinitials>mhs</authorinitials>
333 <revremark>Added pixel formats Y16 and SBGGR16, new controls
334and a camera controls class. Removed VIDIOC_G/S_MPEGCOMP.</revremark>
335 </revision>
336
337 <revision>
338 <revnumber>0.23</revnumber>
339 <date>2007-08-30</date>
340 <authorinitials>mhs</authorinitials>
341 <revremark>Fixed a typo in VIDIOC_DBG_G/S_REGISTER.
342Clarified the byte order of packed pixel formats.</revremark>
343 </revision>
344
345 <revision>
346 <revnumber>0.22</revnumber>
347 <date>2007-08-29</date>
348 <authorinitials>mhs</authorinitials>
349 <revremark>Added the Video Output Overlay interface, new MPEG
350controls, V4L2_FIELD_INTERLACED_TB and V4L2_FIELD_INTERLACED_BT,
351VIDIOC_DBG_G/S_REGISTER, VIDIOC_(TRY_)ENCODER_CMD,
352VIDIOC_G_CHIP_IDENT, VIDIOC_G_ENC_INDEX, new pixel formats.
353Clarifications in the cropping chapter, about RGB pixel formats, the
354mmap(), poll(), select(), read() and write() functions. Typographical
355fixes.</revremark>
356 </revision>
357
358 <revision>
359 <revnumber>0.21</revnumber>
360 <date>2006-12-19</date>
361 <authorinitials>mhs</authorinitials>
362 <revremark>Fixed a link in the VIDIOC_G_EXT_CTRLS section.</revremark>
363 </revision>
364
365 <revision>
366 <revnumber>0.20</revnumber>
367 <date>2006-11-24</date>
368 <authorinitials>mhs</authorinitials>
369 <revremark>Clarified the purpose of the audioset field in
370struct v4l2_input and v4l2_output.</revremark>
371 </revision>
372
373 <revision>
374 <revnumber>0.19</revnumber>
375 <date>2006-10-19</date>
376 <authorinitials>mhs</authorinitials>
377 <revremark>Documented V4L2_PIX_FMT_RGB444.</revremark>
378 </revision>
379
380 <revision>
381 <revnumber>0.18</revnumber>
382 <date>2006-10-18</date>
383 <authorinitials>mhs</authorinitials>
384 <revremark>Added the description of extended controls by Hans
385Verkuil. Linked V4L2_PIX_FMT_MPEG to V4L2_CID_MPEG_STREAM_TYPE.</revremark>
386 </revision>
387
388 <revision>
389 <revnumber>0.17</revnumber>
390 <date>2006-10-12</date>
391 <authorinitials>mhs</authorinitials>
392 <revremark>Corrected V4L2_PIX_FMT_HM12 description.</revremark>
393 </revision>
394
395 <revision>
396 <revnumber>0.16</revnumber>
397 <date>2006-10-08</date>
398 <authorinitials>mhs</authorinitials>
399 <revremark>VIDIOC_ENUM_FRAMESIZES and
400VIDIOC_ENUM_FRAMEINTERVALS are now part of the API.</revremark>
401 </revision>
402
403 <revision>
404 <revnumber>0.15</revnumber>
405 <date>2006-09-23</date>
406 <authorinitials>mhs</authorinitials>
407 <revremark>Cleaned up the bibliography, added BT.653 and
408BT.1119. capture.c/start_capturing() for user pointer I/O did not
409initialize the buffer index. Documented the V4L MPEG and MJPEG
410VID_TYPEs and V4L2_PIX_FMT_SBGGR8. Updated the list of reserved pixel
411formats. See the history chapter for API changes.</revremark>
412 </revision>
413
414 <revision>
415 <revnumber>0.14</revnumber>
416 <date>2006-09-14</date>
417 <authorinitials>mr</authorinitials>
418 <revremark>Added VIDIOC_ENUM_FRAMESIZES and
419VIDIOC_ENUM_FRAMEINTERVALS proposal for frame format enumeration of
420digital devices.</revremark>
421 </revision>
422
423 <revision>
424 <revnumber>0.13</revnumber>
425 <date>2006-04-07</date>
426 <authorinitials>mhs</authorinitials>
427 <revremark>Corrected the description of struct v4l2_window
428clips. New V4L2_STD_ and V4L2_TUNER_MODE_LANG1_LANG2
429defines.</revremark>
430 </revision>
431
432 <revision>
433 <revnumber>0.12</revnumber>
434 <date>2006-02-03</date>
435 <authorinitials>mhs</authorinitials>
436 <revremark>Corrected the description of struct
437v4l2_captureparm and v4l2_outputparm.</revremark>
438 </revision>
439
440 <revision>
441 <revnumber>0.11</revnumber>
442 <date>2006-01-27</date>
443 <authorinitials>mhs</authorinitials>
444 <revremark>Improved the description of struct
445v4l2_tuner.</revremark>
446 </revision>
447
448 <revision>
449 <revnumber>0.10</revnumber>
450 <date>2006-01-10</date>
451 <authorinitials>mhs</authorinitials>
452 <revremark>VIDIOC_G_INPUT and VIDIOC_S_PARM
453clarifications.</revremark>
454 </revision>
455
456 <revision>
457 <revnumber>0.9</revnumber>
458 <date>2005-11-27</date>
459 <authorinitials>mhs</authorinitials>
460 <revremark>Improved the 525 line numbering diagram. Hans
461Verkuil and I rewrote the sliced VBI section. He also contributed a
462VIDIOC_LOG_STATUS page. Fixed VIDIOC_S_STD call in the video standard
463selection example. Various updates.</revremark>
464 </revision>
465
466 <revision>
467 <revnumber>0.8</revnumber>
468 <date>2004-10-04</date>
469 <authorinitials>mhs</authorinitials>
470 <revremark>Somehow a piece of junk slipped into the capture
471example, removed.</revremark>
472 </revision>
473
474 <revision>
475 <revnumber>0.7</revnumber>
476 <date>2004-09-19</date>
477 <authorinitials>mhs</authorinitials>
478 <revremark>Fixed video standard selection, control
479enumeration, downscaling and aspect example. Added read and user
480pointer i/o to video capture example.</revremark>
481 </revision>
482
483 <revision>
484 <revnumber>0.6</revnumber>
485 <date>2004-08-01</date>
486 <authorinitials>mhs</authorinitials>
487 <revremark>v4l2_buffer changes, added video capture example,
488various corrections.</revremark>
489 </revision>
490
491 <revision>
492 <revnumber>0.5</revnumber>
493 <date>2003-11-05</date>
494 <authorinitials>mhs</authorinitials>
495 <revremark>Pixel format erratum.</revremark>
496 </revision>
497
498 <revision>
499 <revnumber>0.4</revnumber>
500 <date>2003-09-17</date>
501 <authorinitials>mhs</authorinitials>
502 <revremark>Corrected source and Makefile to generate a PDF.
503SGML fixes. Added latest API changes. Closed gaps in the history
504chapter.</revremark>
505 </revision>
506
507 <revision>
508 <revnumber>0.3</revnumber>
509 <date>2003-02-05</date>
510 <authorinitials>mhs</authorinitials>
511 <revremark>Another draft, more corrections.</revremark>
512 </revision>
513
514 <revision>
515 <revnumber>0.2</revnumber>
516 <date>2003-01-15</date>
517 <authorinitials>mhs</authorinitials>
518 <revremark>Second draft, with corrections pointed out by Gerd
519Knorr.</revremark>
520 </revision>
521
522 <revision>
523 <revnumber>0.1</revnumber>
524 <date>2002-12-01</date>
525 <authorinitials>mhs</authorinitials>
526 <revremark>First draft, based on documentation by Bill Dirks
527and discussions on the V4L mailing list.</revremark>
528 </revision>
529 </revhistory>
530</partinfo>
531
532<title>Video for Linux Two API Specification</title>
Ricardo Ribaldaf90580c2013-11-26 05:31:42 -0300533 <subtitle>Revision 3.14</subtitle>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300534
535 <chapter id="common">
536 &sub-common;
537 </chapter>
538
539 <chapter id="pixfmt">
540 &sub-pixfmt;
541 </chapter>
542
543 <chapter id="io">
544 &sub-io;
545 </chapter>
546
547 <chapter id="devices">
548 <title>Interfaces</title>
549
550 <section id="capture"> &sub-dev-capture; </section>
551 <section id="overlay"> &sub-dev-overlay; </section>
552 <section id="output"> &sub-dev-output; </section>
553 <section id="osd"> &sub-dev-osd; </section>
554 <section id="codec"> &sub-dev-codec; </section>
555 <section id="effect"> &sub-dev-effect; </section>
556 <section id="raw-vbi"> &sub-dev-raw-vbi; </section>
557 <section id="sliced"> &sub-dev-sliced-vbi; </section>
558 <section id="ttx"> &sub-dev-teletext; </section>
559 <section id="radio"> &sub-dev-radio; </section>
560 <section id="rds"> &sub-dev-rds; </section>
Antti Palosaari559f40f2013-12-20 01:50:38 -0300561 <section id="sdr"> &sub-dev-sdr; </section>
Sakari Ailusdd966082010-03-27 10:58:24 -0300562 <section id="event"> &sub-dev-event; </section>
Laurent Pinchart333c8b92010-03-15 20:26:04 -0300563 <section id="subdev"> &sub-dev-subdev; </section>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300564 </chapter>
565
566 <chapter id="driver">
567 &sub-driver;
568 </chapter>
569
570 <chapter id="libv4l">
571 &sub-libv4l;
572 </chapter>
573
574 <chapter id="compat">
575 &sub-compat;
576 </chapter>
577
Mauro Carvalho Chehabdb17ab92009-09-17 01:44:22 -0300578 <appendix id="user-func">
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300579 <title>Function Reference</title>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300580
581 <!-- Keep this alphabetically sorted. -->
582
583 &sub-close;
584 &sub-ioctl;
585 <!-- All ioctls go here. -->
Guennadi Liakhovetski55093282011-09-28 08:10:58 -0300586 &sub-create-bufs;
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300587 &sub-cropcap;
Hans Verkuil96b03d22013-04-06 06:16:58 -0300588 &sub-dbg-g-chip-info;
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300589 &sub-dbg-g-register;
Hans Verkuil6b4f1252011-11-24 09:55:53 -0300590 &sub-decoder-cmd;
Sakari Ailusdd966082010-03-27 10:58:24 -0300591 &sub-dqevent;
Hans Verkuil7dcc6062012-05-15 08:04:28 -0300592 &sub-dv-timings-cap;
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300593 &sub-encoder-cmd;
594 &sub-enumaudio;
595 &sub-enumaudioout;
Hans Verkuil7dcc6062012-05-15 08:04:28 -0300596 &sub-enum-dv-timings;
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300597 &sub-enum-fmt;
598 &sub-enum-framesizes;
599 &sub-enum-frameintervals;
Hans Verkuil50121312012-07-05 06:54:38 -0300600 &sub-enum-freq-bands;
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300601 &sub-enuminput;
602 &sub-enumoutput;
603 &sub-enumstd;
Tomasz Stanislawski19b6ef52012-06-14 11:32:22 -0300604 &sub-expbuf;
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300605 &sub-g-audio;
606 &sub-g-audioout;
607 &sub-g-crop;
608 &sub-g-ctrl;
Muralidharan Karicheri007701e2009-12-03 01:13:17 -0300609 &sub-g-dv-timings;
Hans Verkuile2543652014-03-07 11:17:33 -0300610 &sub-g-edid;
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300611 &sub-g-enc-index;
612 &sub-g-ext-ctrls;
613 &sub-g-fbuf;
614 &sub-g-fmt;
615 &sub-g-frequency;
616 &sub-g-input;
617 &sub-g-jpegcomp;
618 &sub-g-modulator;
619 &sub-g-output;
620 &sub-g-parm;
621 &sub-g-priority;
Tomasz Stanislawski8af49222011-08-19 07:00:04 -0300622 &sub-g-selection;
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300623 &sub-g-sliced-vbi-cap;
624 &sub-g-std;
625 &sub-g-tuner;
626 &sub-log-status;
627 &sub-overlay;
Hans Verkuil87736df2012-06-06 17:48:46 -0300628 &sub-prepare-buf;
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300629 &sub-qbuf;
630 &sub-querybuf;
631 &sub-querycap;
632 &sub-queryctrl;
Hans Verkuil7dcc6062012-05-15 08:04:28 -0300633 &sub-query-dv-timings;
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300634 &sub-querystd;
635 &sub-reqbufs;
636 &sub-s-hw-freq-seek;
637 &sub-streamon;
Laurent Pinchart35c30172010-05-05 11:38:35 -0300638 &sub-subdev-enum-frame-interval;
Laurent Pinchart333c8b92010-03-15 20:26:04 -0300639 &sub-subdev-enum-frame-size;
640 &sub-subdev-enum-mbus-code;
Antti Koskipaaf6a5cb12010-06-23 05:03:42 -0300641 &sub-subdev-g-crop;
Laurent Pinchart333c8b92010-03-15 20:26:04 -0300642 &sub-subdev-g-fmt;
Laurent Pinchart35c30172010-05-05 11:38:35 -0300643 &sub-subdev-g-frame-interval;
Sakari Ailus955f6452011-12-12 18:17:25 -0300644 &sub-subdev-g-selection;
Sakari Ailusdd966082010-03-27 10:58:24 -0300645 &sub-subscribe-event;
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300646 <!-- End of ioctls. -->
647 &sub-mmap;
648 &sub-munmap;
649 &sub-open;
650 &sub-poll;
651 &sub-read;
652 &sub-select;
653 &sub-write;
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300654 </appendix>
655
Sakari Ailus64b9ce82012-06-01 13:56:53 -0300656 <appendix>
657 <title>Common definitions for V4L2 and V4L2 subdev interfaces</title>
658 &sub-selections-common;
659 </appendix>
660
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300661 <appendix id="videodev">
662 <title>Video For Linux Two Header File</title>
663 &sub-videodev2-h;
664 </appendix>
665
666 <appendix id="capture-example">
667 <title>Video Capture Example</title>
668 &sub-capture-c;
669 </appendix>
670
671 <appendix id="v4l2grab-example">
672 <title>Video Grabber example using libv4l</title>
673 <para>This program demonstrates how to grab V4L2 images in ppm format by
674using libv4l handlers. The advantage is that this grabber can potentially work
675with any V4L2 driver.</para>
676 &sub-v4l2grab-c;
677 </appendix>
678
679 &sub-media-indices;
680
681 &sub-biblio;
682