Merge tag 'char-misc-4.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh...
[linux-2.6-block.git] / Documentation / DocBook / media / v4l / controls.xml
CommitLineData
8e080c2e
MCC
1 <section id="control">
2 <title>User Controls</title>
3
4 <para>Devices typically have a number of user-settable controls
5such as brightness, saturation and so on, which would be presented to
6the user on a graphical user interface. But, different devices
7will have different controls available, and furthermore, the range of
8possible values, and the default value will vary from device to
9device. The control ioctls provide the information and a mechanism to
10create a nice user interface for these controls that will work
11correctly with any device.</para>
12
13 <para>All controls are accessed using an ID value. V4L2 defines
14several IDs for specific purposes. Drivers can also implement their
15own custom controls using <constant>V4L2_CID_PRIVATE_BASE</constant>
48e393a2
HV
16<footnote><para>The use of <constant>V4L2_CID_PRIVATE_BASE</constant>
17is problematic because different drivers may use the same
18<constant>V4L2_CID_PRIVATE_BASE</constant> ID for different controls.
19This makes it hard to programatically set such controls since the meaning
20of the control with that ID is driver dependent. In order to resolve this
21drivers use unique IDs and the <constant>V4L2_CID_PRIVATE_BASE</constant>
22IDs are mapped to those unique IDs by the kernel. Consider these
23<constant>V4L2_CID_PRIVATE_BASE</constant> IDs as aliases to the real
24IDs.</para>
25<para>Many applications today still use the <constant>V4L2_CID_PRIVATE_BASE</constant>
26IDs instead of using &VIDIOC-QUERYCTRL; with the <constant>V4L2_CTRL_FLAG_NEXT_CTRL</constant>
27flag to enumerate all IDs, so support for <constant>V4L2_CID_PRIVATE_BASE</constant>
28is still around.</para></footnote>
8e080c2e
MCC
29and higher values. The pre-defined control IDs have the prefix
30<constant>V4L2_CID_</constant>, and are listed in <xref
31linkend="control-id" />. The ID is used when querying the attributes of
32a control, and when getting or setting the current value.</para>
33
34 <para>Generally applications should present controls to the user
35without assumptions about their purpose. Each control comes with a
36name string the user is supposed to understand. When the purpose is
37non-intuitive the driver writer should provide a user manual, a user
38interface plug-in or a driver specific panel application. Predefined
39IDs were introduced to change a few controls programmatically, for
40example to mute a device during a channel switch.</para>
41
42 <para>Drivers may enumerate different controls after switching
43the current video input or output, tuner or modulator, or audio input
44or output. Different in the sense of other bounds, another default and
45current value, step size or other menu items. A control with a certain
46<emphasis>custom</emphasis> ID can also change name and
48e393a2
HV
47type.</para>
48
49 <para>If a control is not applicable to the current configuration
50of the device (for example, it doesn't apply to the current video input)
51drivers set the <constant>V4L2_CTRL_FLAG_INACTIVE</constant> flag.</para>
52
53 <para>Control values are stored globally, they do not
8e080c2e
MCC
54change when switching except to stay within the reported bounds. They
55also do not change &eg; when the device is opened or closed, when the
56tuner radio frequency is changed or generally never without
48e393a2
HV
57application request.</para>
58
59 <para>V4L2 specifies an event mechanism to notify applications
60when controls change value (see &VIDIOC-SUBSCRIBE-EVENT;, event
61<constant>V4L2_EVENT_CTRL</constant>), panel applications might want to make
62use of that in order to always reflect the correct control value.</para>
8e080c2e 63
0f427218
SA
64 <para>
65 All controls use machine endianness.
66 </para>
67
8e080c2e
MCC
68 <table pgwide="1" frame="none" id="control-id">
69 <title>Control IDs</title>
70 <tgroup cols="3">
71 &cs-def;
72 <thead>
73 <row>
74 <entry>ID</entry>
75 <entry>Type</entry>
76 <entry>Description</entry>
77 </row>
78 </thead>
79 <tbody valign="top">
80 <row>
81 <entry><constant>V4L2_CID_BASE</constant></entry>
82 <entry></entry>
83 <entry>First predefined ID, equal to
84<constant>V4L2_CID_BRIGHTNESS</constant>.</entry>
85 </row>
86 <row>
87 <entry><constant>V4L2_CID_USER_BASE</constant></entry>
88 <entry></entry>
89 <entry>Synonym of <constant>V4L2_CID_BASE</constant>.</entry>
90 </row>
91 <row>
92 <entry><constant>V4L2_CID_BRIGHTNESS</constant></entry>
93 <entry>integer</entry>
94 <entry>Picture brightness, or more precisely, the black
95level.</entry>
96 </row>
97 <row>
98 <entry><constant>V4L2_CID_CONTRAST</constant></entry>
99 <entry>integer</entry>
100 <entry>Picture contrast or luma gain.</entry>
101 </row>
102 <row>
103 <entry><constant>V4L2_CID_SATURATION</constant></entry>
104 <entry>integer</entry>
105 <entry>Picture color saturation or chroma gain.</entry>
106 </row>
107 <row>
108 <entry><constant>V4L2_CID_HUE</constant></entry>
109 <entry>integer</entry>
110 <entry>Hue or color balance.</entry>
111 </row>
112 <row>
113 <entry><constant>V4L2_CID_AUDIO_VOLUME</constant></entry>
114 <entry>integer</entry>
115 <entry>Overall audio volume. Note some drivers also
116provide an OSS or ALSA mixer interface.</entry>
117 </row>
118 <row>
119 <entry><constant>V4L2_CID_AUDIO_BALANCE</constant></entry>
120 <entry>integer</entry>
121 <entry>Audio stereo balance. Minimum corresponds to all
122the way left, maximum to right.</entry>
123 </row>
124 <row>
125 <entry><constant>V4L2_CID_AUDIO_BASS</constant></entry>
126 <entry>integer</entry>
127 <entry>Audio bass adjustment.</entry>
128 </row>
129 <row>
130 <entry><constant>V4L2_CID_AUDIO_TREBLE</constant></entry>
131 <entry>integer</entry>
132 <entry>Audio treble adjustment.</entry>
133 </row>
134 <row>
135 <entry><constant>V4L2_CID_AUDIO_MUTE</constant></entry>
136 <entry>boolean</entry>
137 <entry>Mute audio, &ie; set the volume to zero, however
138without affecting <constant>V4L2_CID_AUDIO_VOLUME</constant>. Like
139ALSA drivers, V4L2 drivers must mute at load time to avoid excessive
140noise. Actually the entire device should be reset to a low power
141consumption state.</entry>
142 </row>
143 <row>
144 <entry><constant>V4L2_CID_AUDIO_LOUDNESS</constant></entry>
145 <entry>boolean</entry>
146 <entry>Loudness mode (bass boost).</entry>
147 </row>
148 <row>
149 <entry><constant>V4L2_CID_BLACK_LEVEL</constant></entry>
150 <entry>integer</entry>
151 <entry>Another name for brightness (not a synonym of
152<constant>V4L2_CID_BRIGHTNESS</constant>). This control is deprecated
153and should not be used in new drivers and applications.</entry>
154 </row>
155 <row>
156 <entry><constant>V4L2_CID_AUTO_WHITE_BALANCE</constant></entry>
157 <entry>boolean</entry>
158 <entry>Automatic white balance (cameras).</entry>
159 </row>
160 <row>
161 <entry><constant>V4L2_CID_DO_WHITE_BALANCE</constant></entry>
162 <entry>button</entry>
163 <entry>This is an action control. When set (the value is
164ignored), the device will do a white balance and then hold the current
165setting. Contrast this with the boolean
166<constant>V4L2_CID_AUTO_WHITE_BALANCE</constant>, which, when
167activated, keeps adjusting the white balance.</entry>
168 </row>
169 <row>
170 <entry><constant>V4L2_CID_RED_BALANCE</constant></entry>
171 <entry>integer</entry>
172 <entry>Red chroma balance.</entry>
173 </row>
174 <row>
175 <entry><constant>V4L2_CID_BLUE_BALANCE</constant></entry>
176 <entry>integer</entry>
177 <entry>Blue chroma balance.</entry>
178 </row>
179 <row>
180 <entry><constant>V4L2_CID_GAMMA</constant></entry>
181 <entry>integer</entry>
182 <entry>Gamma adjust.</entry>
183 </row>
184 <row>
185 <entry><constant>V4L2_CID_WHITENESS</constant></entry>
186 <entry>integer</entry>
187 <entry>Whiteness for grey-scale devices. This is a synonym
188for <constant>V4L2_CID_GAMMA</constant>. This control is deprecated
189and should not be used in new drivers and applications.</entry>
190 </row>
191 <row>
192 <entry><constant>V4L2_CID_EXPOSURE</constant></entry>
193 <entry>integer</entry>
194 <entry>Exposure (cameras). [Unit?]</entry>
195 </row>
196 <row>
197 <entry><constant>V4L2_CID_AUTOGAIN</constant></entry>
198 <entry>boolean</entry>
199 <entry>Automatic gain/exposure control.</entry>
200 </row>
201 <row>
202 <entry><constant>V4L2_CID_GAIN</constant></entry>
203 <entry>integer</entry>
204 <entry>Gain control.</entry>
205 </row>
206 <row>
207 <entry><constant>V4L2_CID_HFLIP</constant></entry>
208 <entry>boolean</entry>
209 <entry>Mirror the picture horizontally.</entry>
210 </row>
211 <row>
212 <entry><constant>V4L2_CID_VFLIP</constant></entry>
213 <entry>boolean</entry>
214 <entry>Mirror the picture vertically.</entry>
215 </row>
8e080c2e
MCC
216 <row id="v4l2-power-line-frequency">
217 <entry><constant>V4L2_CID_POWER_LINE_FREQUENCY</constant></entry>
218 <entry>enum</entry>
219 <entry>Enables a power line frequency filter to avoid
220flicker. Possible values for <constant>enum v4l2_power_line_frequency</constant> are:
221<constant>V4L2_CID_POWER_LINE_FREQUENCY_DISABLED</constant> (0),
d26a6635
SN
222<constant>V4L2_CID_POWER_LINE_FREQUENCY_50HZ</constant> (1),
223<constant>V4L2_CID_POWER_LINE_FREQUENCY_60HZ</constant> (2) and
224<constant>V4L2_CID_POWER_LINE_FREQUENCY_AUTO</constant> (3).</entry>
8e080c2e
MCC
225 </row>
226 <row>
227 <entry><constant>V4L2_CID_HUE_AUTO</constant></entry>
228 <entry>boolean</entry>
229 <entry>Enables automatic hue control by the device. The
230effect of setting <constant>V4L2_CID_HUE</constant> while automatic
231hue control is enabled is undefined, drivers should ignore such
232request.</entry>
233 </row>
234 <row>
235 <entry><constant>V4L2_CID_WHITE_BALANCE_TEMPERATURE</constant></entry>
236 <entry>integer</entry>
237 <entry>This control specifies the white balance settings
238as a color temperature in Kelvin. A driver should have a minimum of
2392800 (incandescent) to 6500 (daylight). For more information about
240color temperature see <ulink
241url="http://en.wikipedia.org/wiki/Color_temperature">Wikipedia</ulink>.</entry>
242 </row>
243 <row>
244 <entry><constant>V4L2_CID_SHARPNESS</constant></entry>
245 <entry>integer</entry>
246 <entry>Adjusts the sharpness filters in a camera. The
247minimum value disables the filters, higher values give a sharper
248picture.</entry>
249 </row>
250 <row>
251 <entry><constant>V4L2_CID_BACKLIGHT_COMPENSATION</constant></entry>
252 <entry>integer</entry>
253 <entry>Adjusts the backlight compensation in a camera. The
254minimum value disables backlight compensation.</entry>
255 </row>
256 <row>
257 <entry><constant>V4L2_CID_CHROMA_AGC</constant></entry>
258 <entry>boolean</entry>
259 <entry>Chroma automatic gain control.</entry>
260 </row>
7a01f6db
DH
261 <row>
262 <entry><constant>V4L2_CID_CHROMA_GAIN</constant></entry>
263 <entry>integer</entry>
264 <entry>Adjusts the Chroma gain control (for use when chroma AGC
265 is disabled).</entry>
266 </row>
8e080c2e
MCC
267 <row>
268 <entry><constant>V4L2_CID_COLOR_KILLER</constant></entry>
269 <entry>boolean</entry>
270 <entry>Enable the color killer (&ie; force a black &amp; white image in case of a weak video signal).</entry>
271 </row>
272 <row id="v4l2-colorfx">
273 <entry><constant>V4L2_CID_COLORFX</constant></entry>
274 <entry>enum</entry>
6491d1ad
SN
275 <entry>Selects a color effect. The following values are defined:
276 </entry>
277 </row><row>
278 <entry></entry>
279 <entry></entry>
280 <entrytbl spanname="descr" cols="2">
281 <tbody valign="top">
282 <row>
283 <entry><constant>V4L2_COLORFX_NONE</constant>&nbsp;</entry>
284 <entry>Color effect is disabled.</entry>
285 </row>
286 <row>
287 <entry><constant>V4L2_COLORFX_ANTIQUE</constant>&nbsp;</entry>
288 <entry>An aging (old photo) effect.</entry>
289 </row>
290 <row>
291 <entry><constant>V4L2_COLORFX_ART_FREEZE</constant>&nbsp;</entry>
292 <entry>Frost color effect.</entry>
293 </row>
294 <row>
295 <entry><constant>V4L2_COLORFX_AQUA</constant>&nbsp;</entry>
296 <entry>Water color, cool tone.</entry>
297 </row>
298 <row>
299 <entry><constant>V4L2_COLORFX_BW</constant>&nbsp;</entry>
300 <entry>Black and white.</entry>
301 </row>
302 <row>
303 <entry><constant>V4L2_COLORFX_EMBOSS</constant>&nbsp;</entry>
304 <entry>Emboss, the highlights and shadows replace light/dark boundaries
305 and low contrast areas are set to a gray background.</entry>
306 </row>
307 <row>
308 <entry><constant>V4L2_COLORFX_GRASS_GREEN</constant>&nbsp;</entry>
309 <entry>Grass green.</entry>
310 </row>
311 <row>
312 <entry><constant>V4L2_COLORFX_NEGATIVE</constant>&nbsp;</entry>
313 <entry>Negative.</entry>
314 </row>
315 <row>
316 <entry><constant>V4L2_COLORFX_SEPIA</constant>&nbsp;</entry>
317 <entry>Sepia tone.</entry>
318 </row>
319 <row>
320 <entry><constant>V4L2_COLORFX_SKETCH</constant>&nbsp;</entry>
321 <entry>Sketch.</entry>
322 </row>
323 <row>
324 <entry><constant>V4L2_COLORFX_SKIN_WHITEN</constant>&nbsp;</entry>
325 <entry>Skin whiten.</entry>
326 </row>
327 <row>
328 <entry><constant>V4L2_COLORFX_SKY_BLUE</constant>&nbsp;</entry>
329 <entry>Sky blue.</entry>
330 </row>
331 <row>
332 <entry><constant>V4L2_COLORFX_SOLARIZATION</constant>&nbsp;</entry>
333 <entry>Solarization, the image is partially reversed in tone,
334 only color values above or below a certain threshold are inverted.
335 </entry>
336 </row>
337 <row>
338 <entry><constant>V4L2_COLORFX_SILHOUETTE</constant>&nbsp;</entry>
339 <entry>Silhouette (outline).</entry>
340 </row>
341 <row>
342 <entry><constant>V4L2_COLORFX_VIVID</constant>&nbsp;</entry>
343 <entry>Vivid colors.</entry>
344 </row>
345 <row>
346 <entry><constant>V4L2_COLORFX_SET_CBCR</constant>&nbsp;</entry>
347 <entry>The Cb and Cr chroma components are replaced by fixed
348 coefficients determined by <constant>V4L2_CID_COLORFX_CBCR</constant>
349 control.</entry>
350 </row>
351 </tbody>
352 </entrytbl>
353 </row>
354 <row>
355 <entry><constant>V4L2_CID_COLORFX_CBCR</constant></entry>
356 <entry>integer</entry>
357 <entry>Determines the Cb and Cr coefficients for <constant>V4L2_COLORFX_SET_CBCR</constant>
358 color effect. Bits [7:0] of the supplied 32 bit value are interpreted as
359 Cr component, bits [15:8] as Cb component and bits [31:16] must be zero.
360 </entry>
8e080c2e 361 </row>
a2f8b84f
HG
362 <row>
363 <entry><constant>V4L2_CID_AUTOBRIGHTNESS</constant></entry>
364 <entry>boolean</entry>
365 <entry>Enable Automatic Brightness.</entry>
366 </row>
bd977801
VH
367 <row>
368 <entry><constant>V4L2_CID_ROTATE</constant></entry>
369 <entry>integer</entry>
370 <entry>Rotates the image by specified angle. Common angles are 90,
371 270 and 180. Rotating the image to 90 and 270 will reverse the height
372 and width of the display window. It is necessary to set the new height and
373 width of the picture using the &VIDIOC-S-FMT; ioctl according to
374 the rotation angle selected.</entry>
375 </row>
376 <row>
377 <entry><constant>V4L2_CID_BG_COLOR</constant></entry>
378 <entry>integer</entry>
379 <entry>Sets the background color on the current output device.
380 Background color needs to be specified in the RGB24 format. The
381 supplied 32 bit value is interpreted as bits 0-7 Red color information,
382 bits 8-15 Green color information, bits 16-23 Blue color
383 information and bits 24-31 must be zero.</entry>
384 </row>
008d35f2
JFM
385 <row>
386 <entry><constant>V4L2_CID_ILLUMINATORS_1</constant>
387 <constant>V4L2_CID_ILLUMINATORS_2</constant></entry>
388 <entry>boolean</entry>
389 <entry>Switch on or off the illuminator 1 or 2 of the device
390 (usually a microscope).</entry>
391 </row>
e65e4f13
KD
392 <row>
393 <entry><constant>V4L2_CID_MIN_BUFFERS_FOR_CAPTURE</constant></entry>
394 <entry>integer</entry>
395 <entry>This is a read-only control that can be read by the application
396and used as a hint to determine the number of CAPTURE buffers to pass to REQBUFS.
397The value is the minimum number of CAPTURE buffers that is necessary for hardware
398to work.</entry>
399 </row>
400 <row>
401 <entry><constant>V4L2_CID_MIN_BUFFERS_FOR_OUTPUT</constant></entry>
402 <entry>integer</entry>
403 <entry>This is a read-only control that can be read by the application
404and used as a hint to determine the number of OUTPUT buffers to pass to REQBUFS.
405The value is the minimum number of OUTPUT buffers that is necessary for hardware
406to work.</entry>
8e080c2e 407 </row>
cc1d3272
SN
408 <row id="v4l2-alpha-component">
409 <entry><constant>V4L2_CID_ALPHA_COMPONENT</constant></entry>
410 <entry>integer</entry>
b04ef7c0
LP
411 <entry>Sets the alpha color component. When a capture device (or
412 capture queue of a mem-to-mem device) produces a frame format that
413 includes an alpha component
cc1d3272 414 (e.g. <link linkend="rgb-formats">packed RGB image formats</link>)
b04ef7c0
LP
415 and the alpha value is not defined by the device or the mem-to-mem
416 input data this control lets you select the alpha component value of
417 all pixels. When an output device (or output queue of a mem-to-mem
418 device) consumes a frame format that doesn't include an alpha
419 component and the device supports alpha channel processing this
420 control lets you set the alpha component value of all pixels for
421 further processing in the device.
cc1d3272
SN
422 </entry>
423 </row>
424 <row>
425 <entry><constant>V4L2_CID_LASTP1</constant></entry>
426 <entry></entry>
427 <entry>End of the predefined control IDs (currently
428 <constant>V4L2_CID_ALPHA_COMPONENT</constant> + 1).</entry>
429 </row>
8e080c2e
MCC
430 <row>
431 <entry><constant>V4L2_CID_PRIVATE_BASE</constant></entry>
432 <entry></entry>
433 <entry>ID of the first custom (driver specific) control.
434Applications depending on particular custom controls should check the
435driver name and version, see <xref linkend="querycap" />.</entry>
436 </row>
437 </tbody>
438 </tgroup>
439 </table>
440
441 <para>Applications can enumerate the available controls with the
442&VIDIOC-QUERYCTRL; and &VIDIOC-QUERYMENU; ioctls, get and set a
443control value with the &VIDIOC-G-CTRL; and &VIDIOC-S-CTRL; ioctls.
444Drivers must implement <constant>VIDIOC_QUERYCTRL</constant>,
445<constant>VIDIOC_G_CTRL</constant> and
446<constant>VIDIOC_S_CTRL</constant> when the device has one or more
447controls, <constant>VIDIOC_QUERYMENU</constant> when it has one or
448more menu type controls.</para>
449
48e393a2
HV
450 <example id="enum_all_controls">
451 <title>Enumerating all user controls</title>
8e080c2e
MCC
452
453 <programlisting>
454&v4l2-queryctrl; queryctrl;
455&v4l2-querymenu; querymenu;
456
10fa813d 457static void enumerate_menu(void)
8e080c2e 458{
10fa813d 459 printf(" Menu items:\n");
8e080c2e 460
10fa813d 461 memset(&amp;querymenu, 0, sizeof(querymenu));
8e080c2e
MCC
462 querymenu.id = queryctrl.id;
463
464 for (querymenu.index = queryctrl.minimum;
465 querymenu.index &lt;= queryctrl.maximum;
10fa813d
HV
466 querymenu.index++) {
467 if (0 == ioctl(fd, &VIDIOC-QUERYMENU;, &amp;querymenu)) {
468 printf(" %s\n", querymenu.name);
8e080c2e
MCC
469 }
470 }
471}
472
10fa813d 473memset(&amp;queryctrl, 0, sizeof(queryctrl));
8e080c2e
MCC
474
475for (queryctrl.id = V4L2_CID_BASE;
476 queryctrl.id &lt; V4L2_CID_LASTP1;
477 queryctrl.id++) {
10fa813d 478 if (0 == ioctl(fd, &VIDIOC-QUERYCTRL;, &amp;queryctrl)) {
8e080c2e
MCC
479 if (queryctrl.flags &amp; V4L2_CTRL_FLAG_DISABLED)
480 continue;
481
10fa813d 482 printf("Control %s\n", queryctrl.name);
8e080c2e
MCC
483
484 if (queryctrl.type == V4L2_CTRL_TYPE_MENU)
10fa813d 485 enumerate_menu();
8e080c2e
MCC
486 } else {
487 if (errno == EINVAL)
488 continue;
489
10fa813d
HV
490 perror("VIDIOC_QUERYCTRL");
491 exit(EXIT_FAILURE);
8e080c2e
MCC
492 }
493}
494
495for (queryctrl.id = V4L2_CID_PRIVATE_BASE;;
496 queryctrl.id++) {
10fa813d 497 if (0 == ioctl(fd, &VIDIOC-QUERYCTRL;, &amp;queryctrl)) {
8e080c2e
MCC
498 if (queryctrl.flags &amp; V4L2_CTRL_FLAG_DISABLED)
499 continue;
500
10fa813d 501 printf("Control %s\n", queryctrl.name);
8e080c2e
MCC
502
503 if (queryctrl.type == V4L2_CTRL_TYPE_MENU)
10fa813d 504 enumerate_menu();
8e080c2e
MCC
505 } else {
506 if (errno == EINVAL)
507 break;
508
10fa813d
HV
509 perror("VIDIOC_QUERYCTRL");
510 exit(EXIT_FAILURE);
8e080c2e
MCC
511 }
512}
513</programlisting>
514 </example>
515
48e393a2
HV
516 <example>
517 <title>Enumerating all user controls (alternative)</title>
518 <programlisting>
519memset(&amp;queryctrl, 0, sizeof(queryctrl));
520
521queryctrl.id = V4L2_CTRL_CLASS_USER | V4L2_CTRL_FLAG_NEXT_CTRL;
522while (0 == ioctl(fd, &VIDIOC-QUERYCTRL;, &amp;queryctrl)) {
523 if (V4L2_CTRL_ID2CLASS(queryctrl.id) != V4L2_CTRL_CLASS_USER)
524 break;
525 if (queryctrl.flags &amp; V4L2_CTRL_FLAG_DISABLED)
526 continue;
527
528 printf("Control %s\n", queryctrl.name);
529
530 if (queryctrl.type == V4L2_CTRL_TYPE_MENU)
531 enumerate_menu();
532
533 queryctrl.id |= V4L2_CTRL_FLAG_NEXT_CTRL;
534}
535if (errno != EINVAL) {
536 perror("VIDIOC_QUERYCTRL");
537 exit(EXIT_FAILURE);
538}
539</programlisting>
540 </example>
541
8e080c2e
MCC
542 <example>
543 <title>Changing controls</title>
544
545 <programlisting>
546&v4l2-queryctrl; queryctrl;
547&v4l2-control; control;
548
10fa813d 549memset(&amp;queryctrl, 0, sizeof(queryctrl));
8e080c2e
MCC
550queryctrl.id = V4L2_CID_BRIGHTNESS;
551
10fa813d 552if (-1 == ioctl(fd, &VIDIOC-QUERYCTRL;, &amp;queryctrl)) {
8e080c2e 553 if (errno != EINVAL) {
10fa813d
HV
554 perror("VIDIOC_QUERYCTRL");
555 exit(EXIT_FAILURE);
8e080c2e 556 } else {
10fa813d 557 printf("V4L2_CID_BRIGHTNESS is not supported\n");
8e080c2e
MCC
558 }
559} else if (queryctrl.flags &amp; V4L2_CTRL_FLAG_DISABLED) {
10fa813d 560 printf("V4L2_CID_BRIGHTNESS is not supported\n");
8e080c2e 561} else {
10fa813d 562 memset(&amp;control, 0, sizeof (control));
8e080c2e
MCC
563 control.id = V4L2_CID_BRIGHTNESS;
564 control.value = queryctrl.default_value;
565
10fa813d
HV
566 if (-1 == ioctl(fd, &VIDIOC-S-CTRL;, &amp;control)) {
567 perror("VIDIOC_S_CTRL");
568 exit(EXIT_FAILURE);
8e080c2e
MCC
569 }
570}
571
10fa813d 572memset(&amp;control, 0, sizeof(control));
8e080c2e
MCC
573control.id = V4L2_CID_CONTRAST;
574
10fa813d 575if (0 == ioctl(fd, &VIDIOC-G-CTRL;, &amp;control)) {
8e080c2e
MCC
576 control.value += 1;
577
578 /* The driver may clamp the value or return ERANGE, ignored here */
579
10fa813d 580 if (-1 == ioctl(fd, &VIDIOC-S-CTRL;, &amp;control)
8e080c2e 581 &amp;&amp; errno != ERANGE) {
10fa813d
HV
582 perror("VIDIOC_S_CTRL");
583 exit(EXIT_FAILURE);
8e080c2e
MCC
584 }
585/* Ignore if V4L2_CID_CONTRAST is unsupported */
586} else if (errno != EINVAL) {
10fa813d
HV
587 perror("VIDIOC_G_CTRL");
588 exit(EXIT_FAILURE);
8e080c2e
MCC
589}
590
591control.id = V4L2_CID_AUDIO_MUTE;
10fa813d 592control.value = 1; /* silence */
8e080c2e
MCC
593
594/* Errors ignored */
10fa813d 595ioctl(fd, VIDIOC_S_CTRL, &amp;control);
8e080c2e
MCC
596</programlisting>
597 </example>
598 </section>
599
600 <section id="extended-controls">
601 <title>Extended Controls</title>
602
603 <section>
604 <title>Introduction</title>
605
606 <para>The control mechanism as originally designed was meant
607to be used for user settings (brightness, saturation, etc). However,
608it turned out to be a very useful model for implementing more
609complicated driver APIs where each driver implements only a subset of
610a larger API.</para>
611
612 <para>The MPEG encoding API was the driving force behind
613designing and implementing this extended control mechanism: the MPEG
614standard is quite large and the currently supported hardware MPEG
615encoders each only implement a subset of this standard. Further more,
616many parameters relating to how the video is encoded into an MPEG
617stream are specific to the MPEG encoding chip since the MPEG standard
618only defines the format of the resulting MPEG stream, not how the
619video is actually encoded into that format.</para>
620
621 <para>Unfortunately, the original control API lacked some
622features needed for these new uses and so it was extended into the
623(not terribly originally named) extended control API.</para>
624
625 <para>Even though the MPEG encoding API was the first effort
626to use the Extended Control API, nowadays there are also other classes
627of Extended Controls, such as Camera Controls and FM Transmitter Controls.
628The Extended Controls API as well as all Extended Controls classes are
629described in the following text.</para>
630 </section>
631
632 <section>
633 <title>The Extended Control API</title>
634
635 <para>Three new ioctls are available: &VIDIOC-G-EXT-CTRLS;,
636&VIDIOC-S-EXT-CTRLS; and &VIDIOC-TRY-EXT-CTRLS;. These ioctls act on
637arrays of controls (as opposed to the &VIDIOC-G-CTRL; and
638&VIDIOC-S-CTRL; ioctls that act on a single control). This is needed
639since it is often required to atomically change several controls at
640once.</para>
641
642 <para>Each of the new ioctls expects a pointer to a
643&v4l2-ext-controls;. This structure contains a pointer to the control
644array, a count of the number of controls in that array and a control
645class. Control classes are used to group similar controls into a
646single class. For example, control class
647<constant>V4L2_CTRL_CLASS_USER</constant> contains all user controls
648(&ie; all controls that can also be set using the old
649<constant>VIDIOC_S_CTRL</constant> ioctl). Control class
650<constant>V4L2_CTRL_CLASS_MPEG</constant> contains all controls
651relating to MPEG encoding, etc.</para>
652
653 <para>All controls in the control array must belong to the
654specified control class. An error is returned if this is not the
655case.</para>
656
657 <para>It is also possible to use an empty control array (count
658== 0) to check whether the specified control class is
659supported.</para>
660
661 <para>The control array is a &v4l2-ext-control; array. The
662<structname>v4l2_ext_control</structname> structure is very similar to
663&v4l2-control;, except for the fact that it also allows for 64-bit
664values and pointers to be passed.</para>
665
680a5139
HV
666 <para>Since the &v4l2-ext-control; supports pointers it is now
667also possible to have controls with compound types such as N-dimensional arrays
668and/or structures. You need to specify the <constant>V4L2_CTRL_FLAG_NEXT_COMPOUND</constant>
669when enumerating controls to actually be able to see such compound controls.
670In other words, these controls with compound types should only be used
671programmatically.</para>
672
673 <para>Since such compound controls need to expose more information
674about themselves than is possible with &VIDIOC-QUERYCTRL; the
675&VIDIOC-QUERY-EXT-CTRL; ioctl was added. In particular, this ioctl gives
676the dimensions of the N-dimensional array if this control consists of more than
677one element.</para>
678
8e080c2e
MCC
679 <para>It is important to realize that due to the flexibility of
680controls it is necessary to check whether the control you want to set
681actually is supported in the driver and what the valid range of values
680a5139
HV
682is. So use the &VIDIOC-QUERYCTRL; (or &VIDIOC-QUERY-EXT-CTRL;) and
683&VIDIOC-QUERYMENU; ioctls to check this. Also note that it is possible
684that some of the menu indices in a control of type
685<constant>V4L2_CTRL_TYPE_MENU</constant> may not be supported
686(<constant>VIDIOC_QUERYMENU</constant> will return an error). A good
687example is the list of supported MPEG audio bitrates. Some drivers only
688support one or two bitrates, others support a wider range.</para>
0f427218
SA
689
690 <para>
691 All controls use machine endianness.
692 </para>
8e080c2e
MCC
693 </section>
694
695 <section>
696 <title>Enumerating Extended Controls</title>
697
698 <para>The recommended way to enumerate over the extended
699controls is by using &VIDIOC-QUERYCTRL; in combination with the
700<constant>V4L2_CTRL_FLAG_NEXT_CTRL</constant> flag:</para>
701
702 <informalexample>
703 <programlisting>
704&v4l2-queryctrl; qctrl;
705
706qctrl.id = V4L2_CTRL_FLAG_NEXT_CTRL;
707while (0 == ioctl (fd, &VIDIOC-QUERYCTRL;, &amp;qctrl)) {
708 /* ... */
709 qctrl.id |= V4L2_CTRL_FLAG_NEXT_CTRL;
710}
711</programlisting>
712 </informalexample>
713
714 <para>The initial control ID is set to 0 ORed with the
715<constant>V4L2_CTRL_FLAG_NEXT_CTRL</constant> flag. The
716<constant>VIDIOC_QUERYCTRL</constant> ioctl will return the first
717control with a higher ID than the specified one. When no such controls
718are found an error is returned.</para>
719
720 <para>If you want to get all controls within a specific control
721class, then you can set the initial
722<structfield>qctrl.id</structfield> value to the control class and add
723an extra check to break out of the loop when a control of another
724control class is found:</para>
725
726 <informalexample>
727 <programlisting>
728qctrl.id = V4L2_CTRL_CLASS_MPEG | V4L2_CTRL_FLAG_NEXT_CTRL;
10fa813d
HV
729while (0 == ioctl(fd, &VIDIOC-QUERYCTRL;, &amp;qctrl)) {
730 if (V4L2_CTRL_ID2CLASS(qctrl.id) != V4L2_CTRL_CLASS_MPEG)
8e080c2e
MCC
731 break;
732 /* ... */
10fa813d
HV
733 qctrl.id |= V4L2_CTRL_FLAG_NEXT_CTRL;
734}
8e080c2e
MCC
735</programlisting>
736 </informalexample>
737
738 <para>The 32-bit <structfield>qctrl.id</structfield> value is
739subdivided into three bit ranges: the top 4 bits are reserved for
740flags (&eg; <constant>V4L2_CTRL_FLAG_NEXT_CTRL</constant>) and are not
741actually part of the ID. The remaining 28 bits form the control ID, of
742which the most significant 12 bits define the control class and the
743least significant 16 bits identify the control within the control
744class. It is guaranteed that these last 16 bits are always non-zero
745for controls. The range of 0x1000 and up are reserved for
746driver-specific controls. The macro
747<constant>V4L2_CTRL_ID2CLASS(id)</constant> returns the control class
748ID based on a control ID.</para>
749
750 <para>If the driver does not support extended controls, then
751<constant>VIDIOC_QUERYCTRL</constant> will fail when used in
752combination with <constant>V4L2_CTRL_FLAG_NEXT_CTRL</constant>. In
753that case the old method of enumerating control should be used (see
48e393a2 754<xref linkend="enum_all_controls" />). But if it is supported, then it is guaranteed to enumerate over
8e080c2e
MCC
755all controls, including driver-private controls.</para>
756 </section>
757
758 <section>
759 <title>Creating Control Panels</title>
760
761 <para>It is possible to create control panels for a graphical
762user interface where the user can select the various controls.
763Basically you will have to iterate over all controls using the method
764described above. Each control class starts with a control of type
765<constant>V4L2_CTRL_TYPE_CTRL_CLASS</constant>.
766<constant>VIDIOC_QUERYCTRL</constant> will return the name of this
767control class which can be used as the title of a tab page within a
768control panel.</para>
769
770 <para>The flags field of &v4l2-queryctrl; also contains hints on
771the behavior of the control. See the &VIDIOC-QUERYCTRL; documentation
772for more details.</para>
773 </section>
774
775 <section id="mpeg-controls">
bc9028e1 776 <title>Codec Control Reference</title>
8e080c2e 777
bc9028e1 778 <para>Below all controls within the Codec control class are
8e080c2e
MCC
779described. First the generic controls, then controls specific for
780certain hardware.</para>
781
bc9028e1
AK
782 <para>Note: These controls are applicable to all codecs and
783not just MPEG. The defines are prefixed with V4L2_CID_MPEG/V4L2_MPEG
784as the controls were originally made for MPEG codecs and later
785extended to cover all encoding formats.</para>
786
8e080c2e 787 <section>
bc9028e1 788 <title>Generic Codec Controls</title>
8e080c2e
MCC
789
790 <table pgwide="1" frame="none" id="mpeg-control-id">
bc9028e1 791 <title>Codec Control IDs</title>
8e080c2e
MCC
792 <tgroup cols="4">
793 <colspec colname="c1" colwidth="1*" />
794 <colspec colname="c2" colwidth="6*" />
795 <colspec colname="c3" colwidth="2*" />
796 <colspec colname="c4" colwidth="6*" />
797 <spanspec namest="c1" nameend="c2" spanname="id" />
798 <spanspec namest="c2" nameend="c4" spanname="descr" />
799 <thead>
800 <row>
801 <entry spanname="id" align="left">ID</entry>
802 <entry align="left">Type</entry>
803 </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
804 </row>
805 </thead>
806 <tbody valign="top">
807 <row><entry></entry></row>
808 <row>
809 <entry spanname="id"><constant>V4L2_CID_MPEG_CLASS</constant>&nbsp;</entry>
810 <entry>class</entry>
bc9028e1 811 </row><row><entry spanname="descr">The Codec class
8e080c2e
MCC
812descriptor. Calling &VIDIOC-QUERYCTRL; for this control will return a
813description of this control class. This description can be used as the
814caption of a Tab page in a GUI, for example.</entry>
815 </row>
816 <row><entry></entry></row>
817 <row id="v4l2-mpeg-stream-type">
818 <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_TYPE</constant>&nbsp;</entry>
819 <entry>enum&nbsp;v4l2_mpeg_stream_type</entry>
820 </row><row><entry spanname="descr">The MPEG-1, -2 or -4
821output stream type. One cannot assume anything here. Each hardware
822MPEG encoder tends to support different subsets of the available MPEG
4fa64dae
KD
823stream types. This control is specific to multiplexed MPEG streams.
824The currently defined stream types are:</entry>
8e080c2e
MCC
825 </row>
826 <row>
827 <entrytbl spanname="descr" cols="2">
828 <tbody valign="top">
829 <row>
830 <entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG2_PS</constant>&nbsp;</entry>
831 <entry>MPEG-2 program stream</entry>
832 </row>
833 <row>
834 <entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG2_TS</constant>&nbsp;</entry>
835 <entry>MPEG-2 transport stream</entry>
836 </row>
837 <row>
838 <entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG1_SS</constant>&nbsp;</entry>
839 <entry>MPEG-1 system stream</entry>
840 </row>
841 <row>
842 <entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG2_DVD</constant>&nbsp;</entry>
843 <entry>MPEG-2 DVD-compatible stream</entry>
844 </row>
845 <row>
846 <entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG1_VCD</constant>&nbsp;</entry>
847 <entry>MPEG-1 VCD-compatible stream</entry>
848 </row>
849 <row>
850 <entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG2_SVCD</constant>&nbsp;</entry>
851 <entry>MPEG-2 SVCD-compatible stream</entry>
852 </row>
853 </tbody>
854 </entrytbl>
855 </row>
856 <row><entry></entry></row>
857 <row>
858 <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PID_PMT</constant>&nbsp;</entry>
859 <entry>integer</entry>
860 </row><row><entry spanname="descr">Program Map Table
861Packet ID for the MPEG transport stream (default 16)</entry>
862 </row>
863 <row><entry></entry></row>
864 <row>
865 <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PID_AUDIO</constant>&nbsp;</entry>
866 <entry>integer</entry>
867 </row><row><entry spanname="descr">Audio Packet ID for
868the MPEG transport stream (default 256)</entry>
869 </row>
870 <row><entry></entry></row>
871 <row>
872 <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PID_VIDEO</constant>&nbsp;</entry>
873 <entry>integer</entry>
874 </row><row><entry spanname="descr">Video Packet ID for
875the MPEG transport stream (default 260)</entry>
876 </row>
877 <row><entry></entry></row>
878 <row>
879 <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PID_PCR</constant>&nbsp;</entry>
880 <entry>integer</entry>
881 </row><row><entry spanname="descr">Packet ID for the
882MPEG transport stream carrying PCR fields (default 259)</entry>
883 </row>
884 <row><entry></entry></row>
885 <row>
886 <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PES_ID_AUDIO</constant>&nbsp;</entry>
887 <entry>integer</entry>
888 </row><row><entry spanname="descr">Audio ID for MPEG
889PES</entry>
890 </row>
891 <row><entry></entry></row>
892 <row>
893 <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PES_ID_VIDEO</constant>&nbsp;</entry>
894 <entry>integer</entry>
895 </row><row><entry spanname="descr">Video ID for MPEG
896PES</entry>
897 </row>
898 <row><entry></entry></row>
899 <row id="v4l2-mpeg-stream-vbi-fmt">
900 <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_VBI_FMT</constant>&nbsp;</entry>
901 <entry>enum&nbsp;v4l2_mpeg_stream_vbi_fmt</entry>
902 </row><row><entry spanname="descr">Some cards can embed
903VBI data (&eg; Closed Caption, Teletext) into the MPEG stream. This
904control selects whether VBI data should be embedded, and if so, what
905embedding method should be used. The list of possible VBI formats
906depends on the driver. The currently defined VBI format types
907are:</entry>
908 </row>
909 <row>
910 <entrytbl spanname="descr" cols="2">
911 <tbody valign="top">
912 <row>
913 <entry><constant>V4L2_MPEG_STREAM_VBI_FMT_NONE</constant>&nbsp;</entry>
914 <entry>No VBI in the MPEG stream</entry>
915 </row>
916 <row>
917 <entry><constant>V4L2_MPEG_STREAM_VBI_FMT_IVTV</constant>&nbsp;</entry>
918 <entry>VBI in private packets, IVTV format (documented
919in the kernel sources in the file <filename>Documentation/video4linux/cx2341x/README.vbi</filename>)</entry>
920 </row>
921 </tbody>
922 </entrytbl>
923 </row>
924 <row><entry></entry></row>
925 <row id="v4l2-mpeg-audio-sampling-freq">
926 <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_SAMPLING_FREQ</constant>&nbsp;</entry>
927 <entry>enum&nbsp;v4l2_mpeg_audio_sampling_freq</entry>
928 </row><row><entry spanname="descr">MPEG Audio sampling
929frequency. Possible values are:</entry>
930 </row>
931 <row>
932 <entrytbl spanname="descr" cols="2">
933 <tbody valign="top">
934 <row>
935 <entry><constant>V4L2_MPEG_AUDIO_SAMPLING_FREQ_44100</constant>&nbsp;</entry>
936 <entry>44.1 kHz</entry>
937 </row>
938 <row>
939 <entry><constant>V4L2_MPEG_AUDIO_SAMPLING_FREQ_48000</constant>&nbsp;</entry>
940 <entry>48 kHz</entry>
941 </row>
942 <row>
943 <entry><constant>V4L2_MPEG_AUDIO_SAMPLING_FREQ_32000</constant>&nbsp;</entry>
944 <entry>32 kHz</entry>
945 </row>
946 </tbody>
947 </entrytbl>
948 </row>
949 <row><entry></entry></row>
950 <row id="v4l2-mpeg-audio-encoding">
951 <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_ENCODING</constant>&nbsp;</entry>
952 <entry>enum&nbsp;v4l2_mpeg_audio_encoding</entry>
953 </row><row><entry spanname="descr">MPEG Audio encoding.
4fa64dae 954This control is specific to multiplexed MPEG streams.
8e080c2e
MCC
955Possible values are:</entry>
956 </row>
957 <row>
958 <entrytbl spanname="descr" cols="2">
959 <tbody valign="top">
960 <row>
961 <entry><constant>V4L2_MPEG_AUDIO_ENCODING_LAYER_1</constant>&nbsp;</entry>
962 <entry>MPEG-1/2 Layer I encoding</entry>
963 </row>
964 <row>
965 <entry><constant>V4L2_MPEG_AUDIO_ENCODING_LAYER_2</constant>&nbsp;</entry>
966 <entry>MPEG-1/2 Layer II encoding</entry>
967 </row>
968 <row>
969 <entry><constant>V4L2_MPEG_AUDIO_ENCODING_LAYER_3</constant>&nbsp;</entry>
970 <entry>MPEG-1/2 Layer III encoding</entry>
971 </row>
972 <row>
973 <entry><constant>V4L2_MPEG_AUDIO_ENCODING_AAC</constant>&nbsp;</entry>
974 <entry>MPEG-2/4 AAC (Advanced Audio Coding)</entry>
975 </row>
976 <row>
977 <entry><constant>V4L2_MPEG_AUDIO_ENCODING_AC3</constant>&nbsp;</entry>
978 <entry>AC-3 aka ATSC A/52 encoding</entry>
979 </row>
980 </tbody>
981 </entrytbl>
982 </row>
983 <row><entry></entry></row>
984 <row id="v4l2-mpeg-audio-l1-bitrate">
985 <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_L1_BITRATE</constant>&nbsp;</entry>
986 <entry>enum&nbsp;v4l2_mpeg_audio_l1_bitrate</entry>
987 </row><row><entry spanname="descr">MPEG-1/2 Layer I bitrate.
988Possible values are:</entry>
989 </row>
990 <row>
991 <entrytbl spanname="descr" cols="2">
992 <tbody valign="top">
993 <row>
994 <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_32K</constant>&nbsp;</entry>
995 <entry>32 kbit/s</entry></row>
996 <row>
997 <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_64K</constant>&nbsp;</entry>
998 <entry>64 kbit/s</entry>
999 </row>
1000 <row>
1001 <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_96K</constant>&nbsp;</entry>
1002 <entry>96 kbit/s</entry>
1003 </row>
1004 <row>
1005 <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_128K</constant>&nbsp;</entry>
1006 <entry>128 kbit/s</entry>
1007 </row>
1008 <row>
1009 <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_160K</constant>&nbsp;</entry>
1010 <entry>160 kbit/s</entry>
1011 </row>
1012 <row>
1013 <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_192K</constant>&nbsp;</entry>
1014 <entry>192 kbit/s</entry>
1015 </row>
1016 <row>
1017 <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_224K</constant>&nbsp;</entry>
1018 <entry>224 kbit/s</entry>
1019 </row>
1020 <row>
1021 <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_256K</constant>&nbsp;</entry>
1022 <entry>256 kbit/s</entry>
1023 </row>
1024 <row>
1025 <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_288K</constant>&nbsp;</entry>
1026 <entry>288 kbit/s</entry>
1027 </row>
1028 <row>
1029 <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_320K</constant>&nbsp;</entry>
1030 <entry>320 kbit/s</entry>
1031 </row>
1032 <row>
1033 <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_352K</constant>&nbsp;</entry>
1034 <entry>352 kbit/s</entry>
1035 </row>
1036 <row>
1037 <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_384K</constant>&nbsp;</entry>
1038 <entry>384 kbit/s</entry>
1039 </row>
1040 <row>
1041 <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_416K</constant>&nbsp;</entry>
1042 <entry>416 kbit/s</entry>
1043 </row>
1044 <row>
1045 <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_448K</constant>&nbsp;</entry>
1046 <entry>448 kbit/s</entry>
1047 </row>
1048 </tbody>
1049 </entrytbl>
1050 </row>
1051 <row><entry></entry></row>
1052 <row id="v4l2-mpeg-audio-l2-bitrate">
1053 <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_L2_BITRATE</constant>&nbsp;</entry>
1054 <entry>enum&nbsp;v4l2_mpeg_audio_l2_bitrate</entry>
1055 </row><row><entry spanname="descr">MPEG-1/2 Layer II bitrate.
1056Possible values are:</entry>
1057 </row>
1058 <row>
1059 <entrytbl spanname="descr" cols="2">
1060 <tbody valign="top">
1061 <row>
1062 <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_32K</constant>&nbsp;</entry>
1063 <entry>32 kbit/s</entry>
1064 </row>
1065 <row>
1066 <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_48K</constant>&nbsp;</entry>
1067 <entry>48 kbit/s</entry>
1068 </row>
1069 <row>
1070 <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_56K</constant>&nbsp;</entry>
1071 <entry>56 kbit/s</entry>
1072 </row>
1073 <row>
1074 <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_64K</constant>&nbsp;</entry>
1075 <entry>64 kbit/s</entry>
1076 </row>
1077 <row>
1078 <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_80K</constant>&nbsp;</entry>
1079 <entry>80 kbit/s</entry>
1080 </row>
1081 <row>
1082 <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_96K</constant>&nbsp;</entry>
1083 <entry>96 kbit/s</entry>
1084 </row>
1085 <row>
1086 <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_112K</constant>&nbsp;</entry>
1087 <entry>112 kbit/s</entry>
1088 </row>
1089 <row>
1090 <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_128K</constant>&nbsp;</entry>
1091 <entry>128 kbit/s</entry>
1092 </row>
1093 <row>
1094 <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_160K</constant>&nbsp;</entry>
1095 <entry>160 kbit/s</entry>
1096 </row>
1097 <row>
1098 <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_192K</constant>&nbsp;</entry>
1099 <entry>192 kbit/s</entry>
1100 </row>
1101 <row>
1102 <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_224K</constant>&nbsp;</entry>
1103 <entry>224 kbit/s</entry>
1104 </row>
1105 <row>
1106 <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_256K</constant>&nbsp;</entry>
1107 <entry>256 kbit/s</entry>
1108 </row>
1109 <row>
1110 <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_320K</constant>&nbsp;</entry>
1111 <entry>320 kbit/s</entry>
1112 </row>
1113 <row>
1114 <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_384K</constant>&nbsp;</entry>
1115 <entry>384 kbit/s</entry>
1116 </row>
1117 </tbody>
1118 </entrytbl>
1119 </row>
1120 <row><entry></entry></row>
1121 <row id="v4l2-mpeg-audio-l3-bitrate">
1122 <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_L3_BITRATE</constant>&nbsp;</entry>
1123 <entry>enum&nbsp;v4l2_mpeg_audio_l3_bitrate</entry>
1124 </row><row><entry spanname="descr">MPEG-1/2 Layer III bitrate.
1125Possible values are:</entry>
1126 </row>
1127 <row>
1128 <entrytbl spanname="descr" cols="2">
1129 <tbody valign="top">
1130 <row>
1131 <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_32K</constant>&nbsp;</entry>
1132 <entry>32 kbit/s</entry>
1133 </row>
1134 <row>
1135 <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_40K</constant>&nbsp;</entry>
1136 <entry>40 kbit/s</entry>
1137 </row>
1138 <row>
1139 <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_48K</constant>&nbsp;</entry>
1140 <entry>48 kbit/s</entry>
1141 </row>
1142 <row>
1143 <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_56K</constant>&nbsp;</entry>
1144 <entry>56 kbit/s</entry>
1145 </row>
1146 <row>
1147 <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_64K</constant>&nbsp;</entry>
1148 <entry>64 kbit/s</entry>
1149 </row>
1150 <row>
1151 <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_80K</constant>&nbsp;</entry>
1152 <entry>80 kbit/s</entry>
1153 </row>
1154 <row>
1155 <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_96K</constant>&nbsp;</entry>
1156 <entry>96 kbit/s</entry>
1157 </row>
1158 <row>
1159 <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_112K</constant>&nbsp;</entry>
1160 <entry>112 kbit/s</entry>
1161 </row>
1162 <row>
1163 <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_128K</constant>&nbsp;</entry>
1164 <entry>128 kbit/s</entry>
1165 </row>
1166 <row>
1167 <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_160K</constant>&nbsp;</entry>
1168 <entry>160 kbit/s</entry>
1169 </row>
1170 <row>
1171 <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_192K</constant>&nbsp;</entry>
1172 <entry>192 kbit/s</entry>
1173 </row>
1174 <row>
1175 <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_224K</constant>&nbsp;</entry>
1176 <entry>224 kbit/s</entry>
1177 </row>
1178 <row>
1179 <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_256K</constant>&nbsp;</entry>
1180 <entry>256 kbit/s</entry>
1181 </row>
1182 <row>
1183 <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_320K</constant>&nbsp;</entry>
1184 <entry>320 kbit/s</entry>
1185 </row>
1186 </tbody>
1187 </entrytbl>
1188 </row>
1189 <row><entry></entry></row>
1190 <row>
1191 <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_AAC_BITRATE</constant>&nbsp;</entry>
1192 <entry>integer</entry>
1193 </row><row><entry spanname="descr">AAC bitrate in bits per second.</entry>
1194 </row>
1195 <row><entry></entry></row>
1196 <row id="v4l2-mpeg-audio-ac3-bitrate">
1197 <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_AC3_BITRATE</constant>&nbsp;</entry>
1198 <entry>enum&nbsp;v4l2_mpeg_audio_ac3_bitrate</entry>
1199 </row><row><entry spanname="descr">AC-3 bitrate.
1200Possible values are:</entry>
1201 </row>
1202 <row>
1203 <entrytbl spanname="descr" cols="2">
1204 <tbody valign="top">
1205 <row>
1206 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_32K</constant>&nbsp;</entry>
1207 <entry>32 kbit/s</entry>
1208 </row>
1209 <row>
1210 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_40K</constant>&nbsp;</entry>
1211 <entry>40 kbit/s</entry>
1212 </row>
1213 <row>
1214 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_48K</constant>&nbsp;</entry>
1215 <entry>48 kbit/s</entry>
1216 </row>
1217 <row>
1218 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_56K</constant>&nbsp;</entry>
1219 <entry>56 kbit/s</entry>
1220 </row>
1221 <row>
1222 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_64K</constant>&nbsp;</entry>
1223 <entry>64 kbit/s</entry>
1224 </row>
1225 <row>
1226 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_80K</constant>&nbsp;</entry>
1227 <entry>80 kbit/s</entry>
1228 </row>
1229 <row>
1230 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_96K</constant>&nbsp;</entry>
1231 <entry>96 kbit/s</entry>
1232 </row>
1233 <row>
1234 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_112K</constant>&nbsp;</entry>
1235 <entry>112 kbit/s</entry>
1236 </row>
1237 <row>
1238 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_128K</constant>&nbsp;</entry>
1239 <entry>128 kbit/s</entry>
1240 </row>
1241 <row>
1242 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_160K</constant>&nbsp;</entry>
1243 <entry>160 kbit/s</entry>
1244 </row>
1245 <row>
1246 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_192K</constant>&nbsp;</entry>
1247 <entry>192 kbit/s</entry>
1248 </row>
1249 <row>
1250 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_224K</constant>&nbsp;</entry>
1251 <entry>224 kbit/s</entry>
1252 </row>
1253 <row>
1254 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_256K</constant>&nbsp;</entry>
1255 <entry>256 kbit/s</entry>
1256 </row>
1257 <row>
1258 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_320K</constant>&nbsp;</entry>
1259 <entry>320 kbit/s</entry>
1260 </row>
1261 <row>
1262 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_384K</constant>&nbsp;</entry>
1263 <entry>384 kbit/s</entry>
1264 </row>
1265 <row>
1266 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_448K</constant>&nbsp;</entry>
1267 <entry>448 kbit/s</entry>
1268 </row>
1269 <row>
1270 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_512K</constant>&nbsp;</entry>
1271 <entry>512 kbit/s</entry>
1272 </row>
1273 <row>
1274 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_576K</constant>&nbsp;</entry>
1275 <entry>576 kbit/s</entry>
1276 </row>
1277 <row>
1278 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_640K</constant>&nbsp;</entry>
1279 <entry>640 kbit/s</entry>
1280 </row>
1281 </tbody>
1282 </entrytbl>
1283 </row>
1284 <row><entry></entry></row>
1285 <row id="v4l2-mpeg-audio-mode">
1286 <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_MODE</constant>&nbsp;</entry>
1287 <entry>enum&nbsp;v4l2_mpeg_audio_mode</entry>
1288 </row><row><entry spanname="descr">MPEG Audio mode.
1289Possible values are:</entry>
1290 </row>
1291 <row>
1292 <entrytbl spanname="descr" cols="2">
1293 <tbody valign="top">
1294 <row>
1295 <entry><constant>V4L2_MPEG_AUDIO_MODE_STEREO</constant>&nbsp;</entry>
1296 <entry>Stereo</entry>
1297 </row>
1298 <row>
1299 <entry><constant>V4L2_MPEG_AUDIO_MODE_JOINT_STEREO</constant>&nbsp;</entry>
1300 <entry>Joint Stereo</entry>
1301 </row>
1302 <row>
1303 <entry><constant>V4L2_MPEG_AUDIO_MODE_DUAL</constant>&nbsp;</entry>
1304 <entry>Bilingual</entry>
1305 </row>
1306 <row>
1307 <entry><constant>V4L2_MPEG_AUDIO_MODE_MONO</constant>&nbsp;</entry>
1308 <entry>Mono</entry>
1309 </row>
1310 </tbody>
1311 </entrytbl>
1312 </row>
1313 <row><entry></entry></row>
1314 <row id="v4l2-mpeg-audio-mode-extension">
1315 <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_MODE_EXTENSION</constant>&nbsp;</entry>
1316 <entry>enum&nbsp;v4l2_mpeg_audio_mode_extension</entry>
1317 </row><row><entry spanname="descr">Joint Stereo
1318audio mode extension. In Layer I and II they indicate which subbands
1319are in intensity stereo. All other subbands are coded in stereo. Layer
1320III is not (yet) supported. Possible values
1321are:</entry>
1322 </row>
1323 <row>
1324 <entrytbl spanname="descr" cols="2">
1325 <tbody valign="top">
1326 <row>
1327 <entry><constant>V4L2_MPEG_AUDIO_MODE_EXTENSION_BOUND_4</constant>&nbsp;</entry>
1328 <entry>Subbands 4-31 in intensity stereo</entry>
1329 </row>
1330 <row>
1331 <entry><constant>V4L2_MPEG_AUDIO_MODE_EXTENSION_BOUND_8</constant>&nbsp;</entry>
1332 <entry>Subbands 8-31 in intensity stereo</entry>
1333 </row>
1334 <row>
1335 <entry><constant>V4L2_MPEG_AUDIO_MODE_EXTENSION_BOUND_12</constant>&nbsp;</entry>
1336 <entry>Subbands 12-31 in intensity stereo</entry>
1337 </row>
1338 <row>
1339 <entry><constant>V4L2_MPEG_AUDIO_MODE_EXTENSION_BOUND_16</constant>&nbsp;</entry>
1340 <entry>Subbands 16-31 in intensity stereo</entry>
1341 </row>
1342 </tbody>
1343 </entrytbl>
1344 </row>
1345 <row><entry></entry></row>
1346 <row id="v4l2-mpeg-audio-emphasis">
1347 <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_EMPHASIS</constant>&nbsp;</entry>
1348 <entry>enum&nbsp;v4l2_mpeg_audio_emphasis</entry>
1349 </row><row><entry spanname="descr">Audio Emphasis.
1350Possible values are:</entry>
1351 </row>
1352 <row>
1353 <entrytbl spanname="descr" cols="2">
1354 <tbody valign="top">
1355 <row>
1356 <entry><constant>V4L2_MPEG_AUDIO_EMPHASIS_NONE</constant>&nbsp;</entry>
1357 <entry>None</entry>
1358 </row>
1359 <row>
1360 <entry><constant>V4L2_MPEG_AUDIO_EMPHASIS_50_DIV_15_uS</constant>&nbsp;</entry>
1361 <entry>50/15 microsecond emphasis</entry>
1362 </row>
1363 <row>
1364 <entry><constant>V4L2_MPEG_AUDIO_EMPHASIS_CCITT_J17</constant>&nbsp;</entry>
1365 <entry>CCITT J.17</entry>
1366 </row>
1367 </tbody>
1368 </entrytbl>
1369 </row>
1370 <row><entry></entry></row>
1371 <row id="v4l2-mpeg-audio-crc">
1372 <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_CRC</constant>&nbsp;</entry>
1373 <entry>enum&nbsp;v4l2_mpeg_audio_crc</entry>
1374 </row><row><entry spanname="descr">CRC method. Possible
1375values are:</entry>
1376 </row>
1377 <row>
1378 <entrytbl spanname="descr" cols="2">
1379 <tbody valign="top">
1380 <row>
1381 <entry><constant>V4L2_MPEG_AUDIO_CRC_NONE</constant>&nbsp;</entry>
1382 <entry>None</entry>
1383 </row>
1384 <row>
1385 <entry><constant>V4L2_MPEG_AUDIO_CRC_CRC16</constant>&nbsp;</entry>
1386 <entry>16 bit parity check</entry>
1387 </row>
1388 </tbody>
1389 </entrytbl>
1390 </row>
1391 <row><entry></entry></row>
1392 <row>
1393 <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_MUTE</constant>&nbsp;</entry>
1394 <entry>boolean</entry>
1395 </row><row><entry spanname="descr">Mutes the audio when
1396capturing. This is not done by muting audio hardware, which can still
1397produce a slight hiss, but in the encoder itself, guaranteeing a fixed
25985edc 1398and reproducible audio bitstream. 0 = unmuted, 1 = muted.</entry>
77bd4c0f
HV
1399 </row>
1400 <row><entry></entry></row>
1401 <row id="v4l2-mpeg-audio-dec-playback">
1402 <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_DEC_PLAYBACK</constant>&nbsp;</entry>
1403 <entry>enum&nbsp;v4l2_mpeg_audio_dec_playback</entry>
1404 </row><row><entry spanname="descr">Determines how monolingual audio should be played back.
1405Possible values are:</entry>
1406 </row>
1407 <row>
1408 <entrytbl spanname="descr" cols="2">
1409 <tbody valign="top">
1410 <row>
1411 <entry><constant>V4L2_MPEG_AUDIO_DEC_PLAYBACK_AUTO</constant>&nbsp;</entry>
1412 <entry>Automatically determines the best playback mode.</entry>
1413 </row>
1414 <row>
1415 <entry><constant>V4L2_MPEG_AUDIO_DEC_PLAYBACK_STEREO</constant>&nbsp;</entry>
1416 <entry>Stereo playback.</entry>
1417 </row>
1418 <row>
1419 <entry><constant>V4L2_MPEG_AUDIO_DEC_PLAYBACK_LEFT</constant>&nbsp;</entry>
1420 <entry>Left channel playback.</entry>
1421 </row>
1422 <row>
1423 <entry><constant>V4L2_MPEG_AUDIO_DEC_PLAYBACK_RIGHT</constant>&nbsp;</entry>
1424 <entry>Right channel playback.</entry>
1425 </row>
1426 <row>
1427 <entry><constant>V4L2_MPEG_AUDIO_DEC_PLAYBACK_MONO</constant>&nbsp;</entry>
1428 <entry>Mono playback.</entry>
1429 </row>
1430 <row>
1431 <entry><constant>V4L2_MPEG_AUDIO_DEC_PLAYBACK_SWAPPED_STEREO</constant>&nbsp;</entry>
1432 <entry>Stereo playback with swapped left and right channels.</entry>
1433 </row>
1434 </tbody>
1435 </entrytbl>
1436 </row>
1437 <row><entry></entry></row>
1438 <row id="v4l2-mpeg-audio-dec-multilingual-playback">
1439 <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_DEC_MULTILINGUAL_PLAYBACK</constant>&nbsp;</entry>
1440 <entry>enum&nbsp;v4l2_mpeg_audio_dec_playback</entry>
1441 </row><row><entry spanname="descr">Determines how multilingual audio should be played back.</entry>
8e080c2e
MCC
1442 </row>
1443 <row><entry></entry></row>
1444 <row id="v4l2-mpeg-video-encoding">
1445 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_ENCODING</constant>&nbsp;</entry>
1446 <entry>enum&nbsp;v4l2_mpeg_video_encoding</entry>
1447 </row><row><entry spanname="descr">MPEG Video encoding
4fa64dae
KD
1448method. This control is specific to multiplexed MPEG streams.
1449Possible values are:</entry>
8e080c2e
MCC
1450 </row>
1451 <row>
1452 <entrytbl spanname="descr" cols="2">
1453 <tbody valign="top">
1454 <row>
1455 <entry><constant>V4L2_MPEG_VIDEO_ENCODING_MPEG_1</constant>&nbsp;</entry>
1456 <entry>MPEG-1 Video encoding</entry>
1457 </row>
1458 <row>
1459 <entry><constant>V4L2_MPEG_VIDEO_ENCODING_MPEG_2</constant>&nbsp;</entry>
1460 <entry>MPEG-2 Video encoding</entry>
1461 </row>
1462 <row>
1463 <entry><constant>V4L2_MPEG_VIDEO_ENCODING_MPEG_4_AVC</constant>&nbsp;</entry>
1464 <entry>MPEG-4 AVC (H.264) Video encoding</entry>
1465 </row>
1466 </tbody>
1467 </entrytbl>
1468 </row>
1469 <row><entry></entry></row>
1470 <row id="v4l2-mpeg-video-aspect">
1471 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_ASPECT</constant>&nbsp;</entry>
1472 <entry>enum&nbsp;v4l2_mpeg_video_aspect</entry>
1473 </row><row><entry spanname="descr">Video aspect.
1474Possible values are:</entry>
1475 </row>
1476 <row>
1477 <entrytbl spanname="descr" cols="2">
1478 <tbody valign="top">
1479 <row>
1480 <entry><constant>V4L2_MPEG_VIDEO_ASPECT_1x1</constant>&nbsp;</entry>
1481 </row>
1482 <row>
1483 <entry><constant>V4L2_MPEG_VIDEO_ASPECT_4x3</constant>&nbsp;</entry>
1484 </row>
1485 <row>
1486 <entry><constant>V4L2_MPEG_VIDEO_ASPECT_16x9</constant>&nbsp;</entry>
1487 </row>
1488 <row>
1489 <entry><constant>V4L2_MPEG_VIDEO_ASPECT_221x100</constant>&nbsp;</entry>
1490 </row>
1491 </tbody>
1492 </entrytbl>
1493 </row>
1494 <row><entry></entry></row>
1495 <row>
1496 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_B_FRAMES</constant>&nbsp;</entry>
1497 <entry>integer</entry>
1498 </row><row><entry spanname="descr">Number of B-Frames
1499(default 2)</entry>
1500 </row>
1501 <row><entry></entry></row>
1502 <row>
1503 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_GOP_SIZE</constant>&nbsp;</entry>
1504 <entry>integer</entry>
1505 </row><row><entry spanname="descr">GOP size (default
150612)</entry>
1507 </row>
1508 <row><entry></entry></row>
1509 <row>
1510 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_GOP_CLOSURE</constant>&nbsp;</entry>
1511 <entry>boolean</entry>
1512 </row><row><entry spanname="descr">GOP closure (default
15131)</entry>
1514 </row>
1515 <row><entry></entry></row>
1516 <row>
1517 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_PULLDOWN</constant>&nbsp;</entry>
1518 <entry>boolean</entry>
1519 </row><row><entry spanname="descr">Enable 3:2 pulldown
1520(default 0)</entry>
1521 </row>
1522 <row><entry></entry></row>
1523 <row id="v4l2-mpeg-video-bitrate-mode">
1524 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_BITRATE_MODE</constant>&nbsp;</entry>
1525 <entry>enum&nbsp;v4l2_mpeg_video_bitrate_mode</entry>
1526 </row><row><entry spanname="descr">Video bitrate mode.
1527Possible values are:</entry>
1528 </row>
1529 <row>
1530 <entrytbl spanname="descr" cols="2">
1531 <tbody valign="top">
1532 <row>
1533 <entry><constant>V4L2_MPEG_VIDEO_BITRATE_MODE_VBR</constant>&nbsp;</entry>
1534 <entry>Variable bitrate</entry>
1535 </row>
1536 <row>
1537 <entry><constant>V4L2_MPEG_VIDEO_BITRATE_MODE_CBR</constant>&nbsp;</entry>
1538 <entry>Constant bitrate</entry>
1539 </row>
1540 </tbody>
1541 </entrytbl>
1542 </row>
1543 <row><entry></entry></row>
1544 <row>
1545 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_BITRATE</constant>&nbsp;</entry>
1546 <entry>integer</entry>
1547 </row><row><entry spanname="descr">Video bitrate in bits
1548per second.</entry>
1549 </row>
1550 <row><entry></entry></row>
1551 <row>
1552 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_BITRATE_PEAK</constant>&nbsp;</entry>
1553 <entry>integer</entry>
1554 </row><row><entry spanname="descr">Peak video bitrate in
1555bits per second. Must be larger or equal to the average video bitrate.
1556It is ignored if the video bitrate mode is set to constant
1557bitrate.</entry>
1558 </row>
1559 <row><entry></entry></row>
1560 <row>
1561 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_TEMPORAL_DECIMATION</constant>&nbsp;</entry>
1562 <entry>integer</entry>
1563 </row><row><entry spanname="descr">For every captured
1564frame, skip this many subsequent frames (default 0).</entry>
1565 </row>
1566 <row><entry></entry></row>
1567 <row>
1568 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MUTE</constant>&nbsp;</entry>
1569 <entry>boolean</entry>
1570 </row>
1571 <row><entry spanname="descr">"Mutes" the video to a
1572fixed color when capturing. This is useful for testing, to produce a
1573fixed video bitstream. 0 = unmuted, 1 = muted.</entry>
1574 </row>
1575 <row><entry></entry></row>
1576 <row>
1577 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MUTE_YUV</constant>&nbsp;</entry>
1578 <entry>integer</entry>
1579 </row><row><entry spanname="descr">Sets the "mute" color
1580of the video. The supplied 32-bit integer is interpreted as follows (bit
15810 = least significant bit):</entry>
1582 </row>
1583 <row>
1584 <entrytbl spanname="descr" cols="2">
1585 <tbody valign="top">
1586 <row>
1587 <entry>Bit 0:7</entry>
1588 <entry>V chrominance information</entry>
1589 </row>
1590 <row>
1591 <entry>Bit 8:15</entry>
1592 <entry>U chrominance information</entry>
1593 </row>
1594 <row>
1595 <entry>Bit 16:23</entry>
1596 <entry>Y luminance information</entry>
1597 </row>
1598 <row>
1599 <entry>Bit 24:31</entry>
1600 <entry>Must be zero.</entry>
1601 </row>
1602 </tbody>
1603 </entrytbl>
1604 </row>
77bd4c0f
HV
1605 <row><entry></entry></row>
1606 <row id="v4l2-mpeg-video-dec-pts">
1607 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_DEC_PTS</constant>&nbsp;</entry>
1608 <entry>integer64</entry>
1609 </row><row><entry spanname="descr">This read-only control returns the
161033-bit video Presentation Time Stamp as defined in ITU T-REC-H.222.0 and ISO/IEC 13818-1 of
1611the currently displayed frame. This is the same PTS as is used in &VIDIOC-DECODER-CMD;.</entry>
1612 </row>
1613 <row><entry></entry></row>
1614 <row id="v4l2-mpeg-video-dec-frame">
1615 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_DEC_FRAME</constant>&nbsp;</entry>
1616 <entry>integer64</entry>
1617 </row><row><entry spanname="descr">This read-only control returns the
1618frame counter of the frame that is currently displayed (decoded). This value is reset to 0 whenever
1619the decoder is started.</entry>
1620 </row>
e65e4f13 1621
e65e4f13
KD
1622 <row><entry></entry></row>
1623 <row>
1624 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_DECODER_SLICE_INTERFACE</constant>&nbsp;</entry>
1625 <entry>boolean</entry>
1626 </row>
1627 <row><entry spanname="descr">If enabled the decoder expects to receive a single slice per buffer, otherwise
1628the decoder expects a single frame in per buffer. Applicable to the decoder, all codecs.
1629</entry>
1630 </row>
1631
1632 <row><entry></entry></row>
1633 <row>
1634 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_VUI_SAR_ENABLE</constant>&nbsp;</entry>
1635 <entry>boolean</entry>
1636 </row>
1637 <row><entry spanname="descr">Enable writing sample aspect ratio in the Video Usability Information.
1638Applicable to the H264 encoder.</entry>
1639 </row>
1640
1641 <row><entry></entry></row>
6a02a330 1642 <row id="v4l2-mpeg-video-h264-vui-sar-idc">
e65e4f13
KD
1643 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_VUI_SAR_IDC</constant>&nbsp;</entry>
1644 <entry>enum&nbsp;v4l2_mpeg_video_h264_vui_sar_idc</entry>
1645 </row>
1646 <row><entry spanname="descr">VUI sample aspect ratio indicator for H.264 encoding. The value
1647is defined in the table E-1 in the standard. Applicable to the H264 encoder.</entry>
1648 </row>
1649 <row>
1650 <entrytbl spanname="descr" cols="2">
1651 <tbody valign="top">
1652
1653 <row>
1654 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_UNSPECIFIED</constant>&nbsp;</entry>
1655 <entry>Unspecified</entry>
1656 </row>
1657 <row>
1658 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_1x1</constant>&nbsp;</entry>
1659 <entry>1x1</entry>
1660 </row>
1661 <row>
1662 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_12x11</constant>&nbsp;</entry>
1663 <entry>12x11</entry>
1664 </row>
1665 <row>
1666 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_10x11</constant>&nbsp;</entry>
1667 <entry>10x11</entry>
1668 </row>
1669 <row>
1670 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_16x11</constant>&nbsp;</entry>
1671 <entry>16x11</entry>
1672 </row>
1673 <row>
1674 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_40x33</constant>&nbsp;</entry>
1675 <entry>40x33</entry>
1676 </row>
1677 <row>
1678 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_24x11</constant>&nbsp;</entry>
1679 <entry>24x11</entry>
1680 </row>
1681 <row>
1682 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_20x11</constant>&nbsp;</entry>
1683 <entry>20x11</entry>
1684 </row>
1685 <row>
1686 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_32x11</constant>&nbsp;</entry>
1687 <entry>32x11</entry>
1688 </row>
1689 <row>
1690 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_80x33</constant>&nbsp;</entry>
1691 <entry>80x33</entry>
1692 </row>
1693 <row>
1694 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_18x11</constant>&nbsp;</entry>
1695 <entry>18x11</entry>
1696 </row>
1697 <row>
1698 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_15x11</constant>&nbsp;</entry>
1699 <entry>15x11</entry>
1700 </row>
1701 <row>
1702 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_64x33</constant>&nbsp;</entry>
1703 <entry>64x33</entry>
1704 </row>
1705 <row>
1706 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_160x99</constant>&nbsp;</entry>
1707 <entry>160x99</entry>
1708 </row>
1709 <row>
1710 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_4x3</constant>&nbsp;</entry>
1711 <entry>4x3</entry>
1712 </row>
1713 <row>
1714 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_3x2</constant>&nbsp;</entry>
1715 <entry>3x2</entry>
1716 </row>
1717 <row>
1718 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_2x1</constant>&nbsp;</entry>
1719 <entry>2x1</entry>
1720 </row>
1721 <row>
1722 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_EXTENDED</constant>&nbsp;</entry>
1723 <entry>Extended SAR</entry>
1724 </row>
1725 </tbody>
1726 </entrytbl>
1727 </row>
1728
1729 <row><entry></entry></row>
1730 <row>
1731 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_VUI_EXT_SAR_WIDTH</constant>&nbsp;</entry>
1732 <entry>integer</entry>
1733 </row>
1734 <row><entry spanname="descr">Extended sample aspect ratio width for H.264 VUI encoding.
1735Applicable to the H264 encoder.</entry>
1736 </row>
1737
1738 <row><entry></entry></row>
1739 <row>
1740 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_VUI_EXT_SAR_HEIGHT</constant>&nbsp;</entry>
1741 <entry>integer</entry>
1742 </row>
1743 <row><entry spanname="descr">Extended sample aspect ratio height for H.264 VUI encoding.
1744Applicable to the H264 encoder.</entry>
1745 </row>
1746
1747 <row><entry></entry></row>
6a02a330 1748 <row id="v4l2-mpeg-video-h264-level">
e65e4f13
KD
1749 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_LEVEL</constant>&nbsp;</entry>
1750 <entry>enum&nbsp;v4l2_mpeg_video_h264_level</entry>
1751 </row>
1752 <row><entry spanname="descr">The level information for the H264 video elementary stream.
1753Applicable to the H264 encoder.
1754Possible values are:</entry>
1755 </row>
1756 <row>
1757 <entrytbl spanname="descr" cols="2">
1758 <tbody valign="top">
1759 <row>
1760 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_1_0</constant>&nbsp;</entry>
1761 <entry>Level 1.0</entry>
1762 </row>
1763 <row>
1764 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_1B</constant>&nbsp;</entry>
1765 <entry>Level 1B</entry>
1766 </row>
1767 <row>
1768 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_1_1</constant>&nbsp;</entry>
1769 <entry>Level 1.1</entry>
1770 </row>
1771 <row>
1772 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_1_2</constant>&nbsp;</entry>
1773 <entry>Level 1.2</entry>
1774 </row>
1775 <row>
1776 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_1_3</constant>&nbsp;</entry>
1777 <entry>Level 1.3</entry>
1778 </row>
1779 <row>
1780 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_2_0</constant>&nbsp;</entry>
1781 <entry>Level 2.0</entry>
1782 </row>
1783 <row>
1784 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_2_1</constant>&nbsp;</entry>
1785 <entry>Level 2.1</entry>
1786 </row>
1787 <row>
1788 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_2_2</constant>&nbsp;</entry>
1789 <entry>Level 2.2</entry>
1790 </row>
1791 <row>
1792 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_3_0</constant>&nbsp;</entry>
1793 <entry>Level 3.0</entry>
1794 </row>
1795 <row>
1796 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_3_1</constant>&nbsp;</entry>
1797 <entry>Level 3.1</entry>
1798 </row>
1799 <row>
1800 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_3_2</constant>&nbsp;</entry>
1801 <entry>Level 3.2</entry>
1802 </row>
1803 <row>
1804 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_4_0</constant>&nbsp;</entry>
1805 <entry>Level 4.0</entry>
1806 </row>
1807 <row>
1808 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_4_1</constant>&nbsp;</entry>
1809 <entry>Level 4.1</entry>
1810 </row>
1811 <row>
1812 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_4_2</constant>&nbsp;</entry>
1813 <entry>Level 4.2</entry>
1814 </row>
1815 <row>
1816 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_5_0</constant>&nbsp;</entry>
1817 <entry>Level 5.0</entry>
1818 </row>
1819 <row>
1820 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_5_1</constant>&nbsp;</entry>
1821 <entry>Level 5.1</entry>
1822 </row>
1823 </tbody>
1824 </entrytbl>
1825 </row>
1826
1827 <row><entry></entry></row>
6a02a330 1828 <row id="v4l2-mpeg-video-mpeg4-level">
e65e4f13
KD
1829 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_LEVEL</constant>&nbsp;</entry>
1830 <entry>enum&nbsp;v4l2_mpeg_video_mpeg4_level</entry>
1831 </row>
1832 <row><entry spanname="descr">The level information for the MPEG4 elementary stream.
1833Applicable to the MPEG4 encoder.
1834Possible values are:</entry>
1835 </row>
1836 <row>
1837 <entrytbl spanname="descr" cols="2">
1838 <tbody valign="top">
1839 <row>
1840 <entry><constant>V4L2_MPEG_VIDEO_LEVEL_0</constant>&nbsp;</entry>
1841 <entry>Level 0</entry>
1842 </row>
1843 <row>
1844 <entry><constant>V4L2_MPEG_VIDEO_LEVEL_0B</constant>&nbsp;</entry>
1845 <entry>Level 0b</entry>
1846 </row>
1847 <row>
1848 <entry><constant>V4L2_MPEG_VIDEO_LEVEL_1</constant>&nbsp;</entry>
1849 <entry>Level 1</entry>
1850 </row>
1851 <row>
1852 <entry><constant>V4L2_MPEG_VIDEO_LEVEL_2</constant>&nbsp;</entry>
1853 <entry>Level 2</entry>
1854 </row>
1855 <row>
1856 <entry><constant>V4L2_MPEG_VIDEO_LEVEL_3</constant>&nbsp;</entry>
1857 <entry>Level 3</entry>
1858 </row>
1859 <row>
1860 <entry><constant>V4L2_MPEG_VIDEO_LEVEL_3B</constant>&nbsp;</entry>
1861 <entry>Level 3b</entry>
1862 </row>
1863 <row>
1864 <entry><constant>V4L2_MPEG_VIDEO_LEVEL_4</constant>&nbsp;</entry>
1865 <entry>Level 4</entry>
1866 </row>
1867 <row>
1868 <entry><constant>V4L2_MPEG_VIDEO_LEVEL_5</constant>&nbsp;</entry>
1869 <entry>Level 5</entry>
1870 </row>
1871 </tbody>
1872 </entrytbl>
1873 </row>
1874
1875 <row><entry></entry></row>
6a02a330 1876 <row id="v4l2-mpeg-video-h264-profile">
e65e4f13 1877 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_PROFILE</constant>&nbsp;</entry>
6a02a330 1878 <entry>enum&nbsp;v4l2_mpeg_video_h264_profile</entry>
e65e4f13
KD
1879 </row>
1880 <row><entry spanname="descr">The profile information for H264.
1881Applicable to the H264 encoder.
1882Possible values are:</entry>
1883 </row>
1884 <row>
1885 <entrytbl spanname="descr" cols="2">
1886 <tbody valign="top">
1887 <row>
1888 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_BASELINE</constant>&nbsp;</entry>
1889 <entry>Baseline profile</entry>
1890 </row>
1891 <row>
1892 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_CONSTRAINED_BASELINE</constant>&nbsp;</entry>
1893 <entry>Constrained Baseline profile</entry>
1894 </row>
1895 <row>
1896 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_MAIN</constant>&nbsp;</entry>
1897 <entry>Main profile</entry>
1898 </row>
1899 <row>
1900 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_EXTENDED</constant>&nbsp;</entry>
1901 <entry>Extended profile</entry>
1902 </row>
1903 <row>
1904 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_HIGH</constant>&nbsp;</entry>
1905 <entry>High profile</entry>
1906 </row>
1907 <row>
1908 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_HIGH_10</constant>&nbsp;</entry>
1909 <entry>High 10 profile</entry>
1910 </row>
1911 <row>
1912 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_HIGH_422</constant>&nbsp;</entry>
1913 <entry>High 422 profile</entry>
1914 </row>
1915 <row>
1916 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_HIGH_444_PREDICTIVE</constant>&nbsp;</entry>
1917 <entry>High 444 Predictive profile</entry>
1918 </row>
1919 <row>
1920 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_HIGH_10_INTRA</constant>&nbsp;</entry>
1921 <entry>High 10 Intra profile</entry>
1922 </row>
1923 <row>
1924 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_HIGH_422_INTRA</constant>&nbsp;</entry>
1925 <entry>High 422 Intra profile</entry>
1926 </row>
1927 <row>
1928 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_HIGH_444_INTRA</constant>&nbsp;</entry>
1929 <entry>High 444 Intra profile</entry>
1930 </row>
1931 <row>
1932 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_CAVLC_444_INTRA</constant>&nbsp;</entry>
1933 <entry>CAVLC 444 Intra profile</entry>
1934 </row>
1935 <row>
1936 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_SCALABLE_BASELINE</constant>&nbsp;</entry>
1937 <entry>Scalable Baseline profile</entry>
1938 </row>
1939 <row>
1940 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_SCALABLE_HIGH</constant>&nbsp;</entry>
1941 <entry>Scalable High profile</entry>
1942 </row>
1943 <row>
1944 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_SCALABLE_HIGH_INTRA</constant>&nbsp;</entry>
1945 <entry>Scalable High Intra profile</entry>
1946 </row>
1947 <row>
1948 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_STEREO_HIGH</constant>&nbsp;</entry>
1949 <entry>Stereo High profile</entry>
1950 </row>
1951 <row>
1952 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_MULTIVIEW_HIGH</constant>&nbsp;</entry>
1953 <entry>Multiview High profile</entry>
1954 </row>
1955
1956 </tbody>
1957 </entrytbl>
1958 </row>
1959
1960 <row><entry></entry></row>
6a02a330 1961 <row id="v4l2-mpeg-video-mpeg4-profile">
e65e4f13 1962 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_PROFILE</constant>&nbsp;</entry>
6a02a330 1963 <entry>enum&nbsp;v4l2_mpeg_video_mpeg4_profile</entry>
e65e4f13
KD
1964 </row>
1965 <row><entry spanname="descr">The profile information for MPEG4.
1966Applicable to the MPEG4 encoder.
1967Possible values are:</entry>
1968 </row>
1969 <row>
1970 <entrytbl spanname="descr" cols="2">
1971 <tbody valign="top">
1972 <row>
1973 <entry><constant>V4L2_MPEG_VIDEO_PROFILE_SIMPLE</constant>&nbsp;</entry>
1974 <entry>Simple profile</entry>
1975 </row>
1976 <row>
1977 <entry><constant>V4L2_MPEG_VIDEO_PROFILE_ADVANCED_SIMPLE</constant>&nbsp;</entry>
1978 <entry>Advanced Simple profile</entry>
1979 </row>
1980 <row>
1981 <entry><constant>V4L2_MPEG_VIDEO_PROFILE_CORE</constant>&nbsp;</entry>
1982 <entry>Core profile</entry>
1983 </row>
1984 <row>
1985 <entry><constant>V4L2_MPEG_VIDEO_PROFILE_SIMPLE_SCALABLE</constant>&nbsp;</entry>
1986 <entry>Simple Scalable profile</entry>
1987 </row>
1988 <row>
1989 <entry><constant>V4L2_MPEG_VIDEO_PROFILE_ADVANCED_CODING_EFFICIENCY</constant>&nbsp;</entry>
1990 <entry></entry>
1991 </row>
1992 </tbody>
1993 </entrytbl>
1994 </row>
1995
1996 <row><entry></entry></row>
1997 <row>
1998 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MAX_REF_PIC</constant>&nbsp;</entry>
1999 <entry>integer</entry>
2000 </row>
2001 <row><entry spanname="descr">The maximum number of reference pictures used for encoding.
2002Applicable to the encoder.
2003</entry>
2004 </row>
2005
2006 <row><entry></entry></row>
6a02a330 2007 <row id="v4l2-mpeg-video-multi-slice-mode">
e65e4f13 2008 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MODE</constant>&nbsp;</entry>
6a02a330 2009 <entry>enum&nbsp;v4l2_mpeg_video_multi_slice_mode</entry>
e65e4f13
KD
2010 </row>
2011 <row><entry spanname="descr">Determines how the encoder should handle division of frame into slices.
2012Applicable to the encoder.
2013Possible values are:</entry>
2014 </row>
2015 <row>
2016 <entrytbl spanname="descr" cols="2">
2017 <tbody valign="top">
2018 <row>
2019 <entry><constant>V4L2_MPEG_VIDEO_MULTI_SLICE_MODE_SINGLE</constant>&nbsp;</entry>
2020 <entry>Single slice per frame.</entry>
2021 </row>
2022 <row>
2023 <entry><constant>V4L2_MPEG_VIDEO_MULTI_SLICE_MODE_MAX_MB</constant>&nbsp;</entry>
2024 <entry>Multiple slices with set maximum number of macroblocks per slice.</entry>
2025 </row>
2026 <row>
2027 <entry><constant>V4L2_MPEG_VIDEO_MULTI_SLICE_MODE_MAX_BYTES</constant>&nbsp;</entry>
2028 <entry>Multiple slice with set maximum size in bytes per slice.</entry>
2029 </row>
2030 </tbody>
2031 </entrytbl>
2032 </row>
2033
2034 <row><entry></entry></row>
2035 <row>
2036 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MAX_MB</constant>&nbsp;</entry>
2037 <entry>integer</entry>
2038 </row>
2039 <row><entry spanname="descr">The maximum number of macroblocks in a slice. Used when
2040<constant>V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MODE</constant> is set to <constant>V4L2_MPEG_VIDEO_MULTI_SLICE_MODE_MAX_MB</constant>.
2041Applicable to the encoder.</entry>
2042 </row>
2043
2044 <row><entry></entry></row>
2045 <row>
2046 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MAX_BYTES</constant>&nbsp;</entry>
2047 <entry>integer</entry>
2048 </row>
2049 <row><entry spanname="descr">The maximum size of a slice in bytes. Used when
2050<constant>V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MODE</constant> is set to <constant>V4L2_MPEG_VIDEO_MULTI_SLICE_MODE_MAX_BYTES</constant>.
2051Applicable to the encoder.</entry>
2052 </row>
2053
2054 <row><entry></entry></row>
6a02a330 2055 <row id="v4l2-mpeg-video-h264-loop-filter-mode">
e65e4f13 2056 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_LOOP_FILTER_MODE</constant>&nbsp;</entry>
6a02a330 2057 <entry>enum&nbsp;v4l2_mpeg_video_h264_loop_filter_mode</entry>
e65e4f13
KD
2058 </row>
2059 <row><entry spanname="descr">Loop filter mode for H264 encoder.
2060Possible values are:</entry>
2061 </row>
2062 <row>
2063 <entrytbl spanname="descr" cols="2">
2064 <tbody valign="top">
2065 <row>
2066 <entry><constant>V4L2_MPEG_VIDEO_H264_LOOP_FILTER_MODE_ENABLED</constant>&nbsp;</entry>
2067 <entry>Loop filter is enabled.</entry>
2068 </row>
2069 <row>
2070 <entry><constant>V4L2_MPEG_VIDEO_H264_LOOP_FILTER_MODE_DISABLED</constant>&nbsp;</entry>
2071 <entry>Loop filter is disabled.</entry>
2072 </row>
2073 <row>
2074 <entry><constant>V4L2_MPEG_VIDEO_H264_LOOP_FILTER_MODE_DISABLED_AT_SLICE_BOUNDARY</constant>&nbsp;</entry>
2075 <entry>Loop filter is disabled at the slice boundary.</entry>
2076 </row>
2077 </tbody>
2078 </entrytbl>
2079 </row>
2080
2081 <row><entry></entry></row>
2082 <row>
2083 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_LOOP_FILTER_ALPHA</constant>&nbsp;</entry>
2084 <entry>integer</entry>
2085 </row>
2086 <row><entry spanname="descr">Loop filter alpha coefficient, defined in the H264 standard.
2087Applicable to the H264 encoder.</entry>
2088 </row>
2089
2090 <row><entry></entry></row>
2091 <row>
2092 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_LOOP_FILTER_BETA</constant>&nbsp;</entry>
2093 <entry>integer</entry>
2094 </row>
2095 <row><entry spanname="descr">Loop filter beta coefficient, defined in the H264 standard.
2096Applicable to the H264 encoder.</entry>
2097 </row>
2098
2099 <row><entry></entry></row>
6a02a330 2100 <row id="v4l2-mpeg-video-h264-entropy-mode">
e65e4f13 2101 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_ENTROPY_MODE</constant>&nbsp;</entry>
6a02a330 2102 <entry>enum&nbsp;v4l2_mpeg_video_h264_entropy_mode</entry>
e65e4f13
KD
2103 </row>
2104 <row><entry spanname="descr">Entropy coding mode for H264 - CABAC/CAVALC.
2105Applicable to the H264 encoder.
2106Possible values are:</entry>
2107 </row>
2108 <row>
2109 <entrytbl spanname="descr" cols="2">
2110 <tbody valign="top">
2111 <row>
2112 <entry><constant>V4L2_MPEG_VIDEO_H264_ENTROPY_MODE_CAVLC</constant>&nbsp;</entry>
2113 <entry>Use CAVLC entropy coding.</entry>
2114 </row>
2115 <row>
2116 <entry><constant>V4L2_MPEG_VIDEO_H264_ENTROPY_MODE_CABAC</constant>&nbsp;</entry>
2117 <entry>Use CABAC entropy coding.</entry>
2118 </row>
2119 </tbody>
2120 </entrytbl>
2121 </row>
2122
2123 <row><entry></entry></row>
2124 <row>
2125 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_8X8_TRANSFORM</constant>&nbsp;</entry>
2126 <entry>boolean</entry>
2127 </row>
2128 <row><entry spanname="descr">Enable 8X8 transform for H264. Applicable to the H264 encoder.</entry>
2129 </row>
2130
2131 <row><entry></entry></row>
2132 <row>
2133 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_CYCLIC_INTRA_REFRESH_MB</constant>&nbsp;</entry>
2134 <entry>integer</entry>
2135 </row>
2136 <row><entry spanname="descr">Cyclic intra macroblock refresh. This is the number of continuous macroblocks
c94bed8e 2137refreshed every frame. Each frame a successive set of macroblocks is refreshed until the cycle completes and starts from the
e65e4f13
KD
2138top of the frame. Applicable to H264, H263 and MPEG4 encoder.</entry>
2139 </row>
2140
2141 <row><entry></entry></row>
2142 <row>
2143 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_FRAME_RC_ENABLE</constant>&nbsp;</entry>
2144 <entry>boolean</entry>
2145 </row>
2146 <row><entry spanname="descr">Frame level rate control enable.
2147If this control is disabled then the quantization parameter for each frame type is constant and set with appropriate controls
2148(e.g. <constant>V4L2_CID_MPEG_VIDEO_H263_I_FRAME_QP</constant>).
2149If frame rate control is enabled then quantization parameter is adjusted to meet the chosen bitrate. Minimum and maximum value
2150for the quantization parameter can be set with appropriate controls (e.g. <constant>V4L2_CID_MPEG_VIDEO_H263_MIN_QP</constant>).
2151Applicable to encoders.</entry>
2152 </row>
2153
2154 <row><entry></entry></row>
2155 <row>
2156 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MB_RC_ENABLE</constant>&nbsp;</entry>
2157 <entry>boolean</entry>
2158 </row>
2159 <row><entry spanname="descr">Macroblock level rate control enable.
2160Applicable to the MPEG4 and H264 encoders.</entry>
2161 </row>
2162
2163 <row><entry></entry></row>
2164 <row>
2165 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_QPEL</constant>&nbsp;</entry>
2166 <entry>boolean</entry>
2167 </row>
2168 <row><entry spanname="descr">Quarter pixel motion estimation for MPEG4. Applicable to the MPEG4 encoder.</entry>
2169 </row>
2170
2171 <row><entry></entry></row>
2172 <row>
2173 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H263_I_FRAME_QP</constant>&nbsp;</entry>
2174 <entry>integer</entry>
2175 </row>
2176 <row><entry spanname="descr">Quantization parameter for an I frame for H263. Valid range: from 1 to 31.</entry>
2177 </row>
2178
2179 <row><entry></entry></row>
2180 <row>
2181 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H263_MIN_QP</constant>&nbsp;</entry>
2182 <entry>integer</entry>
2183 </row>
2184 <row><entry spanname="descr">Minimum quantization parameter for H263. Valid range: from 1 to 31.</entry>
2185 </row>
2186
2187 <row><entry></entry></row>
2188 <row>
2189 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H263_MAX_QP</constant>&nbsp;</entry>
2190 <entry>integer</entry>
2191 </row>
2192 <row><entry spanname="descr">Maximum quantization parameter for H263. Valid range: from 1 to 31.</entry>
2193 </row>
2194
2195 <row><entry></entry></row>
2196 <row>
2197 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H263_P_FRAME_QP</constant>&nbsp;</entry>
2198 <entry>integer</entry>
2199 </row>
2200 <row><entry spanname="descr">Quantization parameter for an P frame for H263. Valid range: from 1 to 31.</entry>
2201 </row>
2202
2203 <row><entry></entry></row>
2204 <row>
2205 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H263_B_FRAME_QP</constant>&nbsp;</entry>
2206 <entry>integer</entry>
2207 </row>
2208 <row><entry spanname="descr">Quantization parameter for an B frame for H263. Valid range: from 1 to 31.</entry>
2209 </row>
2210
2211 <row><entry></entry></row>
2212 <row>
2213 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_I_FRAME_QP</constant>&nbsp;</entry>
2214 <entry>integer</entry>
2215 </row>
2216 <row><entry spanname="descr">Quantization parameter for an I frame for H264. Valid range: from 0 to 51.</entry>
2217 </row>
2218
2219 <row><entry></entry></row>
2220 <row>
2221 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_MIN_QP</constant>&nbsp;</entry>
2222 <entry>integer</entry>
2223 </row>
2224 <row><entry spanname="descr">Minimum quantization parameter for H264. Valid range: from 0 to 51.</entry>
2225 </row>
2226
2227 <row><entry></entry></row>
2228 <row>
2229 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_MAX_QP</constant>&nbsp;</entry>
2230 <entry>integer</entry>
2231 </row>
2232 <row><entry spanname="descr">Maximum quantization parameter for H264. Valid range: from 0 to 51.</entry>
2233 </row>
2234
2235 <row><entry></entry></row>
2236 <row>
2237 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_P_FRAME_QP</constant>&nbsp;</entry>
2238 <entry>integer</entry>
2239 </row>
2240 <row><entry spanname="descr">Quantization parameter for an P frame for H264. Valid range: from 0 to 51.</entry>
2241 </row>
2242
2243 <row><entry></entry></row>
2244 <row>
2245 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_B_FRAME_QP</constant>&nbsp;</entry>
2246 <entry>integer</entry>
2247 </row>
2248 <row><entry spanname="descr">Quantization parameter for an B frame for H264. Valid range: from 0 to 51.</entry>
2249 </row>
2250
2251 <row><entry></entry></row>
2252 <row>
2253 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_I_FRAME_QP</constant>&nbsp;</entry>
2254 <entry>integer</entry>
2255 </row>
2256 <row><entry spanname="descr">Quantization parameter for an I frame for MPEG4. Valid range: from 1 to 31.</entry>
2257 </row>
2258
2259 <row><entry></entry></row>
2260 <row>
2261 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_MIN_QP</constant>&nbsp;</entry>
2262 <entry>integer</entry>
2263 </row>
2264 <row><entry spanname="descr">Minimum quantization parameter for MPEG4. Valid range: from 1 to 31.</entry>
2265 </row>
2266
2267 <row><entry></entry></row>
2268 <row>
2269 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_MAX_QP</constant>&nbsp;</entry>
2270 <entry>integer</entry>
2271 </row>
2272 <row><entry spanname="descr">Maximum quantization parameter for MPEG4. Valid range: from 1 to 31.</entry>
2273 </row>
2274
2275 <row><entry></entry></row>
2276 <row>
2277 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_P_FRAME_QP</constant>&nbsp;</entry>
2278 <entry>integer</entry>
2279 </row>
2280 <row><entry spanname="descr">Quantization parameter for an P frame for MPEG4. Valid range: from 1 to 31.</entry>
2281 </row>
2282
2283 <row><entry></entry></row>
2284 <row>
2285 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_B_FRAME_QP</constant>&nbsp;</entry>
2286 <entry>integer</entry>
2287 </row>
2288 <row><entry spanname="descr">Quantization parameter for an B frame for MPEG4. Valid range: from 1 to 31.</entry>
2289 </row>
2290
2291 <row><entry></entry></row>
2292 <row>
2293 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_VBV_SIZE</constant>&nbsp;</entry>
2294 <entry>integer</entry>
2295 </row>
2296 <row><entry spanname="descr">The Video Buffer Verifier size in kilobytes, it is used as a limitation of frame skip.
c94bed8e 2297The VBV is defined in the standard as a mean to verify that the produced stream will be successfully decoded.
e65e4f13
KD
2298The standard describes it as "Part of a hypothetical decoder that is conceptually connected to the
2299output of the encoder. Its purpose is to provide a constraint on the variability of the data rate that an
2300encoder or editing process may produce.".
2301Applicable to the MPEG1, MPEG2, MPEG4 encoders.</entry>
2302 </row>
2303
2e81dde9
AK
2304 <row><entry></entry></row>
2305 <row id="v4l2-mpeg-video-vbv-delay">
2306 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_VBV_DELAY</constant>&nbsp;</entry>
2307 <entry>integer</entry>
2308 </row><row><entry spanname="descr">Sets the initial delay in milliseconds for
2309VBV buffer control.</entry>
bf0bedd3
AG
2310 </row>
2311
2312 <row><entry></entry></row>
804a04e6 2313 <row id="v4l2-mpeg-video-hor-search-range">
bf0bedd3
AG
2314 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MV_H_SEARCH_RANGE</constant>&nbsp;</entry>
2315 <entry>integer</entry>
2316 </row>
2317 <row><entry spanname="descr">Horizontal search range defines maximum horizontal search area in pixels
2318to search and match for the present Macroblock (MB) in the reference picture. This V4L2 control macro is used to set
2319horizontal search range for motion estimation module in video encoder.</entry>
2320 </row>
2321
2322 <row><entry></entry></row>
2323 <row id="v4l2-mpeg-video-vert-search-range">
2324 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MV_V_SEARCH_RANGE</constant>&nbsp;</entry>
2325 <entry>integer</entry>
2326 </row>
2327 <row><entry spanname="descr">Vertical search range defines maximum vertical search area in pixels
2328to search and match for the present Macroblock (MB) in the reference picture. This V4L2 control macro is used to set
2329vertical search range for motion estimation module in video encoder.</entry>
2e81dde9
AK
2330 </row>
2331
cedc1210
WCL
2332 <row><entry></entry></row>
2333 <row id="v4l2-mpeg-video-force-key-frame">
2334 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_FORCE_KEY_FRAME</constant>&nbsp;</entry>
2335 <entry>button</entry>
2336 </row><row><entry spanname="descr">Force a key frame for the next queued buffer. Applicable to encoders.
2337This is a general, codec-agnostic keyframe control.</entry>
2338 </row>
2339
e65e4f13
KD
2340 <row><entry></entry></row>
2341 <row>
2342 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_CPB_SIZE</constant>&nbsp;</entry>
2343 <entry>integer</entry>
2344 </row>
2345 <row><entry spanname="descr">The Coded Picture Buffer size in kilobytes, it is used as a limitation of frame skip.
c94bed8e 2346The CPB is defined in the H264 standard as a mean to verify that the produced stream will be successfully decoded.
e65e4f13
KD
2347Applicable to the H264 encoder.</entry>
2348 </row>
2349
2350 <row><entry></entry></row>
2351 <row>
2352 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_I_PERIOD</constant>&nbsp;</entry>
2353 <entry>integer</entry>
2354 </row>
2355 <row><entry spanname="descr">Period between I-frames in the open GOP for H264. In case of an open GOP
2356this is the period between two I-frames. The period between IDR (Instantaneous Decoding Refresh) frames is taken from the GOP_SIZE control.
2357An IDR frame, which stands for Instantaneous Decoding Refresh is an I-frame after which no prior frames are
2358referenced. This means that a stream can be restarted from an IDR frame without the need to store or decode any
2359previous frames. Applicable to the H264 encoder.</entry>
2360 </row>
2361
2362 <row><entry></entry></row>
6a02a330 2363 <row id="v4l2-mpeg-video-header-mode">
e65e4f13 2364 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_HEADER_MODE</constant>&nbsp;</entry>
6a02a330 2365 <entry>enum&nbsp;v4l2_mpeg_video_header_mode</entry>
e65e4f13
KD
2366 </row>
2367 <row><entry spanname="descr">Determines whether the header is returned as the first buffer or is
2368it returned together with the first frame. Applicable to encoders.
2369Possible values are:</entry>
2370 </row>
2371 <row>
2372 <entrytbl spanname="descr" cols="2">
2373 <tbody valign="top">
2374 <row>
2375 <entry><constant>V4L2_MPEG_VIDEO_HEADER_MODE_SEPARATE</constant>&nbsp;</entry>
2376 <entry>The stream header is returned separately in the first buffer.</entry>
2377 </row>
2378 <row>
2379 <entry><constant>V4L2_MPEG_VIDEO_HEADER_MODE_JOINED_WITH_1ST_FRAME</constant>&nbsp;</entry>
2380 <entry>The stream header is returned together with the first encoded frame.</entry>
2381 </row>
2382 </tbody>
2383 </entrytbl>
2384 </row>
2385 <row><entry></entry></row>
9ca5470c
HV
2386 <row>
2387 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_REPEAT_SEQ_HEADER</constant>&nbsp;</entry>
2388 <entry>boolean</entry>
2389 </row><row><entry spanname="descr">Repeat the video sequence headers. Repeating these
2390headers makes random access to the video stream easier. Applicable to the MPEG1, 2 and 4 encoder.</entry>
2391 </row>
e65e4f13
KD
2392 <row>
2393 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_DECODER_MPEG4_DEBLOCK_FILTER</constant>&nbsp;</entry>
2394 <entry>boolean</entry>
2395 </row><row><entry spanname="descr">Enabled the deblocking post processing filter for MPEG4 decoder.
2396Applicable to the MPEG4 decoder.</entry>
2397 </row>
2398 <row><entry></entry></row>
2399 <row>
2400 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_VOP_TIME_RES</constant>&nbsp;</entry>
2401 <entry>integer</entry>
2402 </row><row><entry spanname="descr">vop_time_increment_resolution value for MPEG4. Applicable to the MPEG4 encoder.</entry>
2403 </row>
2404 <row><entry></entry></row>
2405 <row>
2406 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_VOP_TIME_INC</constant>&nbsp;</entry>
2407 <entry>integer</entry>
2408 </row><row><entry spanname="descr">vop_time_increment value for MPEG4. Applicable to the MPEG4 encoder.</entry>
2409 </row>
2e81dde9
AK
2410
2411 <row><entry></entry></row>
2412 <row>
2413 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_SEI_FRAME_PACKING</constant>&nbsp;</entry>
2414 <entry>boolean</entry>
2415 </row>
2416 <row><entry spanname="descr">Enable generation of frame packing supplemental enhancement information in the encoded bitstream.
2417The frame packing SEI message contains the arrangement of L and R planes for 3D viewing. Applicable to the H264 encoder.</entry>
2418 </row>
2419
2420 <row><entry></entry></row>
2421 <row>
2422 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_SEI_FP_CURRENT_FRAME_0</constant>&nbsp;</entry>
2423 <entry>boolean</entry>
2424 </row>
2425 <row><entry spanname="descr">Sets current frame as frame0 in frame packing SEI.
2426Applicable to the H264 encoder.</entry>
2427 </row>
2428
2429 <row><entry></entry></row>
2430 <row id="v4l2-mpeg-video-h264-sei-fp-arrangement-type">
2431 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_SEI_FP_ARRANGEMENT_TYPE</constant>&nbsp;</entry>
2432 <entry>enum&nbsp;v4l2_mpeg_video_h264_sei_fp_arrangement_type</entry>
2433 </row>
2434 <row><entry spanname="descr">Frame packing arrangement type for H264 SEI.
2435Applicable to the H264 encoder.
2436Possible values are:</entry>
2437 </row>
2438 <row>
2439 <entrytbl spanname="descr" cols="2">
2440 <tbody valign="top">
2441 <row>
2442 <entry><constant>V4L2_MPEG_VIDEO_H264_SEI_FP_ARRANGEMENT_TYPE_CHEKERBOARD</constant>&nbsp;</entry>
2443 <entry>Pixels are alternatively from L and R.</entry>
2444 </row>
2445 <row>
2446 <entry><constant>V4L2_MPEG_VIDEO_H264_SEI_FP_ARRANGEMENT_TYPE_COLUMN</constant>&nbsp;</entry>
2447 <entry>L and R are interlaced by column.</entry>
2448 </row>
2449 <row>
2450 <entry><constant>V4L2_MPEG_VIDEO_H264_SEI_FP_ARRANGEMENT_TYPE_ROW</constant>&nbsp;</entry>
2451 <entry>L and R are interlaced by row.</entry>
2452 </row>
2453 <row>
2454 <entry><constant>V4L2_MPEG_VIDEO_H264_SEI_FP_ARRANGEMENT_TYPE_SIDE_BY_SIDE</constant>&nbsp;</entry>
2455 <entry>L is on the left, R on the right.</entry>
2456 </row>
2457 <row>
2458 <entry><constant>V4L2_MPEG_VIDEO_H264_SEI_FP_ARRANGEMENT_TYPE_TOP_BOTTOM</constant>&nbsp;</entry>
2459 <entry>L is on top, R on bottom.</entry>
2460 </row>
2461 <row>
2462 <entry><constant>V4L2_MPEG_VIDEO_H264_SEI_FP_ARRANGEMENT_TYPE_TEMPORAL</constant>&nbsp;</entry>
2463 <entry>One view per frame.</entry>
2464 </row>
2465 </tbody>
2466 </entrytbl>
2467 </row>
2468
2469 <row><entry></entry></row>
2470 <row>
2471 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_FMO</constant>&nbsp;</entry>
2472 <entry>boolean</entry>
2473 </row>
2474 <row><entry spanname="descr">Enables flexible macroblock ordering in the encoded bitstream. It is a technique
2475used for restructuring the ordering of macroblocks in pictures. Applicable to the H264 encoder.</entry>
2476 </row>
2477
2478 <row><entry></entry></row>
2479 <row id="v4l2-mpeg-video-h264-fmo-map-type">
2480 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_FMO_MAP_TYPE</constant>&nbsp;</entry>
2481 <entry>enum&nbsp;v4l2_mpeg_video_h264_fmo_map_type</entry>
2482 </row>
2483 <row><entry spanname="descr">When using FMO, the map type divides the image in different scan patterns of macroblocks.
2484Applicable to the H264 encoder.
2485Possible values are:</entry>
2486 </row>
2487 <row>
2488 <entrytbl spanname="descr" cols="2">
2489 <tbody valign="top">
2490 <row>
2491 <entry><constant>V4L2_MPEG_VIDEO_H264_FMO_MAP_TYPE_INTERLEAVED_SLICES</constant>&nbsp;</entry>
2492 <entry>Slices are interleaved one after other with macroblocks in run length order.</entry>
2493 </row>
2494 <row>
2495 <entry><constant>V4L2_MPEG_VIDEO_H264_FMO_MAP_TYPE_SCATTERED_SLICES</constant>&nbsp;</entry>
2496 <entry>Scatters the macroblocks based on a mathematical function known to both encoder and decoder.</entry>
2497 </row>
2498 <row>
2499 <entry><constant>V4L2_MPEG_VIDEO_H264_FMO_MAP_TYPE_FOREGROUND_WITH_LEFT_OVER</constant>&nbsp;</entry>
2500 <entry>Macroblocks arranged in rectangular areas or regions of interest.</entry>
2501 </row>
2502 <row>
2503 <entry><constant>V4L2_MPEG_VIDEO_H264_FMO_MAP_TYPE_BOX_OUT</constant>&nbsp;</entry>
2504 <entry>Slice groups grow in a cyclic way from centre to outwards.</entry>
2505 </row>
2506 <row>
2507 <entry><constant>V4L2_MPEG_VIDEO_H264_FMO_MAP_TYPE_RASTER_SCAN</constant>&nbsp;</entry>
2508 <entry>Slice groups grow in raster scan pattern from left to right.</entry>
2509 </row>
2510 <row>
2511 <entry><constant>V4L2_MPEG_VIDEO_H264_FMO_MAP_TYPE_WIPE_SCAN</constant>&nbsp;</entry>
2512 <entry>Slice groups grow in wipe scan pattern from top to bottom.</entry>
2513 </row>
2514 <row>
2515 <entry><constant>V4L2_MPEG_VIDEO_H264_FMO_MAP_TYPE_EXPLICIT</constant>&nbsp;</entry>
2516 <entry>User defined map type.</entry>
2517 </row>
2518 </tbody>
2519 </entrytbl>
2520 </row>
2521
2522 <row><entry></entry></row>
2523 <row>
2524 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_FMO_SLICE_GROUP</constant>&nbsp;</entry>
2525 <entry>integer</entry>
2526 </row>
2527 <row><entry spanname="descr">Number of slice groups in FMO.
2528Applicable to the H264 encoder.</entry>
2529 </row>
2530
2531 <row><entry></entry></row>
2532 <row id="v4l2-mpeg-video-h264-fmo-change-direction">
2533 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_FMO_CHANGE_DIRECTION</constant>&nbsp;</entry>
2534 <entry>enum&nbsp;v4l2_mpeg_video_h264_fmo_change_dir</entry>
2535 </row>
2536 <row><entry spanname="descr">Specifies a direction of the slice group change for raster and wipe maps.
2537Applicable to the H264 encoder.
2538Possible values are:</entry>
2539 </row>
2540 <row>
2541 <entrytbl spanname="descr" cols="2">
2542 <tbody valign="top">
2543 <row>
2544 <entry><constant>V4L2_MPEG_VIDEO_H264_FMO_CHANGE_DIR_RIGHT</constant>&nbsp;</entry>
2545 <entry>Raster scan or wipe right.</entry>
2546 </row>
2547 <row>
2548 <entry><constant>V4L2_MPEG_VIDEO_H264_FMO_CHANGE_DIR_LEFT</constant>&nbsp;</entry>
2549 <entry>Reverse raster scan or wipe left.</entry>
2550 </row>
2551 </tbody>
2552 </entrytbl>
2553 </row>
2554
2555 <row><entry></entry></row>
2556 <row>
2557 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_FMO_CHANGE_RATE</constant>&nbsp;</entry>
2558 <entry>integer</entry>
2559 </row>
2560 <row><entry spanname="descr">Specifies the size of the first slice group for raster and wipe map.
2561Applicable to the H264 encoder.</entry>
2562 </row>
2563
2564 <row><entry></entry></row>
2565 <row>
2566 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_FMO_RUN_LENGTH</constant>&nbsp;</entry>
2567 <entry>integer</entry>
2568 </row>
2569 <row><entry spanname="descr">Specifies the number of consecutive macroblocks for the interleaved map.
2570Applicable to the H264 encoder.</entry>
2571 </row>
2572
2573 <row><entry></entry></row>
2574 <row>
2575 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_ASO</constant>&nbsp;</entry>
2576 <entry>boolean</entry>
2577 </row>
2578 <row><entry spanname="descr">Enables arbitrary slice ordering in encoded bitstream.
2579Applicable to the H264 encoder.</entry>
2580 </row>
2581
2582 <row><entry></entry></row>
2583 <row>
2584 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_ASO_SLICE_ORDER</constant>&nbsp;</entry>
2585 <entry>integer</entry>
2586 </row><row><entry spanname="descr">Specifies the slice order in ASO. Applicable to the H264 encoder.
2587The supplied 32-bit integer is interpreted as follows (bit
25880 = least significant bit):</entry>
2589 </row>
2590 <row>
2591 <entrytbl spanname="descr" cols="2">
2592 <tbody valign="top">
2593 <row>
2594 <entry>Bit 0:15</entry>
2595 <entry>Slice ID</entry>
2596 </row>
2597 <row>
2598 <entry>Bit 16:32</entry>
2599 <entry>Slice position or order</entry>
2600 </row>
2601 </tbody>
2602 </entrytbl>
2603 </row>
2604
2605 <row><entry></entry></row>
2606 <row>
2607 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_HIERARCHICAL_CODING</constant>&nbsp;</entry>
2608 <entry>boolean</entry>
2609 </row>
2610 <row><entry spanname="descr">Enables H264 hierarchical coding.
2611Applicable to the H264 encoder.</entry>
2612 </row>
2613
2614 <row><entry></entry></row>
2615 <row id="v4l2-mpeg-video-h264-hierarchical-coding-type">
2616 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_HIERARCHICAL_CODING_TYPE</constant>&nbsp;</entry>
2617 <entry>enum&nbsp;v4l2_mpeg_video_h264_hierarchical_coding_type</entry>
2618 </row>
2619 <row><entry spanname="descr">Specifies the hierarchical coding type.
2620Applicable to the H264 encoder.
2621Possible values are:</entry>
2622 </row>
2623 <row>
2624 <entrytbl spanname="descr" cols="2">
2625 <tbody valign="top">
2626 <row>
2627 <entry><constant>V4L2_MPEG_VIDEO_H264_HIERARCHICAL_CODING_B</constant>&nbsp;</entry>
2628 <entry>Hierarchical B coding.</entry>
2629 </row>
2630 <row>
2631 <entry><constant>V4L2_MPEG_VIDEO_H264_HIERARCHICAL_CODING_P</constant>&nbsp;</entry>
2632 <entry>Hierarchical P coding.</entry>
2633 </row>
2634 </tbody>
2635 </entrytbl>
2636 </row>
2637
2638 <row><entry></entry></row>
2639 <row>
2640 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_HIERARCHICAL_CODING_LAYER</constant>&nbsp;</entry>
2641 <entry>integer</entry>
2642 </row>
2643 <row><entry spanname="descr">Specifies the number of hierarchical coding layers.
2644Applicable to the H264 encoder.</entry>
2645 </row>
2646
2647 <row><entry></entry></row>
2648 <row>
2649 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_HIERARCHICAL_CODING_LAYER_QP</constant>&nbsp;</entry>
2650 <entry>integer</entry>
2651 </row><row><entry spanname="descr">Specifies a user defined QP for each layer. Applicable to the H264 encoder.
2652The supplied 32-bit integer is interpreted as follows (bit
26530 = least significant bit):</entry>
2654 </row>
2655 <row>
2656 <entrytbl spanname="descr" cols="2">
2657 <tbody valign="top">
2658 <row>
2659 <entry>Bit 0:15</entry>
2660 <entry>QP value</entry>
2661 </row>
2662 <row>
2663 <entry>Bit 16:32</entry>
2664 <entry>Layer number</entry>
2665 </row>
2666 </tbody>
2667 </entrytbl>
2668 </row>
e65e4f13
KD
2669
2670 </tbody>
2671 </tgroup>
2672 </table>
2673 </section>
2674
2675 <section>
2676 <title>MFC 5.1 MPEG Controls</title>
2677
2678 <para>The following MPEG class controls deal with MPEG
2679decoding and encoding settings that are specific to the Multi Format Codec 5.1 device present
2680in the S5P family of SoCs by Samsung.
2681</para>
2682
2683 <table pgwide="1" frame="none" id="mfc51-control-id">
2684 <title>MFC 5.1 Control IDs</title>
2685 <tgroup cols="4">
2686 <colspec colname="c1" colwidth="1*" />
2687 <colspec colname="c2" colwidth="6*" />
2688 <colspec colname="c3" colwidth="2*" />
2689 <colspec colname="c4" colwidth="6*" />
2690 <spanspec namest="c1" nameend="c2" spanname="id" />
2691 <spanspec namest="c2" nameend="c4" spanname="descr" />
2692 <thead>
2693 <row>
2694 <entry spanname="id" align="left">ID</entry>
2695 <entry align="left">Type</entry>
2696 </row><row><entry spanname="descr" align="left">Description</entry>
2697 </row>
2698 </thead>
2699 <tbody valign="top">
2700 <row><entry></entry></row>
2701 <row>
2702 <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_DECODER_H264_DISPLAY_DELAY_ENABLE</constant>&nbsp;</entry>
faf57114
ND
2703 <entry>boolean</entry>
2704 </row><row><entry spanname="descr">If the display delay is enabled then the decoder is forced to return a
2705CAPTURE buffer (decoded frame) after processing a certain number of OUTPUT buffers. The delay can be set through
2706<constant>V4L2_CID_MPEG_MFC51_VIDEO_DECODER_H264_DISPLAY_DELAY</constant>. This feature can be used for example
2707for generating thumbnails of videos. Applicable to the H264 decoder.
e65e4f13
KD
2708 </entry>
2709 </row>
2710 <row><entry></entry></row>
2711 <row>
2712 <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_DECODER_H264_DISPLAY_DELAY</constant>&nbsp;</entry>
2713 <entry>integer</entry>
2714 </row><row><entry spanname="descr">Display delay value for H264 decoder.
2715The decoder is forced to return a decoded frame after the set 'display delay' number of frames. If this number is
2716low it may result in frames returned out of dispaly order, in addition the hardware may still be using the returned buffer
2717as a reference picture for subsequent frames.
2718</entry>
2719 </row>
2720 <row><entry></entry></row>
2721 <row>
2722 <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_H264_NUM_REF_PIC_FOR_P</constant>&nbsp;</entry>
2723 <entry>integer</entry>
2724 </row><row><entry spanname="descr">The number of reference pictures used for encoding a P picture.
2725Applicable to the H264 encoder.</entry>
2726 </row>
2727 <row><entry></entry></row>
2728 <row>
2729 <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_PADDING</constant>&nbsp;</entry>
2730 <entry>boolean</entry>
2731 </row><row><entry spanname="descr">Padding enable in the encoder - use a color instead of repeating border pixels.
2732Applicable to encoders.</entry>
2733 </row>
2734 <row><entry></entry></row>
2735 <row>
2736 <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_PADDING_YUV</constant>&nbsp;</entry>
2737 <entry>integer</entry>
2738 </row><row><entry spanname="descr">Padding color in the encoder. Applicable to encoders. The supplied 32-bit integer is interpreted as follows (bit
27390 = least significant bit):</entry>
2740 </row>
2741 <row>
2742 <entrytbl spanname="descr" cols="2">
2743 <tbody valign="top">
2744 <row>
2745 <entry>Bit 0:7</entry>
2746 <entry>V chrominance information</entry>
2747 </row>
2748 <row>
2749 <entry>Bit 8:15</entry>
2750 <entry>U chrominance information</entry>
2751 </row>
2752 <row>
2753 <entry>Bit 16:23</entry>
2754 <entry>Y luminance information</entry>
2755 </row>
2756 <row>
2757 <entry>Bit 24:31</entry>
2758 <entry>Must be zero.</entry>
2759 </row>
2760 </tbody>
2761 </entrytbl>
2762 </row>
2763 <row><entry></entry></row>
2764 <row>
2765 <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_RC_REACTION_COEFF</constant>&nbsp;</entry>
2766 <entry>integer</entry>
2767 </row><row><entry spanname="descr">Reaction coefficient for MFC rate control. Applicable to encoders.
2768<para>Note 1: Valid only when the frame level RC is enabled.</para>
2769<para>Note 2: For tight CBR, this field must be small (ex. 2 ~ 10).
2770For VBR, this field must be large (ex. 100 ~ 1000).</para>
2771<para>Note 3: It is not recommended to use the greater number than FRAME_RATE * (10^9 / BIT_RATE).</para>
2772</entry>
2773 </row>
2774 <row><entry></entry></row>
2775 <row>
2776 <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_H264_ADAPTIVE_RC_DARK</constant>&nbsp;</entry>
2777 <entry>boolean</entry>
2778 </row><row><entry spanname="descr">Adaptive rate control for dark region.
2779Valid only when H.264 and macroblock level RC is enabled (<constant>V4L2_CID_MPEG_VIDEO_MB_RC_ENABLE</constant>).
2780Applicable to the H264 encoder.</entry>
2781 </row>
2782 <row><entry></entry></row>
2783 <row>
2784 <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_H264_ADAPTIVE_RC_SMOOTH</constant>&nbsp;</entry>
2785 <entry>boolean</entry>
2786 </row><row><entry spanname="descr">Adaptive rate control for smooth region.
2787Valid only when H.264 and macroblock level RC is enabled (<constant>V4L2_CID_MPEG_VIDEO_MB_RC_ENABLE</constant>).
2788Applicable to the H264 encoder.</entry>
2789 </row>
2790 <row><entry></entry></row>
2791 <row>
2792 <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_H264_ADAPTIVE_RC_STATIC</constant>&nbsp;</entry>
2793 <entry>boolean</entry>
2794 </row><row><entry spanname="descr">Adaptive rate control for static region.
2795Valid only when H.264 and macroblock level RC is enabled (<constant>V4L2_CID_MPEG_VIDEO_MB_RC_ENABLE</constant>).
2796Applicable to the H264 encoder.</entry>
2797 </row>
2798 <row><entry></entry></row>
2799 <row>
2800 <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_H264_ADAPTIVE_RC_ACTIVITY</constant>&nbsp;</entry>
2801 <entry>boolean</entry>
2802 </row><row><entry spanname="descr">Adaptive rate control for activity region.
2803Valid only when H.264 and macroblock level RC is enabled (<constant>V4L2_CID_MPEG_VIDEO_MB_RC_ENABLE</constant>).
2804Applicable to the H264 encoder.</entry>
2805 </row>
2806 <row><entry></entry></row>
6a02a330 2807 <row id="v4l2-mpeg-mfc51-video-frame-skip-mode">
e65e4f13 2808 <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_FRAME_SKIP_MODE</constant>&nbsp;</entry>
6a02a330 2809 <entry>enum&nbsp;v4l2_mpeg_mfc51_video_frame_skip_mode</entry>
e65e4f13
KD
2810 </row>
2811 <row><entry spanname="descr">
2812Indicates in what conditions the encoder should skip frames. If encoding a frame would cause the encoded stream to be larger then
2813a chosen data limit then the frame will be skipped.
2814Possible values are:</entry>
2815 </row>
2816 <row>
2817 <entrytbl spanname="descr" cols="2">
2818 <tbody valign="top">
2819 <row>
2820 <entry><constant>V4L2_MPEG_MFC51_FRAME_SKIP_MODE_DISABLED</constant>&nbsp;</entry>
2821 <entry>Frame skip mode is disabled.</entry>
2822 </row>
2823 <row>
2824 <entry><constant>V4L2_MPEG_MFC51_FRAME_SKIP_MODE_LEVEL_LIMIT</constant>&nbsp;</entry>
2825 <entry>Frame skip mode enabled and buffer limit is set by the chosen level and is defined by the standard.</entry>
2826 </row>
2827 <row>
2828 <entry><constant>V4L2_MPEG_MFC51_FRAME_SKIP_MODE_BUF_LIMIT</constant>&nbsp;</entry>
2829 <entry>Frame skip mode enabled and buffer limit is set by the VBV (MPEG1/2/4) or CPB (H264) buffer size control.</entry>
2830 </row>
2831 </tbody>
2832 </entrytbl>
2833 </row>
2834 <row><entry></entry></row>
2835 <row>
2836 <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_RC_FIXED_TARGET_BIT</constant>&nbsp;</entry>
2837 <entry>integer</entry>
2838 </row><row><entry spanname="descr">Enable rate-control with fixed target bit.
2839If this setting is enabled, then the rate control logic of the encoder will calculate the average bitrate
2840for a GOP and keep it below or equal the set bitrate target. Otherwise the rate control logic calculates the
2841overall average bitrate for the stream and keeps it below or equal to the set bitrate. In the first case
2842the average bitrate for the whole stream will be smaller then the set bitrate. This is caused because the
2843average is calculated for smaller number of frames, on the other hand enabling this setting will ensure that
2844the stream will meet tight bandwidth contraints. Applicable to encoders.
2845</entry>
2846 </row>
2847 <row><entry></entry></row>
6a02a330 2848 <row id="v4l2-mpeg-mfc51-video-force-frame-type">
e65e4f13 2849 <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_FORCE_FRAME_TYPE</constant>&nbsp;</entry>
6a02a330 2850 <entry>enum&nbsp;v4l2_mpeg_mfc51_video_force_frame_type</entry>
e65e4f13
KD
2851 </row>
2852 <row><entry spanname="descr">Force a frame type for the next queued buffer. Applicable to encoders.
2853Possible values are:</entry>
2854 </row>
2855 <row>
2856 <entrytbl spanname="descr" cols="2">
2857 <tbody valign="top">
2858 <row>
2859 <entry><constant>V4L2_MPEG_MFC51_FORCE_FRAME_TYPE_DISABLED</constant>&nbsp;</entry>
2860 <entry>Forcing a specific frame type disabled.</entry>
2861 </row>
2862 <row>
2863 <entry><constant>V4L2_MPEG_MFC51_FORCE_FRAME_TYPE_I_FRAME</constant>&nbsp;</entry>
2864 <entry>Force an I-frame.</entry>
2865 </row>
2866 <row>
2867 <entry><constant>V4L2_MPEG_MFC51_FORCE_FRAME_TYPE_NOT_CODED</constant>&nbsp;</entry>
2868 <entry>Force a non-coded frame.</entry>
2869 </row>
2870 </tbody>
2871 </entrytbl>
2872 </row>
8e080c2e
MCC
2873 </tbody>
2874 </tgroup>
2875 </table>
2876 </section>
2877
2878 <section>
2879 <title>CX2341x MPEG Controls</title>
2880
2881 <para>The following MPEG class controls deal with MPEG
2882encoding settings that are specific to the Conexant CX23415 and
2883CX23416 MPEG encoding chips.</para>
2884
2885 <table pgwide="1" frame="none" id="cx2341x-control-id">
2886 <title>CX2341x Control IDs</title>
2887 <tgroup cols="4">
2888 <colspec colname="c1" colwidth="1*" />
2889 <colspec colname="c2" colwidth="6*" />
2890 <colspec colname="c3" colwidth="2*" />
2891 <colspec colname="c4" colwidth="6*" />
2892 <spanspec namest="c1" nameend="c2" spanname="id" />
2893 <spanspec namest="c2" nameend="c4" spanname="descr" />
2894 <thead>
2895 <row>
2896 <entry spanname="id" align="left">ID</entry>
2897 <entry align="left">Type</entry>
2898 </row><row><entry spanname="descr" align="left">Description</entry>
2899 </row>
2900 </thead>
2901 <tbody valign="top">
2902 <row><entry></entry></row>
2903 <row id="v4l2-mpeg-cx2341x-video-spatial-filter-mode">
2904 <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE</constant>&nbsp;</entry>
2905 <entry>enum&nbsp;v4l2_mpeg_cx2341x_video_spatial_filter_mode</entry>
2906 </row><row><entry spanname="descr">Sets the Spatial
2907Filter mode (default <constant>MANUAL</constant>). Possible values
2908are:</entry>
2909 </row>
2910 <row>
2911 <entrytbl spanname="descr" cols="2">
2912 <tbody valign="top">
2913 <row>
2914 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE_MANUAL</constant>&nbsp;</entry>
2915 <entry>Choose the filter manually</entry>
2916 </row>
2917 <row>
2918 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE_AUTO</constant>&nbsp;</entry>
2919 <entry>Choose the filter automatically</entry>
2920 </row>
2921 </tbody>
2922 </entrytbl>
2923 </row>
2924 <row><entry></entry></row>
2925 <row>
2926 <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_SPATIAL_FILTER</constant>&nbsp;</entry>
2927 <entry>integer&nbsp;(0-15)</entry>
2928 </row><row><entry spanname="descr">The setting for the
2929Spatial Filter. 0 = off, 15 = maximum. (Default is 0.)</entry>
2930 </row>
2931 <row><entry></entry></row>
2932 <row id="luma-spatial-filter-type">
2933 <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE</constant>&nbsp;</entry>
2934 <entry>enum&nbsp;v4l2_mpeg_cx2341x_video_luma_spatial_filter_type</entry>
2935 </row><row><entry spanname="descr">Select the algorithm
2936to use for the Luma Spatial Filter (default
2937<constant>1D_HOR</constant>). Possible values:</entry>
2938 </row>
2939 <row>
2940 <entrytbl spanname="descr" cols="2">
2941 <tbody valign="top">
2942 <row>
2943 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_OFF</constant>&nbsp;</entry>
2944 <entry>No filter</entry>
2945 </row>
2946 <row>
2947 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_1D_HOR</constant>&nbsp;</entry>
2948 <entry>One-dimensional horizontal</entry>
2949 </row>
2950 <row>
2951 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_1D_VERT</constant>&nbsp;</entry>
2952 <entry>One-dimensional vertical</entry>
2953 </row>
2954 <row>
2955 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_2D_HV_SEPARABLE</constant>&nbsp;</entry>
2956 <entry>Two-dimensional separable</entry>
2957 </row>
2958 <row>
2959 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_2D_SYM_NON_SEPARABLE</constant>&nbsp;</entry>
2960 <entry>Two-dimensional symmetrical
2961non-separable</entry>
2962 </row>
2963 </tbody>
2964 </entrytbl>
2965 </row>
2966 <row><entry></entry></row>
2967 <row id="chroma-spatial-filter-type">
2968 <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_CHROMA_SPATIAL_FILTER_TYPE</constant>&nbsp;</entry>
2969 <entry>enum&nbsp;v4l2_mpeg_cx2341x_video_chroma_spatial_filter_type</entry>
2970 </row><row><entry spanname="descr">Select the algorithm
2971for the Chroma Spatial Filter (default <constant>1D_HOR</constant>).
2972Possible values are:</entry>
2973 </row>
2974 <row>
2975 <entrytbl spanname="descr" cols="2">
2976 <tbody valign="top">
2977 <row>
2978 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_CHROMA_SPATIAL_FILTER_TYPE_OFF</constant>&nbsp;</entry>
2979 <entry>No filter</entry>
2980 </row>
2981 <row>
2982 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_CHROMA_SPATIAL_FILTER_TYPE_1D_HOR</constant>&nbsp;</entry>
2983 <entry>One-dimensional horizontal</entry>
2984 </row>
2985 </tbody>
2986 </entrytbl>
2987 </row>
2988 <row><entry></entry></row>
2989 <row id="v4l2-mpeg-cx2341x-video-temporal-filter-mode">
2990 <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER_MODE</constant>&nbsp;</entry>
2991 <entry>enum&nbsp;v4l2_mpeg_cx2341x_video_temporal_filter_mode</entry>
2992 </row><row><entry spanname="descr">Sets the Temporal
2993Filter mode (default <constant>MANUAL</constant>). Possible values
2994are:</entry>
2995 </row>
2996 <row>
2997 <entrytbl spanname="descr" cols="2">
2998 <tbody valign="top">
2999 <row>
3000 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER_MODE_MANUAL</constant>&nbsp;</entry>
3001 <entry>Choose the filter manually</entry>
3002 </row>
3003 <row>
3004 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER_MODE_AUTO</constant>&nbsp;</entry>
3005 <entry>Choose the filter automatically</entry>
3006 </row>
3007 </tbody>
3008 </entrytbl>
3009 </row>
3010 <row><entry></entry></row>
3011 <row>
3012 <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER</constant>&nbsp;</entry>
3013 <entry>integer&nbsp;(0-31)</entry>
3014 </row><row><entry spanname="descr">The setting for the
3015Temporal Filter. 0 = off, 31 = maximum. (Default is 8 for full-scale
3016capturing and 0 for scaled capturing.)</entry>
3017 </row>
3018 <row><entry></entry></row>
3019 <row id="v4l2-mpeg-cx2341x-video-median-filter-type">
3020 <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE</constant>&nbsp;</entry>
3021 <entry>enum&nbsp;v4l2_mpeg_cx2341x_video_median_filter_type</entry>
3022 </row><row><entry spanname="descr">Median Filter Type
3023(default <constant>OFF</constant>). Possible values are:</entry>
3024 </row>
3025 <row>
3026 <entrytbl spanname="descr" cols="2">
3027 <tbody valign="top">
3028 <row>
3029 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_OFF</constant>&nbsp;</entry>
3030 <entry>No filter</entry>
3031 </row>
3032 <row>
3033 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_HOR</constant>&nbsp;</entry>
3034 <entry>Horizontal filter</entry>
3035 </row>
3036 <row>
3037 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_VERT</constant>&nbsp;</entry>
3038 <entry>Vertical filter</entry>
3039 </row>
3040 <row>
3041 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_HOR_VERT</constant>&nbsp;</entry>
3042 <entry>Horizontal and vertical filter</entry>
3043 </row>
3044 <row>
3045 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_DIAG</constant>&nbsp;</entry>
3046 <entry>Diagonal filter</entry>
3047 </row>
3048 </tbody>
3049 </entrytbl>
3050 </row>
3051 <row><entry></entry></row>
3052 <row>
3053 <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_LUMA_MEDIAN_FILTER_BOTTOM</constant>&nbsp;</entry>
3054 <entry>integer&nbsp;(0-255)</entry>
3055 </row><row><entry spanname="descr">Threshold above which
3056the luminance median filter is enabled (default 0)</entry>
3057 </row>
3058 <row><entry></entry></row>
3059 <row>
3060 <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_LUMA_MEDIAN_FILTER_TOP</constant>&nbsp;</entry>
3061 <entry>integer&nbsp;(0-255)</entry>
3062 </row><row><entry spanname="descr">Threshold below which
3063the luminance median filter is enabled (default 255)</entry>
3064 </row>
3065 <row><entry></entry></row>
3066 <row>
3067 <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_CHROMA_MEDIAN_FILTER_BOTTOM</constant>&nbsp;</entry>
3068 <entry>integer&nbsp;(0-255)</entry>
3069 </row><row><entry spanname="descr">Threshold above which
3070the chroma median filter is enabled (default 0)</entry>
3071 </row>
3072 <row><entry></entry></row>
3073 <row>
3074 <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_CHROMA_MEDIAN_FILTER_TOP</constant>&nbsp;</entry>
3075 <entry>integer&nbsp;(0-255)</entry>
3076 </row><row><entry spanname="descr">Threshold below which
3077the chroma median filter is enabled (default 255)</entry>
3078 </row>
3079 <row><entry></entry></row>
3080 <row>
3081 <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_STREAM_INSERT_NAV_PACKETS</constant>&nbsp;</entry>
3082 <entry>boolean</entry>
3083 </row>
3084 <row><entry spanname="descr">The CX2341X MPEG encoder
3085can insert one empty MPEG-2 PES packet into the stream between every
3086four video frames. The packet size is 2048 bytes, including the
3087packet_start_code_prefix and stream_id fields. The stream_id is 0xBF
3088(private stream 2). The payload consists of 0x00 bytes, to be filled
3089in by the application. 0 = do not insert, 1 = insert packets.</entry>
3090 </row>
3091 </tbody>
3092 </tgroup>
3093 </table>
3094 </section>
bc9028e1
AK
3095
3096 <section>
3097 <title>VPX Control Reference</title>
3098
3099 <para>The VPX controls include controls for encoding parameters
3100 of VPx video codec.</para>
3101
3102 <table pgwide="1" frame="none" id="vpx-control-id">
3103 <title>VPX Control IDs</title>
3104
3105 <tgroup cols="4">
3106 <colspec colname="c1" colwidth="1*" />
3107 <colspec colname="c2" colwidth="6*" />
3108 <colspec colname="c3" colwidth="2*" />
3109 <colspec colname="c4" colwidth="6*" />
3110 <spanspec namest="c1" nameend="c2" spanname="id" />
3111 <spanspec namest="c2" nameend="c4" spanname="descr" />
3112 <thead>
3113 <row>
3114 <entry spanname="id" align="left">ID</entry>
3115 <entry align="left">Type</entry>
3116 </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
3117 </row>
3118 </thead>
3119 <tbody valign="top">
3120 <row><entry></entry></row>
3121
3122 <row><entry></entry></row>
3123 <row id="v4l2-vpx-num-partitions">
3124 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_VPX_NUM_PARTITIONS</constant></entry>
3125 <entry>enum v4l2_vp8_num_partitions</entry>
3126 </row>
3127 <row><entry spanname="descr">The number of token partitions to use in VP8 encoder.
3128Possible values are:</entry>
3129 </row>
3130 <row>
3131 <entrytbl spanname="descr" cols="2">
3132 <tbody valign="top">
3133 <row>
3134 <entry><constant>V4L2_CID_MPEG_VIDEO_VPX_1_PARTITION</constant></entry>
3135 <entry>1 coefficient partition</entry>
3136 </row>
3137 <row>
3138 <entry><constant>V4L2_CID_MPEG_VIDEO_VPX_2_PARTITIONS</constant></entry>
3139 <entry>2 coefficient partitions</entry>
3140 </row>
3141 <row>
3142 <entry><constant>V4L2_CID_MPEG_VIDEO_VPX_4_PARTITIONS</constant></entry>
3143 <entry>4 coefficient partitions</entry>
3144 </row>
3145 <row>
3146 <entry><constant>V4L2_CID_MPEG_VIDEO_VPX_8_PARTITIONS</constant></entry>
3147 <entry>8 coefficient partitions</entry>
3148 </row>
3149 </tbody>
3150 </entrytbl>
3151 </row>
3152
3153 <row><entry></entry></row>
3154 <row>
3155 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_VPX_IMD_DISABLE_4X4</constant></entry>
3156 <entry>boolean</entry>
3157 </row>
3158 <row><entry spanname="descr">Setting this prevents intra 4x4 mode in the intra mode decision.</entry>
3159 </row>
3160
3161 <row><entry></entry></row>
3162 <row id="v4l2-vpx-num-ref-frames">
3163 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_VPX_NUM_REF_FRAMES</constant></entry>
3164 <entry>enum v4l2_vp8_num_ref_frames</entry>
3165 </row>
3166 <row><entry spanname="descr">The number of reference pictures for encoding P frames.
3167Possible values are:</entry>
3168 </row>
3169 <row>
3170 <entrytbl spanname="descr" cols="2">
3171 <tbody valign="top">
3172 <row>
3173 <entry><constant>V4L2_CID_MPEG_VIDEO_VPX_1_REF_FRAME</constant></entry>
3174 <entry>Last encoded frame will be searched</entry>
3175 </row>
3176 <row>
3177 <entry><constant>V4L2_CID_MPEG_VIDEO_VPX_2_REF_FRAME</constant></entry>
3178 <entry>Two frames will be searched among the last encoded frame, the golden frame
3179and the alternate reference (altref) frame. The encoder implementation will decide which two are chosen.</entry>
3180 </row>
3181 <row>
3182 <entry><constant>V4L2_CID_MPEG_VIDEO_VPX_3_REF_FRAME</constant></entry>
3183 <entry>The last encoded frame, the golden frame and the altref frame will be searched.</entry>
3184 </row>
3185 </tbody>
3186 </entrytbl>
3187 </row>
3188
3189 <row><entry></entry></row>
3190 <row>
3191 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_VPX_FILTER_LEVEL</constant></entry>
3192 <entry>integer</entry>
3193 </row>
3194 <row><entry spanname="descr">Indicates the loop filter level. The adjustment of the loop
3195filter level is done via a delta value against a baseline loop filter value.</entry>
3196 </row>
3197
3198 <row><entry></entry></row>
3199 <row>
3200 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_VPX_FILTER_SHARPNESS</constant></entry>
3201 <entry>integer</entry>
3202 </row>
3203 <row><entry spanname="descr">This parameter affects the loop filter. Anything above
3204zero weakens the deblocking effect on the loop filter.</entry>
3205 </row>
3206
3207 <row><entry></entry></row>
3208 <row>
3209 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_VPX_GOLDEN_FRAME_REF_PERIOD</constant></entry>
3210 <entry>integer</entry>
3211 </row>
3212 <row><entry spanname="descr">Sets the refresh period for the golden frame. The period is defined
3213in number of frames. For a value of 'n', every nth frame starting from the first key frame will be taken as a golden frame.
3214For eg. for encoding sequence of 0, 1, 2, 3, 4, 5, 6, 7 where the golden frame refresh period is set as 4, the frames
32150, 4, 8 etc will be taken as the golden frames as frame 0 is always a key frame.</entry>
3216 </row>
3217
3218 <row><entry></entry></row>
3219 <row id="v4l2-vpx-golden-frame-sel">
3220 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_VPX_GOLDEN_FRAME_SEL</constant></entry>
3221 <entry>enum v4l2_vp8_golden_frame_sel</entry>
3222 </row>
3223 <row><entry spanname="descr">Selects the golden frame for encoding.
3224Possible values are:</entry>
3225 </row>
3226 <row>
3227 <entrytbl spanname="descr" cols="2">
3228 <tbody valign="top">
3229 <row>
3230 <entry><constant>V4L2_CID_MPEG_VIDEO_VPX_GOLDEN_FRAME_USE_PREV</constant></entry>
3231 <entry>Use the (n-2)th frame as a golden frame, current frame index being 'n'.</entry>
3232 </row>
3233 <row>
3234 <entry><constant>V4L2_CID_MPEG_VIDEO_VPX_GOLDEN_FRAME_USE_REF_PERIOD</constant></entry>
3235 <entry>Use the previous specific frame indicated by
3236V4L2_CID_MPEG_VIDEO_VPX_GOLDEN_FRAME_REF_PERIOD as a golden frame.</entry>
3237 </row>
3238 </tbody>
3239 </entrytbl>
3240 </row>
3241
4773ab99
AK
3242 <row><entry></entry></row>
3243 <row>
3244 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_VPX_MIN_QP</constant></entry>
3245 <entry>integer</entry>
3246 </row>
3247 <row><entry spanname="descr">Minimum quantization parameter for VP8.</entry>
3248 </row>
3249
3250 <row><entry></entry></row>
3251 <row>
3252 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_VPX_MAX_QP</constant></entry>
3253 <entry>integer</entry>
3254 </row>
3255 <row><entry spanname="descr">Maximum quantization parameter for VP8.</entry>
3256 </row>
3257
3258 <row><entry></entry></row>
3259 <row>
3260 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_VPX_I_FRAME_QP</constant>&nbsp;</entry>
3261 <entry>integer</entry>
3262 </row>
3263 <row><entry spanname="descr">Quantization parameter for an I frame for VP8.</entry>
3264 </row>
3265
3266 <row><entry></entry></row>
3267 <row>
3268 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_VPX_P_FRAME_QP</constant>&nbsp;</entry>
3269 <entry>integer</entry>
3270 </row>
3271 <row><entry spanname="descr">Quantization parameter for a P frame for VP8.</entry>
3272 </row>
3273
bbd8f3fe
KA
3274 <row><entry></entry></row>
3275 <row>
3276 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_VPX_PROFILE</constant>&nbsp;</entry>
3277 <entry>integer</entry>
3278 </row>
3279 <row><entry spanname="descr">Select the desired profile for VPx encoder.
3280Acceptable values are 0, 1, 2 and 3 corresponding to encoder profiles 0, 1, 2 and 3.</entry>
3281 </row>
3282
bc9028e1
AK
3283 <row><entry></entry></row>
3284 </tbody>
3285 </tgroup>
3286 </table>
3287
3288 </section>
8e080c2e
MCC
3289 </section>
3290
3291 <section id="camera-controls">
3292 <title>Camera Control Reference</title>
3293
3294 <para>The Camera class includes controls for mechanical (or
3295equivalent digital) features of a device such as controllable lenses
3296or sensors.</para>
3297
3298 <table pgwide="1" frame="none" id="camera-control-id">
3299 <title>Camera Control IDs</title>
3300 <tgroup cols="4">
3301 <colspec colname="c1" colwidth="1*" />
3302 <colspec colname="c2" colwidth="6*" />
3303 <colspec colname="c3" colwidth="2*" />
3304 <colspec colname="c4" colwidth="6*" />
3305 <spanspec namest="c1" nameend="c2" spanname="id" />
3306 <spanspec namest="c2" nameend="c4" spanname="descr" />
3307 <thead>
3308 <row>
3309 <entry spanname="id" align="left">ID</entry>
3310 <entry align="left">Type</entry>
3311 </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
3312 </row>
3313 </thead>
3314 <tbody valign="top">
3315 <row><entry></entry></row>
3316 <row>
3317 <entry spanname="id"><constant>V4L2_CID_CAMERA_CLASS</constant>&nbsp;</entry>
3318 <entry>class</entry>
3319 </row><row><entry spanname="descr">The Camera class
3320descriptor. Calling &VIDIOC-QUERYCTRL; for this control will return a
3321description of this control class.</entry>
3322 </row>
3323 <row><entry></entry></row>
3324
3325 <row id="v4l2-exposure-auto-type">
3326 <entry spanname="id"><constant>V4L2_CID_EXPOSURE_AUTO</constant>&nbsp;</entry>
3327 <entry>enum&nbsp;v4l2_exposure_auto_type</entry>
3328 </row><row><entry spanname="descr">Enables automatic
3329adjustments of the exposure time and/or iris aperture. The effect of
3330manual changes of the exposure time or iris aperture while these
3331features are enabled is undefined, drivers should ignore such
3332requests. Possible values are:</entry>
3333 </row>
3334 <row>
3335 <entrytbl spanname="descr" cols="2">
3336 <tbody valign="top">
3337 <row>
3338 <entry><constant>V4L2_EXPOSURE_AUTO</constant>&nbsp;</entry>
3339 <entry>Automatic exposure time, automatic iris
3340aperture.</entry>
3341 </row>
3342 <row>
3343 <entry><constant>V4L2_EXPOSURE_MANUAL</constant>&nbsp;</entry>
3344 <entry>Manual exposure time, manual iris.</entry>
3345 </row>
3346 <row>
3347 <entry><constant>V4L2_EXPOSURE_SHUTTER_PRIORITY</constant>&nbsp;</entry>
3348 <entry>Manual exposure time, auto iris.</entry>
3349 </row>
3350 <row>
3351 <entry><constant>V4L2_EXPOSURE_APERTURE_PRIORITY</constant>&nbsp;</entry>
3352 <entry>Auto exposure time, manual iris.</entry>
3353 </row>
3354 </tbody>
3355 </entrytbl>
3356 </row>
3357 <row><entry></entry></row>
3358
3359 <row>
3360 <entry spanname="id"><constant>V4L2_CID_EXPOSURE_ABSOLUTE</constant>&nbsp;</entry>
3361 <entry>integer</entry>
3362 </row><row><entry spanname="descr">Determines the exposure
3363time of the camera sensor. The exposure time is limited by the frame
3364interval. Drivers should interpret the values as 100 &micro;s units,
3365where the value 1 stands for 1/10000th of a second, 10000 for 1 second
3366and 100000 for 10 seconds.</entry>
3367 </row>
3368 <row><entry></entry></row>
3369
3370 <row>
3371 <entry spanname="id"><constant>V4L2_CID_EXPOSURE_AUTO_PRIORITY</constant>&nbsp;</entry>
3372 <entry>boolean</entry>
3373 </row><row><entry spanname="descr">When
3374<constant>V4L2_CID_EXPOSURE_AUTO</constant> is set to
3375<constant>AUTO</constant> or <constant>APERTURE_PRIORITY</constant>,
3376this control determines if the device may dynamically vary the frame
3377rate. By default this feature is disabled (0) and the frame rate must
3378remain constant.</entry>
3379 </row>
3380 <row><entry></entry></row>
3381
d58083c9
SN
3382 <row>
3383 <entry spanname="id"><constant>V4L2_CID_EXPOSURE_BIAS</constant>&nbsp;</entry>
3384 <entry>integer menu</entry>
3385 </row><row><entry spanname="descr"> Determines the automatic
3386exposure compensation, it is effective only when <constant>V4L2_CID_EXPOSURE_AUTO</constant>
3387control is set to <constant>AUTO</constant>, <constant>SHUTTER_PRIORITY </constant>
3388or <constant>APERTURE_PRIORITY</constant>.
3389It is expressed in terms of EV, drivers should interpret the values as 0.001 EV
3390units, where the value 1000 stands for +1 EV.
3391<para>Increasing the exposure compensation value is equivalent to decreasing
3392the exposure value (EV) and will increase the amount of light at the image
3393sensor. The camera performs the exposure compensation by adjusting absolute
3394exposure time and/or aperture.</para></entry>
3395 </row>
3396 <row><entry></entry></row>
3397
cf072139
SN
3398 <row id="v4l2-exposure-metering">
3399 <entry spanname="id"><constant>V4L2_CID_EXPOSURE_METERING</constant>&nbsp;</entry>
3400 <entry>enum&nbsp;v4l2_exposure_metering</entry>
3401 </row><row><entry spanname="descr">Determines how the camera measures
3402the amount of light available for the frame exposure. Possible values are:</entry>
3403 </row>
3404 <row>
3405 <entrytbl spanname="descr" cols="2">
3406 <tbody valign="top">
3407 <row>
3408 <entry><constant>V4L2_EXPOSURE_METERING_AVERAGE</constant>&nbsp;</entry>
3409 <entry>Use the light information coming from the entire frame
3410and average giving no weighting to any particular portion of the metered area.
3411 </entry>
3412 </row>
3413 <row>
3414 <entry><constant>V4L2_EXPOSURE_METERING_CENTER_WEIGHTED</constant>&nbsp;</entry>
3415 <entry>Average the light information coming from the entire frame
3416giving priority to the center of the metered area.</entry>
3417 </row>
3418 <row>
3419 <entry><constant>V4L2_EXPOSURE_METERING_SPOT</constant>&nbsp;</entry>
3420 <entry>Measure only very small area at the center of the frame.</entry>
3421 </row>
fc39f46b
SN
3422 <row>
3423 <entry><constant>V4L2_EXPOSURE_METERING_MATRIX</constant>&nbsp;</entry>
3424 <entry>A multi-zone metering. The light intensity is measured
06268390 3425in several points of the frame and the results are combined. The
fc39f46b 3426algorithm of the zones selection and their significance in calculating the
f884ab15 3427final value is device dependent.</entry>
fc39f46b 3428 </row>
cf072139
SN
3429 </tbody>
3430 </entrytbl>
3431 </row>
3432 <row><entry></entry></row>
3433
8e080c2e
MCC
3434 <row>
3435 <entry spanname="id"><constant>V4L2_CID_PAN_RELATIVE</constant>&nbsp;</entry>
3436 <entry>integer</entry>
3437 </row><row><entry spanname="descr">This control turns the
3438camera horizontally by the specified amount. The unit is undefined. A
3439positive value moves the camera to the right (clockwise when viewed
3440from above), a negative value to the left. A value of zero does not
3441cause motion. This is a write-only control.</entry>
3442 </row>
3443 <row><entry></entry></row>
3444
3445 <row>
3446 <entry spanname="id"><constant>V4L2_CID_TILT_RELATIVE</constant>&nbsp;</entry>
3447 <entry>integer</entry>
3448 </row><row><entry spanname="descr">This control turns the
3449camera vertically by the specified amount. The unit is undefined. A
3450positive value moves the camera up, a negative value down. A value of
3451zero does not cause motion. This is a write-only control.</entry>
3452 </row>
3453 <row><entry></entry></row>
3454
3455 <row>
3456 <entry spanname="id"><constant>V4L2_CID_PAN_RESET</constant>&nbsp;</entry>
3457 <entry>button</entry>
3458 </row><row><entry spanname="descr">When this control is set,
3459the camera moves horizontally to the default position.</entry>
3460 </row>
3461 <row><entry></entry></row>
3462
3463 <row>
3464 <entry spanname="id"><constant>V4L2_CID_TILT_RESET</constant>&nbsp;</entry>
3465 <entry>button</entry>
3466 </row><row><entry spanname="descr">When this control is set,
3467the camera moves vertically to the default position.</entry>
3468 </row>
3469 <row><entry></entry></row>
3470
3471 <row>
3472 <entry spanname="id"><constant>V4L2_CID_PAN_ABSOLUTE</constant>&nbsp;</entry>
3473 <entry>integer</entry>
3474 </row><row><entry spanname="descr">This control
3475turns the camera horizontally to the specified position. Positive
3476values move the camera to the right (clockwise when viewed from above),
3477negative values to the left. Drivers should interpret the values as arc
3478seconds, with valid values between -180 * 3600 and +180 * 3600
3479inclusive.</entry>
3480 </row>
3481 <row><entry></entry></row>
3482
3483 <row>
3484 <entry spanname="id"><constant>V4L2_CID_TILT_ABSOLUTE</constant>&nbsp;</entry>
3485 <entry>integer</entry>
3486 </row><row><entry spanname="descr">This control
3487turns the camera vertically to the specified position. Positive values
3488move the camera up, negative values down. Drivers should interpret the
3489values as arc seconds, with valid values between -180 * 3600 and +180
3490* 3600 inclusive.</entry>
3491 </row>
3492 <row><entry></entry></row>
3493
3494 <row>
3495 <entry spanname="id"><constant>V4L2_CID_FOCUS_ABSOLUTE</constant>&nbsp;</entry>
3496 <entry>integer</entry>
3497 </row><row><entry spanname="descr">This control sets the
3498focal point of the camera to the specified position. The unit is
3499undefined. Positive values set the focus closer to the camera,
3500negative values towards infinity.</entry>
3501 </row>
3502 <row><entry></entry></row>
3503
3504 <row>
3505 <entry spanname="id"><constant>V4L2_CID_FOCUS_RELATIVE</constant>&nbsp;</entry>
3506 <entry>integer</entry>
3507 </row><row><entry spanname="descr">This control moves the
3508focal point of the camera by the specified amount. The unit is
3509undefined. Positive values move the focus closer to the camera,
3510negative values towards infinity. This is a write-only control.</entry>
3511 </row>
3512 <row><entry></entry></row>
3513
3514 <row>
3515 <entry spanname="id"><constant>V4L2_CID_FOCUS_AUTO</constant>&nbsp;</entry>
3516 <entry>boolean</entry>
2272ab65
SN
3517 </row><row><entry spanname="descr">Enables continuous automatic
3518focus adjustments. The effect of manual focus adjustments while this feature
8e080c2e
MCC
3519is enabled is undefined, drivers should ignore such requests.</entry>
3520 </row>
3521 <row><entry></entry></row>
3522
2272ab65
SN
3523 <row>
3524 <entry spanname="id"><constant>V4L2_CID_AUTO_FOCUS_START</constant>&nbsp;</entry>
3525 <entry>button</entry>
3526 </row><row><entry spanname="descr">Starts single auto focus process.
3527The effect of setting this control when <constant>V4L2_CID_FOCUS_AUTO</constant>
3528is set to <constant>TRUE</constant> (1) is undefined, drivers should ignore
3529such requests.</entry>
3530 </row>
3531 <row><entry></entry></row>
3532
3533 <row>
3534 <entry spanname="id"><constant>V4L2_CID_AUTO_FOCUS_STOP</constant>&nbsp;</entry>
3535 <entry>button</entry>
3536 </row><row><entry spanname="descr">Aborts automatic focusing
3537started with <constant>V4L2_CID_AUTO_FOCUS_START</constant> control. It is
3538effective only when the continuous autofocus is disabled, that is when
3539<constant>V4L2_CID_FOCUS_AUTO</constant> control is set to <constant>FALSE
3540</constant> (0).</entry>
3541 </row>
3542 <row><entry></entry></row>
3543
3544 <row id="v4l2-auto-focus-status">
3545 <entry spanname="id">
3546 <constant>V4L2_CID_AUTO_FOCUS_STATUS</constant>&nbsp;</entry>
3547 <entry>bitmask</entry>
3548 </row>
3549 <row><entry spanname="descr">The automatic focus status. This is a read-only
3550 control.</entry>
3551 </row>
3552 <row>
3553 <entrytbl spanname="descr" cols="2">
3554 <tbody valign="top">
3555 <row>
3556 <entry><constant>V4L2_AUTO_FOCUS_STATUS_IDLE</constant>&nbsp;</entry>
3557 <entry>Automatic focus is not active.</entry>
3558 </row>
3559 <row>
3560 <entry><constant>V4L2_AUTO_FOCUS_STATUS_BUSY</constant>&nbsp;</entry>
3561 <entry>Automatic focusing is in progress.</entry>
3562 </row>
3563 <row>
3564 <entry><constant>V4L2_AUTO_FOCUS_STATUS_REACHED</constant>&nbsp;</entry>
3565 <entry>Focus has been reached.</entry>
3566 </row>
3567 <row>
3568 <entry><constant>V4L2_AUTO_FOCUS_STATUS_FAILED</constant>&nbsp;</entry>
3569 <entry>Automatic focus has failed, the driver will not
3570 transition from this state until another action is
3571 performed by an application.</entry>
3572 </row>
3573 </tbody>
3574 </entrytbl>
3575 </row>
3576 <row><entry spanname="descr">
3577Setting <constant>V4L2_LOCK_FOCUS</constant> lock bit of the <constant>V4L2_CID_3A_LOCK
3578</constant> control may stop updates of the <constant>V4L2_CID_AUTO_FOCUS_STATUS</constant>
3579control value.</entry>
3580 </row>
3581 <row><entry></entry></row>
3582
3583 <row id="v4l2-auto-focus-range">
3584 <entry spanname="id">
3585 <constant>V4L2_CID_AUTO_FOCUS_RANGE</constant>&nbsp;</entry>
3586 <entry>enum&nbsp;v4l2_auto_focus_range</entry>
3587 </row>
3588 <row><entry spanname="descr">Determines auto focus distance range
3589for which lens may be adjusted. </entry>
3590 </row>
3591 <row>
3592 <entrytbl spanname="descr" cols="2">
3593 <tbody valign="top">
3594 <row>
3595 <entry><constant>V4L2_AUTO_FOCUS_RANGE_AUTO</constant>&nbsp;</entry>
3596 <entry>The camera automatically selects the focus range.</entry>
3597 </row>
3598 <row>
3599 <entry><constant>V4L2_AUTO_FOCUS_RANGE_NORMAL</constant>&nbsp;</entry>
3600 <entry>Normal distance range, limited for best automatic focus
3601performance.</entry>
3602 </row>
3603 <row>
3604 <entry><constant>V4L2_AUTO_FOCUS_RANGE_MACRO</constant>&nbsp;</entry>
3605 <entry>Macro (close-up) auto focus. The camera will
3606use its minimum possible distance for auto focus.</entry>
3607 </row>
3608 <row>
3609 <entry><constant>V4L2_AUTO_FOCUS_RANGE_INFINITY</constant>&nbsp;</entry>
3610 <entry>The lens is set to focus on an object at infinite distance.</entry>
3611 </row>
3612 </tbody>
3613 </entrytbl>
3614 </row>
3615 <row><entry></entry></row>
3616
8e080c2e
MCC
3617 <row>
3618 <entry spanname="id"><constant>V4L2_CID_ZOOM_ABSOLUTE</constant>&nbsp;</entry>
3619 <entry>integer</entry>
3620 </row><row><entry spanname="descr">Specify the objective lens
3621focal length as an absolute value. The zoom unit is driver-specific and its
3622value should be a positive integer.</entry>
3623 </row>
3624 <row><entry></entry></row>
3625
3626 <row>
3627 <entry spanname="id"><constant>V4L2_CID_ZOOM_RELATIVE</constant>&nbsp;</entry>
3628 <entry>integer</entry>
3629 </row><row><entry spanname="descr">Specify the objective lens
3630focal length relatively to the current value. Positive values move the zoom
3631lens group towards the telephoto direction, negative values towards the
3632wide-angle direction. The zoom unit is driver-specific. This is a write-only control.</entry>
3633 </row>
3634 <row><entry></entry></row>
3635
3636 <row>
3637 <entry spanname="id"><constant>V4L2_CID_ZOOM_CONTINUOUS</constant>&nbsp;</entry>
3638 <entry>integer</entry>
3639 </row><row><entry spanname="descr">Move the objective lens group
3640at the specified speed until it reaches physical device limits or until an
3641explicit request to stop the movement. A positive value moves the zoom lens
3642group towards the telephoto direction. A value of zero stops the zoom lens
3643group movement. A negative value moves the zoom lens group towards the
3644wide-angle direction. The zoom speed unit is driver-specific.</entry>
3645 </row>
3646 <row><entry></entry></row>
3647
48213fe3
LP
3648 <row>
3649 <entry spanname="id"><constant>V4L2_CID_IRIS_ABSOLUTE</constant>&nbsp;</entry>
3650 <entry>integer</entry>
3651 </row><row><entry spanname="descr">This control sets the
3652camera's aperture to the specified value. The unit is undefined.
3653Larger values open the iris wider, smaller values close it.</entry>
3654 </row>
3655 <row><entry></entry></row>
3656
3657 <row>
3658 <entry spanname="id"><constant>V4L2_CID_IRIS_RELATIVE</constant>&nbsp;</entry>
3659 <entry>integer</entry>
3660 </row><row><entry spanname="descr">This control modifies the
3661camera's aperture by the specified amount. The unit is undefined.
3662Positive values open the iris one step further, negative values close
3663it one step further. This is a write-only control.</entry>
3664 </row>
3665 <row><entry></entry></row>
3666
8e080c2e
MCC
3667 <row>
3668 <entry spanname="id"><constant>V4L2_CID_PRIVACY</constant>&nbsp;</entry>
3669 <entry>boolean</entry>
3670 </row><row><entry spanname="descr">Prevent video from being acquired
3671by the camera. When this control is set to <constant>TRUE</constant> (1), no
3672image can be captured by the camera. Common means to enforce privacy are
3673mechanical obturation of the sensor and firmware image processing, but the
3674device is not restricted to these methods. Devices that implement the privacy
3675control must support read access and may support write access.</entry>
3676 </row>
3677
3678 <row>
3679 <entry spanname="id"><constant>V4L2_CID_BAND_STOP_FILTER</constant>&nbsp;</entry>
3680 <entry>integer</entry>
3681 </row><row><entry spanname="descr">Switch the band-stop filter of a
3682camera sensor on or off, or specify its strength. Such band-stop filters can
3683be used, for example, to filter out the fluorescent light component.</entry>
3684 </row>
3685 <row><entry></entry></row>
e40a0573
SN
3686
3687 <row id="v4l2-auto-n-preset-white-balance">
3688 <entry spanname="id"><constant>V4L2_CID_AUTO_N_PRESET_WHITE_BALANCE</constant>&nbsp;</entry>
3689 <entry>enum&nbsp;v4l2_auto_n_preset_white_balance</entry>
3690 </row><row><entry spanname="descr">Sets white balance to automatic,
3691manual or a preset. The presets determine color temperature of the light as
3692a hint to the camera for white balance adjustments resulting in most accurate
3693color representation. The following white balance presets are listed in order
3694of increasing color temperature.</entry>
3695 </row>
3696 <row>
3697 <entrytbl spanname="descr" cols="2">
3698 <tbody valign="top">
3699 <row>
3700 <entry><constant>V4L2_WHITE_BALANCE_MANUAL</constant>&nbsp;</entry>
3701 <entry>Manual white balance.</entry>
3702 </row>
3703 <row>
3704 <entry><constant>V4L2_WHITE_BALANCE_AUTO</constant>&nbsp;</entry>
3705 <entry>Automatic white balance adjustments.</entry>
3706 </row>
3707 <row>
3708 <entry><constant>V4L2_WHITE_BALANCE_INCANDESCENT</constant>&nbsp;</entry>
3709 <entry>White balance setting for incandescent (tungsten) lighting.
3710It generally cools down the colors and corresponds approximately to 2500...3500 K
3711color temperature range.</entry>
3712 </row>
3713 <row>
3714 <entry><constant>V4L2_WHITE_BALANCE_FLUORESCENT</constant>&nbsp;</entry>
3715 <entry>White balance preset for fluorescent lighting.
3716It corresponds approximately to 4000...5000 K color temperature.</entry>
3717 </row>
3718 <row>
3719 <entry><constant>V4L2_WHITE_BALANCE_FLUORESCENT_H</constant>&nbsp;</entry>
3720 <entry>With this setting the camera will compensate for
3721fluorescent H lighting.</entry>
3722 </row>
3723 <row>
3724 <entry><constant>V4L2_WHITE_BALANCE_HORIZON</constant>&nbsp;</entry>
3725 <entry>White balance setting for horizon daylight.
3726It corresponds approximately to 5000 K color temperature.</entry>
3727 </row>
3728 <row>
3729 <entry><constant>V4L2_WHITE_BALANCE_DAYLIGHT</constant>&nbsp;</entry>
3730 <entry>White balance preset for daylight (with clear sky).
3731It corresponds approximately to 5000...6500 K color temperature.</entry>
3732 </row>
3733 <row>
3734 <entry><constant>V4L2_WHITE_BALANCE_FLASH</constant>&nbsp;</entry>
3735 <entry>With this setting the camera will compensate for the flash
3736light. It slightly warms up the colors and corresponds roughly to 5000...5500 K
3737color temperature.</entry>
3738 </row>
3739 <row>
3740 <entry><constant>V4L2_WHITE_BALANCE_CLOUDY</constant>&nbsp;</entry>
3741 <entry>White balance preset for moderately overcast sky.
3742This option corresponds approximately to 6500...8000 K color temperature
3743range.</entry>
3744 </row>
3745 <row>
3746 <entry><constant>V4L2_WHITE_BALANCE_SHADE</constant>&nbsp;</entry>
3747 <entry>White balance preset for shade or heavily overcast
3748sky. It corresponds approximately to 9000...10000 K color temperature.
3749</entry>
3750 </row>
3751 </tbody>
3752 </entrytbl>
3753 </row>
3754 <row><entry></entry></row>
3755
44d44a1a
SN
3756 <row id="v4l2-wide-dynamic-range">
3757 <entry spanname="id"><constant>V4L2_CID_WIDE_DYNAMIC_RANGE</constant></entry>
3758 <entry>boolean</entry>
3759 </row>
3760 <row>
3761 <entry spanname="descr">Enables or disables the camera's wide dynamic
3762range feature. This feature allows to obtain clear images in situations where
3763intensity of the illumination varies significantly throughout the scene, i.e.
3764there are simultaneously very dark and very bright areas. It is most commonly
3765realized in cameras by combining two subsequent frames with different exposure
3766times. <footnote id="ctypeconv"><para> This control may be changed to a menu
3767control in the future, if more options are required.</para></footnote></entry>
3768 </row>
3769 <row><entry></entry></row>
3770
82b3056c
SN
3771 <row id="v4l2-image-stabilization">
3772 <entry spanname="id"><constant>V4L2_CID_IMAGE_STABILIZATION</constant></entry>
3773 <entry>boolean</entry>
3774 </row>
3775 <row>
3776 <entry spanname="descr">Enables or disables image stabilization.
3777 <footnoteref linkend="ctypeconv"/></entry>
3778 </row>
3779 <row><entry></entry></row>
3780
7f84ad8b
SN
3781 <row>
3782 <entry spanname="id"><constant>V4L2_CID_ISO_SENSITIVITY</constant>&nbsp;</entry>
3783 <entry>integer menu</entry>
3784 </row><row><entry spanname="descr">Determines ISO equivalent of an
3785image sensor indicating the sensor's sensitivity to light. The numbers are
3786expressed in arithmetic scale, as per <xref linkend="iso12232" /> standard,
3787where doubling the sensor sensitivity is represented by doubling the numerical
3788ISO value. Applications should interpret the values as standard ISO values
3789multiplied by 1000, e.g. control value 800 stands for ISO 0.8. Drivers will
3790usually support only a subset of standard ISO values. The effect of setting
3791this control while the <constant>V4L2_CID_ISO_SENSITIVITY_AUTO</constant>
3792control is set to a value other than <constant>V4L2_CID_ISO_SENSITIVITY_MANUAL
3793</constant> is undefined, drivers should ignore such requests.</entry>
3794 </row>
3795 <row><entry></entry></row>
3796
3797 <row id="v4l2-iso-sensitivity-auto-type">
3798 <entry spanname="id"><constant>V4L2_CID_ISO_SENSITIVITY_AUTO</constant>&nbsp;</entry>
3799 <entry>enum&nbsp;v4l2_iso_sensitivity_type</entry>
3800 </row><row><entry spanname="descr">Enables or disables automatic ISO
3801sensitivity adjustments.</entry>
3802 </row>
3803 <row>
3804 <entrytbl spanname="descr" cols="2">
3805 <tbody valign="top">
3806 <row>
3807 <entry><constant>V4L2_CID_ISO_SENSITIVITY_MANUAL</constant>&nbsp;</entry>
3808 <entry>Manual ISO sensitivity.</entry>
3809 </row>
3810 <row>
3811 <entry><constant>V4L2_CID_ISO_SENSITIVITY_AUTO</constant>&nbsp;</entry>
3812 <entry>Automatic ISO sensitivity adjustments.</entry>
3813 </row>
3814 </tbody>
3815 </entrytbl>
3816 </row>
3817 <row><entry></entry></row>
3818
0bf6b7dc
SN
3819 <row id="v4l2-scene-mode">
3820 <entry spanname="id"><constant>V4L2_CID_SCENE_MODE</constant>&nbsp;</entry>
3821 <entry>enum&nbsp;v4l2_scene_mode</entry>
3822 </row><row><entry spanname="descr">This control allows to select
3823scene programs as the camera automatic modes optimized for common shooting
3824scenes. Within these modes the camera determines best exposure, aperture,
3825focusing, light metering, white balance and equivalent sensitivity. The
3826controls of those parameters are influenced by the scene mode control.
3827An exact behavior in each mode is subject to the camera specification.
3828
3829<para>When the scene mode feature is not used, this control should be set to
3830<constant>V4L2_SCENE_MODE_NONE</constant> to make sure the other possibly
3831related controls are accessible. The following scene programs are defined:
3832</para>
3833</entry>
3834 </row>
3835 <row>
3836 <entrytbl spanname="descr" cols="2">
3837 <tbody valign="top">
3838 <row>
3839 <entry><constant>V4L2_SCENE_MODE_NONE</constant>&nbsp;</entry>
3840 <entry>The scene mode feature is disabled.</entry>
3841 </row>
3842 <row>
3843 <entry><constant>V4L2_SCENE_MODE_BACKLIGHT</constant>&nbsp;</entry>
3844 <entry>Backlight. Compensates for dark shadows when light is
3845 coming from behind a subject, also by automatically turning
3846 on the flash.</entry>
3847 </row>
3848 <row>
3849 <entry><constant>V4L2_SCENE_MODE_BEACH_SNOW</constant>&nbsp;</entry>
3850 <entry>Beach and snow. This mode compensates for all-white or
3851bright scenes, which tend to look gray and low contrast, when camera's automatic
3852exposure is based on an average scene brightness. To compensate, this mode
3853automatically slightly overexposes the frames. The white balance may also be
3854adjusted to compensate for the fact that reflected snow looks bluish rather
3855than white.</entry>
3856 </row>
3857 <row>
3858 <entry><constant>V4L2_SCENE_MODE_CANDLELIGHT</constant>&nbsp;</entry>
3859 <entry>Candle light. The camera generally raises the ISO
3860sensitivity and lowers the shutter speed. This mode compensates for relatively
3861close subject in the scene. The flash is disabled in order to preserve the
3862ambiance of the light.</entry>
3863 </row>
3864 <row>
3865 <entry><constant>V4L2_SCENE_MODE_DAWN_DUSK</constant>&nbsp;</entry>
3866 <entry>Dawn and dusk. Preserves the colors seen in low
3867natural light before dusk and after down. The camera may turn off the flash,
3868and automatically focus at infinity. It will usually boost saturation and
3869lower the shutter speed.</entry>
3870 </row>
3871 <row>
3872 <entry><constant>V4L2_SCENE_MODE_FALL_COLORS</constant>&nbsp;</entry>
3873 <entry>Fall colors. Increases saturation and adjusts white
3874balance for color enhancement. Pictures of autumn leaves get saturated reds
3875and yellows.</entry>
3876 </row>
3877 <row>
3878 <entry><constant>V4L2_SCENE_MODE_FIREWORKS</constant>&nbsp;</entry>
3879 <entry>Fireworks. Long exposure times are used to capture
3880the expanding burst of light from a firework. The camera may invoke image
3881stabilization.</entry>
3882 </row>
3883 <row>
3884 <entry><constant>V4L2_SCENE_MODE_LANDSCAPE</constant>&nbsp;</entry>
3885 <entry>Landscape. The camera may choose a small aperture to
3886provide deep depth of field and long exposure duration to help capture detail
3887in dim light conditions. The focus is fixed at infinity. Suitable for distant
3888and wide scenery.</entry>
3889 </row>
3890 <row>
3891 <entry><constant>V4L2_SCENE_MODE_NIGHT</constant>&nbsp;</entry>
3892 <entry>Night, also known as Night Landscape. Designed for low
3893light conditions, it preserves detail in the dark areas without blowing out bright
3894objects. The camera generally sets itself to a medium-to-high ISO sensitivity,
3895with a relatively long exposure time, and turns flash off. As such, there will be
3896increased image noise and the possibility of blurred image.</entry>
3897 </row>
3898 <row>
3899 <entry><constant>V4L2_SCENE_MODE_PARTY_INDOOR</constant>&nbsp;</entry>
3900 <entry>Party and indoor. Designed to capture indoor scenes
3901that are lit by indoor background lighting as well as the flash. The camera
3902usually increases ISO sensitivity, and adjusts exposure for the low light
3903conditions.</entry>
3904 </row>
3905 <row>
3906 <entry><constant>V4L2_SCENE_MODE_PORTRAIT</constant>&nbsp;</entry>
3907 <entry>Portrait. The camera adjusts the aperture so that the
3908depth of field is reduced, which helps to isolate the subject against a smooth
3909background. Most cameras recognize the presence of faces in the scene and focus
3910on them. The color hue is adjusted to enhance skin tones. The intensity of the
3911flash is often reduced.</entry>
3912 </row>
3913 <row>
3914 <entry><constant>V4L2_SCENE_MODE_SPORTS</constant>&nbsp;</entry>
3915 <entry>Sports. Significantly increases ISO and uses a fast
3916shutter speed to freeze motion of rapidly-moving subjects. Increased image
3917noise may be seen in this mode.</entry>
3918 </row>
3919 <row>
3920 <entry><constant>V4L2_SCENE_MODE_SUNSET</constant>&nbsp;</entry>
3921 <entry>Sunset. Preserves deep hues seen in sunsets and
3922sunrises. It bumps up the saturation.</entry>
3923 </row>
3924 <row>
3925 <entry><constant>V4L2_SCENE_MODE_TEXT</constant>&nbsp;</entry>
3926 <entry>Text. It applies extra contrast and sharpness, it is
3927typically a black-and-white mode optimized for readability. Automatic focus
3928may be switched to close-up mode and this setting may also involve some
3929lens-distortion correction.</entry>
3930 </row>
3931 </tbody>
3932 </entrytbl>
3933 </row>
3934 <row><entry></entry></row>
3935
fc162a09
SN
3936 <row>
3937 <entry spanname="id"><constant>V4L2_CID_3A_LOCK</constant></entry>
3938 <entry>bitmask</entry>
3939 </row>
3940 <row>
3941 <entry spanname="descr">This control locks or unlocks the automatic
3942focus, exposure and white balance. The automatic adjustments can be paused
3943independently by setting the corresponding lock bit to 1. The camera then retains
3944the settings until the lock bit is cleared. The following lock bits are defined:
3945</entry>
3946 </row>
3947 <row>
3948 <entrytbl spanname="descr" cols="2">
3949 <tbody valign="top">
3950 <row>
3951 <entry><constant>V4L2_LOCK_EXPOSURE</constant></entry>
3952 <entry>Automatic exposure adjustments lock.</entry>
3953 </row>
3954 <row>
3955 <entry><constant>V4L2_LOCK_WHITE_BALANCE</constant></entry>
3956 <entry>Automatic white balance adjustments lock.</entry>
3957 </row>
3958 <row>
3959 <entry><constant>V4L2_LOCK_FOCUS</constant></entry>
3960 <entry>Automatic focus lock.</entry>
3961 </row>
3962 </tbody>
3963 </entrytbl>
3964 </row>
3965 <row><entry spanname="descr">
3966When a given algorithm is not enabled, drivers should ignore requests
3967to lock it and should return no error. An example might be an application
3968setting bit <constant>V4L2_LOCK_WHITE_BALANCE</constant> when the
3969<constant>V4L2_CID_AUTO_WHITE_BALANCE</constant> control is set to
3970<constant>FALSE</constant>. The value of this control may be changed
3971by exposure, white balance or focus controls.</entry>
3972 </row>
3973 <row><entry></entry></row>
3974
e3d6eb1c
VP
3975 <row>
3976 <entry spanname="id"><constant>V4L2_CID_PAN_SPEED</constant>&nbsp;</entry>
3977 <entry>integer</entry>
3978 </row><row><entry spanname="descr">This control turns the
3979camera horizontally at the specific speed. The unit is undefined. A
3980positive value moves the camera to the right (clockwise when viewed
3981from above), a negative value to the left. A value of zero stops the motion
3982if one is in progress and has no effect otherwise.</entry>
3983 </row>
3984 <row><entry></entry></row>
3985
3986 <row>
3987 <entry spanname="id"><constant>V4L2_CID_TILT_SPEED</constant>&nbsp;</entry>
3988 <entry>integer</entry>
3989 </row><row><entry spanname="descr">This control turns the
3990camera vertically at the specified speed. The unit is undefined. A
3991positive value moves the camera up, a negative value down. A value of zero
3992stops the motion if one is in progress and has no effect otherwise.</entry>
3993 </row>
3994 <row><entry></entry></row>
3995
8e080c2e
MCC
3996 </tbody>
3997 </tgroup>
3998 </table>
3999 </section>
4000
4001 <section id="fm-tx-controls">
4002 <title>FM Transmitter Control Reference</title>
4003
4004 <para>The FM Transmitter (FM_TX) class includes controls for common features of
4005FM transmissions capable devices. Currently this class includes parameters for audio
4006compression, pilot tone generation, audio deviation limiter, RDS transmission and
4007tuning power features.</para>
4008
4009 <table pgwide="1" frame="none" id="fm-tx-control-id">
4010 <title>FM_TX Control IDs</title>
4011
4012 <tgroup cols="4">
4013 <colspec colname="c1" colwidth="1*" />
4014 <colspec colname="c2" colwidth="6*" />
4015 <colspec colname="c3" colwidth="2*" />
4016 <colspec colname="c4" colwidth="6*" />
4017 <spanspec namest="c1" nameend="c2" spanname="id" />
4018 <spanspec namest="c2" nameend="c4" spanname="descr" />
4019 <thead>
4020 <row>
4021 <entry spanname="id" align="left">ID</entry>
4022 <entry align="left">Type</entry>
4023 </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
4024 </row>
4025 </thead>
4026 <tbody valign="top">
4027 <row><entry></entry></row>
4028 <row>
4029 <entry spanname="id"><constant>V4L2_CID_FM_TX_CLASS</constant>&nbsp;</entry>
4030 <entry>class</entry>
4031 </row><row><entry spanname="descr">The FM_TX class
4032descriptor. Calling &VIDIOC-QUERYCTRL; for this control will return a
4033description of this control class.</entry>
4034 </row>
4035 <row>
4036 <entry spanname="id"><constant>V4L2_CID_RDS_TX_DEVIATION</constant>&nbsp;</entry>
4037 <entry>integer</entry>
4038 </row>
4039 <row><entry spanname="descr">Configures RDS signal frequency deviation level in Hz.
4040The range and step are driver-specific.</entry>
4041 </row>
4042 <row>
4043 <entry spanname="id"><constant>V4L2_CID_RDS_TX_PI</constant>&nbsp;</entry>
4044 <entry>integer</entry>
4045 </row>
4046 <row><entry spanname="descr">Sets the RDS Programme Identification field
4047for transmission.</entry>
4048 </row>
4049 <row>
4050 <entry spanname="id"><constant>V4L2_CID_RDS_TX_PTY</constant>&nbsp;</entry>
4051 <entry>integer</entry>
4052 </row>
4053 <row><entry spanname="descr">Sets the RDS Programme Type field for transmission.
4054This encodes up to 31 pre-defined programme types.</entry>
4055 </row>
4056 <row>
4057 <entry spanname="id"><constant>V4L2_CID_RDS_TX_PS_NAME</constant>&nbsp;</entry>
4058 <entry>string</entry>
4059 </row>
4060 <row><entry spanname="descr">Sets the Programme Service name (PS_NAME) for transmission.
4061It is intended for static display on a receiver. It is the primary aid to listeners in programme service
34affc6a 4062identification and selection. In Annex E of <xref linkend="iec62106" />, the RDS specification,
8e080c2e
MCC
4063there is a full description of the correct character encoding for Programme Service name strings.
4064Also from RDS specification, PS is usually a single eight character text. However, it is also possible
4065to find receivers which can scroll strings sized as 8 x N characters. So, this control must be configured
4066with steps of 8 characters. The result is it must always contain a string with size multiple of 8.</entry>
4067 </row>
4068 <row>
4069 <entry spanname="id"><constant>V4L2_CID_RDS_TX_RADIO_TEXT</constant>&nbsp;</entry>
4070 <entry>string</entry>
4071 </row>
4072 <row><entry spanname="descr">Sets the Radio Text info for transmission. It is a textual description of
4073what is being broadcasted. RDS Radio Text can be applied when broadcaster wishes to transmit longer PS names,
4074programme-related information or any other text. In these cases, RadioText should be used in addition to
4075<constant>V4L2_CID_RDS_TX_PS_NAME</constant>. The encoding for Radio Text strings is also fully described
34affc6a 4076in Annex E of <xref linkend="iec62106" />. The length of Radio Text strings depends on which RDS Block is being
8e080c2e
MCC
4077used to transmit it, either 32 (2A block) or 64 (2B block). However, it is also possible
4078to find receivers which can scroll strings sized as 32 x N or 64 x N characters. So, this control must be configured
4079with steps of 32 or 64 characters. The result is it must always contain a string with size multiple of 32 or 64. </entry>
36cd37f2
HV
4080 </row>
4081 <row>
4082 <entry spanname="id"><constant>V4L2_CID_RDS_TX_MONO_STEREO</constant>&nbsp;</entry>
4083 <entry>boolean</entry>
4084 </row>
4085 <row><entry spanname="descr">Sets the Mono/Stereo bit of the Decoder Identification code. If set,
4086then the audio was recorded as stereo.</entry>
4087 </row>
4088 <row>
4089 <entry spanname="id"><constant>V4L2_CID_RDS_TX_ARTIFICIAL_HEAD</constant>&nbsp;</entry>
4090 <entry>boolean</entry>
4091 </row>
4092 <row><entry spanname="descr">Sets the
4093<ulink url="http://en.wikipedia.org/wiki/Artificial_head">Artificial Head</ulink> bit of the Decoder
4094Identification code. If set, then the audio was recorded using an artificial head.</entry>
4095 </row>
4096 <row>
4097 <entry spanname="id"><constant>V4L2_CID_RDS_TX_COMPRESSED</constant>&nbsp;</entry>
4098 <entry>boolean</entry>
4099 </row>
4100 <row><entry spanname="descr">Sets the Compressed bit of the Decoder Identification code. If set,
4101then the audio is compressed.</entry>
4102 </row>
4103 <row>
4104 <entry spanname="id"><constant>V4L2_CID_RDS_TX_DYNAMIC_PTY</constant>&nbsp;</entry>
4105 <entry>boolean</entry>
4106 </row>
4107 <row><entry spanname="descr">Sets the Dynamic PTY bit of the Decoder Identification code. If set,
4108then the PTY code is dynamically switched.</entry>
4109 </row>
4110 <row>
4111 <entry spanname="id"><constant>V4L2_CID_RDS_TX_TRAFFIC_ANNOUNCEMENT</constant>&nbsp;</entry>
4112 <entry>boolean</entry>
4113 </row>
4114 <row><entry spanname="descr">If set, then a traffic announcement is in progress.</entry>
4115 </row>
4116 <row>
4117 <entry spanname="id"><constant>V4L2_CID_RDS_TX_TRAFFIC_PROGRAM</constant>&nbsp;</entry>
4118 <entry>boolean</entry>
4119 </row>
4120 <row><entry spanname="descr">If set, then the tuned programme carries traffic announcements.</entry>
4121 </row>
4122 <row>
4123 <entry spanname="id"><constant>V4L2_CID_RDS_TX_MUSIC_SPEECH</constant>&nbsp;</entry>
4124 <entry>boolean</entry>
4125 </row>
4126 <row><entry spanname="descr">If set, then this channel broadcasts music. If cleared, then it
4127broadcasts speech. If the transmitter doesn't make this distinction, then it should be set.</entry>
4128 </row>
4129 <row>
4130 <entry spanname="id"><constant>V4L2_CID_RDS_TX_ALT_FREQS_ENABLE</constant>&nbsp;</entry>
4131 <entry>boolean</entry>
4132 </row>
4133 <row><entry spanname="descr">If set, then transmit alternate frequencies.</entry>
4134 </row>
4135 <row>
4136 <entry spanname="id"><constant>V4L2_CID_RDS_TX_ALT_FREQS</constant>&nbsp;</entry>
4137 <entry>__u32 array</entry>
4138 </row>
4139 <row><entry spanname="descr">The alternate frequencies in kHz units. The RDS standard allows
4140for up to 25 frequencies to be defined. Drivers may support fewer frequencies so check
4141the array size.</entry>
8e080c2e
MCC
4142 </row>
4143 <row>
4144 <entry spanname="id"><constant>V4L2_CID_AUDIO_LIMITER_ENABLED</constant>&nbsp;</entry>
4145 <entry>boolean</entry>
4146 </row>
4147 <row><entry spanname="descr">Enables or disables the audio deviation limiter feature.
4148The limiter is useful when trying to maximize the audio volume, minimize receiver-generated
4149distortion and prevent overmodulation.
4150</entry>
4151 </row>
4152 <row>
4153 <entry spanname="id"><constant>V4L2_CID_AUDIO_LIMITER_RELEASE_TIME</constant>&nbsp;</entry>
4154 <entry>integer</entry>
4155 </row>
4156 <row><entry spanname="descr">Sets the audio deviation limiter feature release time.
4157Unit is in useconds. Step and range are driver-specific.</entry>
4158 </row>
4159 <row>
4160 <entry spanname="id"><constant>V4L2_CID_AUDIO_LIMITER_DEVIATION</constant>&nbsp;</entry>
4161 <entry>integer</entry>
4162 </row>
4163 <row><entry spanname="descr">Configures audio frequency deviation level in Hz.
4164The range and step are driver-specific.</entry>
4165 </row>
4166 <row>
4167 <entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_ENABLED</constant>&nbsp;</entry>
4168 <entry>boolean</entry>
4169 </row>
4170 <row><entry spanname="descr">Enables or disables the audio compression feature.
4171This feature amplifies signals below the threshold by a fixed gain and compresses audio
4172signals above the threshold by the ratio of Threshold/(Gain + Threshold).</entry>
4173 </row>
4174 <row>
4175 <entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_GAIN</constant>&nbsp;</entry>
4176 <entry>integer</entry>
4177 </row>
4178 <row><entry spanname="descr">Sets the gain for audio compression feature. It is
4179a dB value. The range and step are driver-specific.</entry>
4180 </row>
4181 <row>
4182 <entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_THRESHOLD</constant>&nbsp;</entry>
4183 <entry>integer</entry>
4184 </row>
4185 <row><entry spanname="descr">Sets the threshold level for audio compression freature.
4186It is a dB value. The range and step are driver-specific.</entry>
4187 </row>
4188 <row>
4189 <entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_ATTACK_TIME</constant>&nbsp;</entry>
4190 <entry>integer</entry>
4191 </row>
4192 <row><entry spanname="descr">Sets the attack time for audio compression feature.
4193It is a useconds value. The range and step are driver-specific.</entry>
4194 </row>
4195 <row>
4196 <entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_RELEASE_TIME</constant>&nbsp;</entry>
4197 <entry>integer</entry>
4198 </row>
4199 <row><entry spanname="descr">Sets the release time for audio compression feature.
4200It is a useconds value. The range and step are driver-specific.</entry>
4201 </row>
4202 <row>
4203 <entry spanname="id"><constant>V4L2_CID_PILOT_TONE_ENABLED</constant>&nbsp;</entry>
4204 <entry>boolean</entry>
4205 </row>
4206 <row><entry spanname="descr">Enables or disables the pilot tone generation feature.</entry>
4207 </row>
4208 <row>
4209 <entry spanname="id"><constant>V4L2_CID_PILOT_TONE_DEVIATION</constant>&nbsp;</entry>
4210 <entry>integer</entry>
4211 </row>
4212 <row><entry spanname="descr">Configures pilot tone frequency deviation level. Unit is
4213in Hz. The range and step are driver-specific.</entry>
4214 </row>
4215 <row>
4216 <entry spanname="id"><constant>V4L2_CID_PILOT_TONE_FREQUENCY</constant>&nbsp;</entry>
4217 <entry>integer</entry>
4218 </row>
4219 <row><entry spanname="descr">Configures pilot tone frequency value. Unit is
4220in Hz. The range and step are driver-specific.</entry>
4221 </row>
4222 <row>
4223 <entry spanname="id"><constant>V4L2_CID_TUNE_PREEMPHASIS</constant>&nbsp;</entry>
af720c7c 4224 <entry>enum v4l2_preemphasis</entry>
8e080c2e
MCC
4225 </row>
4226 <row id="v4l2-preemphasis"><entry spanname="descr">Configures the pre-emphasis value for broadcasting.
4227A pre-emphasis filter is applied to the broadcast to accentuate the high audio frequencies.
4228Depending on the region, a time constant of either 50 or 75 useconds is used. The enum&nbsp;v4l2_preemphasis
4229defines possible values for pre-emphasis. Here they are:</entry>
4230 </row><row>
4231 <entrytbl spanname="descr" cols="2">
4232 <tbody valign="top">
4233 <row>
4234 <entry><constant>V4L2_PREEMPHASIS_DISABLED</constant>&nbsp;</entry>
4235 <entry>No pre-emphasis is applied.</entry>
4236 </row>
4237 <row>
4238 <entry><constant>V4L2_PREEMPHASIS_50_uS</constant>&nbsp;</entry>
4239 <entry>A pre-emphasis of 50 uS is used.</entry>
4240 </row>
4241 <row>
4242 <entry><constant>V4L2_PREEMPHASIS_75_uS</constant>&nbsp;</entry>
4243 <entry>A pre-emphasis of 75 uS is used.</entry>
4244 </row>
4245 </tbody>
4246 </entrytbl>
4247
4248 </row>
4249 <row>
4250 <entry spanname="id"><constant>V4L2_CID_TUNE_POWER_LEVEL</constant>&nbsp;</entry>
4251 <entry>integer</entry>
4252 </row>
4253 <row><entry spanname="descr">Sets the output power level for signal transmission.
4254Unit is in dBuV. Range and step are driver-specific.</entry>
4255 </row>
4256 <row>
4257 <entry spanname="id"><constant>V4L2_CID_TUNE_ANTENNA_CAPACITOR</constant>&nbsp;</entry>
4258 <entry>integer</entry>
4259 </row>
4260 <row><entry spanname="descr">This selects the value of antenna tuning capacitor
4261manually or automatically if set to zero. Unit, range and step are driver-specific.</entry>
4262 </row>
4263 <row><entry></entry></row>
4264 </tbody>
4265 </tgroup>
4266 </table>
4267
4268<para>For more details about RDS specification, refer to
34affc6a 4269<xref linkend="iec62106" /> document, from CENELEC.</para>
8e080c2e 4270 </section>
7ba85fa4
SA
4271
4272 <section id="flash-controls">
4273 <title>Flash Control Reference</title>
4274
4275 <note>
4276 <title>Experimental</title>
4277
4278 <para>This is an <link linkend="experimental">experimental</link>
4279interface and may change in the future.</para>
4280 </note>
4281
4282 <para>
4283 The V4L2 flash controls are intended to provide generic access
4284 to flash controller devices. Flash controller devices are
4285 typically used in digital cameras.
4286 </para>
4287
4288 <para>
4289 The interface can support both LED and xenon flash devices. As
4290 of writing this, there is no xenon flash driver using this
4291 interface.
4292 </para>
4293
4294 <section id="flash-controls-use-cases">
4295 <title>Supported use cases</title>
4296
4297 <section>
4298 <title>Unsynchronised LED flash (software strobe)</title>
4299
4300 <para>
4301 Unsynchronised LED flash is controlled directly by the
4302 host as the sensor. The flash must be enabled by the host
4303 before the exposure of the image starts and disabled once
4304 it ends. The host is fully responsible for the timing of
4305 the flash.
4306 </para>
4307
4308 <para>Example of such device: Nokia N900.</para>
4309 </section>
4310
4311 <section>
4312 <title>Synchronised LED flash (hardware strobe)</title>
4313
4314 <para>
4315 The synchronised LED flash is pre-programmed by the host
4316 (power and timeout) but controlled by the sensor through a
4317 strobe signal from the sensor to the flash.
4318 </para>
4319
4320 <para>
4321 The sensor controls the flash duration and timing. This
4322 information typically must be made available to the
4323 sensor.
4324 </para>
4325
4326 </section>
4327
4328 <section>
4329 <title>LED flash as torch</title>
4330
4331 <para>
4332 LED flash may be used as torch in conjunction with another
4333 use case involving camera or individually.
4334 </para>
4335
7ba85fa4 4336
071408b6
HV
4337 <table pgwide="1" frame="none" id="flash-control-id">
4338 <title>Flash Control IDs</title>
4339
4340 <tgroup cols="4">
4341 <colspec colname="c1" colwidth="1*" />
4342 <colspec colname="c2" colwidth="6*" />
4343 <colspec colname="c3" colwidth="2*" />
4344 <colspec colname="c4" colwidth="6*" />
4345 <spanspec namest="c1" nameend="c2" spanname="id" />
4346 <spanspec namest="c2" nameend="c4" spanname="descr" />
4347 <thead>
4348 <row>
4349 <entry spanname="id" align="left">ID</entry>
4350 <entry align="left">Type</entry>
4351 </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
4352 </row>
4353 </thead>
4354 <tbody valign="top">
4355 <row><entry></entry></row>
4356 <row>
4357 <entry spanname="id"><constant>V4L2_CID_FLASH_CLASS</constant></entry>
4358 <entry>class</entry>
4359 </row>
4360 <row>
4361 <entry spanname="descr">The FLASH class descriptor.</entry>
4362 </row>
4363 <row>
4364 <entry spanname="id"><constant>V4L2_CID_FLASH_LED_MODE</constant></entry>
4365 <entry>menu</entry>
4366 </row>
4367 <row id="v4l2-flash-led-mode">
4368 <entry spanname="descr">Defines the mode of the flash LED,
4369 the high-power white LED attached to the flash controller.
4370 Setting this control may not be possible in presence of
4371 some faults. See V4L2_CID_FLASH_FAULT.</entry>
4372 </row>
4373 <row>
4374 <entrytbl spanname="descr" cols="2">
4375 <tbody valign="top">
4376 <row>
4377 <entry><constant>V4L2_FLASH_LED_MODE_NONE</constant></entry>
4378 <entry>Off.</entry>
4379 </row>
4380 <row>
4381 <entry><constant>V4L2_FLASH_LED_MODE_FLASH</constant></entry>
4382 <entry>Flash mode.</entry>
4383 </row>
4384 <row>
4385 <entry><constant>V4L2_FLASH_LED_MODE_TORCH</constant></entry>
4386 <entry>Torch mode. See V4L2_CID_FLASH_TORCH_INTENSITY.</entry>
4387 </row>
4388 </tbody>
4389 </entrytbl>
4390 </row>
4391 <row>
4392 <entry spanname="id"><constant>V4L2_CID_FLASH_STROBE_SOURCE</constant></entry>
4393 <entry>menu</entry>
4394 </row>
4395 <row id="v4l2-flash-strobe-source"><entry
4396 spanname="descr">Defines the source of the flash LED
4397 strobe.</entry>
4398 </row>
4399 <row>
4400 <entrytbl spanname="descr" cols="2">
4401 <tbody valign="top">
4402 <row>
4403 <entry><constant>V4L2_FLASH_STROBE_SOURCE_SOFTWARE</constant></entry>
4404 <entry>The flash strobe is triggered by using
4405 the V4L2_CID_FLASH_STROBE control.</entry>
4406 </row>
4407 <row>
4408 <entry><constant>V4L2_FLASH_STROBE_SOURCE_EXTERNAL</constant></entry>
4409 <entry>The flash strobe is triggered by an
4410 external source. Typically this is a sensor,
4411 which makes it possible to synchronises the
4412 flash strobe start to exposure start.</entry>
4413 </row>
4414 </tbody>
4415 </entrytbl>
4416 </row>
4417 <row>
4418 <entry spanname="id"><constant>V4L2_CID_FLASH_STROBE</constant></entry>
4419 <entry>button</entry>
4420 </row>
4421 <row>
4422 <entry spanname="descr">Strobe flash. Valid when
4423 V4L2_CID_FLASH_LED_MODE is set to
4424 V4L2_FLASH_LED_MODE_FLASH and V4L2_CID_FLASH_STROBE_SOURCE
4425 is set to V4L2_FLASH_STROBE_SOURCE_SOFTWARE. Setting this
4426 control may not be possible in presence of some faults.
4427 See V4L2_CID_FLASH_FAULT.</entry>
4428 </row>
4429 <row>
4430 <entry spanname="id"><constant>V4L2_CID_FLASH_STROBE_STOP</constant></entry>
4431 <entry>button</entry>
4432 </row>
4433 <row><entry spanname="descr">Stop flash strobe immediately.</entry>
4434 </row>
4435 <row>
4436 <entry spanname="id"><constant>V4L2_CID_FLASH_STROBE_STATUS</constant></entry>
4437 <entry>boolean</entry>
4438 </row>
4439 <row>
4440 <entry spanname="descr">Strobe status: whether the flash
4441 is strobing at the moment or not. This is a read-only
4442 control.</entry>
4443 </row>
4444 <row>
4445 <entry spanname="id"><constant>V4L2_CID_FLASH_TIMEOUT</constant></entry>
4446 <entry>integer</entry>
4447 </row>
4448 <row>
4449 <entry spanname="descr">Hardware timeout for flash. The
4450 flash strobe is stopped after this period of time has
4451 passed from the start of the strobe.</entry>
4452 </row>
4453 <row>
4454 <entry spanname="id"><constant>V4L2_CID_FLASH_INTENSITY</constant></entry>
4455 <entry>integer</entry>
4456 </row>
4457 <row>
4458 <entry spanname="descr">Intensity of the flash strobe when
4459 the flash LED is in flash mode
4460 (V4L2_FLASH_LED_MODE_FLASH). The unit should be milliamps
4461 (mA) if possible.</entry>
4462 </row>
4463 <row>
4464 <entry spanname="id"><constant>V4L2_CID_FLASH_TORCH_INTENSITY</constant></entry>
4465 <entry>integer</entry>
4466 </row>
4467 <row>
4468 <entry spanname="descr">Intensity of the flash LED in
4469 torch mode (V4L2_FLASH_LED_MODE_TORCH). The unit should be
4470 milliamps (mA) if possible. Setting this control may not
4471 be possible in presence of some faults. See
4472 V4L2_CID_FLASH_FAULT.</entry>
4473 </row>
4474 <row>
4475 <entry spanname="id"><constant>V4L2_CID_FLASH_INDICATOR_INTENSITY</constant></entry>
4476 <entry>integer</entry>
4477 </row>
4478 <row>
4479 <entry spanname="descr">Intensity of the indicator LED.
4480 The indicator LED may be fully independent of the flash
4481 LED. The unit should be microamps (uA) if possible.</entry>
4482 </row>
4483 <row>
4484 <entry spanname="id"><constant>V4L2_CID_FLASH_FAULT</constant></entry>
4485 <entry>bitmask</entry>
4486 </row>
4487 <row>
4488 <entry spanname="descr">Faults related to the flash. The
4489 faults tell about specific problems in the flash chip
4490 itself or the LEDs attached to it. Faults may prevent
4491 further use of some of the flash controls. In particular,
4492 V4L2_CID_FLASH_LED_MODE is set to V4L2_FLASH_LED_MODE_NONE
4493 if the fault affects the flash LED. Exactly which faults
4494 have such an effect is chip dependent. Reading the faults
4495 resets the control and returns the chip to a usable state
4496 if possible.</entry>
4497 </row>
4498 <row>
4499 <entrytbl spanname="descr" cols="2">
4500 <tbody valign="top">
4501 <row>
4502 <entry><constant>V4L2_FLASH_FAULT_OVER_VOLTAGE</constant></entry>
4503 <entry>Flash controller voltage to the flash LED
4504 has exceeded the limit specific to the flash
4505 controller.</entry>
4506 </row>
4507 <row>
4508 <entry><constant>V4L2_FLASH_FAULT_TIMEOUT</constant></entry>
4509 <entry>The flash strobe was still on when
4510 the timeout set by the user ---
4511 V4L2_CID_FLASH_TIMEOUT control --- has expired.
4512 Not all flash controllers may set this in all
4513 such conditions.</entry>
4514 </row>
4515 <row>
4516 <entry><constant>V4L2_FLASH_FAULT_OVER_TEMPERATURE</constant></entry>
4517 <entry>The flash controller has overheated.</entry>
4518 </row>
4519 <row>
4520 <entry><constant>V4L2_FLASH_FAULT_SHORT_CIRCUIT</constant></entry>
4521 <entry>The short circuit protection of the flash
4522 controller has been triggered.</entry>
4523 </row>
4524 <row>
4525 <entry><constant>V4L2_FLASH_FAULT_OVER_CURRENT</constant></entry>
4526 <entry>Current in the LED power supply has exceeded the limit
4527 specific to the flash controller.</entry>
4528 </row>
4529 <row>
4530 <entry><constant>V4L2_FLASH_FAULT_INDICATOR</constant></entry>
4531 <entry>The flash controller has detected a short or open
4532 circuit condition on the indicator LED.</entry>
4533 </row>
00ae54a7
DJ
4534 <row>
4535 <entry><constant>V4L2_FLASH_FAULT_UNDER_VOLTAGE</constant></entry>
4536 <entry>Flash controller voltage to the flash LED
4537 has been below the minimum limit specific to the flash
4538 controller.</entry>
4539 </row>
4540 <row>
4541 <entry><constant>V4L2_FLASH_FAULT_INPUT_VOLTAGE</constant></entry>
4542 <entry>The input voltage of the flash controller is below
4543 the limit under which strobing the flash at full current
4544 will not be possible.The condition persists until this flag
4545 is no longer set.</entry>
4546 </row>
4547 <row>
4548 <entry><constant>V4L2_FLASH_FAULT_LED_OVER_TEMPERATURE</constant></entry>
4549 <entry>The temperature of the LED has exceeded its
4550 allowed upper limit.</entry>
4551 </row>
071408b6
HV
4552 </tbody>
4553 </entrytbl>
4554 </row>
4555 <row>
4556 <entry spanname="id"><constant>V4L2_CID_FLASH_CHARGE</constant></entry>
4557 <entry>boolean</entry>
4558 </row>
4559 <row><entry spanname="descr">Enable or disable charging of the xenon
4560 flash capacitor.</entry>
4561 </row>
4562 <row>
4563 <entry spanname="id"><constant>V4L2_CID_FLASH_READY</constant></entry>
4564 <entry>boolean</entry>
4565 </row>
4566 <row>
4567 <entry spanname="descr">Is the flash ready to strobe?
4568 Xenon flashes require their capacitors charged before
4569 strobing. LED flashes often require a cooldown period
4570 after strobe during which another strobe will not be
4571 possible. This is a read-only control.</entry>
4572 </row>
4573 <row><entry></entry></row>
4574 </tbody>
4575 </tgroup>
4576 </table>
4577 </section>
7ba85fa4 4578 </section>
29fa0eed
SN
4579 </section>
4580
4581 <section id="jpeg-controls">
4582 <title>JPEG Control Reference</title>
4583 <para>The JPEG class includes controls for common features of JPEG
4584 encoders and decoders. Currently it includes features for codecs
4585 implementing progressive baseline DCT compression process with
4586 Huffman entrophy coding.</para>
4587 <table pgwide="1" frame="none" id="jpeg-control-id">
4588 <title>JPEG Control IDs</title>
4589
4590 <tgroup cols="4">
4591 <colspec colname="c1" colwidth="1*" />
4592 <colspec colname="c2" colwidth="6*" />
4593 <colspec colname="c3" colwidth="2*" />
4594 <colspec colname="c4" colwidth="6*" />
4595 <spanspec namest="c1" nameend="c2" spanname="id" />
4596 <spanspec namest="c2" nameend="c4" spanname="descr" />
4597 <thead>
4598 <row>
4599 <entry spanname="id" align="left">ID</entry>
4600 <entry align="left">Type</entry>
4601 </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
4602 </row>
4603 </thead>
4604 <tbody valign="top">
4605 <row><entry></entry></row>
4606 <row>
4607 <entry spanname="id"><constant>V4L2_CID_JPEG_CLASS</constant>&nbsp;</entry>
4608 <entry>class</entry>
4609 </row><row><entry spanname="descr">The JPEG class descriptor. Calling
4610 &VIDIOC-QUERYCTRL; for this control will return a description of this
4611 control class.
4612
4613 </entry>
4614 </row>
4615 <row>
4616 <entry spanname="id"><constant>V4L2_CID_JPEG_CHROMA_SUBSAMPLING</constant></entry>
4617 <entry>menu</entry>
4618 </row>
579e92ff 4619 <row id="v4l2-jpeg-chroma-subsampling">
29fa0eed
SN
4620 <entry spanname="descr">The chroma subsampling factors describe how
4621 each component of an input image is sampled, in respect to maximum
4622 sample rate in each spatial dimension. See <xref linkend="itu-t81"/>,
4623 clause A.1.1. for more details. The <constant>
4624 V4L2_CID_JPEG_CHROMA_SUBSAMPLING</constant> control determines how
4625 Cb and Cr components are downsampled after coverting an input image
4626 from RGB to Y'CbCr color space.
4627 </entry>
4628 </row>
ec3ed85f 4629 <row>
29fa0eed
SN
4630 <entrytbl spanname="descr" cols="2">
4631 <tbody valign="top">
4632 <row>
4633 <entry><constant>V4L2_JPEG_CHROMA_SUBSAMPLING_444</constant>
4634 </entry><entry>No chroma subsampling, each pixel has
4635 Y, Cr and Cb values.</entry>
4636 </row>
4637 <row>
4638 <entry><constant>V4L2_JPEG_CHROMA_SUBSAMPLING_422</constant>
4639 </entry><entry>Horizontally subsample Cr, Cb components
4640 by a factor of 2.</entry>
4641 </row>
4642 <row>
4643 <entry><constant>V4L2_JPEG_CHROMA_SUBSAMPLING_420</constant>
4644 </entry><entry>Subsample Cr, Cb components horizontally
4645 and vertically by 2.</entry>
4646 </row>
4647 <row>
4648 <entry><constant>V4L2_JPEG_CHROMA_SUBSAMPLING_411</constant>
4649 </entry><entry>Horizontally subsample Cr, Cb components
4650 by a factor of 4.</entry>
4651 </row>
4652 <row>
4653 <entry><constant>V4L2_JPEG_CHROMA_SUBSAMPLING_410</constant>
4654 </entry><entry>Subsample Cr, Cb components horizontally
4655 by 4 and vertically by 2.</entry>
4656 </row>
4657 <row>
4658 <entry><constant>V4L2_JPEG_CHROMA_SUBSAMPLING_GRAY</constant>
4659 </entry><entry>Use only luminance component.</entry>
4660 </row>
4661 </tbody>
4662 </entrytbl>
4663 </row>
4664 <row>
4665 <entry spanname="id"><constant>V4L2_CID_JPEG_RESTART_INTERVAL</constant>
4666 </entry><entry>integer</entry>
4667 </row>
4668 <row><entry spanname="descr">
4669 The restart interval determines an interval of inserting RSTm
4670 markers (m = 0..7). The purpose of these markers is to additionally
4671 reinitialize the encoder process, in order to process blocks of
4672 an image independently.
4673 For the lossy compression processes the restart interval unit is
4674 MCU (Minimum Coded Unit) and its value is contained in DRI
4675 (Define Restart Interval) marker. If <constant>
4676 V4L2_CID_JPEG_RESTART_INTERVAL</constant> control is set to 0,
4677 DRI and RSTm markers will not be inserted.
4678 </entry>
4679 </row>
4680 <row id="jpeg-quality-control">
7a1d082c 4681 <entry spanname="id"><constant>V4L2_CID_JPEG_COMPRESSION_QUALITY</constant></entry>
29fa0eed
SN
4682 <entry>integer</entry>
4683 </row>
4684 <row>
4685 <entry spanname="descr">
7a1d082c 4686 <constant>V4L2_CID_JPEG_COMPRESSION_QUALITY</constant> control
29fa0eed
SN
4687 determines trade-off between image quality and size.
4688 It provides simpler method for applications to control image quality,
4689 without a need for direct reconfiguration of luminance and chrominance
4690 quantization tables.
4691
4692 In cases where a driver uses quantization tables configured directly
4693 by an application, using interfaces defined elsewhere, <constant>
7a1d082c 4694 V4L2_CID_JPEG_COMPRESSION_QUALITY</constant> control should be set
29fa0eed 4695 by driver to 0.
7ba85fa4 4696
29fa0eed
SN
4697 <para>The value range of this control is driver-specific. Only
4698 positive, non-zero values are meaningful. The recommended range
4699 is 1 - 100, where larger values correspond to better image quality.
4700 </para>
4701 </entry>
4702 </row>
4703 <row id="jpeg-active-marker-control">
4704 <entry spanname="id"><constant>V4L2_CID_JPEG_ACTIVE_MARKER</constant></entry>
4705 <entry>bitmask</entry>
4706 </row>
4707 <row>
4708 <entry spanname="descr">Specify which JPEG markers are included
4709 in compressed stream. This control is valid only for encoders.
4710 </entry>
4711 </row>
4712 <row>
4713 <entrytbl spanname="descr" cols="2">
4714 <tbody valign="top">
4715 <row>
4716 <entry><constant>V4L2_JPEG_ACTIVE_MARKER_APP0</constant></entry>
4717 <entry>Application data segment APP<subscript>0</subscript>.</entry>
4718 </row><row>
4719 <entry><constant>V4L2_JPEG_ACTIVE_MARKER_APP1</constant></entry>
4720 <entry>Application data segment APP<subscript>1</subscript>.</entry>
4721 </row><row>
4722 <entry><constant>V4L2_JPEG_ACTIVE_MARKER_COM</constant></entry>
4723 <entry>Comment segment.</entry>
4724 </row><row>
4725 <entry><constant>V4L2_JPEG_ACTIVE_MARKER_DQT</constant></entry>
4726 <entry>Quantization tables segment.</entry>
4727 </row><row>
4728 <entry><constant>V4L2_JPEG_ACTIVE_MARKER_DHT</constant></entry>
4729 <entry>Huffman tables segment.</entry>
4730 </row>
4731 </tbody>
4732 </entrytbl>
4733 </row>
4734 <row><entry></entry></row>
4735 </tbody>
4736 </tgroup>
4737 </table>
4738 <para>For more details about JPEG specification, refer
4739 to <xref linkend="itu-t81"/>, <xref linkend="jfif"/>,
4740 <xref linkend="w3c-jpeg-jfif"/>.</para>
7ba85fa4 4741 </section>
8c9d236e
SA
4742
4743 <section id="image-source-controls">
4744 <title>Image Source Control Reference</title>
4745
4746 <note>
4747 <title>Experimental</title>
4748
4749 <para>This is an <link
4750 linkend="experimental">experimental</link> interface and may
4751 change in the future.</para>
4752 </note>
4753
4754 <para>
4755 The Image Source control class is intended for low-level
4756 control of image source devices such as image sensors. The
4757 devices feature an analogue to digital converter and a bus
4758 transmitter to transmit the image data out of the device.
4759 </para>
4760
4761 <table pgwide="1" frame="none" id="image-source-control-id">
4762 <title>Image Source Control IDs</title>
4763
4764 <tgroup cols="4">
4765 <colspec colname="c1" colwidth="1*" />
4766 <colspec colname="c2" colwidth="6*" />
4767 <colspec colname="c3" colwidth="2*" />
4768 <colspec colname="c4" colwidth="6*" />
4769 <spanspec namest="c1" nameend="c2" spanname="id" />
4770 <spanspec namest="c2" nameend="c4" spanname="descr" />
4771 <thead>
4772 <row>
4773 <entry spanname="id" align="left">ID</entry>
4774 <entry align="left">Type</entry>
4775 </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
4776 </row>
4777 </thead>
4778 <tbody valign="top">
4779 <row><entry></entry></row>
4780 <row>
4781 <entry spanname="id"><constant>V4L2_CID_IMAGE_SOURCE_CLASS</constant></entry>
4782 <entry>class</entry>
4783 </row>
4784 <row>
4785 <entry spanname="descr">The IMAGE_SOURCE class descriptor.</entry>
4786 </row>
4787 <row>
4788 <entry spanname="id"><constant>V4L2_CID_VBLANK</constant></entry>
4789 <entry>integer</entry>
4790 </row>
4791 <row>
4792 <entry spanname="descr">Vertical blanking. The idle period
4793 after every frame during which no image data is produced.
4794 The unit of vertical blanking is a line. Every line has
4795 length of the image width plus horizontal blanking at the
4796 pixel rate defined by
4797 <constant>V4L2_CID_PIXEL_RATE</constant> control in the
4798 same sub-device.</entry>
4799 </row>
4800 <row>
4801 <entry spanname="id"><constant>V4L2_CID_HBLANK</constant></entry>
4802 <entry>integer</entry>
4803 </row>
4804 <row>
4805 <entry spanname="descr">Horizontal blanking. The idle
4806 period after every line of image data during which no
4807 image data is produced. The unit of horizontal blanking is
4808 pixels.</entry>
4809 </row>
4810 <row>
4811 <entry spanname="id"><constant>V4L2_CID_ANALOGUE_GAIN</constant></entry>
4812 <entry>integer</entry>
4813 </row>
4814 <row>
4815 <entry spanname="descr">Analogue gain is gain affecting
4816 all colour components in the pixel matrix. The gain
4817 operation is performed in the analogue domain before A/D
4818 conversion.
4819 </entry>
4820 </row>
0fc87864
SA
4821 <row>
4822 <entry spanname="id"><constant>V4L2_CID_TEST_PATTERN_RED</constant></entry>
4823 <entry>integer</entry>
4824 </row>
4825 <row>
4826 <entry spanname="descr">Test pattern red colour component.
4827 </entry>
4828 </row>
4829 <row>
4830 <entry spanname="id"><constant>V4L2_CID_TEST_PATTERN_GREENR</constant></entry>
4831 <entry>integer</entry>
4832 </row>
4833 <row>
4834 <entry spanname="descr">Test pattern green (next to red)
4835 colour component.
4836 </entry>
4837 </row>
4838 <row>
4839 <entry spanname="id"><constant>V4L2_CID_TEST_PATTERN_BLUE</constant></entry>
4840 <entry>integer</entry>
4841 </row>
4842 <row>
4843 <entry spanname="descr">Test pattern blue colour component.
4844 </entry>
4845 </row>
4846 <row>
4847 <entry spanname="id"><constant>V4L2_CID_TEST_PATTERN_GREENB</constant></entry>
4848 <entry>integer</entry>
4849 </row>
4850 <row>
4851 <entry spanname="descr">Test pattern green (next to blue)
4852 colour component.
4853 </entry>
4854 </row>
8c9d236e
SA
4855 <row><entry></entry></row>
4856 </tbody>
4857 </tgroup>
4858 </table>
4859
4860 </section>
4861
c643ee13
SA
4862 <section id="image-process-controls">
4863 <title>Image Process Control Reference</title>
4864
4865 <note>
4866 <title>Experimental</title>
4867
4868 <para>This is an <link
4869 linkend="experimental">experimental</link> interface and may
4870 change in the future.</para>
4871 </note>
4872
4873 <para>
e56f8ef0 4874 The Image Process control class is intended for low-level control of
c643ee13
SA
4875 image processing functions. Unlike
4876 <constant>V4L2_CID_IMAGE_SOURCE_CLASS</constant>, the controls in
4877 this class affect processing the image, and do not control capturing
4878 of it.
4879 </para>
4880
4881 <table pgwide="1" frame="none" id="image-process-control-id">
e56f8ef0 4882 <title>Image Process Control IDs</title>
c643ee13
SA
4883
4884 <tgroup cols="4">
4885 <colspec colname="c1" colwidth="1*" />
4886 <colspec colname="c2" colwidth="6*" />
4887 <colspec colname="c3" colwidth="2*" />
4888 <colspec colname="c4" colwidth="6*" />
4889 <spanspec namest="c1" nameend="c2" spanname="id" />
4890 <spanspec namest="c2" nameend="c4" spanname="descr" />
4891 <thead>
4892 <row>
4893 <entry spanname="id" align="left">ID</entry>
4894 <entry align="left">Type</entry>
4895 </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
4896 </row>
4897 </thead>
4898 <tbody valign="top">
4899 <row><entry></entry></row>
4900 <row>
4901 <entry spanname="id"><constant>V4L2_CID_IMAGE_PROC_CLASS</constant></entry>
4902 <entry>class</entry>
4903 </row>
4904 <row>
4905 <entry spanname="descr">The IMAGE_PROC class descriptor.</entry>
4906 </row>
4907 <row>
4908 <entry spanname="id"><constant>V4L2_CID_LINK_FREQ</constant></entry>
4909 <entry>integer menu</entry>
4910 </row>
4911 <row>
4912 <entry spanname="descr">Data bus frequency. Together with the
4913 media bus pixel code, bus type (clock cycles per sample), the
4914 data bus frequency defines the pixel rate
4915 (<constant>V4L2_CID_PIXEL_RATE</constant>) in the
4916 pixel array (or possibly elsewhere, if the device is not an
4917 image sensor). The frame rate can be calculated from the pixel
4918 clock, image width and height and horizontal and vertical
4919 blanking. While the pixel rate control may be defined elsewhere
4920 than in the subdev containing the pixel array, the frame rate
4921 cannot be obtained from that information. This is because only
4922 on the pixel array it can be assumed that the vertical and
4923 horizontal blanking information is exact: no other blanking is
4924 allowed in the pixel array. The selection of frame rate is
4925 performed by selecting the desired horizontal and vertical
4926 blanking. The unit of this control is Hz. </entry>
4927 </row>
4928 <row>
4929 <entry spanname="id"><constant>V4L2_CID_PIXEL_RATE</constant></entry>
4930 <entry>64-bit integer</entry>
4931 </row>
4932 <row>
4933 <entry spanname="descr">Pixel rate in the source pads of
4934 the subdev. This control is read-only and its unit is
4935 pixels / second.
4936 </entry>
4937 </row>
5ebef0fb
LP
4938 <row>
4939 <entry spanname="id"><constant>V4L2_CID_TEST_PATTERN</constant></entry>
4940 <entry>menu</entry>
4941 </row>
4942 <row id="v4l2-test-pattern">
4943 <entry spanname="descr"> Some capture/display/sensor devices have
4944 the capability to generate test pattern images. These hardware
4945 specific test patterns can be used to test if a device is working
4946 properly.</entry>
4947 </row>
c643ee13
SA
4948 <row><entry></entry></row>
4949 </tbody>
4950 </tgroup>
4951 </table>
4952
4953 </section>
1248c7cb
HV
4954
4955 <section id="dv-controls">
4956 <title>Digital Video Control Reference</title>
4957
4958 <note>
4959 <title>Experimental</title>
4960
4961 <para>This is an <link
4962 linkend="experimental">experimental</link> interface and may
4963 change in the future.</para>
4964 </note>
4965
4966 <para>
4967 The Digital Video control class is intended to control receivers
4968 and transmitters for <ulink url="http://en.wikipedia.org/wiki/Vga">VGA</ulink>,
4969 <ulink url="http://en.wikipedia.org/wiki/Digital_Visual_Interface">DVI</ulink>
4970 (Digital Visual Interface), HDMI (<xref linkend="hdmi" />) and DisplayPort (<xref linkend="dp" />).
4971 These controls are generally expected to be private to the receiver or transmitter
4972 subdevice that implements them, so they are only exposed on the
4973 <filename>/dev/v4l-subdev*</filename> device node.
4974 </para>
4975
4976 <para>Note that these devices can have multiple input or output pads which are
4977 hooked up to e.g. HDMI connectors. Even though the subdevice will receive or
4978 transmit video from/to only one of those pads, the other pads can still be
4979 active when it comes to EDID (Extended Display Identification Data,
4980 <xref linkend="vesaedid" />) and HDCP (High-bandwidth Digital Content
4981 Protection System, <xref linkend="hdcp" />) processing, allowing the device
4982 to do the fairly slow EDID/HDCP handling in advance. This allows for quick
4983 switching between connectors.</para>
4984
4985 <para>These pads appear in several of the controls in this section as
4986 bitmasks, one bit for each pad. Bit 0 corresponds to pad 0, bit 1 to pad 1,
4987 etc. The maximum value of the control is the set of valid pads.</para>
4988
4989 <table pgwide="1" frame="none" id="dv-control-id">
4990 <title>Digital Video Control IDs</title>
4991
4992 <tgroup cols="4">
4993 <colspec colname="c1" colwidth="1*" />
4994 <colspec colname="c2" colwidth="6*" />
4995 <colspec colname="c3" colwidth="2*" />
4996 <colspec colname="c4" colwidth="6*" />
4997 <spanspec namest="c1" nameend="c2" spanname="id" />
4998 <spanspec namest="c2" nameend="c4" spanname="descr" />
4999 <thead>
5000 <row>
5001 <entry spanname="id" align="left">ID</entry>
5002 <entry align="left">Type</entry>
5003 </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
5004 </row>
5005 </thead>
5006 <tbody valign="top">
5007 <row><entry></entry></row>
5008 <row>
5009 <entry spanname="id"><constant>V4L2_CID_DV_CLASS</constant></entry>
5010 <entry>class</entry>
5011 </row>
5012 <row>
5013 <entry spanname="descr">The Digital Video class descriptor.</entry>
5014 </row>
5015 <row>
5016 <entry spanname="id"><constant>V4L2_CID_DV_TX_HOTPLUG</constant></entry>
5017 <entry>bitmask</entry>
5018 </row>
5019 <row>
5020 <entry spanname="descr">Many connectors have a hotplug pin which is high
5021 if EDID information is available from the source. This control shows the
5022 state of the hotplug pin as seen by the transmitter.
5023 Each bit corresponds to an output pad on the transmitter. If an output pad
5024 does not have an associated hotplug pin, then the bit for that pad will be 0.
5025 This read-only control is applicable to DVI-D, HDMI and DisplayPort connectors.
5026 </entry>
5027 </row>
5028 <row>
5029 <entry spanname="id"><constant>V4L2_CID_DV_TX_RXSENSE</constant></entry>
5030 <entry>bitmask</entry>
5031 </row>
5032 <row>
5033 <entry spanname="descr">Rx Sense is the detection of pull-ups on the TMDS
5034 clock lines. This normally means that the sink has left/entered standby (i.e.
5035 the transmitter can sense that the receiver is ready to receive video).
5036 Each bit corresponds to an output pad on the transmitter. If an output pad
5037 does not have an associated Rx Sense, then the bit for that pad will be 0.
5038 This read-only control is applicable to DVI-D and HDMI devices.
5039 </entry>
5040 </row>
5041 <row>
5042 <entry spanname="id"><constant>V4L2_CID_DV_TX_EDID_PRESENT</constant></entry>
5043 <entry>bitmask</entry>
5044 </row>
5045 <row>
5046 <entry spanname="descr">When the transmitter sees the hotplug signal from the
5047 receiver it will attempt to read the EDID. If set, then the transmitter has read
5048 at least the first block (= 128 bytes).
5049 Each bit corresponds to an output pad on the transmitter. If an output pad
5050 does not support EDIDs, then the bit for that pad will be 0.
5051 This read-only control is applicable to VGA, DVI-A/D, HDMI and DisplayPort connectors.
5052 </entry>
5053 </row>
5054 <row>
5055 <entry spanname="id"><constant>V4L2_CID_DV_TX_MODE</constant></entry>
5056 <entry id="v4l2-dv-tx-mode">enum v4l2_dv_tx_mode</entry>
5057 </row>
5058 <row>
5059 <entry spanname="descr">HDMI transmitters can transmit in DVI-D mode (just video)
5060 or in HDMI mode (video + audio + auxiliary data). This control selects which mode
5061 to use: V4L2_DV_TX_MODE_DVI_D or V4L2_DV_TX_MODE_HDMI.
5062 This control is applicable to HDMI connectors.
5063 </entry>
5064 </row>
5065 <row>
5066 <entry spanname="id"><constant>V4L2_CID_DV_TX_RGB_RANGE</constant></entry>
5067 <entry id="v4l2-dv-rgb-range">enum v4l2_dv_rgb_range</entry>
5068 </row>
5069 <row>
5070 <entry spanname="descr">Select the quantization range for RGB output. V4L2_DV_RANGE_AUTO
5071 follows the RGB quantization range specified in the standard for the video interface
5072 (ie. <xref linkend="cea861" /> for HDMI). V4L2_DV_RANGE_LIMITED and V4L2_DV_RANGE_FULL override the standard
5073 to be compatible with sinks that have not implemented the standard correctly
5074 (unfortunately quite common for HDMI and DVI-D). Full range allows all possible values to be
5075 used whereas limited range sets the range to (16 &lt;&lt; (N-8)) - (235 &lt;&lt; (N-8))
5076 where N is the number of bits per component.
5077 This control is applicable to VGA, DVI-A/D, HDMI and DisplayPort connectors.
5078 </entry>
5079 </row>
ed679b8a
HV
5080 <row>
5081 <entry spanname="id"><constant>V4L2_CID_DV_TX_IT_CONTENT_TYPE</constant></entry>
5082 <entry id="v4l2-dv-content-type">enum v4l2_dv_it_content_type</entry>
5083 </row>
5084 <row><entry spanname="descr">Configures the IT Content Type
5085 of the transmitted video. This information is sent over HDMI and DisplayPort connectors
5086 as part of the AVI InfoFrame. The term 'IT Content' is used for content that originates
5087 from a computer as opposed to content from a TV broadcast or an analog source. The
5088 enum&nbsp;v4l2_dv_it_content_type defines the possible content types:</entry>
5089 </row>
5090 <row>
5091 <entrytbl spanname="descr" cols="2">
5092 <tbody valign="top">
5093 <row>
5094 <entry><constant>V4L2_DV_IT_CONTENT_TYPE_GRAPHICS</constant>&nbsp;</entry>
5095 <entry>Graphics content. Pixel data should be passed unfiltered and without
5096 analog reconstruction.</entry>
5097 </row>
5098 <row>
5099 <entry><constant>V4L2_DV_IT_CONTENT_TYPE_PHOTO</constant>&nbsp;</entry>
5100 <entry>Photo content. The content is derived from digital still pictures.
5101 The content should be passed through with minimal scaling and picture
5102 enhancements.</entry>
5103 </row>
5104 <row>
5105 <entry><constant>V4L2_DV_IT_CONTENT_TYPE_CINEMA</constant>&nbsp;</entry>
5106 <entry>Cinema content.</entry>
5107 </row>
5108 <row>
5109 <entry><constant>V4L2_DV_IT_CONTENT_TYPE_GAME</constant>&nbsp;</entry>
5110 <entry>Game content. Audio and video latency should be minimized.</entry>
5111 </row>
5112 <row>
5113 <entry><constant>V4L2_DV_IT_CONTENT_TYPE_NO_ITC</constant>&nbsp;</entry>
5114 <entry>No IT Content information is available and the ITC bit in the AVI
5115 InfoFrame is set to 0.</entry>
5116 </row>
5117 </tbody>
5118 </entrytbl>
5119 </row>
1248c7cb
HV
5120 <row>
5121 <entry spanname="id"><constant>V4L2_CID_DV_RX_POWER_PRESENT</constant></entry>
5122 <entry>bitmask</entry>
5123 </row>
5124 <row>
5125 <entry spanname="descr">Detects whether the receiver receives power from the source
5126 (e.g. HDMI carries 5V on one of the pins). This is often used to power an eeprom
5127 which contains EDID information, such that the source can read the EDID even if
5128 the sink is in standby/power off.
5129 Each bit corresponds to an input pad on the transmitter. If an input pad
5130 cannot detect whether power is present, then the bit for that pad will be 0.
5131 This read-only control is applicable to DVI-D, HDMI and DisplayPort connectors.
5132 </entry>
5133 </row>
5134 <row>
5135 <entry spanname="id"><constant>V4L2_CID_DV_RX_RGB_RANGE</constant></entry>
5136 <entry>enum v4l2_dv_rgb_range</entry>
5137 </row>
5138 <row>
5139 <entry spanname="descr">Select the quantization range for RGB input. V4L2_DV_RANGE_AUTO
5140 follows the RGB quantization range specified in the standard for the video interface
5141 (ie. <xref linkend="cea861" /> for HDMI). V4L2_DV_RANGE_LIMITED and V4L2_DV_RANGE_FULL override the standard
5142 to be compatible with sources that have not implemented the standard correctly
5143 (unfortunately quite common for HDMI and DVI-D). Full range allows all possible values to be
5144 used whereas limited range sets the range to (16 &lt;&lt; (N-8)) - (235 &lt;&lt; (N-8))
5145 where N is the number of bits per component.
5146 This control is applicable to VGA, DVI-A/D, HDMI and DisplayPort connectors.
5147 </entry>
5148 </row>
ed679b8a
HV
5149 <row>
5150 <entry spanname="id"><constant>V4L2_CID_DV_RX_IT_CONTENT_TYPE</constant></entry>
5151 <entry>enum v4l2_dv_it_content_type</entry>
5152 </row>
5153 <row><entry spanname="descr">Reads the IT Content Type
5154 of the received video. This information is sent over HDMI and DisplayPort connectors
5155 as part of the AVI InfoFrame. The term 'IT Content' is used for content that originates
5156 from a computer as opposed to content from a TV broadcast or an analog source. See
5157 <constant>V4L2_CID_DV_TX_IT_CONTENT_TYPE</constant> for the available content types.</entry>
5158 </row>
1248c7cb
HV
5159 <row><entry></entry></row>
5160 </tbody>
5161 </tgroup>
5162 </table>
5163
5164 </section>
b4e96a7e
AS
5165
5166 <section id="fm-rx-controls">
5167 <title>FM Receiver Control Reference</title>
5168
5169 <para>The FM Receiver (FM_RX) class includes controls for common features of
5170 FM Reception capable devices.</para>
5171
5172 <table pgwide="1" frame="none" id="fm-rx-control-id">
5173 <title>FM_RX Control IDs</title>
5174
5175 <tgroup cols="4">
5176 <colspec colname="c1" colwidth="1*" />
5177 <colspec colname="c2" colwidth="6*" />
5178 <colspec colname="c3" colwidth="2*" />
5179 <colspec colname="c4" colwidth="6*" />
5180 <spanspec namest="c1" nameend="c2" spanname="id" />
5181 <spanspec namest="c2" nameend="c4" spanname="descr" />
5182 <thead>
5183 <row>
5184 <entry spanname="id" align="left">ID</entry>
5185 <entry align="left">Type</entry>
5186 </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
5187 </row>
5188 </thead>
5189 <tbody valign="top">
5190 <row><entry></entry></row>
5191 <row>
5192 <entry spanname="id"><constant>V4L2_CID_FM_RX_CLASS</constant>&nbsp;</entry>
5193 <entry>class</entry>
5194 </row><row><entry spanname="descr">The FM_RX class
5195descriptor. Calling &VIDIOC-QUERYCTRL; for this control will return a
5196description of this control class.</entry>
5197 </row>
5198 <row>
5199 <entry spanname="id"><constant>V4L2_CID_RDS_RECEPTION</constant>&nbsp;</entry>
5200 <entry>boolean</entry>
5201 </row><row><entry spanname="descr">Enables/disables RDS
5202 reception by the radio tuner</entry>
5203 </row>
1a586e1a
HV
5204 <row>
5205 <entry spanname="id"><constant>V4L2_CID_RDS_RX_PTY</constant>&nbsp;</entry>
5206 <entry>integer</entry>
5207 </row>
5208 <row><entry spanname="descr">Gets RDS Programme Type field.
5209This encodes up to 31 pre-defined programme types.</entry>
5210 </row>
5211 <row>
5212 <entry spanname="id"><constant>V4L2_CID_RDS_RX_PS_NAME</constant>&nbsp;</entry>
5213 <entry>string</entry>
5214 </row>
5215 <row><entry spanname="descr">Gets the Programme Service name (PS_NAME).
5216It is intended for static display on a receiver. It is the primary aid to listeners in programme service
5217identification and selection. In Annex E of <xref linkend="iec62106" />, the RDS specification,
5218there is a full description of the correct character encoding for Programme Service name strings.
5219Also from RDS specification, PS is usually a single eight character text. However, it is also possible
5220to find receivers which can scroll strings sized as 8 x N characters. So, this control must be configured
5221with steps of 8 characters. The result is it must always contain a string with size multiple of 8.</entry>
5222 </row>
5223 <row>
5224 <entry spanname="id"><constant>V4L2_CID_RDS_RX_RADIO_TEXT</constant>&nbsp;</entry>
5225 <entry>string</entry>
5226 </row>
5227 <row><entry spanname="descr">Gets the Radio Text info. It is a textual description of
5228what is being broadcasted. RDS Radio Text can be applied when broadcaster wishes to transmit longer PS names,
5229programme-related information or any other text. In these cases, RadioText can be used in addition to
5230<constant>V4L2_CID_RDS_RX_PS_NAME</constant>. The encoding for Radio Text strings is also fully described
5231in Annex E of <xref linkend="iec62106" />. The length of Radio Text strings depends on which RDS Block is being
5232used to transmit it, either 32 (2A block) or 64 (2B block). However, it is also possible
5233to find receivers which can scroll strings sized as 32 x N or 64 x N characters. So, this control must be configured
5234with steps of 32 or 64 characters. The result is it must always contain a string with size multiple of 32 or 64. </entry>
5235 </row>
5236 <row>
5237 <entry spanname="id"><constant>V4L2_CID_RDS_RX_TRAFFIC_ANNOUNCEMENT</constant>&nbsp;</entry>
5238 <entry>boolean</entry>
5239 </row>
5240 <row><entry spanname="descr">If set, then a traffic announcement is in progress.</entry>
5241 </row>
5242 <row>
5243 <entry spanname="id"><constant>V4L2_CID_RDS_RX_TRAFFIC_PROGRAM</constant>&nbsp;</entry>
5244 <entry>boolean</entry>
5245 </row>
5246 <row><entry spanname="descr">If set, then the tuned programme carries traffic announcements.</entry>
5247 </row>
5248 <row>
5249 <entry spanname="id"><constant>V4L2_CID_RDS_RX_MUSIC_SPEECH</constant>&nbsp;</entry>
5250 <entry>boolean</entry>
5251 </row>
5252 <row><entry spanname="descr">If set, then this channel broadcasts music. If cleared, then it
5253broadcasts speech. If the transmitter doesn't make this distinction, then it will be set.</entry>
5254 </row>
b4e96a7e
AS
5255 <row>
5256 <entry spanname="id"><constant>V4L2_CID_TUNE_DEEMPHASIS</constant>&nbsp;</entry>
5257 <entry>enum v4l2_deemphasis</entry>
5258 </row>
5259 <row id="v4l2-deemphasis"><entry spanname="descr">Configures the de-emphasis value for reception.
5260A de-emphasis filter is applied to the broadcast to accentuate the high audio frequencies.
5261Depending on the region, a time constant of either 50 or 75 useconds is used. The enum&nbsp;v4l2_deemphasis
5262defines possible values for de-emphasis. Here they are:</entry>
5263 </row><row>
5264 <entrytbl spanname="descr" cols="2">
5265 <tbody valign="top">
5266 <row>
5267 <entry><constant>V4L2_DEEMPHASIS_DISABLED</constant>&nbsp;</entry>
5268 <entry>No de-emphasis is applied.</entry>
5269 </row>
5270 <row>
5271 <entry><constant>V4L2_DEEMPHASIS_50_uS</constant>&nbsp;</entry>
5272 <entry>A de-emphasis of 50 uS is used.</entry>
5273 </row>
5274 <row>
5275 <entry><constant>V4L2_DEEMPHASIS_75_uS</constant>&nbsp;</entry>
5276 <entry>A de-emphasis of 75 uS is used.</entry>
5277 </row>
5278 </tbody>
5279 </entrytbl>
5280
5281 </row>
5282 <row><entry></entry></row>
5283 </tbody>
5284 </tgroup>
407d3a87
HV
5285 </table>
5286 </section>
5287
5288 <section id="detect-controls">
5289 <title>Detect Control Reference</title>
5290
5291 <para>The Detect class includes controls for common features of
5292 various motion or object detection capable devices.</para>
5293
5294 <table pgwide="1" frame="none" id="detect-control-id">
5295 <title>Detect Control IDs</title>
5296
5297 <tgroup cols="4">
5298 <colspec colname="c1" colwidth="1*" />
5299 <colspec colname="c2" colwidth="6*" />
5300 <colspec colname="c3" colwidth="2*" />
5301 <colspec colname="c4" colwidth="6*" />
5302 <spanspec namest="c1" nameend="c2" spanname="id" />
5303 <spanspec namest="c2" nameend="c4" spanname="descr" />
5304 <thead>
5305 <row>
5306 <entry spanname="id" align="left">ID</entry>
5307 <entry align="left">Type</entry>
5308 </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
5309 </row>
5310 </thead>
5311 <tbody valign="top">
5312 <row><entry></entry></row>
5313 <row>
5314 <entry spanname="id"><constant>V4L2_CID_DETECT_CLASS</constant>&nbsp;</entry>
5315 <entry>class</entry>
5316 </row><row><entry spanname="descr">The Detect class
5317descriptor. Calling &VIDIOC-QUERYCTRL; for this control will return a
5318description of this control class.</entry>
5319 </row>
5320 <row>
5321 <entry spanname="id"><constant>V4L2_CID_DETECT_MD_MODE</constant>&nbsp;</entry>
5322 <entry>menu</entry>
5323 </row><row><entry spanname="descr">Sets the motion detection mode.</entry>
5324 </row>
5325 <row>
5326 <entrytbl spanname="descr" cols="2">
5327 <tbody valign="top">
5328 <row>
5329 <entry><constant>V4L2_DETECT_MD_MODE_DISABLED</constant>
5330 </entry><entry>Disable motion detection.</entry>
5331 </row>
5332 <row>
5333 <entry><constant>V4L2_DETECT_MD_MODE_GLOBAL</constant>
5334 </entry><entry>Use a single motion detection threshold.</entry>
5335 </row>
5336 <row>
5337 <entry><constant>V4L2_DETECT_MD_MODE_THRESHOLD_GRID</constant>
5338 </entry><entry>The image is divided into a grid, each cell with its own
5339 motion detection threshold. These thresholds are set through the
5340 <constant>V4L2_CID_DETECT_MD_THRESHOLD_GRID</constant> matrix control.</entry>
5341 </row>
5342 <row>
5343 <entry><constant>V4L2_DETECT_MD_MODE_REGION_GRID</constant>
5344 </entry><entry>The image is divided into a grid, each cell with its own
5345 region value that specifies which per-region motion detection thresholds
5346 should be used. Each region has its own thresholds. How these per-region
5347 thresholds are set up is driver-specific. The region values for the grid are set
5348 through the <constant>V4L2_CID_DETECT_MD_REGION_GRID</constant> matrix
5349 control.</entry>
5350 </row>
5351 </tbody>
5352 </entrytbl>
5353 </row>
5354 <row>
5355 <entry spanname="id"><constant>V4L2_CID_DETECT_MD_GLOBAL_THRESHOLD</constant>&nbsp;</entry>
5356 <entry>integer</entry>
5357 </row>
5358 <row><entry spanname="descr">Sets the global motion detection threshold to be
5359 used with the <constant>V4L2_DETECT_MD_MODE_GLOBAL</constant> motion detection mode.</entry>
5360 </row>
5361 <row>
5362 <entry spanname="id"><constant>V4L2_CID_DETECT_MD_THRESHOLD_GRID</constant>&nbsp;</entry>
5363 <entry>__u16 matrix</entry>
5364 </row>
5365 <row><entry spanname="descr">Sets the motion detection thresholds for each cell in the grid.
5366 To be used with the <constant>V4L2_DETECT_MD_MODE_THRESHOLD_GRID</constant>
5367 motion detection mode. Matrix element (0, 0) represents the cell at the top-left of the
5368 grid.</entry>
5369 </row>
5370 <row>
5371 <entry spanname="id"><constant>V4L2_CID_DETECT_MD_REGION_GRID</constant>&nbsp;</entry>
5372 <entry>__u8 matrix</entry>
5373 </row>
5374 <row><entry spanname="descr">Sets the motion detection region value for each cell in the grid.
5375 To be used with the <constant>V4L2_DETECT_MD_MODE_REGION_GRID</constant>
5376 motion detection mode. Matrix element (0, 0) represents the cell at the top-left of the
5377 grid.</entry>
5378 </row>
5379 </tbody>
5380 </tgroup>
b4e96a7e
AS
5381 </table>
5382
5383 </section>
851897a4
AP
5384
5385 <section id="rf-tuner-controls">
5386 <title>RF Tuner Control Reference</title>
5387
8dfe644b
AP
5388 <para>
5389The RF Tuner (RF_TUNER) class includes controls for common features of devices
5390having RF tuner.
5391 </para>
5392 <para>
5393In this context, RF tuner is radio receiver circuit between antenna and
5394demodulator. It receives radio frequency (RF) from the antenna and converts that
5395received signal to lower intermediate frequency (IF) or baseband frequency (BB).
5396Tuners that could do baseband output are often called Zero-IF tuners. Older
5397tuners were typically simple PLL tuners inside a metal box, whilst newer ones
5398are highly integrated chips without a metal box "silicon tuners". These controls
5399are mostly applicable for new feature rich silicon tuners, just because older
5400tuners does not have much adjustable features.
5401 </para>
5402 <para>
5403For more information about RF tuners see
5404<ulink url="http://en.wikipedia.org/wiki/Tuner_%28radio%29">Tuner (radio)</ulink>
5405and
5406<ulink url="http://en.wikipedia.org/wiki/RF_front_end">RF front end</ulink>
5407from Wikipedia.
5408 </para>
851897a4
AP
5409
5410 <table pgwide="1" frame="none" id="rf-tuner-control-id">
5411 <title>RF_TUNER Control IDs</title>
5412
5413 <tgroup cols="4">
5414 <colspec colname="c1" colwidth="1*" />
5415 <colspec colname="c2" colwidth="6*" />
5416 <colspec colname="c3" colwidth="2*" />
5417 <colspec colname="c4" colwidth="6*" />
5418 <spanspec namest="c1" nameend="c2" spanname="id" />
5419 <spanspec namest="c2" nameend="c4" spanname="descr" />
5420 <thead>
5421 <row>
5422 <entry spanname="id" align="left">ID</entry>
5423 <entry align="left">Type</entry>
5424 </row>
5425 <row rowsep="1">
5426 <entry spanname="descr" align="left">Description</entry>
5427 </row>
5428 </thead>
5429 <tbody valign="top">
5430 <row><entry></entry></row>
5431 <row>
5432 <entry spanname="id"><constant>V4L2_CID_RF_TUNER_CLASS</constant>&nbsp;</entry>
5433 <entry>class</entry>
5434 </row><row><entry spanname="descr">The RF_TUNER class
5435descriptor. Calling &VIDIOC-QUERYCTRL; for this control will return a
5436description of this control class.</entry>
982b5ee9
AP
5437 </row>
5438 <row>
5439 <entry spanname="id"><constant>V4L2_CID_RF_TUNER_BANDWIDTH_AUTO</constant>&nbsp;</entry>
5440 <entry>boolean</entry>
5441 </row>
5442 <row>
5443 <entry spanname="descr">Enables/disables tuner radio channel
5444bandwidth configuration. In automatic mode bandwidth configuration is performed
5445by the driver.</entry>
5446 </row>
5447 <row>
5448 <entry spanname="id"><constant>V4L2_CID_RF_TUNER_BANDWIDTH</constant>&nbsp;</entry>
5449 <entry>integer</entry>
5450 </row>
5451 <row>
5452 <entry spanname="descr">Filter(s) on tuner signal path are used to
5453filter signal according to receiving party needs. Driver configures filters to
5454fulfill desired bandwidth requirement. Used when V4L2_CID_RF_TUNER_BANDWIDTH_AUTO is not
30845f73 5455set. Unit is in Hz. The range and step are driver-specific.</entry>
851897a4
AP
5456 </row>
5457 <row>
5458 <entry spanname="id"><constant>V4L2_CID_RF_TUNER_LNA_GAIN_AUTO</constant>&nbsp;</entry>
5459 <entry>boolean</entry>
5460 </row>
5461 <row>
5462 <entry spanname="descr">Enables/disables LNA automatic gain control (AGC)</entry>
5463 </row>
5464 <row>
5465 <entry spanname="id"><constant>V4L2_CID_RF_TUNER_MIXER_GAIN_AUTO</constant>&nbsp;</entry>
5466 <entry>boolean</entry>
5467 </row>
5468 <row>
5469 <entry spanname="descr">Enables/disables mixer automatic gain control (AGC)</entry>
5470 </row>
5471 <row>
5472 <entry spanname="id"><constant>V4L2_CID_RF_TUNER_IF_GAIN_AUTO</constant>&nbsp;</entry>
5473 <entry>boolean</entry>
5474 </row>
5475 <row>
5476 <entry spanname="descr">Enables/disables IF automatic gain control (AGC)</entry>
5477 </row>
b2411b93
AP
5478 <row>
5479 <entry spanname="id"><constant>V4L2_CID_RF_TUNER_RF_GAIN</constant>&nbsp;</entry>
5480 <entry>integer</entry>
5481 </row>
5482 <row>
5483 <entry spanname="descr">The RF amplifier is the very first
5484amplifier on the receiver signal path, just right after the antenna input.
5485The difference between the LNA gain and the RF gain in this document is that
5486the LNA gain is integrated in the tuner chip while the RF gain is a separate
5487chip. There may be both RF and LNA gain controls in the same device.
5488The range and step are driver-specific.</entry>
5489 </row>
851897a4
AP
5490 <row>
5491 <entry spanname="id"><constant>V4L2_CID_RF_TUNER_LNA_GAIN</constant>&nbsp;</entry>
5492 <entry>integer</entry>
5493 </row>
5494 <row>
5495 <entry spanname="descr">LNA (low noise amplifier) gain is first
5496gain stage on the RF tuner signal path. It is located very close to tuner
5497antenna input. Used when <constant>V4L2_CID_RF_TUNER_LNA_GAIN_AUTO</constant> is not set.
b2411b93
AP
5498See <constant>V4L2_CID_RF_TUNER_RF_GAIN</constant> to understand how RF gain
5499and LNA gain differs from the each others.
851897a4
AP
5500The range and step are driver-specific.</entry>
5501 </row>
5502 <row>
5503 <entry spanname="id"><constant>V4L2_CID_RF_TUNER_MIXER_GAIN</constant>&nbsp;</entry>
5504 <entry>integer</entry>
5505 </row>
5506 <row>
5507 <entry spanname="descr">Mixer gain is second gain stage on the RF
5508tuner signal path. It is located inside mixer block, where RF signal is
5509down-converted by the mixer. Used when <constant>V4L2_CID_RF_TUNER_MIXER_GAIN_AUTO</constant>
5510is not set. The range and step are driver-specific.</entry>
5511 </row>
5512 <row>
5513 <entry spanname="id"><constant>V4L2_CID_RF_TUNER_IF_GAIN</constant>&nbsp;</entry>
5514 <entry>integer</entry>
5515 </row>
5516 <row>
5517 <entry spanname="descr">IF gain is last gain stage on the RF tuner
5518signal path. It is located on output of RF tuner. It controls signal level of
5519intermediate frequency output or baseband output. Used when
5520<constant>V4L2_CID_RF_TUNER_IF_GAIN_AUTO</constant> is not set. The range and step are
5521driver-specific.</entry>
5522 </row>
de1dd3e9
AP
5523 <row>
5524 <entry spanname="id"><constant>V4L2_CID_RF_TUNER_PLL_LOCK</constant>&nbsp;</entry>
5525 <entry>boolean</entry>
5526 </row>
5527 <row>
5528 <entry spanname="descr">Is synthesizer PLL locked? RF tuner is
5529receiving given frequency when that control is set. This is a read-only control.
5530</entry>
5531 </row>
851897a4
AP
5532 </tbody>
5533 </tgroup>
5534 </table>
5535 </section>
8e080c2e 5536</section>