2 <title>User Controls</title>
4 <para>Devices typically have a number of user-settable controls
5 such as brightness, saturation and so on, which would be presented to
6 the user on a graphical user interface. But, different devices
7 will have different controls available, and furthermore, the range of
8 possible values, and the default value will vary from device to
9 device. The control ioctls provide the information and a mechanism to
10 create a nice user interface for these controls that will work
11 correctly with any device.</para>
13 <para>All controls are accessed using an ID value. V4L2 defines
14 several IDs for specific purposes. Drivers can also implement their
15 own custom controls using <constant>V4L2_CID_PRIVATE_BASE</constant>
16 and higher values. The pre-defined control IDs have the prefix
17 <constant>V4L2_CID_</constant>, and are listed in <xref
18 linkend="control-id" />. The ID is used when querying the attributes of
19 a control, and when getting or setting the current value.</para>
21 <para>Generally applications should present controls to the user
22 without assumptions about their purpose. Each control comes with a
23 name string the user is supposed to understand. When the purpose is
24 non-intuitive the driver writer should provide a user manual, a user
25 interface plug-in or a driver specific panel application. Predefined
26 IDs were introduced to change a few controls programmatically, for
27 example to mute a device during a channel switch.</para>
29 <para>Drivers may enumerate different controls after switching
30 the current video input or output, tuner or modulator, or audio input
31 or output. Different in the sense of other bounds, another default and
32 current value, step size or other menu items. A control with a certain
33 <emphasis>custom</emphasis> ID can also change name and
35 <para>It will be more convenient for applications if drivers
36 make use of the <constant>V4L2_CTRL_FLAG_DISABLED</constant> flag, but
37 that was never required.</para>
38 </footnote> Control values are stored globally, they do not
39 change when switching except to stay within the reported bounds. They
40 also do not change ⪚ when the device is opened or closed, when the
41 tuner radio frequency is changed or generally never without
42 application request. Since V4L2 specifies no event mechanism, panel
43 applications intended to cooperate with other panel applications (be
44 they built into a larger application, as a TV viewer) may need to
45 regularly poll control values to update their user
47 <para>Applications could call an ioctl to request events.
48 After another process called &VIDIOC-S-CTRL; or another ioctl changing
49 shared properties the &func-select; function would indicate
50 readability until any ioctl (querying the properties) is
55 All controls use machine endianness.
58 <table pgwide="1" frame="none" id="control-id">
59 <title>Control IDs</title>
66 <entry>Description</entry>
71 <entry><constant>V4L2_CID_BASE</constant></entry>
73 <entry>First predefined ID, equal to
74 <constant>V4L2_CID_BRIGHTNESS</constant>.</entry>
77 <entry><constant>V4L2_CID_USER_BASE</constant></entry>
79 <entry>Synonym of <constant>V4L2_CID_BASE</constant>.</entry>
82 <entry><constant>V4L2_CID_BRIGHTNESS</constant></entry>
83 <entry>integer</entry>
84 <entry>Picture brightness, or more precisely, the black
88 <entry><constant>V4L2_CID_CONTRAST</constant></entry>
89 <entry>integer</entry>
90 <entry>Picture contrast or luma gain.</entry>
93 <entry><constant>V4L2_CID_SATURATION</constant></entry>
94 <entry>integer</entry>
95 <entry>Picture color saturation or chroma gain.</entry>
98 <entry><constant>V4L2_CID_HUE</constant></entry>
99 <entry>integer</entry>
100 <entry>Hue or color balance.</entry>
103 <entry><constant>V4L2_CID_AUDIO_VOLUME</constant></entry>
104 <entry>integer</entry>
105 <entry>Overall audio volume. Note some drivers also
106 provide an OSS or ALSA mixer interface.</entry>
109 <entry><constant>V4L2_CID_AUDIO_BALANCE</constant></entry>
110 <entry>integer</entry>
111 <entry>Audio stereo balance. Minimum corresponds to all
112 the way left, maximum to right.</entry>
115 <entry><constant>V4L2_CID_AUDIO_BASS</constant></entry>
116 <entry>integer</entry>
117 <entry>Audio bass adjustment.</entry>
120 <entry><constant>V4L2_CID_AUDIO_TREBLE</constant></entry>
121 <entry>integer</entry>
122 <entry>Audio treble adjustment.</entry>
125 <entry><constant>V4L2_CID_AUDIO_MUTE</constant></entry>
126 <entry>boolean</entry>
127 <entry>Mute audio, &ie; set the volume to zero, however
128 without affecting <constant>V4L2_CID_AUDIO_VOLUME</constant>. Like
129 ALSA drivers, V4L2 drivers must mute at load time to avoid excessive
130 noise. Actually the entire device should be reset to a low power
131 consumption state.</entry>
134 <entry><constant>V4L2_CID_AUDIO_LOUDNESS</constant></entry>
135 <entry>boolean</entry>
136 <entry>Loudness mode (bass boost).</entry>
139 <entry><constant>V4L2_CID_BLACK_LEVEL</constant></entry>
140 <entry>integer</entry>
141 <entry>Another name for brightness (not a synonym of
142 <constant>V4L2_CID_BRIGHTNESS</constant>). This control is deprecated
143 and should not be used in new drivers and applications.</entry>
146 <entry><constant>V4L2_CID_AUTO_WHITE_BALANCE</constant></entry>
147 <entry>boolean</entry>
148 <entry>Automatic white balance (cameras).</entry>
151 <entry><constant>V4L2_CID_DO_WHITE_BALANCE</constant></entry>
152 <entry>button</entry>
153 <entry>This is an action control. When set (the value is
154 ignored), the device will do a white balance and then hold the current
155 setting. Contrast this with the boolean
156 <constant>V4L2_CID_AUTO_WHITE_BALANCE</constant>, which, when
157 activated, keeps adjusting the white balance.</entry>
160 <entry><constant>V4L2_CID_RED_BALANCE</constant></entry>
161 <entry>integer</entry>
162 <entry>Red chroma balance.</entry>
165 <entry><constant>V4L2_CID_BLUE_BALANCE</constant></entry>
166 <entry>integer</entry>
167 <entry>Blue chroma balance.</entry>
170 <entry><constant>V4L2_CID_GAMMA</constant></entry>
171 <entry>integer</entry>
172 <entry>Gamma adjust.</entry>
175 <entry><constant>V4L2_CID_WHITENESS</constant></entry>
176 <entry>integer</entry>
177 <entry>Whiteness for grey-scale devices. This is a synonym
178 for <constant>V4L2_CID_GAMMA</constant>. This control is deprecated
179 and should not be used in new drivers and applications.</entry>
182 <entry><constant>V4L2_CID_EXPOSURE</constant></entry>
183 <entry>integer</entry>
184 <entry>Exposure (cameras). [Unit?]</entry>
187 <entry><constant>V4L2_CID_AUTOGAIN</constant></entry>
188 <entry>boolean</entry>
189 <entry>Automatic gain/exposure control.</entry>
192 <entry><constant>V4L2_CID_GAIN</constant></entry>
193 <entry>integer</entry>
194 <entry>Gain control.</entry>
197 <entry><constant>V4L2_CID_HFLIP</constant></entry>
198 <entry>boolean</entry>
199 <entry>Mirror the picture horizontally.</entry>
202 <entry><constant>V4L2_CID_VFLIP</constant></entry>
203 <entry>boolean</entry>
204 <entry>Mirror the picture vertically.</entry>
207 <entry><constant>V4L2_CID_HCENTER_DEPRECATED</constant> (formerly <constant>V4L2_CID_HCENTER</constant>)</entry>
208 <entry>integer</entry>
209 <entry>Horizontal image centering. This control is
210 deprecated. New drivers and applications should use the <link
211 linkend="camera-controls">Camera class controls</link>
212 <constant>V4L2_CID_PAN_ABSOLUTE</constant>,
213 <constant>V4L2_CID_PAN_RELATIVE</constant> and
214 <constant>V4L2_CID_PAN_RESET</constant> instead.</entry>
217 <entry><constant>V4L2_CID_VCENTER_DEPRECATED</constant>
218 (formerly <constant>V4L2_CID_VCENTER</constant>)</entry>
219 <entry>integer</entry>
220 <entry>Vertical image centering. Centering is intended to
221 <emphasis>physically</emphasis> adjust cameras. For image cropping see
222 <xref linkend="crop" />, for clipping <xref linkend="overlay" />. This
223 control is deprecated. New drivers and applications should use the
224 <link linkend="camera-controls">Camera class controls</link>
225 <constant>V4L2_CID_TILT_ABSOLUTE</constant>,
226 <constant>V4L2_CID_TILT_RELATIVE</constant> and
227 <constant>V4L2_CID_TILT_RESET</constant> instead.</entry>
229 <row id="v4l2-power-line-frequency">
230 <entry><constant>V4L2_CID_POWER_LINE_FREQUENCY</constant></entry>
232 <entry>Enables a power line frequency filter to avoid
233 flicker. Possible values for <constant>enum v4l2_power_line_frequency</constant> are:
234 <constant>V4L2_CID_POWER_LINE_FREQUENCY_DISABLED</constant> (0),
235 <constant>V4L2_CID_POWER_LINE_FREQUENCY_50HZ</constant> (1),
236 <constant>V4L2_CID_POWER_LINE_FREQUENCY_60HZ</constant> (2) and
237 <constant>V4L2_CID_POWER_LINE_FREQUENCY_AUTO</constant> (3).</entry>
240 <entry><constant>V4L2_CID_HUE_AUTO</constant></entry>
241 <entry>boolean</entry>
242 <entry>Enables automatic hue control by the device. The
243 effect of setting <constant>V4L2_CID_HUE</constant> while automatic
244 hue control is enabled is undefined, drivers should ignore such
248 <entry><constant>V4L2_CID_WHITE_BALANCE_TEMPERATURE</constant></entry>
249 <entry>integer</entry>
250 <entry>This control specifies the white balance settings
251 as a color temperature in Kelvin. A driver should have a minimum of
252 2800 (incandescent) to 6500 (daylight). For more information about
253 color temperature see <ulink
254 url="http://en.wikipedia.org/wiki/Color_temperature">Wikipedia</ulink>.</entry>
257 <entry><constant>V4L2_CID_SHARPNESS</constant></entry>
258 <entry>integer</entry>
259 <entry>Adjusts the sharpness filters in a camera. The
260 minimum value disables the filters, higher values give a sharper
264 <entry><constant>V4L2_CID_BACKLIGHT_COMPENSATION</constant></entry>
265 <entry>integer</entry>
266 <entry>Adjusts the backlight compensation in a camera. The
267 minimum value disables backlight compensation.</entry>
270 <entry><constant>V4L2_CID_CHROMA_AGC</constant></entry>
271 <entry>boolean</entry>
272 <entry>Chroma automatic gain control.</entry>
275 <entry><constant>V4L2_CID_CHROMA_GAIN</constant></entry>
276 <entry>integer</entry>
277 <entry>Adjusts the Chroma gain control (for use when chroma AGC
278 is disabled).</entry>
281 <entry><constant>V4L2_CID_COLOR_KILLER</constant></entry>
282 <entry>boolean</entry>
283 <entry>Enable the color killer (&ie; force a black & white image in case of a weak video signal).</entry>
285 <row id="v4l2-colorfx">
286 <entry><constant>V4L2_CID_COLORFX</constant></entry>
288 <entry>Selects a color effect. Possible values for
289 <constant>enum v4l2_colorfx</constant> are:
290 <constant>V4L2_COLORFX_NONE</constant> (0),
291 <constant>V4L2_COLORFX_BW</constant> (1),
292 <constant>V4L2_COLORFX_SEPIA</constant> (2),
293 <constant>V4L2_COLORFX_NEGATIVE</constant> (3),
294 <constant>V4L2_COLORFX_EMBOSS</constant> (4),
295 <constant>V4L2_COLORFX_SKETCH</constant> (5),
296 <constant>V4L2_COLORFX_SKY_BLUE</constant> (6),
297 <constant>V4L2_COLORFX_GRASS_GREEN</constant> (7),
298 <constant>V4L2_COLORFX_SKIN_WHITEN</constant> (8) and
299 <constant>V4L2_COLORFX_VIVID</constant> (9).</entry>
302 <entry><constant>V4L2_CID_ROTATE</constant></entry>
303 <entry>integer</entry>
304 <entry>Rotates the image by specified angle. Common angles are 90,
305 270 and 180. Rotating the image to 90 and 270 will reverse the height
306 and width of the display window. It is necessary to set the new height and
307 width of the picture using the &VIDIOC-S-FMT; ioctl according to
308 the rotation angle selected.</entry>
311 <entry><constant>V4L2_CID_BG_COLOR</constant></entry>
312 <entry>integer</entry>
313 <entry>Sets the background color on the current output device.
314 Background color needs to be specified in the RGB24 format. The
315 supplied 32 bit value is interpreted as bits 0-7 Red color information,
316 bits 8-15 Green color information, bits 16-23 Blue color
317 information and bits 24-31 must be zero.</entry>
320 <entry><constant>V4L2_CID_ILLUMINATORS_1</constant>
321 <constant>V4L2_CID_ILLUMINATORS_2</constant></entry>
322 <entry>boolean</entry>
323 <entry>Switch on or off the illuminator 1 or 2 of the device
324 (usually a microscope).</entry>
327 <entry><constant>V4L2_CID_MIN_BUFFERS_FOR_CAPTURE</constant></entry>
328 <entry>integer</entry>
329 <entry>This is a read-only control that can be read by the application
330 and used as a hint to determine the number of CAPTURE buffers to pass to REQBUFS.
331 The value is the minimum number of CAPTURE buffers that is necessary for hardware
335 <entry><constant>V4L2_CID_MIN_BUFFERS_FOR_OUTPUT</constant></entry>
336 <entry>integer</entry>
337 <entry>This is a read-only control that can be read by the application
338 and used as a hint to determine the number of OUTPUT buffers to pass to REQBUFS.
339 The value is the minimum number of OUTPUT buffers that is necessary for hardware
342 <row id="v4l2-alpha-component">
343 <entry><constant>V4L2_CID_ALPHA_COMPONENT</constant></entry>
344 <entry>integer</entry>
345 <entry> Sets the alpha color component on the capture device or on
346 the capture buffer queue of a mem-to-mem device. When a mem-to-mem
347 device produces frame format that includes an alpha component
348 (e.g. <link linkend="rgb-formats">packed RGB image formats</link>)
349 and the alpha value is not defined by the mem-to-mem input data
350 this control lets you select the alpha component value of all
351 pixels. It is applicable to any pixel format that contains an alpha
356 <entry><constant>V4L2_CID_LASTP1</constant></entry>
358 <entry>End of the predefined control IDs (currently
359 <constant>V4L2_CID_ALPHA_COMPONENT</constant> + 1).</entry>
362 <entry><constant>V4L2_CID_PRIVATE_BASE</constant></entry>
364 <entry>ID of the first custom (driver specific) control.
365 Applications depending on particular custom controls should check the
366 driver name and version, see <xref linkend="querycap" />.</entry>
372 <para>Applications can enumerate the available controls with the
373 &VIDIOC-QUERYCTRL; and &VIDIOC-QUERYMENU; ioctls, get and set a
374 control value with the &VIDIOC-G-CTRL; and &VIDIOC-S-CTRL; ioctls.
375 Drivers must implement <constant>VIDIOC_QUERYCTRL</constant>,
376 <constant>VIDIOC_G_CTRL</constant> and
377 <constant>VIDIOC_S_CTRL</constant> when the device has one or more
378 controls, <constant>VIDIOC_QUERYMENU</constant> when it has one or
379 more menu type controls.</para>
382 <title>Enumerating all controls</title>
385 &v4l2-queryctrl; queryctrl;
386 &v4l2-querymenu; querymenu;
389 enumerate_menu (void)
391 printf (" Menu items:\n");
393 memset (&querymenu, 0, sizeof (querymenu));
394 querymenu.id = queryctrl.id;
396 for (querymenu.index = queryctrl.minimum;
397 querymenu.index <= queryctrl.maximum;
399 if (0 == ioctl (fd, &VIDIOC-QUERYMENU;, &querymenu)) {
400 printf (" %s\n", querymenu.name);
405 memset (&queryctrl, 0, sizeof (queryctrl));
407 for (queryctrl.id = V4L2_CID_BASE;
408 queryctrl.id < V4L2_CID_LASTP1;
410 if (0 == ioctl (fd, &VIDIOC-QUERYCTRL;, &queryctrl)) {
411 if (queryctrl.flags & V4L2_CTRL_FLAG_DISABLED)
414 printf ("Control %s\n", queryctrl.name);
416 if (queryctrl.type == V4L2_CTRL_TYPE_MENU)
422 perror ("VIDIOC_QUERYCTRL");
427 for (queryctrl.id = V4L2_CID_PRIVATE_BASE;;
429 if (0 == ioctl (fd, &VIDIOC-QUERYCTRL;, &queryctrl)) {
430 if (queryctrl.flags & V4L2_CTRL_FLAG_DISABLED)
433 printf ("Control %s\n", queryctrl.name);
435 if (queryctrl.type == V4L2_CTRL_TYPE_MENU)
441 perror ("VIDIOC_QUERYCTRL");
449 <title>Changing controls</title>
452 &v4l2-queryctrl; queryctrl;
453 &v4l2-control; control;
455 memset (&queryctrl, 0, sizeof (queryctrl));
456 queryctrl.id = V4L2_CID_BRIGHTNESS;
458 if (-1 == ioctl (fd, &VIDIOC-QUERYCTRL;, &queryctrl)) {
459 if (errno != EINVAL) {
460 perror ("VIDIOC_QUERYCTRL");
463 printf ("V4L2_CID_BRIGHTNESS is not supported\n");
465 } else if (queryctrl.flags & V4L2_CTRL_FLAG_DISABLED) {
466 printf ("V4L2_CID_BRIGHTNESS is not supported\n");
468 memset (&control, 0, sizeof (control));
469 control.id = V4L2_CID_BRIGHTNESS;
470 control.value = queryctrl.default_value;
472 if (-1 == ioctl (fd, &VIDIOC-S-CTRL;, &control)) {
473 perror ("VIDIOC_S_CTRL");
478 memset (&control, 0, sizeof (control));
479 control.id = V4L2_CID_CONTRAST;
481 if (0 == ioctl (fd, &VIDIOC-G-CTRL;, &control)) {
484 /* The driver may clamp the value or return ERANGE, ignored here */
486 if (-1 == ioctl (fd, &VIDIOC-S-CTRL;, &control)
487 && errno != ERANGE) {
488 perror ("VIDIOC_S_CTRL");
491 /* Ignore if V4L2_CID_CONTRAST is unsupported */
492 } else if (errno != EINVAL) {
493 perror ("VIDIOC_G_CTRL");
497 control.id = V4L2_CID_AUDIO_MUTE;
498 control.value = TRUE; /* silence */
501 ioctl (fd, VIDIOC_S_CTRL, &control);
506 <section id="extended-controls">
507 <title>Extended Controls</title>
510 <title>Introduction</title>
512 <para>The control mechanism as originally designed was meant
513 to be used for user settings (brightness, saturation, etc). However,
514 it turned out to be a very useful model for implementing more
515 complicated driver APIs where each driver implements only a subset of
518 <para>The MPEG encoding API was the driving force behind
519 designing and implementing this extended control mechanism: the MPEG
520 standard is quite large and the currently supported hardware MPEG
521 encoders each only implement a subset of this standard. Further more,
522 many parameters relating to how the video is encoded into an MPEG
523 stream are specific to the MPEG encoding chip since the MPEG standard
524 only defines the format of the resulting MPEG stream, not how the
525 video is actually encoded into that format.</para>
527 <para>Unfortunately, the original control API lacked some
528 features needed for these new uses and so it was extended into the
529 (not terribly originally named) extended control API.</para>
531 <para>Even though the MPEG encoding API was the first effort
532 to use the Extended Control API, nowadays there are also other classes
533 of Extended Controls, such as Camera Controls and FM Transmitter Controls.
534 The Extended Controls API as well as all Extended Controls classes are
535 described in the following text.</para>
539 <title>The Extended Control API</title>
541 <para>Three new ioctls are available: &VIDIOC-G-EXT-CTRLS;,
542 &VIDIOC-S-EXT-CTRLS; and &VIDIOC-TRY-EXT-CTRLS;. These ioctls act on
543 arrays of controls (as opposed to the &VIDIOC-G-CTRL; and
544 &VIDIOC-S-CTRL; ioctls that act on a single control). This is needed
545 since it is often required to atomically change several controls at
548 <para>Each of the new ioctls expects a pointer to a
549 &v4l2-ext-controls;. This structure contains a pointer to the control
550 array, a count of the number of controls in that array and a control
551 class. Control classes are used to group similar controls into a
552 single class. For example, control class
553 <constant>V4L2_CTRL_CLASS_USER</constant> contains all user controls
554 (&ie; all controls that can also be set using the old
555 <constant>VIDIOC_S_CTRL</constant> ioctl). Control class
556 <constant>V4L2_CTRL_CLASS_MPEG</constant> contains all controls
557 relating to MPEG encoding, etc.</para>
559 <para>All controls in the control array must belong to the
560 specified control class. An error is returned if this is not the
563 <para>It is also possible to use an empty control array (count
564 == 0) to check whether the specified control class is
567 <para>The control array is a &v4l2-ext-control; array. The
568 <structname>v4l2_ext_control</structname> structure is very similar to
569 &v4l2-control;, except for the fact that it also allows for 64-bit
570 values and pointers to be passed.</para>
572 <para>It is important to realize that due to the flexibility of
573 controls it is necessary to check whether the control you want to set
574 actually is supported in the driver and what the valid range of values
575 is. So use the &VIDIOC-QUERYCTRL; and &VIDIOC-QUERYMENU; ioctls to
576 check this. Also note that it is possible that some of the menu
577 indices in a control of type <constant>V4L2_CTRL_TYPE_MENU</constant>
578 may not be supported (<constant>VIDIOC_QUERYMENU</constant> will
579 return an error). A good example is the list of supported MPEG audio
580 bitrates. Some drivers only support one or two bitrates, others
581 support a wider range.</para>
584 All controls use machine endianness.
589 <title>Enumerating Extended Controls</title>
591 <para>The recommended way to enumerate over the extended
592 controls is by using &VIDIOC-QUERYCTRL; in combination with the
593 <constant>V4L2_CTRL_FLAG_NEXT_CTRL</constant> flag:</para>
597 &v4l2-queryctrl; qctrl;
599 qctrl.id = V4L2_CTRL_FLAG_NEXT_CTRL;
600 while (0 == ioctl (fd, &VIDIOC-QUERYCTRL;, &qctrl)) {
602 qctrl.id |= V4L2_CTRL_FLAG_NEXT_CTRL;
607 <para>The initial control ID is set to 0 ORed with the
608 <constant>V4L2_CTRL_FLAG_NEXT_CTRL</constant> flag. The
609 <constant>VIDIOC_QUERYCTRL</constant> ioctl will return the first
610 control with a higher ID than the specified one. When no such controls
611 are found an error is returned.</para>
613 <para>If you want to get all controls within a specific control
614 class, then you can set the initial
615 <structfield>qctrl.id</structfield> value to the control class and add
616 an extra check to break out of the loop when a control of another
617 control class is found:</para>
621 qctrl.id = V4L2_CTRL_CLASS_MPEG | V4L2_CTRL_FLAG_NEXT_CTRL;
622 while (0 == ioctl (fd, &VIDIOC-QUERYCTRL;, &qctrl)) {
623 if (V4L2_CTRL_ID2CLASS (qctrl.id) != V4L2_CTRL_CLASS_MPEG)
626 qctrl.id |= V4L2_CTRL_FLAG_NEXT_CTRL;
631 <para>The 32-bit <structfield>qctrl.id</structfield> value is
632 subdivided into three bit ranges: the top 4 bits are reserved for
633 flags (⪚ <constant>V4L2_CTRL_FLAG_NEXT_CTRL</constant>) and are not
634 actually part of the ID. The remaining 28 bits form the control ID, of
635 which the most significant 12 bits define the control class and the
636 least significant 16 bits identify the control within the control
637 class. It is guaranteed that these last 16 bits are always non-zero
638 for controls. The range of 0x1000 and up are reserved for
639 driver-specific controls. The macro
640 <constant>V4L2_CTRL_ID2CLASS(id)</constant> returns the control class
641 ID based on a control ID.</para>
643 <para>If the driver does not support extended controls, then
644 <constant>VIDIOC_QUERYCTRL</constant> will fail when used in
645 combination with <constant>V4L2_CTRL_FLAG_NEXT_CTRL</constant>. In
646 that case the old method of enumerating control should be used (see
647 1.8). But if it is supported, then it is guaranteed to enumerate over
648 all controls, including driver-private controls.</para>
652 <title>Creating Control Panels</title>
654 <para>It is possible to create control panels for a graphical
655 user interface where the user can select the various controls.
656 Basically you will have to iterate over all controls using the method
657 described above. Each control class starts with a control of type
658 <constant>V4L2_CTRL_TYPE_CTRL_CLASS</constant>.
659 <constant>VIDIOC_QUERYCTRL</constant> will return the name of this
660 control class which can be used as the title of a tab page within a
661 control panel.</para>
663 <para>The flags field of &v4l2-queryctrl; also contains hints on
664 the behavior of the control. See the &VIDIOC-QUERYCTRL; documentation
665 for more details.</para>
668 <section id="mpeg-controls">
669 <title>MPEG Control Reference</title>
671 <para>Below all controls within the MPEG control class are
672 described. First the generic controls, then controls specific for
673 certain hardware.</para>
676 <title>Generic MPEG Controls</title>
678 <table pgwide="1" frame="none" id="mpeg-control-id">
679 <title>MPEG Control IDs</title>
681 <colspec colname="c1" colwidth="1*" />
682 <colspec colname="c2" colwidth="6*" />
683 <colspec colname="c3" colwidth="2*" />
684 <colspec colname="c4" colwidth="6*" />
685 <spanspec namest="c1" nameend="c2" spanname="id" />
686 <spanspec namest="c2" nameend="c4" spanname="descr" />
689 <entry spanname="id" align="left">ID</entry>
690 <entry align="left">Type</entry>
691 </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
695 <row><entry></entry></row>
697 <entry spanname="id"><constant>V4L2_CID_MPEG_CLASS</constant> </entry>
699 </row><row><entry spanname="descr">The MPEG class
700 descriptor. Calling &VIDIOC-QUERYCTRL; for this control will return a
701 description of this control class. This description can be used as the
702 caption of a Tab page in a GUI, for example.</entry>
704 <row><entry></entry></row>
705 <row id="v4l2-mpeg-stream-type">
706 <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_TYPE</constant> </entry>
707 <entry>enum v4l2_mpeg_stream_type</entry>
708 </row><row><entry spanname="descr">The MPEG-1, -2 or -4
709 output stream type. One cannot assume anything here. Each hardware
710 MPEG encoder tends to support different subsets of the available MPEG
711 stream types. This control is specific to multiplexed MPEG streams.
712 The currently defined stream types are:</entry>
715 <entrytbl spanname="descr" cols="2">
718 <entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG2_PS</constant> </entry>
719 <entry>MPEG-2 program stream</entry>
722 <entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG2_TS</constant> </entry>
723 <entry>MPEG-2 transport stream</entry>
726 <entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG1_SS</constant> </entry>
727 <entry>MPEG-1 system stream</entry>
730 <entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG2_DVD</constant> </entry>
731 <entry>MPEG-2 DVD-compatible stream</entry>
734 <entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG1_VCD</constant> </entry>
735 <entry>MPEG-1 VCD-compatible stream</entry>
738 <entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG2_SVCD</constant> </entry>
739 <entry>MPEG-2 SVCD-compatible stream</entry>
744 <row><entry></entry></row>
746 <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PID_PMT</constant> </entry>
747 <entry>integer</entry>
748 </row><row><entry spanname="descr">Program Map Table
749 Packet ID for the MPEG transport stream (default 16)</entry>
751 <row><entry></entry></row>
753 <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PID_AUDIO</constant> </entry>
754 <entry>integer</entry>
755 </row><row><entry spanname="descr">Audio Packet ID for
756 the MPEG transport stream (default 256)</entry>
758 <row><entry></entry></row>
760 <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PID_VIDEO</constant> </entry>
761 <entry>integer</entry>
762 </row><row><entry spanname="descr">Video Packet ID for
763 the MPEG transport stream (default 260)</entry>
765 <row><entry></entry></row>
767 <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PID_PCR</constant> </entry>
768 <entry>integer</entry>
769 </row><row><entry spanname="descr">Packet ID for the
770 MPEG transport stream carrying PCR fields (default 259)</entry>
772 <row><entry></entry></row>
774 <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PES_ID_AUDIO</constant> </entry>
775 <entry>integer</entry>
776 </row><row><entry spanname="descr">Audio ID for MPEG
779 <row><entry></entry></row>
781 <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PES_ID_VIDEO</constant> </entry>
782 <entry>integer</entry>
783 </row><row><entry spanname="descr">Video ID for MPEG
786 <row><entry></entry></row>
787 <row id="v4l2-mpeg-stream-vbi-fmt">
788 <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_VBI_FMT</constant> </entry>
789 <entry>enum v4l2_mpeg_stream_vbi_fmt</entry>
790 </row><row><entry spanname="descr">Some cards can embed
791 VBI data (⪚ Closed Caption, Teletext) into the MPEG stream. This
792 control selects whether VBI data should be embedded, and if so, what
793 embedding method should be used. The list of possible VBI formats
794 depends on the driver. The currently defined VBI format types
798 <entrytbl spanname="descr" cols="2">
801 <entry><constant>V4L2_MPEG_STREAM_VBI_FMT_NONE</constant> </entry>
802 <entry>No VBI in the MPEG stream</entry>
805 <entry><constant>V4L2_MPEG_STREAM_VBI_FMT_IVTV</constant> </entry>
806 <entry>VBI in private packets, IVTV format (documented
807 in the kernel sources in the file <filename>Documentation/video4linux/cx2341x/README.vbi</filename>)</entry>
812 <row><entry></entry></row>
813 <row id="v4l2-mpeg-audio-sampling-freq">
814 <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_SAMPLING_FREQ</constant> </entry>
815 <entry>enum v4l2_mpeg_audio_sampling_freq</entry>
816 </row><row><entry spanname="descr">MPEG Audio sampling
817 frequency. Possible values are:</entry>
820 <entrytbl spanname="descr" cols="2">
823 <entry><constant>V4L2_MPEG_AUDIO_SAMPLING_FREQ_44100</constant> </entry>
824 <entry>44.1 kHz</entry>
827 <entry><constant>V4L2_MPEG_AUDIO_SAMPLING_FREQ_48000</constant> </entry>
828 <entry>48 kHz</entry>
831 <entry><constant>V4L2_MPEG_AUDIO_SAMPLING_FREQ_32000</constant> </entry>
832 <entry>32 kHz</entry>
837 <row><entry></entry></row>
838 <row id="v4l2-mpeg-audio-encoding">
839 <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_ENCODING</constant> </entry>
840 <entry>enum v4l2_mpeg_audio_encoding</entry>
841 </row><row><entry spanname="descr">MPEG Audio encoding.
842 This control is specific to multiplexed MPEG streams.
843 Possible values are:</entry>
846 <entrytbl spanname="descr" cols="2">
849 <entry><constant>V4L2_MPEG_AUDIO_ENCODING_LAYER_1</constant> </entry>
850 <entry>MPEG-1/2 Layer I encoding</entry>
853 <entry><constant>V4L2_MPEG_AUDIO_ENCODING_LAYER_2</constant> </entry>
854 <entry>MPEG-1/2 Layer II encoding</entry>
857 <entry><constant>V4L2_MPEG_AUDIO_ENCODING_LAYER_3</constant> </entry>
858 <entry>MPEG-1/2 Layer III encoding</entry>
861 <entry><constant>V4L2_MPEG_AUDIO_ENCODING_AAC</constant> </entry>
862 <entry>MPEG-2/4 AAC (Advanced Audio Coding)</entry>
865 <entry><constant>V4L2_MPEG_AUDIO_ENCODING_AC3</constant> </entry>
866 <entry>AC-3 aka ATSC A/52 encoding</entry>
871 <row><entry></entry></row>
872 <row id="v4l2-mpeg-audio-l1-bitrate">
873 <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_L1_BITRATE</constant> </entry>
874 <entry>enum v4l2_mpeg_audio_l1_bitrate</entry>
875 </row><row><entry spanname="descr">MPEG-1/2 Layer I bitrate.
876 Possible values are:</entry>
879 <entrytbl spanname="descr" cols="2">
882 <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_32K</constant> </entry>
883 <entry>32 kbit/s</entry></row>
885 <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_64K</constant> </entry>
886 <entry>64 kbit/s</entry>
889 <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_96K</constant> </entry>
890 <entry>96 kbit/s</entry>
893 <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_128K</constant> </entry>
894 <entry>128 kbit/s</entry>
897 <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_160K</constant> </entry>
898 <entry>160 kbit/s</entry>
901 <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_192K</constant> </entry>
902 <entry>192 kbit/s</entry>
905 <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_224K</constant> </entry>
906 <entry>224 kbit/s</entry>
909 <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_256K</constant> </entry>
910 <entry>256 kbit/s</entry>
913 <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_288K</constant> </entry>
914 <entry>288 kbit/s</entry>
917 <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_320K</constant> </entry>
918 <entry>320 kbit/s</entry>
921 <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_352K</constant> </entry>
922 <entry>352 kbit/s</entry>
925 <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_384K</constant> </entry>
926 <entry>384 kbit/s</entry>
929 <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_416K</constant> </entry>
930 <entry>416 kbit/s</entry>
933 <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_448K</constant> </entry>
934 <entry>448 kbit/s</entry>
939 <row><entry></entry></row>
940 <row id="v4l2-mpeg-audio-l2-bitrate">
941 <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_L2_BITRATE</constant> </entry>
942 <entry>enum v4l2_mpeg_audio_l2_bitrate</entry>
943 </row><row><entry spanname="descr">MPEG-1/2 Layer II bitrate.
944 Possible values are:</entry>
947 <entrytbl spanname="descr" cols="2">
950 <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_32K</constant> </entry>
951 <entry>32 kbit/s</entry>
954 <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_48K</constant> </entry>
955 <entry>48 kbit/s</entry>
958 <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_56K</constant> </entry>
959 <entry>56 kbit/s</entry>
962 <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_64K</constant> </entry>
963 <entry>64 kbit/s</entry>
966 <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_80K</constant> </entry>
967 <entry>80 kbit/s</entry>
970 <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_96K</constant> </entry>
971 <entry>96 kbit/s</entry>
974 <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_112K</constant> </entry>
975 <entry>112 kbit/s</entry>
978 <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_128K</constant> </entry>
979 <entry>128 kbit/s</entry>
982 <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_160K</constant> </entry>
983 <entry>160 kbit/s</entry>
986 <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_192K</constant> </entry>
987 <entry>192 kbit/s</entry>
990 <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_224K</constant> </entry>
991 <entry>224 kbit/s</entry>
994 <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_256K</constant> </entry>
995 <entry>256 kbit/s</entry>
998 <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_320K</constant> </entry>
999 <entry>320 kbit/s</entry>
1002 <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_384K</constant> </entry>
1003 <entry>384 kbit/s</entry>
1008 <row><entry></entry></row>
1009 <row id="v4l2-mpeg-audio-l3-bitrate">
1010 <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_L3_BITRATE</constant> </entry>
1011 <entry>enum v4l2_mpeg_audio_l3_bitrate</entry>
1012 </row><row><entry spanname="descr">MPEG-1/2 Layer III bitrate.
1013 Possible values are:</entry>
1016 <entrytbl spanname="descr" cols="2">
1017 <tbody valign="top">
1019 <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_32K</constant> </entry>
1020 <entry>32 kbit/s</entry>
1023 <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_40K</constant> </entry>
1024 <entry>40 kbit/s</entry>
1027 <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_48K</constant> </entry>
1028 <entry>48 kbit/s</entry>
1031 <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_56K</constant> </entry>
1032 <entry>56 kbit/s</entry>
1035 <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_64K</constant> </entry>
1036 <entry>64 kbit/s</entry>
1039 <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_80K</constant> </entry>
1040 <entry>80 kbit/s</entry>
1043 <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_96K</constant> </entry>
1044 <entry>96 kbit/s</entry>
1047 <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_112K</constant> </entry>
1048 <entry>112 kbit/s</entry>
1051 <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_128K</constant> </entry>
1052 <entry>128 kbit/s</entry>
1055 <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_160K</constant> </entry>
1056 <entry>160 kbit/s</entry>
1059 <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_192K</constant> </entry>
1060 <entry>192 kbit/s</entry>
1063 <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_224K</constant> </entry>
1064 <entry>224 kbit/s</entry>
1067 <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_256K</constant> </entry>
1068 <entry>256 kbit/s</entry>
1071 <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_320K</constant> </entry>
1072 <entry>320 kbit/s</entry>
1077 <row><entry></entry></row>
1079 <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_AAC_BITRATE</constant> </entry>
1080 <entry>integer</entry>
1081 </row><row><entry spanname="descr">AAC bitrate in bits per second.</entry>
1083 <row><entry></entry></row>
1084 <row id="v4l2-mpeg-audio-ac3-bitrate">
1085 <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_AC3_BITRATE</constant> </entry>
1086 <entry>enum v4l2_mpeg_audio_ac3_bitrate</entry>
1087 </row><row><entry spanname="descr">AC-3 bitrate.
1088 Possible values are:</entry>
1091 <entrytbl spanname="descr" cols="2">
1092 <tbody valign="top">
1094 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_32K</constant> </entry>
1095 <entry>32 kbit/s</entry>
1098 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_40K</constant> </entry>
1099 <entry>40 kbit/s</entry>
1102 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_48K</constant> </entry>
1103 <entry>48 kbit/s</entry>
1106 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_56K</constant> </entry>
1107 <entry>56 kbit/s</entry>
1110 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_64K</constant> </entry>
1111 <entry>64 kbit/s</entry>
1114 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_80K</constant> </entry>
1115 <entry>80 kbit/s</entry>
1118 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_96K</constant> </entry>
1119 <entry>96 kbit/s</entry>
1122 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_112K</constant> </entry>
1123 <entry>112 kbit/s</entry>
1126 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_128K</constant> </entry>
1127 <entry>128 kbit/s</entry>
1130 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_160K</constant> </entry>
1131 <entry>160 kbit/s</entry>
1134 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_192K</constant> </entry>
1135 <entry>192 kbit/s</entry>
1138 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_224K</constant> </entry>
1139 <entry>224 kbit/s</entry>
1142 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_256K</constant> </entry>
1143 <entry>256 kbit/s</entry>
1146 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_320K</constant> </entry>
1147 <entry>320 kbit/s</entry>
1150 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_384K</constant> </entry>
1151 <entry>384 kbit/s</entry>
1154 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_448K</constant> </entry>
1155 <entry>448 kbit/s</entry>
1158 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_512K</constant> </entry>
1159 <entry>512 kbit/s</entry>
1162 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_576K</constant> </entry>
1163 <entry>576 kbit/s</entry>
1166 <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_640K</constant> </entry>
1167 <entry>640 kbit/s</entry>
1172 <row><entry></entry></row>
1173 <row id="v4l2-mpeg-audio-mode">
1174 <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_MODE</constant> </entry>
1175 <entry>enum v4l2_mpeg_audio_mode</entry>
1176 </row><row><entry spanname="descr">MPEG Audio mode.
1177 Possible values are:</entry>
1180 <entrytbl spanname="descr" cols="2">
1181 <tbody valign="top">
1183 <entry><constant>V4L2_MPEG_AUDIO_MODE_STEREO</constant> </entry>
1184 <entry>Stereo</entry>
1187 <entry><constant>V4L2_MPEG_AUDIO_MODE_JOINT_STEREO</constant> </entry>
1188 <entry>Joint Stereo</entry>
1191 <entry><constant>V4L2_MPEG_AUDIO_MODE_DUAL</constant> </entry>
1192 <entry>Bilingual</entry>
1195 <entry><constant>V4L2_MPEG_AUDIO_MODE_MONO</constant> </entry>
1201 <row><entry></entry></row>
1202 <row id="v4l2-mpeg-audio-mode-extension">
1203 <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_MODE_EXTENSION</constant> </entry>
1204 <entry>enum v4l2_mpeg_audio_mode_extension</entry>
1205 </row><row><entry spanname="descr">Joint Stereo
1206 audio mode extension. In Layer I and II they indicate which subbands
1207 are in intensity stereo. All other subbands are coded in stereo. Layer
1208 III is not (yet) supported. Possible values
1212 <entrytbl spanname="descr" cols="2">
1213 <tbody valign="top">
1215 <entry><constant>V4L2_MPEG_AUDIO_MODE_EXTENSION_BOUND_4</constant> </entry>
1216 <entry>Subbands 4-31 in intensity stereo</entry>
1219 <entry><constant>V4L2_MPEG_AUDIO_MODE_EXTENSION_BOUND_8</constant> </entry>
1220 <entry>Subbands 8-31 in intensity stereo</entry>
1223 <entry><constant>V4L2_MPEG_AUDIO_MODE_EXTENSION_BOUND_12</constant> </entry>
1224 <entry>Subbands 12-31 in intensity stereo</entry>
1227 <entry><constant>V4L2_MPEG_AUDIO_MODE_EXTENSION_BOUND_16</constant> </entry>
1228 <entry>Subbands 16-31 in intensity stereo</entry>
1233 <row><entry></entry></row>
1234 <row id="v4l2-mpeg-audio-emphasis">
1235 <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_EMPHASIS</constant> </entry>
1236 <entry>enum v4l2_mpeg_audio_emphasis</entry>
1237 </row><row><entry spanname="descr">Audio Emphasis.
1238 Possible values are:</entry>
1241 <entrytbl spanname="descr" cols="2">
1242 <tbody valign="top">
1244 <entry><constant>V4L2_MPEG_AUDIO_EMPHASIS_NONE</constant> </entry>
1248 <entry><constant>V4L2_MPEG_AUDIO_EMPHASIS_50_DIV_15_uS</constant> </entry>
1249 <entry>50/15 microsecond emphasis</entry>
1252 <entry><constant>V4L2_MPEG_AUDIO_EMPHASIS_CCITT_J17</constant> </entry>
1253 <entry>CCITT J.17</entry>
1258 <row><entry></entry></row>
1259 <row id="v4l2-mpeg-audio-crc">
1260 <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_CRC</constant> </entry>
1261 <entry>enum v4l2_mpeg_audio_crc</entry>
1262 </row><row><entry spanname="descr">CRC method. Possible
1266 <entrytbl spanname="descr" cols="2">
1267 <tbody valign="top">
1269 <entry><constant>V4L2_MPEG_AUDIO_CRC_NONE</constant> </entry>
1273 <entry><constant>V4L2_MPEG_AUDIO_CRC_CRC16</constant> </entry>
1274 <entry>16 bit parity check</entry>
1279 <row><entry></entry></row>
1281 <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_MUTE</constant> </entry>
1282 <entry>boolean</entry>
1283 </row><row><entry spanname="descr">Mutes the audio when
1284 capturing. This is not done by muting audio hardware, which can still
1285 produce a slight hiss, but in the encoder itself, guaranteeing a fixed
1286 and reproducible audio bitstream. 0 = unmuted, 1 = muted.</entry>
1288 <row><entry></entry></row>
1289 <row id="v4l2-mpeg-video-encoding">
1290 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_ENCODING</constant> </entry>
1291 <entry>enum v4l2_mpeg_video_encoding</entry>
1292 </row><row><entry spanname="descr">MPEG Video encoding
1293 method. This control is specific to multiplexed MPEG streams.
1294 Possible values are:</entry>
1297 <entrytbl spanname="descr" cols="2">
1298 <tbody valign="top">
1300 <entry><constant>V4L2_MPEG_VIDEO_ENCODING_MPEG_1</constant> </entry>
1301 <entry>MPEG-1 Video encoding</entry>
1304 <entry><constant>V4L2_MPEG_VIDEO_ENCODING_MPEG_2</constant> </entry>
1305 <entry>MPEG-2 Video encoding</entry>
1308 <entry><constant>V4L2_MPEG_VIDEO_ENCODING_MPEG_4_AVC</constant> </entry>
1309 <entry>MPEG-4 AVC (H.264) Video encoding</entry>
1314 <row><entry></entry></row>
1315 <row id="v4l2-mpeg-video-aspect">
1316 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_ASPECT</constant> </entry>
1317 <entry>enum v4l2_mpeg_video_aspect</entry>
1318 </row><row><entry spanname="descr">Video aspect.
1319 Possible values are:</entry>
1322 <entrytbl spanname="descr" cols="2">
1323 <tbody valign="top">
1325 <entry><constant>V4L2_MPEG_VIDEO_ASPECT_1x1</constant> </entry>
1328 <entry><constant>V4L2_MPEG_VIDEO_ASPECT_4x3</constant> </entry>
1331 <entry><constant>V4L2_MPEG_VIDEO_ASPECT_16x9</constant> </entry>
1334 <entry><constant>V4L2_MPEG_VIDEO_ASPECT_221x100</constant> </entry>
1339 <row><entry></entry></row>
1341 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_B_FRAMES</constant> </entry>
1342 <entry>integer</entry>
1343 </row><row><entry spanname="descr">Number of B-Frames
1346 <row><entry></entry></row>
1348 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_GOP_SIZE</constant> </entry>
1349 <entry>integer</entry>
1350 </row><row><entry spanname="descr">GOP size (default
1353 <row><entry></entry></row>
1355 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_GOP_CLOSURE</constant> </entry>
1356 <entry>boolean</entry>
1357 </row><row><entry spanname="descr">GOP closure (default
1360 <row><entry></entry></row>
1362 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_PULLDOWN</constant> </entry>
1363 <entry>boolean</entry>
1364 </row><row><entry spanname="descr">Enable 3:2 pulldown
1367 <row><entry></entry></row>
1368 <row id="v4l2-mpeg-video-bitrate-mode">
1369 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_BITRATE_MODE</constant> </entry>
1370 <entry>enum v4l2_mpeg_video_bitrate_mode</entry>
1371 </row><row><entry spanname="descr">Video bitrate mode.
1372 Possible values are:</entry>
1375 <entrytbl spanname="descr" cols="2">
1376 <tbody valign="top">
1378 <entry><constant>V4L2_MPEG_VIDEO_BITRATE_MODE_VBR</constant> </entry>
1379 <entry>Variable bitrate</entry>
1382 <entry><constant>V4L2_MPEG_VIDEO_BITRATE_MODE_CBR</constant> </entry>
1383 <entry>Constant bitrate</entry>
1388 <row><entry></entry></row>
1390 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_BITRATE</constant> </entry>
1391 <entry>integer</entry>
1392 </row><row><entry spanname="descr">Video bitrate in bits
1395 <row><entry></entry></row>
1397 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_BITRATE_PEAK</constant> </entry>
1398 <entry>integer</entry>
1399 </row><row><entry spanname="descr">Peak video bitrate in
1400 bits per second. Must be larger or equal to the average video bitrate.
1401 It is ignored if the video bitrate mode is set to constant
1404 <row><entry></entry></row>
1406 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_TEMPORAL_DECIMATION</constant> </entry>
1407 <entry>integer</entry>
1408 </row><row><entry spanname="descr">For every captured
1409 frame, skip this many subsequent frames (default 0).</entry>
1411 <row><entry></entry></row>
1413 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MUTE</constant> </entry>
1414 <entry>boolean</entry>
1416 <row><entry spanname="descr">"Mutes" the video to a
1417 fixed color when capturing. This is useful for testing, to produce a
1418 fixed video bitstream. 0 = unmuted, 1 = muted.</entry>
1420 <row><entry></entry></row>
1422 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MUTE_YUV</constant> </entry>
1423 <entry>integer</entry>
1424 </row><row><entry spanname="descr">Sets the "mute" color
1425 of the video. The supplied 32-bit integer is interpreted as follows (bit
1426 0 = least significant bit):</entry>
1429 <entrytbl spanname="descr" cols="2">
1430 <tbody valign="top">
1432 <entry>Bit 0:7</entry>
1433 <entry>V chrominance information</entry>
1436 <entry>Bit 8:15</entry>
1437 <entry>U chrominance information</entry>
1440 <entry>Bit 16:23</entry>
1441 <entry>Y luminance information</entry>
1444 <entry>Bit 24:31</entry>
1445 <entry>Must be zero.</entry>
1452 <row><entry></entry></row>
1454 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_DECODER_SLICE_INTERFACE</constant> </entry>
1455 <entry>boolean</entry>
1457 <row><entry spanname="descr">If enabled the decoder expects to receive a single slice per buffer, otherwise
1458 the decoder expects a single frame in per buffer. Applicable to the decoder, all codecs.
1462 <row><entry></entry></row>
1464 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_VUI_SAR_ENABLE</constant> </entry>
1465 <entry>boolean</entry>
1467 <row><entry spanname="descr">Enable writing sample aspect ratio in the Video Usability Information.
1468 Applicable to the H264 encoder.</entry>
1471 <row><entry></entry></row>
1472 <row id="v4l2-mpeg-video-h264-vui-sar-idc">
1473 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_VUI_SAR_IDC</constant> </entry>
1474 <entry>enum v4l2_mpeg_video_h264_vui_sar_idc</entry>
1476 <row><entry spanname="descr">VUI sample aspect ratio indicator for H.264 encoding. The value
1477 is defined in the table E-1 in the standard. Applicable to the H264 encoder.</entry>
1480 <entrytbl spanname="descr" cols="2">
1481 <tbody valign="top">
1484 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_UNSPECIFIED</constant> </entry>
1485 <entry>Unspecified</entry>
1488 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_1x1</constant> </entry>
1492 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_12x11</constant> </entry>
1493 <entry>12x11</entry>
1496 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_10x11</constant> </entry>
1497 <entry>10x11</entry>
1500 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_16x11</constant> </entry>
1501 <entry>16x11</entry>
1504 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_40x33</constant> </entry>
1505 <entry>40x33</entry>
1508 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_24x11</constant> </entry>
1509 <entry>24x11</entry>
1512 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_20x11</constant> </entry>
1513 <entry>20x11</entry>
1516 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_32x11</constant> </entry>
1517 <entry>32x11</entry>
1520 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_80x33</constant> </entry>
1521 <entry>80x33</entry>
1524 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_18x11</constant> </entry>
1525 <entry>18x11</entry>
1528 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_15x11</constant> </entry>
1529 <entry>15x11</entry>
1532 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_64x33</constant> </entry>
1533 <entry>64x33</entry>
1536 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_160x99</constant> </entry>
1537 <entry>160x99</entry>
1540 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_4x3</constant> </entry>
1544 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_3x2</constant> </entry>
1548 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_2x1</constant> </entry>
1552 <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_EXTENDED</constant> </entry>
1553 <entry>Extended SAR</entry>
1559 <row><entry></entry></row>
1561 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_VUI_EXT_SAR_WIDTH</constant> </entry>
1562 <entry>integer</entry>
1564 <row><entry spanname="descr">Extended sample aspect ratio width for H.264 VUI encoding.
1565 Applicable to the H264 encoder.</entry>
1568 <row><entry></entry></row>
1570 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_VUI_EXT_SAR_HEIGHT</constant> </entry>
1571 <entry>integer</entry>
1573 <row><entry spanname="descr">Extended sample aspect ratio height for H.264 VUI encoding.
1574 Applicable to the H264 encoder.</entry>
1577 <row><entry></entry></row>
1578 <row id="v4l2-mpeg-video-h264-level">
1579 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_LEVEL</constant> </entry>
1580 <entry>enum v4l2_mpeg_video_h264_level</entry>
1582 <row><entry spanname="descr">The level information for the H264 video elementary stream.
1583 Applicable to the H264 encoder.
1584 Possible values are:</entry>
1587 <entrytbl spanname="descr" cols="2">
1588 <tbody valign="top">
1590 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_1_0</constant> </entry>
1591 <entry>Level 1.0</entry>
1594 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_1B</constant> </entry>
1595 <entry>Level 1B</entry>
1598 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_1_1</constant> </entry>
1599 <entry>Level 1.1</entry>
1602 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_1_2</constant> </entry>
1603 <entry>Level 1.2</entry>
1606 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_1_3</constant> </entry>
1607 <entry>Level 1.3</entry>
1610 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_2_0</constant> </entry>
1611 <entry>Level 2.0</entry>
1614 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_2_1</constant> </entry>
1615 <entry>Level 2.1</entry>
1618 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_2_2</constant> </entry>
1619 <entry>Level 2.2</entry>
1622 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_3_0</constant> </entry>
1623 <entry>Level 3.0</entry>
1626 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_3_1</constant> </entry>
1627 <entry>Level 3.1</entry>
1630 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_3_2</constant> </entry>
1631 <entry>Level 3.2</entry>
1634 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_4_0</constant> </entry>
1635 <entry>Level 4.0</entry>
1638 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_4_1</constant> </entry>
1639 <entry>Level 4.1</entry>
1642 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_4_2</constant> </entry>
1643 <entry>Level 4.2</entry>
1646 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_5_0</constant> </entry>
1647 <entry>Level 5.0</entry>
1650 <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_5_1</constant> </entry>
1651 <entry>Level 5.1</entry>
1657 <row><entry></entry></row>
1658 <row id="v4l2-mpeg-video-mpeg4-level">
1659 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_LEVEL</constant> </entry>
1660 <entry>enum v4l2_mpeg_video_mpeg4_level</entry>
1662 <row><entry spanname="descr">The level information for the MPEG4 elementary stream.
1663 Applicable to the MPEG4 encoder.
1664 Possible values are:</entry>
1667 <entrytbl spanname="descr" cols="2">
1668 <tbody valign="top">
1670 <entry><constant>V4L2_MPEG_VIDEO_LEVEL_0</constant> </entry>
1671 <entry>Level 0</entry>
1674 <entry><constant>V4L2_MPEG_VIDEO_LEVEL_0B</constant> </entry>
1675 <entry>Level 0b</entry>
1678 <entry><constant>V4L2_MPEG_VIDEO_LEVEL_1</constant> </entry>
1679 <entry>Level 1</entry>
1682 <entry><constant>V4L2_MPEG_VIDEO_LEVEL_2</constant> </entry>
1683 <entry>Level 2</entry>
1686 <entry><constant>V4L2_MPEG_VIDEO_LEVEL_3</constant> </entry>
1687 <entry>Level 3</entry>
1690 <entry><constant>V4L2_MPEG_VIDEO_LEVEL_3B</constant> </entry>
1691 <entry>Level 3b</entry>
1694 <entry><constant>V4L2_MPEG_VIDEO_LEVEL_4</constant> </entry>
1695 <entry>Level 4</entry>
1698 <entry><constant>V4L2_MPEG_VIDEO_LEVEL_5</constant> </entry>
1699 <entry>Level 5</entry>
1705 <row><entry></entry></row>
1706 <row id="v4l2-mpeg-video-h264-profile">
1707 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_PROFILE</constant> </entry>
1708 <entry>enum v4l2_mpeg_video_h264_profile</entry>
1710 <row><entry spanname="descr">The profile information for H264.
1711 Applicable to the H264 encoder.
1712 Possible values are:</entry>
1715 <entrytbl spanname="descr" cols="2">
1716 <tbody valign="top">
1718 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_BASELINE</constant> </entry>
1719 <entry>Baseline profile</entry>
1722 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_CONSTRAINED_BASELINE</constant> </entry>
1723 <entry>Constrained Baseline profile</entry>
1726 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_MAIN</constant> </entry>
1727 <entry>Main profile</entry>
1730 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_EXTENDED</constant> </entry>
1731 <entry>Extended profile</entry>
1734 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_HIGH</constant> </entry>
1735 <entry>High profile</entry>
1738 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_HIGH_10</constant> </entry>
1739 <entry>High 10 profile</entry>
1742 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_HIGH_422</constant> </entry>
1743 <entry>High 422 profile</entry>
1746 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_HIGH_444_PREDICTIVE</constant> </entry>
1747 <entry>High 444 Predictive profile</entry>
1750 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_HIGH_10_INTRA</constant> </entry>
1751 <entry>High 10 Intra profile</entry>
1754 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_HIGH_422_INTRA</constant> </entry>
1755 <entry>High 422 Intra profile</entry>
1758 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_HIGH_444_INTRA</constant> </entry>
1759 <entry>High 444 Intra profile</entry>
1762 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_CAVLC_444_INTRA</constant> </entry>
1763 <entry>CAVLC 444 Intra profile</entry>
1766 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_SCALABLE_BASELINE</constant> </entry>
1767 <entry>Scalable Baseline profile</entry>
1770 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_SCALABLE_HIGH</constant> </entry>
1771 <entry>Scalable High profile</entry>
1774 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_SCALABLE_HIGH_INTRA</constant> </entry>
1775 <entry>Scalable High Intra profile</entry>
1778 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_STEREO_HIGH</constant> </entry>
1779 <entry>Stereo High profile</entry>
1782 <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_MULTIVIEW_HIGH</constant> </entry>
1783 <entry>Multiview High profile</entry>
1790 <row><entry></entry></row>
1791 <row id="v4l2-mpeg-video-mpeg4-profile">
1792 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_PROFILE</constant> </entry>
1793 <entry>enum v4l2_mpeg_video_mpeg4_profile</entry>
1795 <row><entry spanname="descr">The profile information for MPEG4.
1796 Applicable to the MPEG4 encoder.
1797 Possible values are:</entry>
1800 <entrytbl spanname="descr" cols="2">
1801 <tbody valign="top">
1803 <entry><constant>V4L2_MPEG_VIDEO_PROFILE_SIMPLE</constant> </entry>
1804 <entry>Simple profile</entry>
1807 <entry><constant>V4L2_MPEG_VIDEO_PROFILE_ADVANCED_SIMPLE</constant> </entry>
1808 <entry>Advanced Simple profile</entry>
1811 <entry><constant>V4L2_MPEG_VIDEO_PROFILE_CORE</constant> </entry>
1812 <entry>Core profile</entry>
1815 <entry><constant>V4L2_MPEG_VIDEO_PROFILE_SIMPLE_SCALABLE</constant> </entry>
1816 <entry>Simple Scalable profile</entry>
1819 <entry><constant>V4L2_MPEG_VIDEO_PROFILE_ADVANCED_CODING_EFFICIENCY</constant> </entry>
1826 <row><entry></entry></row>
1828 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MAX_REF_PIC</constant> </entry>
1829 <entry>integer</entry>
1831 <row><entry spanname="descr">The maximum number of reference pictures used for encoding.
1832 Applicable to the encoder.
1836 <row><entry></entry></row>
1837 <row id="v4l2-mpeg-video-multi-slice-mode">
1838 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MODE</constant> </entry>
1839 <entry>enum v4l2_mpeg_video_multi_slice_mode</entry>
1841 <row><entry spanname="descr">Determines how the encoder should handle division of frame into slices.
1842 Applicable to the encoder.
1843 Possible values are:</entry>
1846 <entrytbl spanname="descr" cols="2">
1847 <tbody valign="top">
1849 <entry><constant>V4L2_MPEG_VIDEO_MULTI_SLICE_MODE_SINGLE</constant> </entry>
1850 <entry>Single slice per frame.</entry>
1853 <entry><constant>V4L2_MPEG_VIDEO_MULTI_SLICE_MODE_MAX_MB</constant> </entry>
1854 <entry>Multiple slices with set maximum number of macroblocks per slice.</entry>
1857 <entry><constant>V4L2_MPEG_VIDEO_MULTI_SLICE_MODE_MAX_BYTES</constant> </entry>
1858 <entry>Multiple slice with set maximum size in bytes per slice.</entry>
1864 <row><entry></entry></row>
1866 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MAX_MB</constant> </entry>
1867 <entry>integer</entry>
1869 <row><entry spanname="descr">The maximum number of macroblocks in a slice. Used when
1870 <constant>V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MODE</constant> is set to <constant>V4L2_MPEG_VIDEO_MULTI_SLICE_MODE_MAX_MB</constant>.
1871 Applicable to the encoder.</entry>
1874 <row><entry></entry></row>
1876 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MAX_BYTES</constant> </entry>
1877 <entry>integer</entry>
1879 <row><entry spanname="descr">The maximum size of a slice in bytes. Used when
1880 <constant>V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MODE</constant> is set to <constant>V4L2_MPEG_VIDEO_MULTI_SLICE_MODE_MAX_BYTES</constant>.
1881 Applicable to the encoder.</entry>
1884 <row><entry></entry></row>
1885 <row id="v4l2-mpeg-video-h264-loop-filter-mode">
1886 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_LOOP_FILTER_MODE</constant> </entry>
1887 <entry>enum v4l2_mpeg_video_h264_loop_filter_mode</entry>
1889 <row><entry spanname="descr">Loop filter mode for H264 encoder.
1890 Possible values are:</entry>
1893 <entrytbl spanname="descr" cols="2">
1894 <tbody valign="top">
1896 <entry><constant>V4L2_MPEG_VIDEO_H264_LOOP_FILTER_MODE_ENABLED</constant> </entry>
1897 <entry>Loop filter is enabled.</entry>
1900 <entry><constant>V4L2_MPEG_VIDEO_H264_LOOP_FILTER_MODE_DISABLED</constant> </entry>
1901 <entry>Loop filter is disabled.</entry>
1904 <entry><constant>V4L2_MPEG_VIDEO_H264_LOOP_FILTER_MODE_DISABLED_AT_SLICE_BOUNDARY</constant> </entry>
1905 <entry>Loop filter is disabled at the slice boundary.</entry>
1911 <row><entry></entry></row>
1913 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_LOOP_FILTER_ALPHA</constant> </entry>
1914 <entry>integer</entry>
1916 <row><entry spanname="descr">Loop filter alpha coefficient, defined in the H264 standard.
1917 Applicable to the H264 encoder.</entry>
1920 <row><entry></entry></row>
1922 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_LOOP_FILTER_BETA</constant> </entry>
1923 <entry>integer</entry>
1925 <row><entry spanname="descr">Loop filter beta coefficient, defined in the H264 standard.
1926 Applicable to the H264 encoder.</entry>
1929 <row><entry></entry></row>
1930 <row id="v4l2-mpeg-video-h264-entropy-mode">
1931 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_ENTROPY_MODE</constant> </entry>
1932 <entry>enum v4l2_mpeg_video_h264_entropy_mode</entry>
1934 <row><entry spanname="descr">Entropy coding mode for H264 - CABAC/CAVALC.
1935 Applicable to the H264 encoder.
1936 Possible values are:</entry>
1939 <entrytbl spanname="descr" cols="2">
1940 <tbody valign="top">
1942 <entry><constant>V4L2_MPEG_VIDEO_H264_ENTROPY_MODE_CAVLC</constant> </entry>
1943 <entry>Use CAVLC entropy coding.</entry>
1946 <entry><constant>V4L2_MPEG_VIDEO_H264_ENTROPY_MODE_CABAC</constant> </entry>
1947 <entry>Use CABAC entropy coding.</entry>
1953 <row><entry></entry></row>
1955 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_8X8_TRANSFORM</constant> </entry>
1956 <entry>boolean</entry>
1958 <row><entry spanname="descr">Enable 8X8 transform for H264. Applicable to the H264 encoder.</entry>
1961 <row><entry></entry></row>
1963 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_CYCLIC_INTRA_REFRESH_MB</constant> </entry>
1964 <entry>integer</entry>
1966 <row><entry spanname="descr">Cyclic intra macroblock refresh. This is the number of continuous macroblocks
1967 refreshed every frame. Each frame a succesive set of macroblocks is refreshed until the cycle completes and starts from the
1968 top of the frame. Applicable to H264, H263 and MPEG4 encoder.</entry>
1971 <row><entry></entry></row>
1973 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_FRAME_RC_ENABLE</constant> </entry>
1974 <entry>boolean</entry>
1976 <row><entry spanname="descr">Frame level rate control enable.
1977 If this control is disabled then the quantization parameter for each frame type is constant and set with appropriate controls
1978 (e.g. <constant>V4L2_CID_MPEG_VIDEO_H263_I_FRAME_QP</constant>).
1979 If frame rate control is enabled then quantization parameter is adjusted to meet the chosen bitrate. Minimum and maximum value
1980 for the quantization parameter can be set with appropriate controls (e.g. <constant>V4L2_CID_MPEG_VIDEO_H263_MIN_QP</constant>).
1981 Applicable to encoders.</entry>
1984 <row><entry></entry></row>
1986 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MB_RC_ENABLE</constant> </entry>
1987 <entry>boolean</entry>
1989 <row><entry spanname="descr">Macroblock level rate control enable.
1990 Applicable to the MPEG4 and H264 encoders.</entry>
1993 <row><entry></entry></row>
1995 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_QPEL</constant> </entry>
1996 <entry>boolean</entry>
1998 <row><entry spanname="descr">Quarter pixel motion estimation for MPEG4. Applicable to the MPEG4 encoder.</entry>
2001 <row><entry></entry></row>
2003 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H263_I_FRAME_QP</constant> </entry>
2004 <entry>integer</entry>
2006 <row><entry spanname="descr">Quantization parameter for an I frame for H263. Valid range: from 1 to 31.</entry>
2009 <row><entry></entry></row>
2011 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H263_MIN_QP</constant> </entry>
2012 <entry>integer</entry>
2014 <row><entry spanname="descr">Minimum quantization parameter for H263. Valid range: from 1 to 31.</entry>
2017 <row><entry></entry></row>
2019 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H263_MAX_QP</constant> </entry>
2020 <entry>integer</entry>
2022 <row><entry spanname="descr">Maximum quantization parameter for H263. Valid range: from 1 to 31.</entry>
2025 <row><entry></entry></row>
2027 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H263_P_FRAME_QP</constant> </entry>
2028 <entry>integer</entry>
2030 <row><entry spanname="descr">Quantization parameter for an P frame for H263. Valid range: from 1 to 31.</entry>
2033 <row><entry></entry></row>
2035 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H263_B_FRAME_QP</constant> </entry>
2036 <entry>integer</entry>
2038 <row><entry spanname="descr">Quantization parameter for an B frame for H263. Valid range: from 1 to 31.</entry>
2041 <row><entry></entry></row>
2043 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_I_FRAME_QP</constant> </entry>
2044 <entry>integer</entry>
2046 <row><entry spanname="descr">Quantization parameter for an I frame for H264. Valid range: from 0 to 51.</entry>
2049 <row><entry></entry></row>
2051 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_MIN_QP</constant> </entry>
2052 <entry>integer</entry>
2054 <row><entry spanname="descr">Minimum quantization parameter for H264. Valid range: from 0 to 51.</entry>
2057 <row><entry></entry></row>
2059 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_MAX_QP</constant> </entry>
2060 <entry>integer</entry>
2062 <row><entry spanname="descr">Maximum quantization parameter for H264. Valid range: from 0 to 51.</entry>
2065 <row><entry></entry></row>
2067 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_P_FRAME_QP</constant> </entry>
2068 <entry>integer</entry>
2070 <row><entry spanname="descr">Quantization parameter for an P frame for H264. Valid range: from 0 to 51.</entry>
2073 <row><entry></entry></row>
2075 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_B_FRAME_QP</constant> </entry>
2076 <entry>integer</entry>
2078 <row><entry spanname="descr">Quantization parameter for an B frame for H264. Valid range: from 0 to 51.</entry>
2081 <row><entry></entry></row>
2083 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_I_FRAME_QP</constant> </entry>
2084 <entry>integer</entry>
2086 <row><entry spanname="descr">Quantization parameter for an I frame for MPEG4. Valid range: from 1 to 31.</entry>
2089 <row><entry></entry></row>
2091 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_MIN_QP</constant> </entry>
2092 <entry>integer</entry>
2094 <row><entry spanname="descr">Minimum quantization parameter for MPEG4. Valid range: from 1 to 31.</entry>
2097 <row><entry></entry></row>
2099 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_MAX_QP</constant> </entry>
2100 <entry>integer</entry>
2102 <row><entry spanname="descr">Maximum quantization parameter for MPEG4. Valid range: from 1 to 31.</entry>
2105 <row><entry></entry></row>
2107 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_P_FRAME_QP</constant> </entry>
2108 <entry>integer</entry>
2110 <row><entry spanname="descr">Quantization parameter for an P frame for MPEG4. Valid range: from 1 to 31.</entry>
2113 <row><entry></entry></row>
2115 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_B_FRAME_QP</constant> </entry>
2116 <entry>integer</entry>
2118 <row><entry spanname="descr">Quantization parameter for an B frame for MPEG4. Valid range: from 1 to 31.</entry>
2121 <row><entry></entry></row>
2123 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_VBV_SIZE</constant> </entry>
2124 <entry>integer</entry>
2126 <row><entry spanname="descr">The Video Buffer Verifier size in kilobytes, it is used as a limitation of frame skip.
2127 The VBV is defined in the standard as a mean to verify that the produced stream will be succesfully decoded.
2128 The standard describes it as "Part of a hypothetical decoder that is conceptually connected to the
2129 output of the encoder. Its purpose is to provide a constraint on the variability of the data rate that an
2130 encoder or editing process may produce.".
2131 Applicable to the MPEG1, MPEG2, MPEG4 encoders.</entry>
2134 <row><entry></entry></row>
2136 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_CPB_SIZE</constant> </entry>
2137 <entry>integer</entry>
2139 <row><entry spanname="descr">The Coded Picture Buffer size in kilobytes, it is used as a limitation of frame skip.
2140 The CPB is defined in the H264 standard as a mean to verify that the produced stream will be succesfully decoded.
2141 Applicable to the H264 encoder.</entry>
2144 <row><entry></entry></row>
2146 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_I_PERIOD</constant> </entry>
2147 <entry>integer</entry>
2149 <row><entry spanname="descr">Period between I-frames in the open GOP for H264. In case of an open GOP
2150 this is the period between two I-frames. The period between IDR (Instantaneous Decoding Refresh) frames is taken from the GOP_SIZE control.
2151 An IDR frame, which stands for Instantaneous Decoding Refresh is an I-frame after which no prior frames are
2152 referenced. This means that a stream can be restarted from an IDR frame without the need to store or decode any
2153 previous frames. Applicable to the H264 encoder.</entry>
2156 <row><entry></entry></row>
2157 <row id="v4l2-mpeg-video-header-mode">
2158 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_HEADER_MODE</constant> </entry>
2159 <entry>enum v4l2_mpeg_video_header_mode</entry>
2161 <row><entry spanname="descr">Determines whether the header is returned as the first buffer or is
2162 it returned together with the first frame. Applicable to encoders.
2163 Possible values are:</entry>
2166 <entrytbl spanname="descr" cols="2">
2167 <tbody valign="top">
2169 <entry><constant>V4L2_MPEG_VIDEO_HEADER_MODE_SEPARATE</constant> </entry>
2170 <entry>The stream header is returned separately in the first buffer.</entry>
2173 <entry><constant>V4L2_MPEG_VIDEO_HEADER_MODE_JOINED_WITH_1ST_FRAME</constant> </entry>
2174 <entry>The stream header is returned together with the first encoded frame.</entry>
2179 <row><entry></entry></row>
2181 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_DECODER_MPEG4_DEBLOCK_FILTER</constant> </entry>
2182 <entry>boolean</entry>
2183 </row><row><entry spanname="descr">Enabled the deblocking post processing filter for MPEG4 decoder.
2184 Applicable to the MPEG4 decoder.</entry>
2186 <row><entry></entry></row>
2188 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_VOP_TIME_RES</constant> </entry>
2189 <entry>integer</entry>
2190 </row><row><entry spanname="descr">vop_time_increment_resolution value for MPEG4. Applicable to the MPEG4 encoder.</entry>
2192 <row><entry></entry></row>
2194 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_VOP_TIME_INC</constant> </entry>
2195 <entry>integer</entry>
2196 </row><row><entry spanname="descr">vop_time_increment value for MPEG4. Applicable to the MPEG4 encoder.</entry>
2205 <title>MFC 5.1 MPEG Controls</title>
2207 <para>The following MPEG class controls deal with MPEG
2208 decoding and encoding settings that are specific to the Multi Format Codec 5.1 device present
2209 in the S5P family of SoCs by Samsung.
2212 <table pgwide="1" frame="none" id="mfc51-control-id">
2213 <title>MFC 5.1 Control IDs</title>
2215 <colspec colname="c1" colwidth="1*" />
2216 <colspec colname="c2" colwidth="6*" />
2217 <colspec colname="c3" colwidth="2*" />
2218 <colspec colname="c4" colwidth="6*" />
2219 <spanspec namest="c1" nameend="c2" spanname="id" />
2220 <spanspec namest="c2" nameend="c4" spanname="descr" />
2223 <entry spanname="id" align="left">ID</entry>
2224 <entry align="left">Type</entry>
2225 </row><row><entry spanname="descr" align="left">Description</entry>
2228 <tbody valign="top">
2229 <row><entry></entry></row>
2231 <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_DECODER_H264_DISPLAY_DELAY_ENABLE</constant> </entry>
2232 <entry>integer</entry>
2233 </row><row><entry spanname="descr">If the display delay is enabled then the decoder has to return a
2234 CAPTURE buffer after processing a certain number of OUTPUT buffers. If this number is low, then it may result in
2235 buffers not being dequeued in display order. In addition hardware may still use those buffers as reference, thus
2236 application should not write to those buffers. This feature can be used for example for generating thumbnails of videos.
2237 Applicable to the H264 decoder.
2240 <row><entry></entry></row>
2242 <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_DECODER_H264_DISPLAY_DELAY</constant> </entry>
2243 <entry>integer</entry>
2244 </row><row><entry spanname="descr">Display delay value for H264 decoder.
2245 The decoder is forced to return a decoded frame after the set 'display delay' number of frames. If this number is
2246 low it may result in frames returned out of dispaly order, in addition the hardware may still be using the returned buffer
2247 as a reference picture for subsequent frames.
2250 <row><entry></entry></row>
2252 <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_H264_NUM_REF_PIC_FOR_P</constant> </entry>
2253 <entry>integer</entry>
2254 </row><row><entry spanname="descr">The number of reference pictures used for encoding a P picture.
2255 Applicable to the H264 encoder.</entry>
2257 <row><entry></entry></row>
2259 <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_PADDING</constant> </entry>
2260 <entry>boolean</entry>
2261 </row><row><entry spanname="descr">Padding enable in the encoder - use a color instead of repeating border pixels.
2262 Applicable to encoders.</entry>
2264 <row><entry></entry></row>
2266 <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_PADDING_YUV</constant> </entry>
2267 <entry>integer</entry>
2268 </row><row><entry spanname="descr">Padding color in the encoder. Applicable to encoders. The supplied 32-bit integer is interpreted as follows (bit
2269 0 = least significant bit):</entry>
2272 <entrytbl spanname="descr" cols="2">
2273 <tbody valign="top">
2275 <entry>Bit 0:7</entry>
2276 <entry>V chrominance information</entry>
2279 <entry>Bit 8:15</entry>
2280 <entry>U chrominance information</entry>
2283 <entry>Bit 16:23</entry>
2284 <entry>Y luminance information</entry>
2287 <entry>Bit 24:31</entry>
2288 <entry>Must be zero.</entry>
2293 <row><entry></entry></row>
2295 <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_RC_REACTION_COEFF</constant> </entry>
2296 <entry>integer</entry>
2297 </row><row><entry spanname="descr">Reaction coefficient for MFC rate control. Applicable to encoders.
2298 <para>Note 1: Valid only when the frame level RC is enabled.</para>
2299 <para>Note 2: For tight CBR, this field must be small (ex. 2 ~ 10).
2300 For VBR, this field must be large (ex. 100 ~ 1000).</para>
2301 <para>Note 3: It is not recommended to use the greater number than FRAME_RATE * (10^9 / BIT_RATE).</para>
2304 <row><entry></entry></row>
2306 <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_H264_ADAPTIVE_RC_DARK</constant> </entry>
2307 <entry>boolean</entry>
2308 </row><row><entry spanname="descr">Adaptive rate control for dark region.
2309 Valid only when H.264 and macroblock level RC is enabled (<constant>V4L2_CID_MPEG_VIDEO_MB_RC_ENABLE</constant>).
2310 Applicable to the H264 encoder.</entry>
2312 <row><entry></entry></row>
2314 <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_H264_ADAPTIVE_RC_SMOOTH</constant> </entry>
2315 <entry>boolean</entry>
2316 </row><row><entry spanname="descr">Adaptive rate control for smooth region.
2317 Valid only when H.264 and macroblock level RC is enabled (<constant>V4L2_CID_MPEG_VIDEO_MB_RC_ENABLE</constant>).
2318 Applicable to the H264 encoder.</entry>
2320 <row><entry></entry></row>
2322 <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_H264_ADAPTIVE_RC_STATIC</constant> </entry>
2323 <entry>boolean</entry>
2324 </row><row><entry spanname="descr">Adaptive rate control for static region.
2325 Valid only when H.264 and macroblock level RC is enabled (<constant>V4L2_CID_MPEG_VIDEO_MB_RC_ENABLE</constant>).
2326 Applicable to the H264 encoder.</entry>
2328 <row><entry></entry></row>
2330 <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_H264_ADAPTIVE_RC_ACTIVITY</constant> </entry>
2331 <entry>boolean</entry>
2332 </row><row><entry spanname="descr">Adaptive rate control for activity region.
2333 Valid only when H.264 and macroblock level RC is enabled (<constant>V4L2_CID_MPEG_VIDEO_MB_RC_ENABLE</constant>).
2334 Applicable to the H264 encoder.</entry>
2336 <row><entry></entry></row>
2337 <row id="v4l2-mpeg-mfc51-video-frame-skip-mode">
2338 <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_FRAME_SKIP_MODE</constant> </entry>
2339 <entry>enum v4l2_mpeg_mfc51_video_frame_skip_mode</entry>
2341 <row><entry spanname="descr">
2342 Indicates in what conditions the encoder should skip frames. If encoding a frame would cause the encoded stream to be larger then
2343 a chosen data limit then the frame will be skipped.
2344 Possible values are:</entry>
2347 <entrytbl spanname="descr" cols="2">
2348 <tbody valign="top">
2350 <entry><constant>V4L2_MPEG_MFC51_FRAME_SKIP_MODE_DISABLED</constant> </entry>
2351 <entry>Frame skip mode is disabled.</entry>
2354 <entry><constant>V4L2_MPEG_MFC51_FRAME_SKIP_MODE_LEVEL_LIMIT</constant> </entry>
2355 <entry>Frame skip mode enabled and buffer limit is set by the chosen level and is defined by the standard.</entry>
2358 <entry><constant>V4L2_MPEG_MFC51_FRAME_SKIP_MODE_BUF_LIMIT</constant> </entry>
2359 <entry>Frame skip mode enabled and buffer limit is set by the VBV (MPEG1/2/4) or CPB (H264) buffer size control.</entry>
2364 <row><entry></entry></row>
2366 <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_RC_FIXED_TARGET_BIT</constant> </entry>
2367 <entry>integer</entry>
2368 </row><row><entry spanname="descr">Enable rate-control with fixed target bit.
2369 If this setting is enabled, then the rate control logic of the encoder will calculate the average bitrate
2370 for a GOP and keep it below or equal the set bitrate target. Otherwise the rate control logic calculates the
2371 overall average bitrate for the stream and keeps it below or equal to the set bitrate. In the first case
2372 the average bitrate for the whole stream will be smaller then the set bitrate. This is caused because the
2373 average is calculated for smaller number of frames, on the other hand enabling this setting will ensure that
2374 the stream will meet tight bandwidth contraints. Applicable to encoders.
2377 <row><entry></entry></row>
2378 <row id="v4l2-mpeg-mfc51-video-force-frame-type">
2379 <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_FORCE_FRAME_TYPE</constant> </entry>
2380 <entry>enum v4l2_mpeg_mfc51_video_force_frame_type</entry>
2382 <row><entry spanname="descr">Force a frame type for the next queued buffer. Applicable to encoders.
2383 Possible values are:</entry>
2386 <entrytbl spanname="descr" cols="2">
2387 <tbody valign="top">
2389 <entry><constant>V4L2_MPEG_MFC51_FORCE_FRAME_TYPE_DISABLED</constant> </entry>
2390 <entry>Forcing a specific frame type disabled.</entry>
2393 <entry><constant>V4L2_MPEG_MFC51_FORCE_FRAME_TYPE_I_FRAME</constant> </entry>
2394 <entry>Force an I-frame.</entry>
2397 <entry><constant>V4L2_MPEG_MFC51_FORCE_FRAME_TYPE_NOT_CODED</constant> </entry>
2398 <entry>Force a non-coded frame.</entry>
2409 <title>CX2341x MPEG Controls</title>
2411 <para>The following MPEG class controls deal with MPEG
2412 encoding settings that are specific to the Conexant CX23415 and
2413 CX23416 MPEG encoding chips.</para>
2415 <table pgwide="1" frame="none" id="cx2341x-control-id">
2416 <title>CX2341x Control IDs</title>
2418 <colspec colname="c1" colwidth="1*" />
2419 <colspec colname="c2" colwidth="6*" />
2420 <colspec colname="c3" colwidth="2*" />
2421 <colspec colname="c4" colwidth="6*" />
2422 <spanspec namest="c1" nameend="c2" spanname="id" />
2423 <spanspec namest="c2" nameend="c4" spanname="descr" />
2426 <entry spanname="id" align="left">ID</entry>
2427 <entry align="left">Type</entry>
2428 </row><row><entry spanname="descr" align="left">Description</entry>
2431 <tbody valign="top">
2432 <row><entry></entry></row>
2433 <row id="v4l2-mpeg-cx2341x-video-spatial-filter-mode">
2434 <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE</constant> </entry>
2435 <entry>enum v4l2_mpeg_cx2341x_video_spatial_filter_mode</entry>
2436 </row><row><entry spanname="descr">Sets the Spatial
2437 Filter mode (default <constant>MANUAL</constant>). Possible values
2441 <entrytbl spanname="descr" cols="2">
2442 <tbody valign="top">
2444 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE_MANUAL</constant> </entry>
2445 <entry>Choose the filter manually</entry>
2448 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE_AUTO</constant> </entry>
2449 <entry>Choose the filter automatically</entry>
2454 <row><entry></entry></row>
2456 <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_SPATIAL_FILTER</constant> </entry>
2457 <entry>integer (0-15)</entry>
2458 </row><row><entry spanname="descr">The setting for the
2459 Spatial Filter. 0 = off, 15 = maximum. (Default is 0.)</entry>
2461 <row><entry></entry></row>
2462 <row id="luma-spatial-filter-type">
2463 <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE</constant> </entry>
2464 <entry>enum v4l2_mpeg_cx2341x_video_luma_spatial_filter_type</entry>
2465 </row><row><entry spanname="descr">Select the algorithm
2466 to use for the Luma Spatial Filter (default
2467 <constant>1D_HOR</constant>). Possible values:</entry>
2470 <entrytbl spanname="descr" cols="2">
2471 <tbody valign="top">
2473 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_OFF</constant> </entry>
2474 <entry>No filter</entry>
2477 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_1D_HOR</constant> </entry>
2478 <entry>One-dimensional horizontal</entry>
2481 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_1D_VERT</constant> </entry>
2482 <entry>One-dimensional vertical</entry>
2485 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_2D_HV_SEPARABLE</constant> </entry>
2486 <entry>Two-dimensional separable</entry>
2489 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_2D_SYM_NON_SEPARABLE</constant> </entry>
2490 <entry>Two-dimensional symmetrical
2491 non-separable</entry>
2496 <row><entry></entry></row>
2497 <row id="chroma-spatial-filter-type">
2498 <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_CHROMA_SPATIAL_FILTER_TYPE</constant> </entry>
2499 <entry>enum v4l2_mpeg_cx2341x_video_chroma_spatial_filter_type</entry>
2500 </row><row><entry spanname="descr">Select the algorithm
2501 for the Chroma Spatial Filter (default <constant>1D_HOR</constant>).
2502 Possible values are:</entry>
2505 <entrytbl spanname="descr" cols="2">
2506 <tbody valign="top">
2508 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_CHROMA_SPATIAL_FILTER_TYPE_OFF</constant> </entry>
2509 <entry>No filter</entry>
2512 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_CHROMA_SPATIAL_FILTER_TYPE_1D_HOR</constant> </entry>
2513 <entry>One-dimensional horizontal</entry>
2518 <row><entry></entry></row>
2519 <row id="v4l2-mpeg-cx2341x-video-temporal-filter-mode">
2520 <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER_MODE</constant> </entry>
2521 <entry>enum v4l2_mpeg_cx2341x_video_temporal_filter_mode</entry>
2522 </row><row><entry spanname="descr">Sets the Temporal
2523 Filter mode (default <constant>MANUAL</constant>). Possible values
2527 <entrytbl spanname="descr" cols="2">
2528 <tbody valign="top">
2530 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER_MODE_MANUAL</constant> </entry>
2531 <entry>Choose the filter manually</entry>
2534 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER_MODE_AUTO</constant> </entry>
2535 <entry>Choose the filter automatically</entry>
2540 <row><entry></entry></row>
2542 <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER</constant> </entry>
2543 <entry>integer (0-31)</entry>
2544 </row><row><entry spanname="descr">The setting for the
2545 Temporal Filter. 0 = off, 31 = maximum. (Default is 8 for full-scale
2546 capturing and 0 for scaled capturing.)</entry>
2548 <row><entry></entry></row>
2549 <row id="v4l2-mpeg-cx2341x-video-median-filter-type">
2550 <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE</constant> </entry>
2551 <entry>enum v4l2_mpeg_cx2341x_video_median_filter_type</entry>
2552 </row><row><entry spanname="descr">Median Filter Type
2553 (default <constant>OFF</constant>). Possible values are:</entry>
2556 <entrytbl spanname="descr" cols="2">
2557 <tbody valign="top">
2559 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_OFF</constant> </entry>
2560 <entry>No filter</entry>
2563 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_HOR</constant> </entry>
2564 <entry>Horizontal filter</entry>
2567 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_VERT</constant> </entry>
2568 <entry>Vertical filter</entry>
2571 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_HOR_VERT</constant> </entry>
2572 <entry>Horizontal and vertical filter</entry>
2575 <entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_DIAG</constant> </entry>
2576 <entry>Diagonal filter</entry>
2581 <row><entry></entry></row>
2583 <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_LUMA_MEDIAN_FILTER_BOTTOM</constant> </entry>
2584 <entry>integer (0-255)</entry>
2585 </row><row><entry spanname="descr">Threshold above which
2586 the luminance median filter is enabled (default 0)</entry>
2588 <row><entry></entry></row>
2590 <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_LUMA_MEDIAN_FILTER_TOP</constant> </entry>
2591 <entry>integer (0-255)</entry>
2592 </row><row><entry spanname="descr">Threshold below which
2593 the luminance median filter is enabled (default 255)</entry>
2595 <row><entry></entry></row>
2597 <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_CHROMA_MEDIAN_FILTER_BOTTOM</constant> </entry>
2598 <entry>integer (0-255)</entry>
2599 </row><row><entry spanname="descr">Threshold above which
2600 the chroma median filter is enabled (default 0)</entry>
2602 <row><entry></entry></row>
2604 <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_CHROMA_MEDIAN_FILTER_TOP</constant> </entry>
2605 <entry>integer (0-255)</entry>
2606 </row><row><entry spanname="descr">Threshold below which
2607 the chroma median filter is enabled (default 255)</entry>
2609 <row><entry></entry></row>
2611 <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_STREAM_INSERT_NAV_PACKETS</constant> </entry>
2612 <entry>boolean</entry>
2614 <row><entry spanname="descr">The CX2341X MPEG encoder
2615 can insert one empty MPEG-2 PES packet into the stream between every
2616 four video frames. The packet size is 2048 bytes, including the
2617 packet_start_code_prefix and stream_id fields. The stream_id is 0xBF
2618 (private stream 2). The payload consists of 0x00 bytes, to be filled
2619 in by the application. 0 = do not insert, 1 = insert packets.</entry>
2627 <section id="camera-controls">
2628 <title>Camera Control Reference</title>
2630 <para>The Camera class includes controls for mechanical (or
2631 equivalent digital) features of a device such as controllable lenses
2634 <table pgwide="1" frame="none" id="camera-control-id">
2635 <title>Camera Control IDs</title>
2637 <colspec colname="c1" colwidth="1*" />
2638 <colspec colname="c2" colwidth="6*" />
2639 <colspec colname="c3" colwidth="2*" />
2640 <colspec colname="c4" colwidth="6*" />
2641 <spanspec namest="c1" nameend="c2" spanname="id" />
2642 <spanspec namest="c2" nameend="c4" spanname="descr" />
2645 <entry spanname="id" align="left">ID</entry>
2646 <entry align="left">Type</entry>
2647 </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
2650 <tbody valign="top">
2651 <row><entry></entry></row>
2653 <entry spanname="id"><constant>V4L2_CID_CAMERA_CLASS</constant> </entry>
2654 <entry>class</entry>
2655 </row><row><entry spanname="descr">The Camera class
2656 descriptor. Calling &VIDIOC-QUERYCTRL; for this control will return a
2657 description of this control class.</entry>
2659 <row><entry></entry></row>
2661 <row id="v4l2-exposure-auto-type">
2662 <entry spanname="id"><constant>V4L2_CID_EXPOSURE_AUTO</constant> </entry>
2663 <entry>enum v4l2_exposure_auto_type</entry>
2664 </row><row><entry spanname="descr">Enables automatic
2665 adjustments of the exposure time and/or iris aperture. The effect of
2666 manual changes of the exposure time or iris aperture while these
2667 features are enabled is undefined, drivers should ignore such
2668 requests. Possible values are:</entry>
2671 <entrytbl spanname="descr" cols="2">
2672 <tbody valign="top">
2674 <entry><constant>V4L2_EXPOSURE_AUTO</constant> </entry>
2675 <entry>Automatic exposure time, automatic iris
2679 <entry><constant>V4L2_EXPOSURE_MANUAL</constant> </entry>
2680 <entry>Manual exposure time, manual iris.</entry>
2683 <entry><constant>V4L2_EXPOSURE_SHUTTER_PRIORITY</constant> </entry>
2684 <entry>Manual exposure time, auto iris.</entry>
2687 <entry><constant>V4L2_EXPOSURE_APERTURE_PRIORITY</constant> </entry>
2688 <entry>Auto exposure time, manual iris.</entry>
2693 <row><entry></entry></row>
2696 <entry spanname="id"><constant>V4L2_CID_EXPOSURE_ABSOLUTE</constant> </entry>
2697 <entry>integer</entry>
2698 </row><row><entry spanname="descr">Determines the exposure
2699 time of the camera sensor. The exposure time is limited by the frame
2700 interval. Drivers should interpret the values as 100 µs units,
2701 where the value 1 stands for 1/10000th of a second, 10000 for 1 second
2702 and 100000 for 10 seconds.</entry>
2704 <row><entry></entry></row>
2707 <entry spanname="id"><constant>V4L2_CID_EXPOSURE_AUTO_PRIORITY</constant> </entry>
2708 <entry>boolean</entry>
2709 </row><row><entry spanname="descr">When
2710 <constant>V4L2_CID_EXPOSURE_AUTO</constant> is set to
2711 <constant>AUTO</constant> or <constant>APERTURE_PRIORITY</constant>,
2712 this control determines if the device may dynamically vary the frame
2713 rate. By default this feature is disabled (0) and the frame rate must
2714 remain constant.</entry>
2716 <row><entry></entry></row>
2719 <entry spanname="id"><constant>V4L2_CID_PAN_RELATIVE</constant> </entry>
2720 <entry>integer</entry>
2721 </row><row><entry spanname="descr">This control turns the
2722 camera horizontally by the specified amount. The unit is undefined. A
2723 positive value moves the camera to the right (clockwise when viewed
2724 from above), a negative value to the left. A value of zero does not
2725 cause motion. This is a write-only control.</entry>
2727 <row><entry></entry></row>
2730 <entry spanname="id"><constant>V4L2_CID_TILT_RELATIVE</constant> </entry>
2731 <entry>integer</entry>
2732 </row><row><entry spanname="descr">This control turns the
2733 camera vertically by the specified amount. The unit is undefined. A
2734 positive value moves the camera up, a negative value down. A value of
2735 zero does not cause motion. This is a write-only control.</entry>
2737 <row><entry></entry></row>
2740 <entry spanname="id"><constant>V4L2_CID_PAN_RESET</constant> </entry>
2741 <entry>button</entry>
2742 </row><row><entry spanname="descr">When this control is set,
2743 the camera moves horizontally to the default position.</entry>
2745 <row><entry></entry></row>
2748 <entry spanname="id"><constant>V4L2_CID_TILT_RESET</constant> </entry>
2749 <entry>button</entry>
2750 </row><row><entry spanname="descr">When this control is set,
2751 the camera moves vertically to the default position.</entry>
2753 <row><entry></entry></row>
2756 <entry spanname="id"><constant>V4L2_CID_PAN_ABSOLUTE</constant> </entry>
2757 <entry>integer</entry>
2758 </row><row><entry spanname="descr">This control
2759 turns the camera horizontally to the specified position. Positive
2760 values move the camera to the right (clockwise when viewed from above),
2761 negative values to the left. Drivers should interpret the values as arc
2762 seconds, with valid values between -180 * 3600 and +180 * 3600
2765 <row><entry></entry></row>
2768 <entry spanname="id"><constant>V4L2_CID_TILT_ABSOLUTE</constant> </entry>
2769 <entry>integer</entry>
2770 </row><row><entry spanname="descr">This control
2771 turns the camera vertically to the specified position. Positive values
2772 move the camera up, negative values down. Drivers should interpret the
2773 values as arc seconds, with valid values between -180 * 3600 and +180
2774 * 3600 inclusive.</entry>
2776 <row><entry></entry></row>
2779 <entry spanname="id"><constant>V4L2_CID_FOCUS_ABSOLUTE</constant> </entry>
2780 <entry>integer</entry>
2781 </row><row><entry spanname="descr">This control sets the
2782 focal point of the camera to the specified position. The unit is
2783 undefined. Positive values set the focus closer to the camera,
2784 negative values towards infinity.</entry>
2786 <row><entry></entry></row>
2789 <entry spanname="id"><constant>V4L2_CID_FOCUS_RELATIVE</constant> </entry>
2790 <entry>integer</entry>
2791 </row><row><entry spanname="descr">This control moves the
2792 focal point of the camera by the specified amount. The unit is
2793 undefined. Positive values move the focus closer to the camera,
2794 negative values towards infinity. This is a write-only control.</entry>
2796 <row><entry></entry></row>
2799 <entry spanname="id"><constant>V4L2_CID_FOCUS_AUTO</constant> </entry>
2800 <entry>boolean</entry>
2801 </row><row><entry spanname="descr">Enables automatic focus
2802 adjustments. The effect of manual focus adjustments while this feature
2803 is enabled is undefined, drivers should ignore such requests.</entry>
2805 <row><entry></entry></row>
2808 <entry spanname="id"><constant>V4L2_CID_ZOOM_ABSOLUTE</constant> </entry>
2809 <entry>integer</entry>
2810 </row><row><entry spanname="descr">Specify the objective lens
2811 focal length as an absolute value. The zoom unit is driver-specific and its
2812 value should be a positive integer.</entry>
2814 <row><entry></entry></row>
2817 <entry spanname="id"><constant>V4L2_CID_ZOOM_RELATIVE</constant> </entry>
2818 <entry>integer</entry>
2819 </row><row><entry spanname="descr">Specify the objective lens
2820 focal length relatively to the current value. Positive values move the zoom
2821 lens group towards the telephoto direction, negative values towards the
2822 wide-angle direction. The zoom unit is driver-specific. This is a write-only control.</entry>
2824 <row><entry></entry></row>
2827 <entry spanname="id"><constant>V4L2_CID_ZOOM_CONTINUOUS</constant> </entry>
2828 <entry>integer</entry>
2829 </row><row><entry spanname="descr">Move the objective lens group
2830 at the specified speed until it reaches physical device limits or until an
2831 explicit request to stop the movement. A positive value moves the zoom lens
2832 group towards the telephoto direction. A value of zero stops the zoom lens
2833 group movement. A negative value moves the zoom lens group towards the
2834 wide-angle direction. The zoom speed unit is driver-specific.</entry>
2836 <row><entry></entry></row>
2839 <entry spanname="id"><constant>V4L2_CID_IRIS_ABSOLUTE</constant> </entry>
2840 <entry>integer</entry>
2841 </row><row><entry spanname="descr">This control sets the
2842 camera's aperture to the specified value. The unit is undefined.
2843 Larger values open the iris wider, smaller values close it.</entry>
2845 <row><entry></entry></row>
2848 <entry spanname="id"><constant>V4L2_CID_IRIS_RELATIVE</constant> </entry>
2849 <entry>integer</entry>
2850 </row><row><entry spanname="descr">This control modifies the
2851 camera's aperture by the specified amount. The unit is undefined.
2852 Positive values open the iris one step further, negative values close
2853 it one step further. This is a write-only control.</entry>
2855 <row><entry></entry></row>
2858 <entry spanname="id"><constant>V4L2_CID_PRIVACY</constant> </entry>
2859 <entry>boolean</entry>
2860 </row><row><entry spanname="descr">Prevent video from being acquired
2861 by the camera. When this control is set to <constant>TRUE</constant> (1), no
2862 image can be captured by the camera. Common means to enforce privacy are
2863 mechanical obturation of the sensor and firmware image processing, but the
2864 device is not restricted to these methods. Devices that implement the privacy
2865 control must support read access and may support write access.</entry>
2869 <entry spanname="id"><constant>V4L2_CID_BAND_STOP_FILTER</constant> </entry>
2870 <entry>integer</entry>
2871 </row><row><entry spanname="descr">Switch the band-stop filter of a
2872 camera sensor on or off, or specify its strength. Such band-stop filters can
2873 be used, for example, to filter out the fluorescent light component.</entry>
2875 <row><entry></entry></row>
2881 <section id="fm-tx-controls">
2882 <title>FM Transmitter Control Reference</title>
2884 <para>The FM Transmitter (FM_TX) class includes controls for common features of
2885 FM transmissions capable devices. Currently this class includes parameters for audio
2886 compression, pilot tone generation, audio deviation limiter, RDS transmission and
2887 tuning power features.</para>
2889 <table pgwide="1" frame="none" id="fm-tx-control-id">
2890 <title>FM_TX Control IDs</title>
2893 <colspec colname="c1" colwidth="1*" />
2894 <colspec colname="c2" colwidth="6*" />
2895 <colspec colname="c3" colwidth="2*" />
2896 <colspec colname="c4" colwidth="6*" />
2897 <spanspec namest="c1" nameend="c2" spanname="id" />
2898 <spanspec namest="c2" nameend="c4" spanname="descr" />
2901 <entry spanname="id" align="left">ID</entry>
2902 <entry align="left">Type</entry>
2903 </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
2906 <tbody valign="top">
2907 <row><entry></entry></row>
2909 <entry spanname="id"><constant>V4L2_CID_FM_TX_CLASS</constant> </entry>
2910 <entry>class</entry>
2911 </row><row><entry spanname="descr">The FM_TX class
2912 descriptor. Calling &VIDIOC-QUERYCTRL; for this control will return a
2913 description of this control class.</entry>
2916 <entry spanname="id"><constant>V4L2_CID_RDS_TX_DEVIATION</constant> </entry>
2917 <entry>integer</entry>
2919 <row><entry spanname="descr">Configures RDS signal frequency deviation level in Hz.
2920 The range and step are driver-specific.</entry>
2923 <entry spanname="id"><constant>V4L2_CID_RDS_TX_PI</constant> </entry>
2924 <entry>integer</entry>
2926 <row><entry spanname="descr">Sets the RDS Programme Identification field
2927 for transmission.</entry>
2930 <entry spanname="id"><constant>V4L2_CID_RDS_TX_PTY</constant> </entry>
2931 <entry>integer</entry>
2933 <row><entry spanname="descr">Sets the RDS Programme Type field for transmission.
2934 This encodes up to 31 pre-defined programme types.</entry>
2937 <entry spanname="id"><constant>V4L2_CID_RDS_TX_PS_NAME</constant> </entry>
2938 <entry>string</entry>
2940 <row><entry spanname="descr">Sets the Programme Service name (PS_NAME) for transmission.
2941 It is intended for static display on a receiver. It is the primary aid to listeners in programme service
2942 identification and selection. In Annex E of <xref linkend="en50067" />, the RDS specification,
2943 there is a full description of the correct character encoding for Programme Service name strings.
2944 Also from RDS specification, PS is usually a single eight character text. However, it is also possible
2945 to find receivers which can scroll strings sized as 8 x N characters. So, this control must be configured
2946 with steps of 8 characters. The result is it must always contain a string with size multiple of 8.</entry>
2949 <entry spanname="id"><constant>V4L2_CID_RDS_TX_RADIO_TEXT</constant> </entry>
2950 <entry>string</entry>
2952 <row><entry spanname="descr">Sets the Radio Text info for transmission. It is a textual description of
2953 what is being broadcasted. RDS Radio Text can be applied when broadcaster wishes to transmit longer PS names,
2954 programme-related information or any other text. In these cases, RadioText should be used in addition to
2955 <constant>V4L2_CID_RDS_TX_PS_NAME</constant>. The encoding for Radio Text strings is also fully described
2956 in Annex E of <xref linkend="en50067" />. The length of Radio Text strings depends on which RDS Block is being
2957 used to transmit it, either 32 (2A block) or 64 (2B block). However, it is also possible
2958 to find receivers which can scroll strings sized as 32 x N or 64 x N characters. So, this control must be configured
2959 with steps of 32 or 64 characters. The result is it must always contain a string with size multiple of 32 or 64. </entry>
2962 <entry spanname="id"><constant>V4L2_CID_AUDIO_LIMITER_ENABLED</constant> </entry>
2963 <entry>boolean</entry>
2965 <row><entry spanname="descr">Enables or disables the audio deviation limiter feature.
2966 The limiter is useful when trying to maximize the audio volume, minimize receiver-generated
2967 distortion and prevent overmodulation.
2971 <entry spanname="id"><constant>V4L2_CID_AUDIO_LIMITER_RELEASE_TIME</constant> </entry>
2972 <entry>integer</entry>
2974 <row><entry spanname="descr">Sets the audio deviation limiter feature release time.
2975 Unit is in useconds. Step and range are driver-specific.</entry>
2978 <entry spanname="id"><constant>V4L2_CID_AUDIO_LIMITER_DEVIATION</constant> </entry>
2979 <entry>integer</entry>
2981 <row><entry spanname="descr">Configures audio frequency deviation level in Hz.
2982 The range and step are driver-specific.</entry>
2985 <entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_ENABLED</constant> </entry>
2986 <entry>boolean</entry>
2988 <row><entry spanname="descr">Enables or disables the audio compression feature.
2989 This feature amplifies signals below the threshold by a fixed gain and compresses audio
2990 signals above the threshold by the ratio of Threshold/(Gain + Threshold).</entry>
2993 <entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_GAIN</constant> </entry>
2994 <entry>integer</entry>
2996 <row><entry spanname="descr">Sets the gain for audio compression feature. It is
2997 a dB value. The range and step are driver-specific.</entry>
3000 <entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_THRESHOLD</constant> </entry>
3001 <entry>integer</entry>
3003 <row><entry spanname="descr">Sets the threshold level for audio compression freature.
3004 It is a dB value. The range and step are driver-specific.</entry>
3007 <entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_ATTACK_TIME</constant> </entry>
3008 <entry>integer</entry>
3010 <row><entry spanname="descr">Sets the attack time for audio compression feature.
3011 It is a useconds value. The range and step are driver-specific.</entry>
3014 <entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_RELEASE_TIME</constant> </entry>
3015 <entry>integer</entry>
3017 <row><entry spanname="descr">Sets the release time for audio compression feature.
3018 It is a useconds value. The range and step are driver-specific.</entry>
3021 <entry spanname="id"><constant>V4L2_CID_PILOT_TONE_ENABLED</constant> </entry>
3022 <entry>boolean</entry>
3024 <row><entry spanname="descr">Enables or disables the pilot tone generation feature.</entry>
3027 <entry spanname="id"><constant>V4L2_CID_PILOT_TONE_DEVIATION</constant> </entry>
3028 <entry>integer</entry>
3030 <row><entry spanname="descr">Configures pilot tone frequency deviation level. Unit is
3031 in Hz. The range and step are driver-specific.</entry>
3034 <entry spanname="id"><constant>V4L2_CID_PILOT_TONE_FREQUENCY</constant> </entry>
3035 <entry>integer</entry>
3037 <row><entry spanname="descr">Configures pilot tone frequency value. Unit is
3038 in Hz. The range and step are driver-specific.</entry>
3041 <entry spanname="id"><constant>V4L2_CID_TUNE_PREEMPHASIS</constant> </entry>
3042 <entry>integer</entry>
3044 <row id="v4l2-preemphasis"><entry spanname="descr">Configures the pre-emphasis value for broadcasting.
3045 A pre-emphasis filter is applied to the broadcast to accentuate the high audio frequencies.
3046 Depending on the region, a time constant of either 50 or 75 useconds is used. The enum v4l2_preemphasis
3047 defines possible values for pre-emphasis. Here they are:</entry>
3049 <entrytbl spanname="descr" cols="2">
3050 <tbody valign="top">
3052 <entry><constant>V4L2_PREEMPHASIS_DISABLED</constant> </entry>
3053 <entry>No pre-emphasis is applied.</entry>
3056 <entry><constant>V4L2_PREEMPHASIS_50_uS</constant> </entry>
3057 <entry>A pre-emphasis of 50 uS is used.</entry>
3060 <entry><constant>V4L2_PREEMPHASIS_75_uS</constant> </entry>
3061 <entry>A pre-emphasis of 75 uS is used.</entry>
3068 <entry spanname="id"><constant>V4L2_CID_TUNE_POWER_LEVEL</constant> </entry>
3069 <entry>integer</entry>
3071 <row><entry spanname="descr">Sets the output power level for signal transmission.
3072 Unit is in dBuV. Range and step are driver-specific.</entry>
3075 <entry spanname="id"><constant>V4L2_CID_TUNE_ANTENNA_CAPACITOR</constant> </entry>
3076 <entry>integer</entry>
3078 <row><entry spanname="descr">This selects the value of antenna tuning capacitor
3079 manually or automatically if set to zero. Unit, range and step are driver-specific.</entry>
3081 <row><entry></entry></row>
3086 <para>For more details about RDS specification, refer to
3087 <xref linkend="en50067" /> document, from CENELEC.</para>
3090 <section id="flash-controls">
3091 <title>Flash Control Reference</title>
3094 <title>Experimental</title>
3096 <para>This is an <link linkend="experimental">experimental</link>
3097 interface and may change in the future.</para>
3101 The V4L2 flash controls are intended to provide generic access
3102 to flash controller devices. Flash controller devices are
3103 typically used in digital cameras.
3107 The interface can support both LED and xenon flash devices. As
3108 of writing this, there is no xenon flash driver using this
3112 <section id="flash-controls-use-cases">
3113 <title>Supported use cases</title>
3116 <title>Unsynchronised LED flash (software strobe)</title>
3119 Unsynchronised LED flash is controlled directly by the
3120 host as the sensor. The flash must be enabled by the host
3121 before the exposure of the image starts and disabled once
3122 it ends. The host is fully responsible for the timing of
3126 <para>Example of such device: Nokia N900.</para>
3130 <title>Synchronised LED flash (hardware strobe)</title>
3133 The synchronised LED flash is pre-programmed by the host
3134 (power and timeout) but controlled by the sensor through a
3135 strobe signal from the sensor to the flash.
3139 The sensor controls the flash duration and timing. This
3140 information typically must be made available to the
3147 <title>LED flash as torch</title>
3150 LED flash may be used as torch in conjunction with another
3151 use case involving camera or individually.
3158 <table pgwide="1" frame="none" id="flash-control-id">
3159 <title>Flash Control IDs</title>
3162 <colspec colname="c1" colwidth="1*" />
3163 <colspec colname="c2" colwidth="6*" />
3164 <colspec colname="c3" colwidth="2*" />
3165 <colspec colname="c4" colwidth="6*" />
3166 <spanspec namest="c1" nameend="c2" spanname="id" />
3167 <spanspec namest="c2" nameend="c4" spanname="descr" />
3170 <entry spanname="id" align="left">ID</entry>
3171 <entry align="left">Type</entry>
3172 </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
3175 <tbody valign="top">
3176 <row><entry></entry></row>
3178 <entry spanname="id"><constant>V4L2_CID_FLASH_CLASS</constant></entry>
3179 <entry>class</entry>
3182 <entry spanname="descr">The FLASH class descriptor.</entry>
3185 <entry spanname="id"><constant>V4L2_CID_FLASH_LED_MODE</constant></entry>
3188 <row id="v4l2-flash-led-mode">
3189 <entry spanname="descr">Defines the mode of the flash LED,
3190 the high-power white LED attached to the flash controller.
3191 Setting this control may not be possible in presence of
3192 some faults. See V4L2_CID_FLASH_FAULT.</entry>
3195 <entrytbl spanname="descr" cols="2">
3196 <tbody valign="top">
3198 <entry><constant>V4L2_FLASH_LED_MODE_NONE</constant></entry>
3202 <entry><constant>V4L2_FLASH_LED_MODE_FLASH</constant></entry>
3203 <entry>Flash mode.</entry>
3206 <entry><constant>V4L2_FLASH_LED_MODE_TORCH</constant></entry>
3207 <entry>Torch mode. See V4L2_CID_FLASH_TORCH_INTENSITY.</entry>
3213 <entry spanname="id"><constant>V4L2_CID_FLASH_STROBE_SOURCE</constant></entry>
3216 <row id="v4l2-flash-strobe-source"><entry
3217 spanname="descr">Defines the source of the flash LED
3221 <entrytbl spanname="descr" cols="2">
3222 <tbody valign="top">
3224 <entry><constant>V4L2_FLASH_STROBE_SOURCE_SOFTWARE</constant></entry>
3225 <entry>The flash strobe is triggered by using
3226 the V4L2_CID_FLASH_STROBE control.</entry>
3229 <entry><constant>V4L2_FLASH_STROBE_SOURCE_EXTERNAL</constant></entry>
3230 <entry>The flash strobe is triggered by an
3231 external source. Typically this is a sensor,
3232 which makes it possible to synchronises the
3233 flash strobe start to exposure start.</entry>
3239 <entry spanname="id"><constant>V4L2_CID_FLASH_STROBE</constant></entry>
3240 <entry>button</entry>
3243 <entry spanname="descr">Strobe flash. Valid when
3244 V4L2_CID_FLASH_LED_MODE is set to
3245 V4L2_FLASH_LED_MODE_FLASH and V4L2_CID_FLASH_STROBE_SOURCE
3246 is set to V4L2_FLASH_STROBE_SOURCE_SOFTWARE. Setting this
3247 control may not be possible in presence of some faults.
3248 See V4L2_CID_FLASH_FAULT.</entry>
3251 <entry spanname="id"><constant>V4L2_CID_FLASH_STROBE_STOP</constant></entry>
3252 <entry>button</entry>
3254 <row><entry spanname="descr">Stop flash strobe immediately.</entry>
3257 <entry spanname="id"><constant>V4L2_CID_FLASH_STROBE_STATUS</constant></entry>
3258 <entry>boolean</entry>
3261 <entry spanname="descr">Strobe status: whether the flash
3262 is strobing at the moment or not. This is a read-only
3266 <entry spanname="id"><constant>V4L2_CID_FLASH_TIMEOUT</constant></entry>
3267 <entry>integer</entry>
3270 <entry spanname="descr">Hardware timeout for flash. The
3271 flash strobe is stopped after this period of time has
3272 passed from the start of the strobe.</entry>
3275 <entry spanname="id"><constant>V4L2_CID_FLASH_INTENSITY</constant></entry>
3276 <entry>integer</entry>
3279 <entry spanname="descr">Intensity of the flash strobe when
3280 the flash LED is in flash mode
3281 (V4L2_FLASH_LED_MODE_FLASH). The unit should be milliamps
3282 (mA) if possible.</entry>
3285 <entry spanname="id"><constant>V4L2_CID_FLASH_TORCH_INTENSITY</constant></entry>
3286 <entry>integer</entry>
3289 <entry spanname="descr">Intensity of the flash LED in
3290 torch mode (V4L2_FLASH_LED_MODE_TORCH). The unit should be
3291 milliamps (mA) if possible. Setting this control may not
3292 be possible in presence of some faults. See
3293 V4L2_CID_FLASH_FAULT.</entry>
3296 <entry spanname="id"><constant>V4L2_CID_FLASH_INDICATOR_INTENSITY</constant></entry>
3297 <entry>integer</entry>
3300 <entry spanname="descr">Intensity of the indicator LED.
3301 The indicator LED may be fully independent of the flash
3302 LED. The unit should be microamps (uA) if possible.</entry>
3305 <entry spanname="id"><constant>V4L2_CID_FLASH_FAULT</constant></entry>
3306 <entry>bitmask</entry>
3309 <entry spanname="descr">Faults related to the flash. The
3310 faults tell about specific problems in the flash chip
3311 itself or the LEDs attached to it. Faults may prevent
3312 further use of some of the flash controls. In particular,
3313 V4L2_CID_FLASH_LED_MODE is set to V4L2_FLASH_LED_MODE_NONE
3314 if the fault affects the flash LED. Exactly which faults
3315 have such an effect is chip dependent. Reading the faults
3316 resets the control and returns the chip to a usable state
3317 if possible.</entry>
3320 <entrytbl spanname="descr" cols="2">
3321 <tbody valign="top">
3323 <entry><constant>V4L2_FLASH_FAULT_OVER_VOLTAGE</constant></entry>
3324 <entry>Flash controller voltage to the flash LED
3325 has exceeded the limit specific to the flash
3329 <entry><constant>V4L2_FLASH_FAULT_TIMEOUT</constant></entry>
3330 <entry>The flash strobe was still on when
3331 the timeout set by the user ---
3332 V4L2_CID_FLASH_TIMEOUT control --- has expired.
3333 Not all flash controllers may set this in all
3334 such conditions.</entry>
3337 <entry><constant>V4L2_FLASH_FAULT_OVER_TEMPERATURE</constant></entry>
3338 <entry>The flash controller has overheated.</entry>
3341 <entry><constant>V4L2_FLASH_FAULT_SHORT_CIRCUIT</constant></entry>
3342 <entry>The short circuit protection of the flash
3343 controller has been triggered.</entry>
3346 <entry><constant>V4L2_FLASH_FAULT_OVER_CURRENT</constant></entry>
3347 <entry>Current in the LED power supply has exceeded the limit
3348 specific to the flash controller.</entry>
3351 <entry><constant>V4L2_FLASH_FAULT_INDICATOR</constant></entry>
3352 <entry>The flash controller has detected a short or open
3353 circuit condition on the indicator LED.</entry>
3359 <entry spanname="id"><constant>V4L2_CID_FLASH_CHARGE</constant></entry>
3360 <entry>boolean</entry>
3362 <row><entry spanname="descr">Enable or disable charging of the xenon
3363 flash capacitor.</entry>
3366 <entry spanname="id"><constant>V4L2_CID_FLASH_READY</constant></entry>
3367 <entry>boolean</entry>
3370 <entry spanname="descr">Is the flash ready to strobe?
3371 Xenon flashes require their capacitors charged before
3372 strobing. LED flashes often require a cooldown period
3373 after strobe during which another strobe will not be
3374 possible. This is a read-only control.</entry>
3376 <row><entry></entry></row>