1 .. -*- coding: utf-8; mode: rst -*-
3 .. _media-controller-types:
5 Types and flags used to represent the media graph elements
6 ==========================================================
8 .. tabularcolumns:: |p{8.0cm}|p{10.5cm}|
10 .. _media-entity-type:
12 .. cssclass:: longtable
14 .. flat-table:: Media entity types
21 .. _MEDIA-ENT-F-UNKNOWN:
22 .. _MEDIA-ENT-F-V4L2-SUBDEV-UNKNOWN:
24 - ``MEDIA_ENT_F_UNKNOWN`` and
26 ``MEDIA_ENT_F_V4L2_SUBDEV_UNKNOWN``
28 - Unknown entity. That generally indicates that a driver didn't
29 initialize properly the entity, with is a Kernel bug
33 .. _MEDIA-ENT-F-IO-V4L:
35 - ``MEDIA_ENT_F_IO_V4L``
37 - Data streaming input and/or output entity.
41 .. _MEDIA-ENT-F-IO-VBI:
43 - ``MEDIA_ENT_F_IO_VBI``
45 - V4L VBI streaming input or output entity
49 .. _MEDIA-ENT-F-IO-SWRADIO:
51 - ``MEDIA_ENT_F_IO_SWRADIO``
53 - V4L Software Digital Radio (SDR) streaming input or output entity
57 .. _MEDIA-ENT-F-IO-DTV:
59 - ``MEDIA_ENT_F_IO_DTV``
61 - DVB Digital TV streaming input or output entity
65 .. _MEDIA-ENT-F-DTV-DEMOD:
67 - ``MEDIA_ENT_F_DTV_DEMOD``
69 - Digital TV demodulator entity.
73 .. _MEDIA-ENT-F-TS-DEMUX:
75 - ``MEDIA_ENT_F_TS_DEMUX``
77 - MPEG Transport stream demux entity. Could be implemented on
78 hardware or in Kernelspace by the Linux DVB subsystem.
82 .. _MEDIA-ENT-F-DTV-CA:
84 - ``MEDIA_ENT_F_DTV_CA``
86 - Digital TV Conditional Access module (CAM) entity
90 .. _MEDIA-ENT-F-DTV-NET-DECAP:
92 - ``MEDIA_ENT_F_DTV_NET_DECAP``
94 - Digital TV network ULE/MLE desencapsulation entity. Could be
95 implemented on hardware or in Kernelspace
99 .. _MEDIA-ENT-F-CONN-RF:
101 - ``MEDIA_ENT_F_CONN_RF``
103 - Connector for a Radio Frequency (RF) signal.
107 .. _MEDIA-ENT-F-CONN-SVIDEO:
109 - ``MEDIA_ENT_F_CONN_SVIDEO``
111 - Connector for a S-Video signal.
115 .. _MEDIA-ENT-F-CONN-COMPOSITE:
117 - ``MEDIA_ENT_F_CONN_COMPOSITE``
119 - Connector for a RGB composite signal.
123 .. _MEDIA-ENT-F-CAM-SENSOR:
125 - ``MEDIA_ENT_F_CAM_SENSOR``
127 - Camera video sensor entity.
131 .. _MEDIA-ENT-F-FLASH:
133 - ``MEDIA_ENT_F_FLASH``
135 - Flash controller entity.
139 .. _MEDIA-ENT-F-LENS:
141 - ``MEDIA_ENT_F_LENS``
143 - Lens controller entity.
147 .. _MEDIA-ENT-F-ATV-DECODER:
149 - ``MEDIA_ENT_F_ATV_DECODER``
151 - Analog video decoder, the basic function of the video decoder is
152 to accept analogue video from a wide variety of sources such as
153 broadcast, DVD players, cameras and video cassette recorders, in
154 either NTSC, PAL, SECAM or HD format, separating the stream into
155 its component parts, luminance and chrominance, and output it in
156 some digital video standard, with appropriate timing signals.
160 .. _MEDIA-ENT-F-TUNER:
162 - ``MEDIA_ENT_F_TUNER``
164 - Digital TV, analog TV, radio and/or software radio tuner, with
165 consists on a PLL tuning stage that converts radio frequency (RF)
166 signal into an Intermediate Frequency (IF). Modern tuners have
167 internally IF-PLL decoders for audio and video, but older models
168 have those stages implemented on separate entities.
172 .. _MEDIA-ENT-F-IF-VID-DECODER:
174 - ``MEDIA_ENT_F_IF_VID_DECODER``
176 - IF-PLL video decoder. It receives the IF from a PLL and decodes
177 the analog TV video signal. This is commonly found on some very
178 old analog tuners, like Philips MK3 designs. They all contain a
179 tda9887 (or some software compatible similar chip, like tda9885).
180 Those devices use a different I2C address than the tuner PLL.
184 .. _MEDIA-ENT-F-IF-AUD-DECODER:
186 - ``MEDIA_ENT_F_IF_AUD_DECODER``
188 - IF-PLL sound decoder. It receives the IF from a PLL and decodes
189 the analog TV audio signal. This is commonly found on some very
190 old analog hardware, like Micronas msp3400, Philips tda9840,
191 tda985x, etc. Those devices use a different I2C address than the
192 tuner PLL and should be controlled together with the IF-PLL video
197 .. _MEDIA-ENT-F-AUDIO-CAPTURE:
199 - ``MEDIA_ENT_F_AUDIO_CAPTURE``
201 - Audio Capture Function Entity.
205 .. _MEDIA-ENT-F-AUDIO-PLAYBACK:
207 - ``MEDIA_ENT_F_AUDIO_PLAYBACK``
209 - Audio Playback Function Entity.
213 .. _MEDIA-ENT-F-AUDIO-MIXER:
215 - ``MEDIA_ENT_F_AUDIO_MIXER``
217 - Audio Mixer Function Entity.
221 .. _MEDIA-ENT-F-PROC-VIDEO-COMPOSER:
223 - ``MEDIA_ENT_F_PROC_VIDEO_COMPOSER``
225 - Video composer (blender). An entity capable of video
226 composing must have at least two sink pads and one source
227 pad, and composes input video frames onto output video
228 frames. Composition can be performed using alpha blending,
229 color keying, raster operations (ROP), stitching or any other
234 .. _MEDIA-ENT-F-PROC-VIDEO-PIXEL-FORMATTER:
236 - ``MEDIA_ENT_F_PROC_VIDEO_PIXEL_FORMATTER``
238 - Video pixel formatter. An entity capable of pixel formatting
239 must have at least one sink pad and one source pad. Read
240 pixel formatters read pixels from memory and perform a subset
241 of unpacking, cropping, color keying, alpha multiplication
242 and pixel encoding conversion. Write pixel formatters perform
243 a subset of dithering, pixel encoding conversion and packing
244 and write pixels to memory.
248 .. _MEDIA-ENT-F-PROC-VIDEO-PIXEL-ENC-CONV:
250 - ``MEDIA_ENT_F_PROC_VIDEO_PIXEL_ENC_CONV``
252 - Video pixel encoding converter. An entity capable of pixel
253 enconding conversion must have at least one sink pad and one
254 source pad, and convert the encoding of pixels received on
255 its sink pad(s) to a different encoding output on its source
256 pad(s). Pixel encoding conversion includes but isn't limited
257 to RGB to/from HSV, RGB to/from YUV and CFA (Bayer) to RGB
262 .. _MEDIA-ENT-F-PROC-VIDEO-LUT:
264 - ``MEDIA_ENT_F_PROC_VIDEO_LUT``
266 - Video look-up table. An entity capable of video lookup table
267 processing must have one sink pad and one source pad. It uses
268 the values of the pixels received on its sink pad to look up
269 entries in internal tables and output them on its source pad.
270 The lookup processing can be performed on all components
271 separately or combine them for multi-dimensional table
276 .. _MEDIA-ENT-F-PROC-VIDEO-SCALER:
278 - ``MEDIA_ENT_F_PROC_VIDEO_SCALER``
280 - Video scaler. An entity capable of video scaling must have
281 at least one sink pad and one source pad, and scale the
282 video frame(s) received on its sink pad(s) to a different
283 resolution output on its source pad(s). The range of
284 supported scaling ratios is entity-specific and can differ
285 between the horizontal and vertical directions (in particular
286 scaling can be supported in one direction only). Binning and
287 sub-sampling (occasionally also referred to as skipping) are
288 considered as scaling.
292 .. _MEDIA-ENT-F-PROC-VIDEO-STATISTICS:
294 - ``MEDIA_ENT_F_PROC_VIDEO_STATISTICS``
296 - Video statistics computation (histogram, 3A, ...). An entity
297 capable of statistics computation must have one sink pad and
298 one source pad. It computes statistics over the frames
299 received on its sink pad and outputs the statistics data on
304 .. _MEDIA-ENT-F-VID-MUX:
306 - ``MEDIA_ENT_F_VID_MUX``
308 - Video multiplexer. An entity capable of multiplexing must have at
309 least two sink pads and one source pad, and must pass the video
310 frame(s) received from the active sink pad to the source pad.
314 .. _MEDIA-ENT-F-VID-IF-BRIDGE:
316 - ``MEDIA_ENT_F_VID_IF_BRIDGE``
318 - Video interface bridge. A video interface bridge entity must have at
319 least one sink pad and at least one source pad. It receives video
320 frames on its sink pad from an input video bus of one type (HDMI, eDP,
321 MIPI CSI-2, ...), and outputs them on its source pad to an output
322 video bus of another type (eDP, MIPI CSI-2, parallel, ...).
324 .. tabularcolumns:: |p{5.5cm}|p{12.0cm}|
326 .. _media-entity-flag:
328 .. flat-table:: Media entity flags
335 .. _MEDIA-ENT-FL-DEFAULT:
337 - ``MEDIA_ENT_FL_DEFAULT``
339 - Default entity for its type. Used to discover the default audio,
340 VBI and video devices, the default camera sensor, ...
344 .. _MEDIA-ENT-FL-CONNECTOR:
346 - ``MEDIA_ENT_FL_CONNECTOR``
348 - The entity represents a data conector
351 .. tabularcolumns:: |p{6.5cm}|p{6.0cm}|p{5.0cm}|
355 .. flat-table:: Media interface types
362 .. _MEDIA-INTF-T-DVB-FE:
364 - ``MEDIA_INTF_T_DVB_FE``
366 - Device node interface for the Digital TV frontend
368 - typically, /dev/dvb/adapter?/frontend?
372 .. _MEDIA-INTF-T-DVB-DEMUX:
374 - ``MEDIA_INTF_T_DVB_DEMUX``
376 - Device node interface for the Digital TV demux
378 - typically, /dev/dvb/adapter?/demux?
382 .. _MEDIA-INTF-T-DVB-DVR:
384 - ``MEDIA_INTF_T_DVB_DVR``
386 - Device node interface for the Digital TV DVR
388 - typically, /dev/dvb/adapter?/dvr?
392 .. _MEDIA-INTF-T-DVB-CA:
394 - ``MEDIA_INTF_T_DVB_CA``
396 - Device node interface for the Digital TV Conditional Access
398 - typically, /dev/dvb/adapter?/ca?
402 .. _MEDIA-INTF-T-DVB-NET:
404 - ``MEDIA_INTF_T_DVB_NET``
406 - Device node interface for the Digital TV network control
408 - typically, /dev/dvb/adapter?/net?
412 .. _MEDIA-INTF-T-V4L-VIDEO:
414 - ``MEDIA_INTF_T_V4L_VIDEO``
416 - Device node interface for video (V4L)
418 - typically, /dev/video?
422 .. _MEDIA-INTF-T-V4L-VBI:
424 - ``MEDIA_INTF_T_V4L_VBI``
426 - Device node interface for VBI (V4L)
428 - typically, /dev/vbi?
432 .. _MEDIA-INTF-T-V4L-RADIO:
434 - ``MEDIA_INTF_T_V4L_RADIO``
436 - Device node interface for radio (V4L)
438 - typically, /dev/radio?
442 .. _MEDIA-INTF-T-V4L-SUBDEV:
444 - ``MEDIA_INTF_T_V4L_SUBDEV``
446 - Device node interface for a V4L subdevice
448 - typically, /dev/v4l-subdev?
452 .. _MEDIA-INTF-T-V4L-SWRADIO:
454 - ``MEDIA_INTF_T_V4L_SWRADIO``
456 - Device node interface for Software Defined Radio (V4L)
458 - typically, /dev/swradio?
462 .. _MEDIA-INTF-T-V4L-TOUCH:
464 - ``MEDIA_INTF_T_V4L_TOUCH``
466 - Device node interface for Touch device (V4L)
468 - typically, /dev/v4l-touch?
472 .. _MEDIA-INTF-T-ALSA-PCM-CAPTURE:
474 - ``MEDIA_INTF_T_ALSA_PCM_CAPTURE``
476 - Device node interface for ALSA PCM Capture
478 - typically, /dev/snd/pcmC?D?c
482 .. _MEDIA-INTF-T-ALSA-PCM-PLAYBACK:
484 - ``MEDIA_INTF_T_ALSA_PCM_PLAYBACK``
486 - Device node interface for ALSA PCM Playback
488 - typically, /dev/snd/pcmC?D?p
492 .. _MEDIA-INTF-T-ALSA-CONTROL:
494 - ``MEDIA_INTF_T_ALSA_CONTROL``
496 - Device node interface for ALSA Control
498 - typically, /dev/snd/controlC?
502 .. _MEDIA-INTF-T-ALSA-COMPRESS:
504 - ``MEDIA_INTF_T_ALSA_COMPRESS``
506 - Device node interface for ALSA Compress
508 - typically, /dev/snd/compr?
512 .. _MEDIA-INTF-T-ALSA-RAWMIDI:
514 - ``MEDIA_INTF_T_ALSA_RAWMIDI``
516 - Device node interface for ALSA Raw MIDI
518 - typically, /dev/snd/midi?
522 .. _MEDIA-INTF-T-ALSA-HWDEP:
524 - ``MEDIA_INTF_T_ALSA_HWDEP``
526 - Device node interface for ALSA Hardware Dependent
528 - typically, /dev/snd/hwC?D?
532 .. _MEDIA-INTF-T-ALSA-SEQUENCER:
534 - ``MEDIA_INTF_T_ALSA_SEQUENCER``
536 - Device node interface for ALSA Sequencer
538 - typically, /dev/snd/seq
542 .. _MEDIA-INTF-T-ALSA-TIMER:
544 - ``MEDIA_INTF_T_ALSA_TIMER``
546 - Device node interface for ALSA Timer
548 - typically, /dev/snd/timer
551 .. tabularcolumns:: |p{5.5cm}|p{12.0cm}|
555 .. flat-table:: Media pad flags
562 .. _MEDIA-PAD-FL-SINK:
564 - ``MEDIA_PAD_FL_SINK``
566 - Input pad, relative to the entity. Input pads sink data and are
571 .. _MEDIA-PAD-FL-SOURCE:
573 - ``MEDIA_PAD_FL_SOURCE``
575 - Output pad, relative to the entity. Output pads source data and
576 are origins of links.
580 .. _MEDIA-PAD-FL-MUST-CONNECT:
582 - ``MEDIA_PAD_FL_MUST_CONNECT``
584 - If this flag is set and the pad is linked to any other pad, then
585 at least one of those links must be enabled for the entity to be
586 able to stream. There could be temporary reasons (e.g. device
587 configuration dependent) for the pad to need enabled links even
588 when this flag isn't set; the absence of the flag doesn't imply
592 One and only one of ``MEDIA_PAD_FL_SINK`` and ``MEDIA_PAD_FL_SOURCE``
593 must be set for every pad.
595 .. tabularcolumns:: |p{5.5cm}|p{12.0cm}|
599 .. flat-table:: Media link flags
606 .. _MEDIA-LNK-FL-ENABLED:
608 - ``MEDIA_LNK_FL_ENABLED``
610 - The link is enabled and can be used to transfer media data. When
611 two or more links target a sink pad, only one of them can be
616 .. _MEDIA-LNK-FL-IMMUTABLE:
618 - ``MEDIA_LNK_FL_IMMUTABLE``
620 - The link enabled state can't be modified at runtime. An immutable
621 link is always enabled.
625 .. _MEDIA-LNK-FL-DYNAMIC:
627 - ``MEDIA_LNK_FL_DYNAMIC``
629 - The link enabled state can be modified during streaming. This flag
630 is set by drivers and is read-only for applications.
634 .. _MEDIA-LNK-FL-LINK-TYPE:
636 - ``MEDIA_LNK_FL_LINK_TYPE``
638 - This is a bitmask that defines the type of the link. Currently,
639 two types of links are supported:
641 .. _MEDIA-LNK-FL-DATA-LINK:
643 ``MEDIA_LNK_FL_DATA_LINK`` if the link is between two pads
645 .. _MEDIA-LNK-FL-INTERFACE-LINK:
647 ``MEDIA_LNK_FL_INTERFACE_LINK`` if the link is between an
648 interface and an entity