Path: blob/master/Documentation/DocBook/v4l/controls.xml
10821 views
<section id="control">1<title>User Controls</title>23<para>Devices typically have a number of user-settable controls4such as brightness, saturation and so on, which would be presented to5the user on a graphical user interface. But, different devices6will have different controls available, and furthermore, the range of7possible values, and the default value will vary from device to8device. The control ioctls provide the information and a mechanism to9create a nice user interface for these controls that will work10correctly with any device.</para>1112<para>All controls are accessed using an ID value. V4L2 defines13several IDs for specific purposes. Drivers can also implement their14own custom controls using <constant>V4L2_CID_PRIVATE_BASE</constant>15and higher values. The pre-defined control IDs have the prefix16<constant>V4L2_CID_</constant>, and are listed in <xref17linkend="control-id" />. The ID is used when querying the attributes of18a control, and when getting or setting the current value.</para>1920<para>Generally applications should present controls to the user21without assumptions about their purpose. Each control comes with a22name string the user is supposed to understand. When the purpose is23non-intuitive the driver writer should provide a user manual, a user24interface plug-in or a driver specific panel application. Predefined25IDs were introduced to change a few controls programmatically, for26example to mute a device during a channel switch.</para>2728<para>Drivers may enumerate different controls after switching29the current video input or output, tuner or modulator, or audio input30or output. Different in the sense of other bounds, another default and31current value, step size or other menu items. A control with a certain32<emphasis>custom</emphasis> ID can also change name and33type.<footnote>34<para>It will be more convenient for applications if drivers35make use of the <constant>V4L2_CTRL_FLAG_DISABLED</constant> flag, but36that was never required.</para>37</footnote> Control values are stored globally, they do not38change when switching except to stay within the reported bounds. They39also do not change ⪚ when the device is opened or closed, when the40tuner radio frequency is changed or generally never without41application request. Since V4L2 specifies no event mechanism, panel42applications intended to cooperate with other panel applications (be43they built into a larger application, as a TV viewer) may need to44regularly poll control values to update their user45interface.<footnote>46<para>Applications could call an ioctl to request events.47After another process called &VIDIOC-S-CTRL; or another ioctl changing48shared properties the &func-select; function would indicate49readability until any ioctl (querying the properties) is50called.</para>51</footnote></para>5253<table pgwide="1" frame="none" id="control-id">54<title>Control IDs</title>55<tgroup cols="3">56&cs-def;57<thead>58<row>59<entry>ID</entry>60<entry>Type</entry>61<entry>Description</entry>62</row>63</thead>64<tbody valign="top">65<row>66<entry><constant>V4L2_CID_BASE</constant></entry>67<entry></entry>68<entry>First predefined ID, equal to69<constant>V4L2_CID_BRIGHTNESS</constant>.</entry>70</row>71<row>72<entry><constant>V4L2_CID_USER_BASE</constant></entry>73<entry></entry>74<entry>Synonym of <constant>V4L2_CID_BASE</constant>.</entry>75</row>76<row>77<entry><constant>V4L2_CID_BRIGHTNESS</constant></entry>78<entry>integer</entry>79<entry>Picture brightness, or more precisely, the black80level.</entry>81</row>82<row>83<entry><constant>V4L2_CID_CONTRAST</constant></entry>84<entry>integer</entry>85<entry>Picture contrast or luma gain.</entry>86</row>87<row>88<entry><constant>V4L2_CID_SATURATION</constant></entry>89<entry>integer</entry>90<entry>Picture color saturation or chroma gain.</entry>91</row>92<row>93<entry><constant>V4L2_CID_HUE</constant></entry>94<entry>integer</entry>95<entry>Hue or color balance.</entry>96</row>97<row>98<entry><constant>V4L2_CID_AUDIO_VOLUME</constant></entry>99<entry>integer</entry>100<entry>Overall audio volume. Note some drivers also101provide an OSS or ALSA mixer interface.</entry>102</row>103<row>104<entry><constant>V4L2_CID_AUDIO_BALANCE</constant></entry>105<entry>integer</entry>106<entry>Audio stereo balance. Minimum corresponds to all107the way left, maximum to right.</entry>108</row>109<row>110<entry><constant>V4L2_CID_AUDIO_BASS</constant></entry>111<entry>integer</entry>112<entry>Audio bass adjustment.</entry>113</row>114<row>115<entry><constant>V4L2_CID_AUDIO_TREBLE</constant></entry>116<entry>integer</entry>117<entry>Audio treble adjustment.</entry>118</row>119<row>120<entry><constant>V4L2_CID_AUDIO_MUTE</constant></entry>121<entry>boolean</entry>122<entry>Mute audio, &ie; set the volume to zero, however123without affecting <constant>V4L2_CID_AUDIO_VOLUME</constant>. Like124ALSA drivers, V4L2 drivers must mute at load time to avoid excessive125noise. Actually the entire device should be reset to a low power126consumption state.</entry>127</row>128<row>129<entry><constant>V4L2_CID_AUDIO_LOUDNESS</constant></entry>130<entry>boolean</entry>131<entry>Loudness mode (bass boost).</entry>132</row>133<row>134<entry><constant>V4L2_CID_BLACK_LEVEL</constant></entry>135<entry>integer</entry>136<entry>Another name for brightness (not a synonym of137<constant>V4L2_CID_BRIGHTNESS</constant>). This control is deprecated138and should not be used in new drivers and applications.</entry>139</row>140<row>141<entry><constant>V4L2_CID_AUTO_WHITE_BALANCE</constant></entry>142<entry>boolean</entry>143<entry>Automatic white balance (cameras).</entry>144</row>145<row>146<entry><constant>V4L2_CID_DO_WHITE_BALANCE</constant></entry>147<entry>button</entry>148<entry>This is an action control. When set (the value is149ignored), the device will do a white balance and then hold the current150setting. Contrast this with the boolean151<constant>V4L2_CID_AUTO_WHITE_BALANCE</constant>, which, when152activated, keeps adjusting the white balance.</entry>153</row>154<row>155<entry><constant>V4L2_CID_RED_BALANCE</constant></entry>156<entry>integer</entry>157<entry>Red chroma balance.</entry>158</row>159<row>160<entry><constant>V4L2_CID_BLUE_BALANCE</constant></entry>161<entry>integer</entry>162<entry>Blue chroma balance.</entry>163</row>164<row>165<entry><constant>V4L2_CID_GAMMA</constant></entry>166<entry>integer</entry>167<entry>Gamma adjust.</entry>168</row>169<row>170<entry><constant>V4L2_CID_WHITENESS</constant></entry>171<entry>integer</entry>172<entry>Whiteness for grey-scale devices. This is a synonym173for <constant>V4L2_CID_GAMMA</constant>. This control is deprecated174and should not be used in new drivers and applications.</entry>175</row>176<row>177<entry><constant>V4L2_CID_EXPOSURE</constant></entry>178<entry>integer</entry>179<entry>Exposure (cameras). [Unit?]</entry>180</row>181<row>182<entry><constant>V4L2_CID_AUTOGAIN</constant></entry>183<entry>boolean</entry>184<entry>Automatic gain/exposure control.</entry>185</row>186<row>187<entry><constant>V4L2_CID_GAIN</constant></entry>188<entry>integer</entry>189<entry>Gain control.</entry>190</row>191<row>192<entry><constant>V4L2_CID_HFLIP</constant></entry>193<entry>boolean</entry>194<entry>Mirror the picture horizontally.</entry>195</row>196<row>197<entry><constant>V4L2_CID_VFLIP</constant></entry>198<entry>boolean</entry>199<entry>Mirror the picture vertically.</entry>200</row>201<row>202<entry><constant>V4L2_CID_HCENTER_DEPRECATED</constant> (formerly <constant>V4L2_CID_HCENTER</constant>)</entry>203<entry>integer</entry>204<entry>Horizontal image centering. This control is205deprecated. New drivers and applications should use the <link206linkend="camera-controls">Camera class controls</link>207<constant>V4L2_CID_PAN_ABSOLUTE</constant>,208<constant>V4L2_CID_PAN_RELATIVE</constant> and209<constant>V4L2_CID_PAN_RESET</constant> instead.</entry>210</row>211<row>212<entry><constant>V4L2_CID_VCENTER_DEPRECATED</constant>213(formerly <constant>V4L2_CID_VCENTER</constant>)</entry>214<entry>integer</entry>215<entry>Vertical image centering. Centering is intended to216<emphasis>physically</emphasis> adjust cameras. For image cropping see217<xref linkend="crop" />, for clipping <xref linkend="overlay" />. This218control is deprecated. New drivers and applications should use the219<link linkend="camera-controls">Camera class controls</link>220<constant>V4L2_CID_TILT_ABSOLUTE</constant>,221<constant>V4L2_CID_TILT_RELATIVE</constant> and222<constant>V4L2_CID_TILT_RESET</constant> instead.</entry>223</row>224<row id="v4l2-power-line-frequency">225<entry><constant>V4L2_CID_POWER_LINE_FREQUENCY</constant></entry>226<entry>enum</entry>227<entry>Enables a power line frequency filter to avoid228flicker. Possible values for <constant>enum v4l2_power_line_frequency</constant> are:229<constant>V4L2_CID_POWER_LINE_FREQUENCY_DISABLED</constant> (0),230<constant>V4L2_CID_POWER_LINE_FREQUENCY_50HZ</constant> (1) and231<constant>V4L2_CID_POWER_LINE_FREQUENCY_60HZ</constant> (2).</entry>232</row>233<row>234<entry><constant>V4L2_CID_HUE_AUTO</constant></entry>235<entry>boolean</entry>236<entry>Enables automatic hue control by the device. The237effect of setting <constant>V4L2_CID_HUE</constant> while automatic238hue control is enabled is undefined, drivers should ignore such239request.</entry>240</row>241<row>242<entry><constant>V4L2_CID_WHITE_BALANCE_TEMPERATURE</constant></entry>243<entry>integer</entry>244<entry>This control specifies the white balance settings245as a color temperature in Kelvin. A driver should have a minimum of2462800 (incandescent) to 6500 (daylight). For more information about247color temperature see <ulink248url="http://en.wikipedia.org/wiki/Color_temperature">Wikipedia</ulink>.</entry>249</row>250<row>251<entry><constant>V4L2_CID_SHARPNESS</constant></entry>252<entry>integer</entry>253<entry>Adjusts the sharpness filters in a camera. The254minimum value disables the filters, higher values give a sharper255picture.</entry>256</row>257<row>258<entry><constant>V4L2_CID_BACKLIGHT_COMPENSATION</constant></entry>259<entry>integer</entry>260<entry>Adjusts the backlight compensation in a camera. The261minimum value disables backlight compensation.</entry>262</row>263<row>264<entry><constant>V4L2_CID_CHROMA_AGC</constant></entry>265<entry>boolean</entry>266<entry>Chroma automatic gain control.</entry>267</row>268<row>269<entry><constant>V4L2_CID_CHROMA_GAIN</constant></entry>270<entry>integer</entry>271<entry>Adjusts the Chroma gain control (for use when chroma AGC272is disabled).</entry>273</row>274<row>275<entry><constant>V4L2_CID_COLOR_KILLER</constant></entry>276<entry>boolean</entry>277<entry>Enable the color killer (&ie; force a black & white image in case of a weak video signal).</entry>278</row>279<row id="v4l2-colorfx">280<entry><constant>V4L2_CID_COLORFX</constant></entry>281<entry>enum</entry>282<entry>Selects a color effect. Possible values for283<constant>enum v4l2_colorfx</constant> are:284<constant>V4L2_COLORFX_NONE</constant> (0),285<constant>V4L2_COLORFX_BW</constant> (1),286<constant>V4L2_COLORFX_SEPIA</constant> (2),287<constant>V4L2_COLORFX_NEGATIVE</constant> (3),288<constant>V4L2_COLORFX_EMBOSS</constant> (4),289<constant>V4L2_COLORFX_SKETCH</constant> (5),290<constant>V4L2_COLORFX_SKY_BLUE</constant> (6),291<constant>V4L2_COLORFX_GRASS_GREEN</constant> (7),292<constant>V4L2_COLORFX_SKIN_WHITEN</constant> (8) and293<constant>V4L2_COLORFX_VIVID</constant> (9).</entry>294</row>295<row>296<entry><constant>V4L2_CID_ROTATE</constant></entry>297<entry>integer</entry>298<entry>Rotates the image by specified angle. Common angles are 90,299270 and 180. Rotating the image to 90 and 270 will reverse the height300and width of the display window. It is necessary to set the new height and301width of the picture using the &VIDIOC-S-FMT; ioctl according to302the rotation angle selected.</entry>303</row>304<row>305<entry><constant>V4L2_CID_BG_COLOR</constant></entry>306<entry>integer</entry>307<entry>Sets the background color on the current output device.308Background color needs to be specified in the RGB24 format. The309supplied 32 bit value is interpreted as bits 0-7 Red color information,310bits 8-15 Green color information, bits 16-23 Blue color311information and bits 24-31 must be zero.</entry>312</row>313<row>314<entry><constant>V4L2_CID_ILLUMINATORS_1</constant>315<constant>V4L2_CID_ILLUMINATORS_2</constant></entry>316<entry>boolean</entry>317<entry>Switch on or off the illuminator 1 or 2 of the device318(usually a microscope).</entry>319</row>320<row>321<entry><constant>V4L2_CID_LASTP1</constant></entry>322<entry></entry>323<entry>End of the predefined control IDs (currently324<constant>V4L2_CID_ILLUMINATORS_2</constant> + 1).</entry>325</row>326<row>327<entry><constant>V4L2_CID_PRIVATE_BASE</constant></entry>328<entry></entry>329<entry>ID of the first custom (driver specific) control.330Applications depending on particular custom controls should check the331driver name and version, see <xref linkend="querycap" />.</entry>332</row>333</tbody>334</tgroup>335</table>336337<para>Applications can enumerate the available controls with the338&VIDIOC-QUERYCTRL; and &VIDIOC-QUERYMENU; ioctls, get and set a339control value with the &VIDIOC-G-CTRL; and &VIDIOC-S-CTRL; ioctls.340Drivers must implement <constant>VIDIOC_QUERYCTRL</constant>,341<constant>VIDIOC_G_CTRL</constant> and342<constant>VIDIOC_S_CTRL</constant> when the device has one or more343controls, <constant>VIDIOC_QUERYMENU</constant> when it has one or344more menu type controls.</para>345346<example>347<title>Enumerating all controls</title>348349<programlisting>350&v4l2-queryctrl; queryctrl;351&v4l2-querymenu; querymenu;352353static void354enumerate_menu (void)355{356printf (" Menu items:\n");357358memset (&querymenu, 0, sizeof (querymenu));359querymenu.id = queryctrl.id;360361for (querymenu.index = queryctrl.minimum;362querymenu.index <= queryctrl.maximum;363querymenu.index++) {364if (0 == ioctl (fd, &VIDIOC-QUERYMENU;, &querymenu)) {365printf (" %s\n", querymenu.name);366}367}368}369370memset (&queryctrl, 0, sizeof (queryctrl));371372for (queryctrl.id = V4L2_CID_BASE;373queryctrl.id < V4L2_CID_LASTP1;374queryctrl.id++) {375if (0 == ioctl (fd, &VIDIOC-QUERYCTRL;, &queryctrl)) {376if (queryctrl.flags & V4L2_CTRL_FLAG_DISABLED)377continue;378379printf ("Control %s\n", queryctrl.name);380381if (queryctrl.type == V4L2_CTRL_TYPE_MENU)382enumerate_menu ();383} else {384if (errno == EINVAL)385continue;386387perror ("VIDIOC_QUERYCTRL");388exit (EXIT_FAILURE);389}390}391392for (queryctrl.id = V4L2_CID_PRIVATE_BASE;;393queryctrl.id++) {394if (0 == ioctl (fd, &VIDIOC-QUERYCTRL;, &queryctrl)) {395if (queryctrl.flags & V4L2_CTRL_FLAG_DISABLED)396continue;397398printf ("Control %s\n", queryctrl.name);399400if (queryctrl.type == V4L2_CTRL_TYPE_MENU)401enumerate_menu ();402} else {403if (errno == EINVAL)404break;405406perror ("VIDIOC_QUERYCTRL");407exit (EXIT_FAILURE);408}409}410</programlisting>411</example>412413<example>414<title>Changing controls</title>415416<programlisting>417&v4l2-queryctrl; queryctrl;418&v4l2-control; control;419420memset (&queryctrl, 0, sizeof (queryctrl));421queryctrl.id = V4L2_CID_BRIGHTNESS;422423if (-1 == ioctl (fd, &VIDIOC-QUERYCTRL;, &queryctrl)) {424if (errno != EINVAL) {425perror ("VIDIOC_QUERYCTRL");426exit (EXIT_FAILURE);427} else {428printf ("V4L2_CID_BRIGHTNESS is not supported\n");429}430} else if (queryctrl.flags & V4L2_CTRL_FLAG_DISABLED) {431printf ("V4L2_CID_BRIGHTNESS is not supported\n");432} else {433memset (&control, 0, sizeof (control));434control.id = V4L2_CID_BRIGHTNESS;435control.value = queryctrl.default_value;436437if (-1 == ioctl (fd, &VIDIOC-S-CTRL;, &control)) {438perror ("VIDIOC_S_CTRL");439exit (EXIT_FAILURE);440}441}442443memset (&control, 0, sizeof (control));444control.id = V4L2_CID_CONTRAST;445446if (0 == ioctl (fd, &VIDIOC-G-CTRL;, &control)) {447control.value += 1;448449/* The driver may clamp the value or return ERANGE, ignored here */450451if (-1 == ioctl (fd, &VIDIOC-S-CTRL;, &control)452&& errno != ERANGE) {453perror ("VIDIOC_S_CTRL");454exit (EXIT_FAILURE);455}456/* Ignore if V4L2_CID_CONTRAST is unsupported */457} else if (errno != EINVAL) {458perror ("VIDIOC_G_CTRL");459exit (EXIT_FAILURE);460}461462control.id = V4L2_CID_AUDIO_MUTE;463control.value = TRUE; /* silence */464465/* Errors ignored */466ioctl (fd, VIDIOC_S_CTRL, &control);467</programlisting>468</example>469</section>470471<section id="extended-controls">472<title>Extended Controls</title>473474<section>475<title>Introduction</title>476477<para>The control mechanism as originally designed was meant478to be used for user settings (brightness, saturation, etc). However,479it turned out to be a very useful model for implementing more480complicated driver APIs where each driver implements only a subset of481a larger API.</para>482483<para>The MPEG encoding API was the driving force behind484designing and implementing this extended control mechanism: the MPEG485standard is quite large and the currently supported hardware MPEG486encoders each only implement a subset of this standard. Further more,487many parameters relating to how the video is encoded into an MPEG488stream are specific to the MPEG encoding chip since the MPEG standard489only defines the format of the resulting MPEG stream, not how the490video is actually encoded into that format.</para>491492<para>Unfortunately, the original control API lacked some493features needed for these new uses and so it was extended into the494(not terribly originally named) extended control API.</para>495496<para>Even though the MPEG encoding API was the first effort497to use the Extended Control API, nowadays there are also other classes498of Extended Controls, such as Camera Controls and FM Transmitter Controls.499The Extended Controls API as well as all Extended Controls classes are500described in the following text.</para>501</section>502503<section>504<title>The Extended Control API</title>505506<para>Three new ioctls are available: &VIDIOC-G-EXT-CTRLS;,507&VIDIOC-S-EXT-CTRLS; and &VIDIOC-TRY-EXT-CTRLS;. These ioctls act on508arrays of controls (as opposed to the &VIDIOC-G-CTRL; and509&VIDIOC-S-CTRL; ioctls that act on a single control). This is needed510since it is often required to atomically change several controls at511once.</para>512513<para>Each of the new ioctls expects a pointer to a514&v4l2-ext-controls;. This structure contains a pointer to the control515array, a count of the number of controls in that array and a control516class. Control classes are used to group similar controls into a517single class. For example, control class518<constant>V4L2_CTRL_CLASS_USER</constant> contains all user controls519(&ie; all controls that can also be set using the old520<constant>VIDIOC_S_CTRL</constant> ioctl). Control class521<constant>V4L2_CTRL_CLASS_MPEG</constant> contains all controls522relating to MPEG encoding, etc.</para>523524<para>All controls in the control array must belong to the525specified control class. An error is returned if this is not the526case.</para>527528<para>It is also possible to use an empty control array (count529== 0) to check whether the specified control class is530supported.</para>531532<para>The control array is a &v4l2-ext-control; array. The533<structname>v4l2_ext_control</structname> structure is very similar to534&v4l2-control;, except for the fact that it also allows for 64-bit535values and pointers to be passed.</para>536537<para>It is important to realize that due to the flexibility of538controls it is necessary to check whether the control you want to set539actually is supported in the driver and what the valid range of values540is. So use the &VIDIOC-QUERYCTRL; and &VIDIOC-QUERYMENU; ioctls to541check this. Also note that it is possible that some of the menu542indices in a control of type <constant>V4L2_CTRL_TYPE_MENU</constant>543may not be supported (<constant>VIDIOC_QUERYMENU</constant> will544return an error). A good example is the list of supported MPEG audio545bitrates. Some drivers only support one or two bitrates, others546support a wider range.</para>547</section>548549<section>550<title>Enumerating Extended Controls</title>551552<para>The recommended way to enumerate over the extended553controls is by using &VIDIOC-QUERYCTRL; in combination with the554<constant>V4L2_CTRL_FLAG_NEXT_CTRL</constant> flag:</para>555556<informalexample>557<programlisting>558&v4l2-queryctrl; qctrl;559560qctrl.id = V4L2_CTRL_FLAG_NEXT_CTRL;561while (0 == ioctl (fd, &VIDIOC-QUERYCTRL;, &qctrl)) {562/* ... */563qctrl.id |= V4L2_CTRL_FLAG_NEXT_CTRL;564}565</programlisting>566</informalexample>567568<para>The initial control ID is set to 0 ORed with the569<constant>V4L2_CTRL_FLAG_NEXT_CTRL</constant> flag. The570<constant>VIDIOC_QUERYCTRL</constant> ioctl will return the first571control with a higher ID than the specified one. When no such controls572are found an error is returned.</para>573574<para>If you want to get all controls within a specific control575class, then you can set the initial576<structfield>qctrl.id</structfield> value to the control class and add577an extra check to break out of the loop when a control of another578control class is found:</para>579580<informalexample>581<programlisting>582qctrl.id = V4L2_CTRL_CLASS_MPEG | V4L2_CTRL_FLAG_NEXT_CTRL;583while (0 == ioctl (fd, &VIDIOC-QUERYCTRL;, &qctrl)) {584if (V4L2_CTRL_ID2CLASS (qctrl.id) != V4L2_CTRL_CLASS_MPEG)585break;586/* ... */587qctrl.id |= V4L2_CTRL_FLAG_NEXT_CTRL;588}589</programlisting>590</informalexample>591592<para>The 32-bit <structfield>qctrl.id</structfield> value is593subdivided into three bit ranges: the top 4 bits are reserved for594flags (⪚ <constant>V4L2_CTRL_FLAG_NEXT_CTRL</constant>) and are not595actually part of the ID. The remaining 28 bits form the control ID, of596which the most significant 12 bits define the control class and the597least significant 16 bits identify the control within the control598class. It is guaranteed that these last 16 bits are always non-zero599for controls. The range of 0x1000 and up are reserved for600driver-specific controls. The macro601<constant>V4L2_CTRL_ID2CLASS(id)</constant> returns the control class602ID based on a control ID.</para>603604<para>If the driver does not support extended controls, then605<constant>VIDIOC_QUERYCTRL</constant> will fail when used in606combination with <constant>V4L2_CTRL_FLAG_NEXT_CTRL</constant>. In607that case the old method of enumerating control should be used (see6081.8). But if it is supported, then it is guaranteed to enumerate over609all controls, including driver-private controls.</para>610</section>611612<section>613<title>Creating Control Panels</title>614615<para>It is possible to create control panels for a graphical616user interface where the user can select the various controls.617Basically you will have to iterate over all controls using the method618described above. Each control class starts with a control of type619<constant>V4L2_CTRL_TYPE_CTRL_CLASS</constant>.620<constant>VIDIOC_QUERYCTRL</constant> will return the name of this621control class which can be used as the title of a tab page within a622control panel.</para>623624<para>The flags field of &v4l2-queryctrl; also contains hints on625the behavior of the control. See the &VIDIOC-QUERYCTRL; documentation626for more details.</para>627</section>628629<section id="mpeg-controls">630<title>MPEG Control Reference</title>631632<para>Below all controls within the MPEG control class are633described. First the generic controls, then controls specific for634certain hardware.</para>635636<section>637<title>Generic MPEG Controls</title>638639<table pgwide="1" frame="none" id="mpeg-control-id">640<title>MPEG Control IDs</title>641<tgroup cols="4">642<colspec colname="c1" colwidth="1*" />643<colspec colname="c2" colwidth="6*" />644<colspec colname="c3" colwidth="2*" />645<colspec colname="c4" colwidth="6*" />646<spanspec namest="c1" nameend="c2" spanname="id" />647<spanspec namest="c2" nameend="c4" spanname="descr" />648<thead>649<row>650<entry spanname="id" align="left">ID</entry>651<entry align="left">Type</entry>652</row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>653</row>654</thead>655<tbody valign="top">656<row><entry></entry></row>657<row>658<entry spanname="id"><constant>V4L2_CID_MPEG_CLASS</constant> </entry>659<entry>class</entry>660</row><row><entry spanname="descr">The MPEG class661descriptor. Calling &VIDIOC-QUERYCTRL; for this control will return a662description of this control class. This description can be used as the663caption of a Tab page in a GUI, for example.</entry>664</row>665<row><entry></entry></row>666<row id="v4l2-mpeg-stream-type">667<entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_TYPE</constant> </entry>668<entry>enum v4l2_mpeg_stream_type</entry>669</row><row><entry spanname="descr">The MPEG-1, -2 or -4670output stream type. One cannot assume anything here. Each hardware671MPEG encoder tends to support different subsets of the available MPEG672stream types. The currently defined stream types are:</entry>673</row>674<row>675<entrytbl spanname="descr" cols="2">676<tbody valign="top">677<row>678<entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG2_PS</constant> </entry>679<entry>MPEG-2 program stream</entry>680</row>681<row>682<entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG2_TS</constant> </entry>683<entry>MPEG-2 transport stream</entry>684</row>685<row>686<entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG1_SS</constant> </entry>687<entry>MPEG-1 system stream</entry>688</row>689<row>690<entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG2_DVD</constant> </entry>691<entry>MPEG-2 DVD-compatible stream</entry>692</row>693<row>694<entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG1_VCD</constant> </entry>695<entry>MPEG-1 VCD-compatible stream</entry>696</row>697<row>698<entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG2_SVCD</constant> </entry>699<entry>MPEG-2 SVCD-compatible stream</entry>700</row>701</tbody>702</entrytbl>703</row>704<row><entry></entry></row>705<row>706<entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PID_PMT</constant> </entry>707<entry>integer</entry>708</row><row><entry spanname="descr">Program Map Table709Packet ID for the MPEG transport stream (default 16)</entry>710</row>711<row><entry></entry></row>712<row>713<entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PID_AUDIO</constant> </entry>714<entry>integer</entry>715</row><row><entry spanname="descr">Audio Packet ID for716the MPEG transport stream (default 256)</entry>717</row>718<row><entry></entry></row>719<row>720<entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PID_VIDEO</constant> </entry>721<entry>integer</entry>722</row><row><entry spanname="descr">Video Packet ID for723the MPEG transport stream (default 260)</entry>724</row>725<row><entry></entry></row>726<row>727<entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PID_PCR</constant> </entry>728<entry>integer</entry>729</row><row><entry spanname="descr">Packet ID for the730MPEG transport stream carrying PCR fields (default 259)</entry>731</row>732<row><entry></entry></row>733<row>734<entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PES_ID_AUDIO</constant> </entry>735<entry>integer</entry>736</row><row><entry spanname="descr">Audio ID for MPEG737PES</entry>738</row>739<row><entry></entry></row>740<row>741<entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PES_ID_VIDEO</constant> </entry>742<entry>integer</entry>743</row><row><entry spanname="descr">Video ID for MPEG744PES</entry>745</row>746<row><entry></entry></row>747<row id="v4l2-mpeg-stream-vbi-fmt">748<entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_VBI_FMT</constant> </entry>749<entry>enum v4l2_mpeg_stream_vbi_fmt</entry>750</row><row><entry spanname="descr">Some cards can embed751VBI data (⪚ Closed Caption, Teletext) into the MPEG stream. This752control selects whether VBI data should be embedded, and if so, what753embedding method should be used. The list of possible VBI formats754depends on the driver. The currently defined VBI format types755are:</entry>756</row>757<row>758<entrytbl spanname="descr" cols="2">759<tbody valign="top">760<row>761<entry><constant>V4L2_MPEG_STREAM_VBI_FMT_NONE</constant> </entry>762<entry>No VBI in the MPEG stream</entry>763</row>764<row>765<entry><constant>V4L2_MPEG_STREAM_VBI_FMT_IVTV</constant> </entry>766<entry>VBI in private packets, IVTV format (documented767in the kernel sources in the file <filename>Documentation/video4linux/cx2341x/README.vbi</filename>)</entry>768</row>769</tbody>770</entrytbl>771</row>772<row><entry></entry></row>773<row id="v4l2-mpeg-audio-sampling-freq">774<entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_SAMPLING_FREQ</constant> </entry>775<entry>enum v4l2_mpeg_audio_sampling_freq</entry>776</row><row><entry spanname="descr">MPEG Audio sampling777frequency. Possible values are:</entry>778</row>779<row>780<entrytbl spanname="descr" cols="2">781<tbody valign="top">782<row>783<entry><constant>V4L2_MPEG_AUDIO_SAMPLING_FREQ_44100</constant> </entry>784<entry>44.1 kHz</entry>785</row>786<row>787<entry><constant>V4L2_MPEG_AUDIO_SAMPLING_FREQ_48000</constant> </entry>788<entry>48 kHz</entry>789</row>790<row>791<entry><constant>V4L2_MPEG_AUDIO_SAMPLING_FREQ_32000</constant> </entry>792<entry>32 kHz</entry>793</row>794</tbody>795</entrytbl>796</row>797<row><entry></entry></row>798<row id="v4l2-mpeg-audio-encoding">799<entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_ENCODING</constant> </entry>800<entry>enum v4l2_mpeg_audio_encoding</entry>801</row><row><entry spanname="descr">MPEG Audio encoding.802Possible values are:</entry>803</row>804<row>805<entrytbl spanname="descr" cols="2">806<tbody valign="top">807<row>808<entry><constant>V4L2_MPEG_AUDIO_ENCODING_LAYER_1</constant> </entry>809<entry>MPEG-1/2 Layer I encoding</entry>810</row>811<row>812<entry><constant>V4L2_MPEG_AUDIO_ENCODING_LAYER_2</constant> </entry>813<entry>MPEG-1/2 Layer II encoding</entry>814</row>815<row>816<entry><constant>V4L2_MPEG_AUDIO_ENCODING_LAYER_3</constant> </entry>817<entry>MPEG-1/2 Layer III encoding</entry>818</row>819<row>820<entry><constant>V4L2_MPEG_AUDIO_ENCODING_AAC</constant> </entry>821<entry>MPEG-2/4 AAC (Advanced Audio Coding)</entry>822</row>823<row>824<entry><constant>V4L2_MPEG_AUDIO_ENCODING_AC3</constant> </entry>825<entry>AC-3 aka ATSC A/52 encoding</entry>826</row>827</tbody>828</entrytbl>829</row>830<row><entry></entry></row>831<row id="v4l2-mpeg-audio-l1-bitrate">832<entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_L1_BITRATE</constant> </entry>833<entry>enum v4l2_mpeg_audio_l1_bitrate</entry>834</row><row><entry spanname="descr">MPEG-1/2 Layer I bitrate.835Possible values are:</entry>836</row>837<row>838<entrytbl spanname="descr" cols="2">839<tbody valign="top">840<row>841<entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_32K</constant> </entry>842<entry>32 kbit/s</entry></row>843<row>844<entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_64K</constant> </entry>845<entry>64 kbit/s</entry>846</row>847<row>848<entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_96K</constant> </entry>849<entry>96 kbit/s</entry>850</row>851<row>852<entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_128K</constant> </entry>853<entry>128 kbit/s</entry>854</row>855<row>856<entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_160K</constant> </entry>857<entry>160 kbit/s</entry>858</row>859<row>860<entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_192K</constant> </entry>861<entry>192 kbit/s</entry>862</row>863<row>864<entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_224K</constant> </entry>865<entry>224 kbit/s</entry>866</row>867<row>868<entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_256K</constant> </entry>869<entry>256 kbit/s</entry>870</row>871<row>872<entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_288K</constant> </entry>873<entry>288 kbit/s</entry>874</row>875<row>876<entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_320K</constant> </entry>877<entry>320 kbit/s</entry>878</row>879<row>880<entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_352K</constant> </entry>881<entry>352 kbit/s</entry>882</row>883<row>884<entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_384K</constant> </entry>885<entry>384 kbit/s</entry>886</row>887<row>888<entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_416K</constant> </entry>889<entry>416 kbit/s</entry>890</row>891<row>892<entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_448K</constant> </entry>893<entry>448 kbit/s</entry>894</row>895</tbody>896</entrytbl>897</row>898<row><entry></entry></row>899<row id="v4l2-mpeg-audio-l2-bitrate">900<entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_L2_BITRATE</constant> </entry>901<entry>enum v4l2_mpeg_audio_l2_bitrate</entry>902</row><row><entry spanname="descr">MPEG-1/2 Layer II bitrate.903Possible values are:</entry>904</row>905<row>906<entrytbl spanname="descr" cols="2">907<tbody valign="top">908<row>909<entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_32K</constant> </entry>910<entry>32 kbit/s</entry>911</row>912<row>913<entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_48K</constant> </entry>914<entry>48 kbit/s</entry>915</row>916<row>917<entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_56K</constant> </entry>918<entry>56 kbit/s</entry>919</row>920<row>921<entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_64K</constant> </entry>922<entry>64 kbit/s</entry>923</row>924<row>925<entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_80K</constant> </entry>926<entry>80 kbit/s</entry>927</row>928<row>929<entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_96K</constant> </entry>930<entry>96 kbit/s</entry>931</row>932<row>933<entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_112K</constant> </entry>934<entry>112 kbit/s</entry>935</row>936<row>937<entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_128K</constant> </entry>938<entry>128 kbit/s</entry>939</row>940<row>941<entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_160K</constant> </entry>942<entry>160 kbit/s</entry>943</row>944<row>945<entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_192K</constant> </entry>946<entry>192 kbit/s</entry>947</row>948<row>949<entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_224K</constant> </entry>950<entry>224 kbit/s</entry>951</row>952<row>953<entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_256K</constant> </entry>954<entry>256 kbit/s</entry>955</row>956<row>957<entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_320K</constant> </entry>958<entry>320 kbit/s</entry>959</row>960<row>961<entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_384K</constant> </entry>962<entry>384 kbit/s</entry>963</row>964</tbody>965</entrytbl>966</row>967<row><entry></entry></row>968<row id="v4l2-mpeg-audio-l3-bitrate">969<entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_L3_BITRATE</constant> </entry>970<entry>enum v4l2_mpeg_audio_l3_bitrate</entry>971</row><row><entry spanname="descr">MPEG-1/2 Layer III bitrate.972Possible values are:</entry>973</row>974<row>975<entrytbl spanname="descr" cols="2">976<tbody valign="top">977<row>978<entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_32K</constant> </entry>979<entry>32 kbit/s</entry>980</row>981<row>982<entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_40K</constant> </entry>983<entry>40 kbit/s</entry>984</row>985<row>986<entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_48K</constant> </entry>987<entry>48 kbit/s</entry>988</row>989<row>990<entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_56K</constant> </entry>991<entry>56 kbit/s</entry>992</row>993<row>994<entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_64K</constant> </entry>995<entry>64 kbit/s</entry>996</row>997<row>998<entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_80K</constant> </entry>999<entry>80 kbit/s</entry>1000</row>1001<row>1002<entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_96K</constant> </entry>1003<entry>96 kbit/s</entry>1004</row>1005<row>1006<entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_112K</constant> </entry>1007<entry>112 kbit/s</entry>1008</row>1009<row>1010<entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_128K</constant> </entry>1011<entry>128 kbit/s</entry>1012</row>1013<row>1014<entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_160K</constant> </entry>1015<entry>160 kbit/s</entry>1016</row>1017<row>1018<entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_192K</constant> </entry>1019<entry>192 kbit/s</entry>1020</row>1021<row>1022<entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_224K</constant> </entry>1023<entry>224 kbit/s</entry>1024</row>1025<row>1026<entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_256K</constant> </entry>1027<entry>256 kbit/s</entry>1028</row>1029<row>1030<entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_320K</constant> </entry>1031<entry>320 kbit/s</entry>1032</row>1033</tbody>1034</entrytbl>1035</row>1036<row><entry></entry></row>1037<row>1038<entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_AAC_BITRATE</constant> </entry>1039<entry>integer</entry>1040</row><row><entry spanname="descr">AAC bitrate in bits per second.</entry>1041</row>1042<row><entry></entry></row>1043<row id="v4l2-mpeg-audio-ac3-bitrate">1044<entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_AC3_BITRATE</constant> </entry>1045<entry>enum v4l2_mpeg_audio_ac3_bitrate</entry>1046</row><row><entry spanname="descr">AC-3 bitrate.1047Possible values are:</entry>1048</row>1049<row>1050<entrytbl spanname="descr" cols="2">1051<tbody valign="top">1052<row>1053<entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_32K</constant> </entry>1054<entry>32 kbit/s</entry>1055</row>1056<row>1057<entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_40K</constant> </entry>1058<entry>40 kbit/s</entry>1059</row>1060<row>1061<entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_48K</constant> </entry>1062<entry>48 kbit/s</entry>1063</row>1064<row>1065<entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_56K</constant> </entry>1066<entry>56 kbit/s</entry>1067</row>1068<row>1069<entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_64K</constant> </entry>1070<entry>64 kbit/s</entry>1071</row>1072<row>1073<entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_80K</constant> </entry>1074<entry>80 kbit/s</entry>1075</row>1076<row>1077<entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_96K</constant> </entry>1078<entry>96 kbit/s</entry>1079</row>1080<row>1081<entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_112K</constant> </entry>1082<entry>112 kbit/s</entry>1083</row>1084<row>1085<entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_128K</constant> </entry>1086<entry>128 kbit/s</entry>1087</row>1088<row>1089<entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_160K</constant> </entry>1090<entry>160 kbit/s</entry>1091</row>1092<row>1093<entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_192K</constant> </entry>1094<entry>192 kbit/s</entry>1095</row>1096<row>1097<entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_224K</constant> </entry>1098<entry>224 kbit/s</entry>1099</row>1100<row>1101<entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_256K</constant> </entry>1102<entry>256 kbit/s</entry>1103</row>1104<row>1105<entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_320K</constant> </entry>1106<entry>320 kbit/s</entry>1107</row>1108<row>1109<entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_384K</constant> </entry>1110<entry>384 kbit/s</entry>1111</row>1112<row>1113<entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_448K</constant> </entry>1114<entry>448 kbit/s</entry>1115</row>1116<row>1117<entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_512K</constant> </entry>1118<entry>512 kbit/s</entry>1119</row>1120<row>1121<entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_576K</constant> </entry>1122<entry>576 kbit/s</entry>1123</row>1124<row>1125<entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_640K</constant> </entry>1126<entry>640 kbit/s</entry>1127</row>1128</tbody>1129</entrytbl>1130</row>1131<row><entry></entry></row>1132<row id="v4l2-mpeg-audio-mode">1133<entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_MODE</constant> </entry>1134<entry>enum v4l2_mpeg_audio_mode</entry>1135</row><row><entry spanname="descr">MPEG Audio mode.1136Possible values are:</entry>1137</row>1138<row>1139<entrytbl spanname="descr" cols="2">1140<tbody valign="top">1141<row>1142<entry><constant>V4L2_MPEG_AUDIO_MODE_STEREO</constant> </entry>1143<entry>Stereo</entry>1144</row>1145<row>1146<entry><constant>V4L2_MPEG_AUDIO_MODE_JOINT_STEREO</constant> </entry>1147<entry>Joint Stereo</entry>1148</row>1149<row>1150<entry><constant>V4L2_MPEG_AUDIO_MODE_DUAL</constant> </entry>1151<entry>Bilingual</entry>1152</row>1153<row>1154<entry><constant>V4L2_MPEG_AUDIO_MODE_MONO</constant> </entry>1155<entry>Mono</entry>1156</row>1157</tbody>1158</entrytbl>1159</row>1160<row><entry></entry></row>1161<row id="v4l2-mpeg-audio-mode-extension">1162<entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_MODE_EXTENSION</constant> </entry>1163<entry>enum v4l2_mpeg_audio_mode_extension</entry>1164</row><row><entry spanname="descr">Joint Stereo1165audio mode extension. In Layer I and II they indicate which subbands1166are in intensity stereo. All other subbands are coded in stereo. Layer1167III is not (yet) supported. Possible values1168are:</entry>1169</row>1170<row>1171<entrytbl spanname="descr" cols="2">1172<tbody valign="top">1173<row>1174<entry><constant>V4L2_MPEG_AUDIO_MODE_EXTENSION_BOUND_4</constant> </entry>1175<entry>Subbands 4-31 in intensity stereo</entry>1176</row>1177<row>1178<entry><constant>V4L2_MPEG_AUDIO_MODE_EXTENSION_BOUND_8</constant> </entry>1179<entry>Subbands 8-31 in intensity stereo</entry>1180</row>1181<row>1182<entry><constant>V4L2_MPEG_AUDIO_MODE_EXTENSION_BOUND_12</constant> </entry>1183<entry>Subbands 12-31 in intensity stereo</entry>1184</row>1185<row>1186<entry><constant>V4L2_MPEG_AUDIO_MODE_EXTENSION_BOUND_16</constant> </entry>1187<entry>Subbands 16-31 in intensity stereo</entry>1188</row>1189</tbody>1190</entrytbl>1191</row>1192<row><entry></entry></row>1193<row id="v4l2-mpeg-audio-emphasis">1194<entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_EMPHASIS</constant> </entry>1195<entry>enum v4l2_mpeg_audio_emphasis</entry>1196</row><row><entry spanname="descr">Audio Emphasis.1197Possible values are:</entry>1198</row>1199<row>1200<entrytbl spanname="descr" cols="2">1201<tbody valign="top">1202<row>1203<entry><constant>V4L2_MPEG_AUDIO_EMPHASIS_NONE</constant> </entry>1204<entry>None</entry>1205</row>1206<row>1207<entry><constant>V4L2_MPEG_AUDIO_EMPHASIS_50_DIV_15_uS</constant> </entry>1208<entry>50/15 microsecond emphasis</entry>1209</row>1210<row>1211<entry><constant>V4L2_MPEG_AUDIO_EMPHASIS_CCITT_J17</constant> </entry>1212<entry>CCITT J.17</entry>1213</row>1214</tbody>1215</entrytbl>1216</row>1217<row><entry></entry></row>1218<row id="v4l2-mpeg-audio-crc">1219<entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_CRC</constant> </entry>1220<entry>enum v4l2_mpeg_audio_crc</entry>1221</row><row><entry spanname="descr">CRC method. Possible1222values are:</entry>1223</row>1224<row>1225<entrytbl spanname="descr" cols="2">1226<tbody valign="top">1227<row>1228<entry><constant>V4L2_MPEG_AUDIO_CRC_NONE</constant> </entry>1229<entry>None</entry>1230</row>1231<row>1232<entry><constant>V4L2_MPEG_AUDIO_CRC_CRC16</constant> </entry>1233<entry>16 bit parity check</entry>1234</row>1235</tbody>1236</entrytbl>1237</row>1238<row><entry></entry></row>1239<row>1240<entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_MUTE</constant> </entry>1241<entry>boolean</entry>1242</row><row><entry spanname="descr">Mutes the audio when1243capturing. This is not done by muting audio hardware, which can still1244produce a slight hiss, but in the encoder itself, guaranteeing a fixed1245and reproducible audio bitstream. 0 = unmuted, 1 = muted.</entry>1246</row>1247<row><entry></entry></row>1248<row id="v4l2-mpeg-video-encoding">1249<entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_ENCODING</constant> </entry>1250<entry>enum v4l2_mpeg_video_encoding</entry>1251</row><row><entry spanname="descr">MPEG Video encoding1252method. Possible values are:</entry>1253</row>1254<row>1255<entrytbl spanname="descr" cols="2">1256<tbody valign="top">1257<row>1258<entry><constant>V4L2_MPEG_VIDEO_ENCODING_MPEG_1</constant> </entry>1259<entry>MPEG-1 Video encoding</entry>1260</row>1261<row>1262<entry><constant>V4L2_MPEG_VIDEO_ENCODING_MPEG_2</constant> </entry>1263<entry>MPEG-2 Video encoding</entry>1264</row>1265<row>1266<entry><constant>V4L2_MPEG_VIDEO_ENCODING_MPEG_4_AVC</constant> </entry>1267<entry>MPEG-4 AVC (H.264) Video encoding</entry>1268</row>1269</tbody>1270</entrytbl>1271</row>1272<row><entry></entry></row>1273<row id="v4l2-mpeg-video-aspect">1274<entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_ASPECT</constant> </entry>1275<entry>enum v4l2_mpeg_video_aspect</entry>1276</row><row><entry spanname="descr">Video aspect.1277Possible values are:</entry>1278</row>1279<row>1280<entrytbl spanname="descr" cols="2">1281<tbody valign="top">1282<row>1283<entry><constant>V4L2_MPEG_VIDEO_ASPECT_1x1</constant> </entry>1284</row>1285<row>1286<entry><constant>V4L2_MPEG_VIDEO_ASPECT_4x3</constant> </entry>1287</row>1288<row>1289<entry><constant>V4L2_MPEG_VIDEO_ASPECT_16x9</constant> </entry>1290</row>1291<row>1292<entry><constant>V4L2_MPEG_VIDEO_ASPECT_221x100</constant> </entry>1293</row>1294</tbody>1295</entrytbl>1296</row>1297<row><entry></entry></row>1298<row>1299<entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_B_FRAMES</constant> </entry>1300<entry>integer</entry>1301</row><row><entry spanname="descr">Number of B-Frames1302(default 2)</entry>1303</row>1304<row><entry></entry></row>1305<row>1306<entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_GOP_SIZE</constant> </entry>1307<entry>integer</entry>1308</row><row><entry spanname="descr">GOP size (default130912)</entry>1310</row>1311<row><entry></entry></row>1312<row>1313<entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_GOP_CLOSURE</constant> </entry>1314<entry>boolean</entry>1315</row><row><entry spanname="descr">GOP closure (default13161)</entry>1317</row>1318<row><entry></entry></row>1319<row>1320<entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_PULLDOWN</constant> </entry>1321<entry>boolean</entry>1322</row><row><entry spanname="descr">Enable 3:2 pulldown1323(default 0)</entry>1324</row>1325<row><entry></entry></row>1326<row id="v4l2-mpeg-video-bitrate-mode">1327<entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_BITRATE_MODE</constant> </entry>1328<entry>enum v4l2_mpeg_video_bitrate_mode</entry>1329</row><row><entry spanname="descr">Video bitrate mode.1330Possible values are:</entry>1331</row>1332<row>1333<entrytbl spanname="descr" cols="2">1334<tbody valign="top">1335<row>1336<entry><constant>V4L2_MPEG_VIDEO_BITRATE_MODE_VBR</constant> </entry>1337<entry>Variable bitrate</entry>1338</row>1339<row>1340<entry><constant>V4L2_MPEG_VIDEO_BITRATE_MODE_CBR</constant> </entry>1341<entry>Constant bitrate</entry>1342</row>1343</tbody>1344</entrytbl>1345</row>1346<row><entry></entry></row>1347<row>1348<entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_BITRATE</constant> </entry>1349<entry>integer</entry>1350</row><row><entry spanname="descr">Video bitrate in bits1351per second.</entry>1352</row>1353<row><entry></entry></row>1354<row>1355<entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_BITRATE_PEAK</constant> </entry>1356<entry>integer</entry>1357</row><row><entry spanname="descr">Peak video bitrate in1358bits per second. Must be larger or equal to the average video bitrate.1359It is ignored if the video bitrate mode is set to constant1360bitrate.</entry>1361</row>1362<row><entry></entry></row>1363<row>1364<entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_TEMPORAL_DECIMATION</constant> </entry>1365<entry>integer</entry>1366</row><row><entry spanname="descr">For every captured1367frame, skip this many subsequent frames (default 0).</entry>1368</row>1369<row><entry></entry></row>1370<row>1371<entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MUTE</constant> </entry>1372<entry>boolean</entry>1373</row>1374<row><entry spanname="descr">"Mutes" the video to a1375fixed color when capturing. This is useful for testing, to produce a1376fixed video bitstream. 0 = unmuted, 1 = muted.</entry>1377</row>1378<row><entry></entry></row>1379<row>1380<entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MUTE_YUV</constant> </entry>1381<entry>integer</entry>1382</row><row><entry spanname="descr">Sets the "mute" color1383of the video. The supplied 32-bit integer is interpreted as follows (bit13840 = least significant bit):</entry>1385</row>1386<row>1387<entrytbl spanname="descr" cols="2">1388<tbody valign="top">1389<row>1390<entry>Bit 0:7</entry>1391<entry>V chrominance information</entry>1392</row>1393<row>1394<entry>Bit 8:15</entry>1395<entry>U chrominance information</entry>1396</row>1397<row>1398<entry>Bit 16:23</entry>1399<entry>Y luminance information</entry>1400</row>1401<row>1402<entry>Bit 24:31</entry>1403<entry>Must be zero.</entry>1404</row>1405</tbody>1406</entrytbl>1407</row>1408</tbody>1409</tgroup>1410</table>1411</section>14121413<section>1414<title>CX2341x MPEG Controls</title>14151416<para>The following MPEG class controls deal with MPEG1417encoding settings that are specific to the Conexant CX23415 and1418CX23416 MPEG encoding chips.</para>14191420<table pgwide="1" frame="none" id="cx2341x-control-id">1421<title>CX2341x Control IDs</title>1422<tgroup cols="4">1423<colspec colname="c1" colwidth="1*" />1424<colspec colname="c2" colwidth="6*" />1425<colspec colname="c3" colwidth="2*" />1426<colspec colname="c4" colwidth="6*" />1427<spanspec namest="c1" nameend="c2" spanname="id" />1428<spanspec namest="c2" nameend="c4" spanname="descr" />1429<thead>1430<row>1431<entry spanname="id" align="left">ID</entry>1432<entry align="left">Type</entry>1433</row><row><entry spanname="descr" align="left">Description</entry>1434</row>1435</thead>1436<tbody valign="top">1437<row><entry></entry></row>1438<row id="v4l2-mpeg-cx2341x-video-spatial-filter-mode">1439<entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE</constant> </entry>1440<entry>enum v4l2_mpeg_cx2341x_video_spatial_filter_mode</entry>1441</row><row><entry spanname="descr">Sets the Spatial1442Filter mode (default <constant>MANUAL</constant>). Possible values1443are:</entry>1444</row>1445<row>1446<entrytbl spanname="descr" cols="2">1447<tbody valign="top">1448<row>1449<entry><constant>V4L2_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE_MANUAL</constant> </entry>1450<entry>Choose the filter manually</entry>1451</row>1452<row>1453<entry><constant>V4L2_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE_AUTO</constant> </entry>1454<entry>Choose the filter automatically</entry>1455</row>1456</tbody>1457</entrytbl>1458</row>1459<row><entry></entry></row>1460<row>1461<entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_SPATIAL_FILTER</constant> </entry>1462<entry>integer (0-15)</entry>1463</row><row><entry spanname="descr">The setting for the1464Spatial Filter. 0 = off, 15 = maximum. (Default is 0.)</entry>1465</row>1466<row><entry></entry></row>1467<row id="luma-spatial-filter-type">1468<entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE</constant> </entry>1469<entry>enum v4l2_mpeg_cx2341x_video_luma_spatial_filter_type</entry>1470</row><row><entry spanname="descr">Select the algorithm1471to use for the Luma Spatial Filter (default1472<constant>1D_HOR</constant>). Possible values:</entry>1473</row>1474<row>1475<entrytbl spanname="descr" cols="2">1476<tbody valign="top">1477<row>1478<entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_OFF</constant> </entry>1479<entry>No filter</entry>1480</row>1481<row>1482<entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_1D_HOR</constant> </entry>1483<entry>One-dimensional horizontal</entry>1484</row>1485<row>1486<entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_1D_VERT</constant> </entry>1487<entry>One-dimensional vertical</entry>1488</row>1489<row>1490<entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_2D_HV_SEPARABLE</constant> </entry>1491<entry>Two-dimensional separable</entry>1492</row>1493<row>1494<entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_2D_SYM_NON_SEPARABLE</constant> </entry>1495<entry>Two-dimensional symmetrical1496non-separable</entry>1497</row>1498</tbody>1499</entrytbl>1500</row>1501<row><entry></entry></row>1502<row id="chroma-spatial-filter-type">1503<entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_CHROMA_SPATIAL_FILTER_TYPE</constant> </entry>1504<entry>enum v4l2_mpeg_cx2341x_video_chroma_spatial_filter_type</entry>1505</row><row><entry spanname="descr">Select the algorithm1506for the Chroma Spatial Filter (default <constant>1D_HOR</constant>).1507Possible values are:</entry>1508</row>1509<row>1510<entrytbl spanname="descr" cols="2">1511<tbody valign="top">1512<row>1513<entry><constant>V4L2_MPEG_CX2341X_VIDEO_CHROMA_SPATIAL_FILTER_TYPE_OFF</constant> </entry>1514<entry>No filter</entry>1515</row>1516<row>1517<entry><constant>V4L2_MPEG_CX2341X_VIDEO_CHROMA_SPATIAL_FILTER_TYPE_1D_HOR</constant> </entry>1518<entry>One-dimensional horizontal</entry>1519</row>1520</tbody>1521</entrytbl>1522</row>1523<row><entry></entry></row>1524<row id="v4l2-mpeg-cx2341x-video-temporal-filter-mode">1525<entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER_MODE</constant> </entry>1526<entry>enum v4l2_mpeg_cx2341x_video_temporal_filter_mode</entry>1527</row><row><entry spanname="descr">Sets the Temporal1528Filter mode (default <constant>MANUAL</constant>). Possible values1529are:</entry>1530</row>1531<row>1532<entrytbl spanname="descr" cols="2">1533<tbody valign="top">1534<row>1535<entry><constant>V4L2_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER_MODE_MANUAL</constant> </entry>1536<entry>Choose the filter manually</entry>1537</row>1538<row>1539<entry><constant>V4L2_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER_MODE_AUTO</constant> </entry>1540<entry>Choose the filter automatically</entry>1541</row>1542</tbody>1543</entrytbl>1544</row>1545<row><entry></entry></row>1546<row>1547<entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER</constant> </entry>1548<entry>integer (0-31)</entry>1549</row><row><entry spanname="descr">The setting for the1550Temporal Filter. 0 = off, 31 = maximum. (Default is 8 for full-scale1551capturing and 0 for scaled capturing.)</entry>1552</row>1553<row><entry></entry></row>1554<row id="v4l2-mpeg-cx2341x-video-median-filter-type">1555<entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE</constant> </entry>1556<entry>enum v4l2_mpeg_cx2341x_video_median_filter_type</entry>1557</row><row><entry spanname="descr">Median Filter Type1558(default <constant>OFF</constant>). Possible values are:</entry>1559</row>1560<row>1561<entrytbl spanname="descr" cols="2">1562<tbody valign="top">1563<row>1564<entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_OFF</constant> </entry>1565<entry>No filter</entry>1566</row>1567<row>1568<entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_HOR</constant> </entry>1569<entry>Horizontal filter</entry>1570</row>1571<row>1572<entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_VERT</constant> </entry>1573<entry>Vertical filter</entry>1574</row>1575<row>1576<entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_HOR_VERT</constant> </entry>1577<entry>Horizontal and vertical filter</entry>1578</row>1579<row>1580<entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_DIAG</constant> </entry>1581<entry>Diagonal filter</entry>1582</row>1583</tbody>1584</entrytbl>1585</row>1586<row><entry></entry></row>1587<row>1588<entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_LUMA_MEDIAN_FILTER_BOTTOM</constant> </entry>1589<entry>integer (0-255)</entry>1590</row><row><entry spanname="descr">Threshold above which1591the luminance median filter is enabled (default 0)</entry>1592</row>1593<row><entry></entry></row>1594<row>1595<entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_LUMA_MEDIAN_FILTER_TOP</constant> </entry>1596<entry>integer (0-255)</entry>1597</row><row><entry spanname="descr">Threshold below which1598the luminance median filter is enabled (default 255)</entry>1599</row>1600<row><entry></entry></row>1601<row>1602<entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_CHROMA_MEDIAN_FILTER_BOTTOM</constant> </entry>1603<entry>integer (0-255)</entry>1604</row><row><entry spanname="descr">Threshold above which1605the chroma median filter is enabled (default 0)</entry>1606</row>1607<row><entry></entry></row>1608<row>1609<entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_CHROMA_MEDIAN_FILTER_TOP</constant> </entry>1610<entry>integer (0-255)</entry>1611</row><row><entry spanname="descr">Threshold below which1612the chroma median filter is enabled (default 255)</entry>1613</row>1614<row><entry></entry></row>1615<row>1616<entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_STREAM_INSERT_NAV_PACKETS</constant> </entry>1617<entry>boolean</entry>1618</row>1619<row><entry spanname="descr">The CX2341X MPEG encoder1620can insert one empty MPEG-2 PES packet into the stream between every1621four video frames. The packet size is 2048 bytes, including the1622packet_start_code_prefix and stream_id fields. The stream_id is 0xBF1623(private stream 2). The payload consists of 0x00 bytes, to be filled1624in by the application. 0 = do not insert, 1 = insert packets.</entry>1625</row>1626</tbody>1627</tgroup>1628</table>1629</section>1630</section>16311632<section id="camera-controls">1633<title>Camera Control Reference</title>16341635<para>The Camera class includes controls for mechanical (or1636equivalent digital) features of a device such as controllable lenses1637or sensors.</para>16381639<table pgwide="1" frame="none" id="camera-control-id">1640<title>Camera Control IDs</title>1641<tgroup cols="4">1642<colspec colname="c1" colwidth="1*" />1643<colspec colname="c2" colwidth="6*" />1644<colspec colname="c3" colwidth="2*" />1645<colspec colname="c4" colwidth="6*" />1646<spanspec namest="c1" nameend="c2" spanname="id" />1647<spanspec namest="c2" nameend="c4" spanname="descr" />1648<thead>1649<row>1650<entry spanname="id" align="left">ID</entry>1651<entry align="left">Type</entry>1652</row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>1653</row>1654</thead>1655<tbody valign="top">1656<row><entry></entry></row>1657<row>1658<entry spanname="id"><constant>V4L2_CID_CAMERA_CLASS</constant> </entry>1659<entry>class</entry>1660</row><row><entry spanname="descr">The Camera class1661descriptor. Calling &VIDIOC-QUERYCTRL; for this control will return a1662description of this control class.</entry>1663</row>1664<row><entry></entry></row>16651666<row id="v4l2-exposure-auto-type">1667<entry spanname="id"><constant>V4L2_CID_EXPOSURE_AUTO</constant> </entry>1668<entry>enum v4l2_exposure_auto_type</entry>1669</row><row><entry spanname="descr">Enables automatic1670adjustments of the exposure time and/or iris aperture. The effect of1671manual changes of the exposure time or iris aperture while these1672features are enabled is undefined, drivers should ignore such1673requests. Possible values are:</entry>1674</row>1675<row>1676<entrytbl spanname="descr" cols="2">1677<tbody valign="top">1678<row>1679<entry><constant>V4L2_EXPOSURE_AUTO</constant> </entry>1680<entry>Automatic exposure time, automatic iris1681aperture.</entry>1682</row>1683<row>1684<entry><constant>V4L2_EXPOSURE_MANUAL</constant> </entry>1685<entry>Manual exposure time, manual iris.</entry>1686</row>1687<row>1688<entry><constant>V4L2_EXPOSURE_SHUTTER_PRIORITY</constant> </entry>1689<entry>Manual exposure time, auto iris.</entry>1690</row>1691<row>1692<entry><constant>V4L2_EXPOSURE_APERTURE_PRIORITY</constant> </entry>1693<entry>Auto exposure time, manual iris.</entry>1694</row>1695</tbody>1696</entrytbl>1697</row>1698<row><entry></entry></row>16991700<row>1701<entry spanname="id"><constant>V4L2_CID_EXPOSURE_ABSOLUTE</constant> </entry>1702<entry>integer</entry>1703</row><row><entry spanname="descr">Determines the exposure1704time of the camera sensor. The exposure time is limited by the frame1705interval. Drivers should interpret the values as 100 µs units,1706where the value 1 stands for 1/10000th of a second, 10000 for 1 second1707and 100000 for 10 seconds.</entry>1708</row>1709<row><entry></entry></row>17101711<row>1712<entry spanname="id"><constant>V4L2_CID_EXPOSURE_AUTO_PRIORITY</constant> </entry>1713<entry>boolean</entry>1714</row><row><entry spanname="descr">When1715<constant>V4L2_CID_EXPOSURE_AUTO</constant> is set to1716<constant>AUTO</constant> or <constant>APERTURE_PRIORITY</constant>,1717this control determines if the device may dynamically vary the frame1718rate. By default this feature is disabled (0) and the frame rate must1719remain constant.</entry>1720</row>1721<row><entry></entry></row>17221723<row>1724<entry spanname="id"><constant>V4L2_CID_PAN_RELATIVE</constant> </entry>1725<entry>integer</entry>1726</row><row><entry spanname="descr">This control turns the1727camera horizontally by the specified amount. The unit is undefined. A1728positive value moves the camera to the right (clockwise when viewed1729from above), a negative value to the left. A value of zero does not1730cause motion. This is a write-only control.</entry>1731</row>1732<row><entry></entry></row>17331734<row>1735<entry spanname="id"><constant>V4L2_CID_TILT_RELATIVE</constant> </entry>1736<entry>integer</entry>1737</row><row><entry spanname="descr">This control turns the1738camera vertically by the specified amount. The unit is undefined. A1739positive value moves the camera up, a negative value down. A value of1740zero does not cause motion. This is a write-only control.</entry>1741</row>1742<row><entry></entry></row>17431744<row>1745<entry spanname="id"><constant>V4L2_CID_PAN_RESET</constant> </entry>1746<entry>button</entry>1747</row><row><entry spanname="descr">When this control is set,1748the camera moves horizontally to the default position.</entry>1749</row>1750<row><entry></entry></row>17511752<row>1753<entry spanname="id"><constant>V4L2_CID_TILT_RESET</constant> </entry>1754<entry>button</entry>1755</row><row><entry spanname="descr">When this control is set,1756the camera moves vertically to the default position.</entry>1757</row>1758<row><entry></entry></row>17591760<row>1761<entry spanname="id"><constant>V4L2_CID_PAN_ABSOLUTE</constant> </entry>1762<entry>integer</entry>1763</row><row><entry spanname="descr">This control1764turns the camera horizontally to the specified position. Positive1765values move the camera to the right (clockwise when viewed from above),1766negative values to the left. Drivers should interpret the values as arc1767seconds, with valid values between -180 * 3600 and +180 * 36001768inclusive.</entry>1769</row>1770<row><entry></entry></row>17711772<row>1773<entry spanname="id"><constant>V4L2_CID_TILT_ABSOLUTE</constant> </entry>1774<entry>integer</entry>1775</row><row><entry spanname="descr">This control1776turns the camera vertically to the specified position. Positive values1777move the camera up, negative values down. Drivers should interpret the1778values as arc seconds, with valid values between -180 * 3600 and +1801779* 3600 inclusive.</entry>1780</row>1781<row><entry></entry></row>17821783<row>1784<entry spanname="id"><constant>V4L2_CID_FOCUS_ABSOLUTE</constant> </entry>1785<entry>integer</entry>1786</row><row><entry spanname="descr">This control sets the1787focal point of the camera to the specified position. The unit is1788undefined. Positive values set the focus closer to the camera,1789negative values towards infinity.</entry>1790</row>1791<row><entry></entry></row>17921793<row>1794<entry spanname="id"><constant>V4L2_CID_FOCUS_RELATIVE</constant> </entry>1795<entry>integer</entry>1796</row><row><entry spanname="descr">This control moves the1797focal point of the camera by the specified amount. The unit is1798undefined. Positive values move the focus closer to the camera,1799negative values towards infinity. This is a write-only control.</entry>1800</row>1801<row><entry></entry></row>18021803<row>1804<entry spanname="id"><constant>V4L2_CID_FOCUS_AUTO</constant> </entry>1805<entry>boolean</entry>1806</row><row><entry spanname="descr">Enables automatic focus1807adjustments. The effect of manual focus adjustments while this feature1808is enabled is undefined, drivers should ignore such requests.</entry>1809</row>1810<row><entry></entry></row>18111812<row>1813<entry spanname="id"><constant>V4L2_CID_ZOOM_ABSOLUTE</constant> </entry>1814<entry>integer</entry>1815</row><row><entry spanname="descr">Specify the objective lens1816focal length as an absolute value. The zoom unit is driver-specific and its1817value should be a positive integer.</entry>1818</row>1819<row><entry></entry></row>18201821<row>1822<entry spanname="id"><constant>V4L2_CID_ZOOM_RELATIVE</constant> </entry>1823<entry>integer</entry>1824</row><row><entry spanname="descr">Specify the objective lens1825focal length relatively to the current value. Positive values move the zoom1826lens group towards the telephoto direction, negative values towards the1827wide-angle direction. The zoom unit is driver-specific. This is a write-only control.</entry>1828</row>1829<row><entry></entry></row>18301831<row>1832<entry spanname="id"><constant>V4L2_CID_ZOOM_CONTINUOUS</constant> </entry>1833<entry>integer</entry>1834</row><row><entry spanname="descr">Move the objective lens group1835at the specified speed until it reaches physical device limits or until an1836explicit request to stop the movement. A positive value moves the zoom lens1837group towards the telephoto direction. A value of zero stops the zoom lens1838group movement. A negative value moves the zoom lens group towards the1839wide-angle direction. The zoom speed unit is driver-specific.</entry>1840</row>1841<row><entry></entry></row>18421843<row>1844<entry spanname="id"><constant>V4L2_CID_IRIS_ABSOLUTE</constant> </entry>1845<entry>integer</entry>1846</row><row><entry spanname="descr">This control sets the1847camera's aperture to the specified value. The unit is undefined.1848Larger values open the iris wider, smaller values close it.</entry>1849</row>1850<row><entry></entry></row>18511852<row>1853<entry spanname="id"><constant>V4L2_CID_IRIS_RELATIVE</constant> </entry>1854<entry>integer</entry>1855</row><row><entry spanname="descr">This control modifies the1856camera's aperture by the specified amount. The unit is undefined.1857Positive values open the iris one step further, negative values close1858it one step further. This is a write-only control.</entry>1859</row>1860<row><entry></entry></row>18611862<row>1863<entry spanname="id"><constant>V4L2_CID_PRIVACY</constant> </entry>1864<entry>boolean</entry>1865</row><row><entry spanname="descr">Prevent video from being acquired1866by the camera. When this control is set to <constant>TRUE</constant> (1), no1867image can be captured by the camera. Common means to enforce privacy are1868mechanical obturation of the sensor and firmware image processing, but the1869device is not restricted to these methods. Devices that implement the privacy1870control must support read access and may support write access.</entry>1871</row>18721873<row>1874<entry spanname="id"><constant>V4L2_CID_BAND_STOP_FILTER</constant> </entry>1875<entry>integer</entry>1876</row><row><entry spanname="descr">Switch the band-stop filter of a1877camera sensor on or off, or specify its strength. Such band-stop filters can1878be used, for example, to filter out the fluorescent light component.</entry>1879</row>1880<row><entry></entry></row>1881</tbody>1882</tgroup>1883</table>1884</section>18851886<section id="fm-tx-controls">1887<title>FM Transmitter Control Reference</title>18881889<para>The FM Transmitter (FM_TX) class includes controls for common features of1890FM transmissions capable devices. Currently this class includes parameters for audio1891compression, pilot tone generation, audio deviation limiter, RDS transmission and1892tuning power features.</para>18931894<table pgwide="1" frame="none" id="fm-tx-control-id">1895<title>FM_TX Control IDs</title>18961897<tgroup cols="4">1898<colspec colname="c1" colwidth="1*" />1899<colspec colname="c2" colwidth="6*" />1900<colspec colname="c3" colwidth="2*" />1901<colspec colname="c4" colwidth="6*" />1902<spanspec namest="c1" nameend="c2" spanname="id" />1903<spanspec namest="c2" nameend="c4" spanname="descr" />1904<thead>1905<row>1906<entry spanname="id" align="left">ID</entry>1907<entry align="left">Type</entry>1908</row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>1909</row>1910</thead>1911<tbody valign="top">1912<row><entry></entry></row>1913<row>1914<entry spanname="id"><constant>V4L2_CID_FM_TX_CLASS</constant> </entry>1915<entry>class</entry>1916</row><row><entry spanname="descr">The FM_TX class1917descriptor. Calling &VIDIOC-QUERYCTRL; for this control will return a1918description of this control class.</entry>1919</row>1920<row>1921<entry spanname="id"><constant>V4L2_CID_RDS_TX_DEVIATION</constant> </entry>1922<entry>integer</entry>1923</row>1924<row><entry spanname="descr">Configures RDS signal frequency deviation level in Hz.1925The range and step are driver-specific.</entry>1926</row>1927<row>1928<entry spanname="id"><constant>V4L2_CID_RDS_TX_PI</constant> </entry>1929<entry>integer</entry>1930</row>1931<row><entry spanname="descr">Sets the RDS Programme Identification field1932for transmission.</entry>1933</row>1934<row>1935<entry spanname="id"><constant>V4L2_CID_RDS_TX_PTY</constant> </entry>1936<entry>integer</entry>1937</row>1938<row><entry spanname="descr">Sets the RDS Programme Type field for transmission.1939This encodes up to 31 pre-defined programme types.</entry>1940</row>1941<row>1942<entry spanname="id"><constant>V4L2_CID_RDS_TX_PS_NAME</constant> </entry>1943<entry>string</entry>1944</row>1945<row><entry spanname="descr">Sets the Programme Service name (PS_NAME) for transmission.1946It is intended for static display on a receiver. It is the primary aid to listeners in programme service1947identification and selection. In Annex E of <xref linkend="en50067" />, the RDS specification,1948there is a full description of the correct character encoding for Programme Service name strings.1949Also from RDS specification, PS is usually a single eight character text. However, it is also possible1950to find receivers which can scroll strings sized as 8 x N characters. So, this control must be configured1951with steps of 8 characters. The result is it must always contain a string with size multiple of 8.</entry>1952</row>1953<row>1954<entry spanname="id"><constant>V4L2_CID_RDS_TX_RADIO_TEXT</constant> </entry>1955<entry>string</entry>1956</row>1957<row><entry spanname="descr">Sets the Radio Text info for transmission. It is a textual description of1958what is being broadcasted. RDS Radio Text can be applied when broadcaster wishes to transmit longer PS names,1959programme-related information or any other text. In these cases, RadioText should be used in addition to1960<constant>V4L2_CID_RDS_TX_PS_NAME</constant>. The encoding for Radio Text strings is also fully described1961in Annex E of <xref linkend="en50067" />. The length of Radio Text strings depends on which RDS Block is being1962used to transmit it, either 32 (2A block) or 64 (2B block). However, it is also possible1963to find receivers which can scroll strings sized as 32 x N or 64 x N characters. So, this control must be configured1964with steps of 32 or 64 characters. The result is it must always contain a string with size multiple of 32 or 64. </entry>1965</row>1966<row>1967<entry spanname="id"><constant>V4L2_CID_AUDIO_LIMITER_ENABLED</constant> </entry>1968<entry>boolean</entry>1969</row>1970<row><entry spanname="descr">Enables or disables the audio deviation limiter feature.1971The limiter is useful when trying to maximize the audio volume, minimize receiver-generated1972distortion and prevent overmodulation.1973</entry>1974</row>1975<row>1976<entry spanname="id"><constant>V4L2_CID_AUDIO_LIMITER_RELEASE_TIME</constant> </entry>1977<entry>integer</entry>1978</row>1979<row><entry spanname="descr">Sets the audio deviation limiter feature release time.1980Unit is in useconds. Step and range are driver-specific.</entry>1981</row>1982<row>1983<entry spanname="id"><constant>V4L2_CID_AUDIO_LIMITER_DEVIATION</constant> </entry>1984<entry>integer</entry>1985</row>1986<row><entry spanname="descr">Configures audio frequency deviation level in Hz.1987The range and step are driver-specific.</entry>1988</row>1989<row>1990<entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_ENABLED</constant> </entry>1991<entry>boolean</entry>1992</row>1993<row><entry spanname="descr">Enables or disables the audio compression feature.1994This feature amplifies signals below the threshold by a fixed gain and compresses audio1995signals above the threshold by the ratio of Threshold/(Gain + Threshold).</entry>1996</row>1997<row>1998<entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_GAIN</constant> </entry>1999<entry>integer</entry>2000</row>2001<row><entry spanname="descr">Sets the gain for audio compression feature. It is2002a dB value. The range and step are driver-specific.</entry>2003</row>2004<row>2005<entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_THRESHOLD</constant> </entry>2006<entry>integer</entry>2007</row>2008<row><entry spanname="descr">Sets the threshold level for audio compression freature.2009It is a dB value. The range and step are driver-specific.</entry>2010</row>2011<row>2012<entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_ATTACK_TIME</constant> </entry>2013<entry>integer</entry>2014</row>2015<row><entry spanname="descr">Sets the attack time for audio compression feature.2016It is a useconds value. The range and step are driver-specific.</entry>2017</row>2018<row>2019<entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_RELEASE_TIME</constant> </entry>2020<entry>integer</entry>2021</row>2022<row><entry spanname="descr">Sets the release time for audio compression feature.2023It is a useconds value. The range and step are driver-specific.</entry>2024</row>2025<row>2026<entry spanname="id"><constant>V4L2_CID_PILOT_TONE_ENABLED</constant> </entry>2027<entry>boolean</entry>2028</row>2029<row><entry spanname="descr">Enables or disables the pilot tone generation feature.</entry>2030</row>2031<row>2032<entry spanname="id"><constant>V4L2_CID_PILOT_TONE_DEVIATION</constant> </entry>2033<entry>integer</entry>2034</row>2035<row><entry spanname="descr">Configures pilot tone frequency deviation level. Unit is2036in Hz. The range and step are driver-specific.</entry>2037</row>2038<row>2039<entry spanname="id"><constant>V4L2_CID_PILOT_TONE_FREQUENCY</constant> </entry>2040<entry>integer</entry>2041</row>2042<row><entry spanname="descr">Configures pilot tone frequency value. Unit is2043in Hz. The range and step are driver-specific.</entry>2044</row>2045<row>2046<entry spanname="id"><constant>V4L2_CID_TUNE_PREEMPHASIS</constant> </entry>2047<entry>integer</entry>2048</row>2049<row id="v4l2-preemphasis"><entry spanname="descr">Configures the pre-emphasis value for broadcasting.2050A pre-emphasis filter is applied to the broadcast to accentuate the high audio frequencies.2051Depending on the region, a time constant of either 50 or 75 useconds is used. The enum v4l2_preemphasis2052defines possible values for pre-emphasis. Here they are:</entry>2053</row><row>2054<entrytbl spanname="descr" cols="2">2055<tbody valign="top">2056<row>2057<entry><constant>V4L2_PREEMPHASIS_DISABLED</constant> </entry>2058<entry>No pre-emphasis is applied.</entry>2059</row>2060<row>2061<entry><constant>V4L2_PREEMPHASIS_50_uS</constant> </entry>2062<entry>A pre-emphasis of 50 uS is used.</entry>2063</row>2064<row>2065<entry><constant>V4L2_PREEMPHASIS_75_uS</constant> </entry>2066<entry>A pre-emphasis of 75 uS is used.</entry>2067</row>2068</tbody>2069</entrytbl>20702071</row>2072<row>2073<entry spanname="id"><constant>V4L2_CID_TUNE_POWER_LEVEL</constant> </entry>2074<entry>integer</entry>2075</row>2076<row><entry spanname="descr">Sets the output power level for signal transmission.2077Unit is in dBuV. Range and step are driver-specific.</entry>2078</row>2079<row>2080<entry spanname="id"><constant>V4L2_CID_TUNE_ANTENNA_CAPACITOR</constant> </entry>2081<entry>integer</entry>2082</row>2083<row><entry spanname="descr">This selects the value of antenna tuning capacitor2084manually or automatically if set to zero. Unit, range and step are driver-specific.</entry>2085</row>2086<row><entry></entry></row>2087</tbody>2088</tgroup>2089</table>20902091<para>For more details about RDS specification, refer to2092<xref linkend="en50067" /> document, from CENELEC.</para>2093</section>2094</section>20952096<!--2097Local Variables:2098mode: sgml2099sgml-parent-document: "common.sgml"2100indent-tabs-mode: nil2101End:2102-->210321042105