Lines Matching +full:compound +full:- +full:device
1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
9 Devices typically have a number of user-settable controls such as
13 values, and the default value will vary from device to device. The
16 device.
21 pre-defined control IDs have the prefix ``V4L2_CID_``, and are listed in
22 :ref:`control-id`. The ID is used when querying the attributes of a
27 the user is supposed to understand. When the purpose is non-intuitive
28 the driver writer should provide a user manual, a user interface plug-in
30 to change a few controls programmatically, for example to mute a device
40 device (for example, it doesn't apply to the current video input)
45 when the device is opened or closed, when the tuner radio frequency is
57 .. _control-id:
97 at load time to avoid excessive noise. Actually the entire device
113 device will do a white balance and then hold the current setting.
127 Whiteness for grey-scale devices. This is a synonym for
146 .. _v4l2-cid-hflip:
151 .. _v4l2-cid-vflip:
156 .. _v4l2-power-line-frequency:
170 Enables automatic hue control by the device. The effect of setting
200 .. _v4l2-colorfx:
209 .. flat-table::
210 :header-rows: 0
211 :stub-columns: 0
214 * - ``V4L2_COLORFX_NONE``
215 - Color effect is disabled.
216 * - ``V4L2_COLORFX_ANTIQUE``
217 - An aging (old photo) effect.
218 * - ``V4L2_COLORFX_ART_FREEZE``
219 - Frost color effect.
220 * - ``V4L2_COLORFX_AQUA``
221 - Water color, cool tone.
222 * - ``V4L2_COLORFX_BW``
223 - Black and white.
224 * - ``V4L2_COLORFX_EMBOSS``
225 - Emboss, the highlights and shadows replace light/dark boundaries
227 * - ``V4L2_COLORFX_GRASS_GREEN``
228 - Grass green.
229 * - ``V4L2_COLORFX_NEGATIVE``
230 - Negative.
231 * - ``V4L2_COLORFX_SEPIA``
232 - Sepia tone.
233 * - ``V4L2_COLORFX_SKETCH``
234 - Sketch.
235 * - ``V4L2_COLORFX_SKIN_WHITEN``
236 - Skin whiten.
237 * - ``V4L2_COLORFX_SKY_BLUE``
238 - Sky blue.
239 * - ``V4L2_COLORFX_SOLARIZATION``
240 - Solarization, the image is partially reversed in tone, only color
242 * - ``V4L2_COLORFX_SILHOUETTE``
243 - Silhouette (outline).
244 * - ``V4L2_COLORFX_VIVID``
245 - Vivid colors.
246 * - ``V4L2_COLORFX_SET_CBCR``
247 - The Cb and Cr chroma components are replaced by fixed coefficients
249 * - ``V4L2_COLORFX_SET_RGB``
250 - The RGB components are replaced by the fixed RGB components determined
279 Sets the background color on the current output device. Background
281 value is interpreted as bits 0-7 Red color information, bits 8-15
282 Green color information, bits 16-23 Blue color information and bits
283 24-31 must be zero.
286 Switch on or off the illuminator 1 or 2 of the device (usually a
290 This is a read-only control that can be read by the application and
296 This is a read-only control that can be read by the application and
301 .. _v4l2-alpha-component:
304 Sets the alpha color component. When a capture device (or capture
305 queue of a mem-to-mem device) produces a frame format that includes
307 :ref:`packed RGB image formats <pixfmt-rgb>`) and the alpha value
308 is not defined by the device or the mem-to-mem input data this
310 When an output device (or output queue of a mem-to-mem device)
312 the device supports alpha channel processing this control lets you
314 in the device.
331 device has one or more controls, ``VIDIOC_QUERYMENU`` when it has one or
340 .. code-block:: c
379 Example: Enumerating all controls including compound controls
382 .. code-block:: c
407 .. code-block:: c
455 .. code-block:: c
463 if (-1 == ioctl(fd, VIDIOC_QUERYCTRL, &queryctrl)) {
477 if (-1 == ioctl(fd, VIDIOC_S_CTRL, &control)) {
491 if (-1 == ioctl(fd, VIDIOC_S_CTRL, &control)