vivid.txt 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135
  1. vivid: Virtual Video Test Driver
  2. ================================
  3. This driver emulates video4linux hardware of various types: video capture, video
  4. output, vbi capture and output, radio receivers and transmitters and a software
  5. defined radio receiver. In addition a simple framebuffer device is available for
  6. testing capture and output overlays.
  7. Up to 64 vivid instances can be created, each with up to 16 inputs and 16 outputs.
  8. Each input can be a webcam, TV capture device, S-Video capture device or an HDMI
  9. capture device. Each output can be an S-Video output device or an HDMI output
  10. device.
  11. These inputs and outputs act exactly as a real hardware device would behave. This
  12. allows you to use this driver as a test input for application development, since
  13. you can test the various features without requiring special hardware.
  14. This document describes the features implemented by this driver:
  15. - Support for read()/write(), MMAP, USERPTR and DMABUF streaming I/O.
  16. - A large list of test patterns and variations thereof
  17. - Working brightness, contrast, saturation and hue controls
  18. - Support for the alpha color component
  19. - Full colorspace support, including limited/full RGB range
  20. - All possible control types are present
  21. - Support for various pixel aspect ratios and video aspect ratios
  22. - Error injection to test what happens if errors occur
  23. - Supports crop/compose/scale in any combination for both input and output
  24. - Can emulate up to 4K resolutions
  25. - All Field settings are supported for testing interlaced capturing
  26. - Supports all standard YUV and RGB formats, including two multiplanar YUV formats
  27. - Raw and Sliced VBI capture and output support
  28. - Radio receiver and transmitter support, including RDS support
  29. - Software defined radio (SDR) support
  30. - Capture and output overlay support
  31. These features will be described in more detail below.
  32. Table of Contents
  33. -----------------
  34. Section 1: Configuring the driver
  35. Section 2: Video Capture
  36. Section 2.1: Webcam Input
  37. Section 2.2: TV and S-Video Inputs
  38. Section 2.3: HDMI Input
  39. Section 3: Video Output
  40. Section 3.1: S-Video Output
  41. Section 3.2: HDMI Output
  42. Section 4: VBI Capture
  43. Section 5: VBI Output
  44. Section 6: Radio Receiver
  45. Section 7: Radio Transmitter
  46. Section 8: Software Defined Radio Receiver
  47. Section 9: Controls
  48. Section 9.1: User Controls - Test Controls
  49. Section 9.2: User Controls - Video Capture
  50. Section 9.3: User Controls - Audio
  51. Section 9.4: Vivid Controls
  52. Section 9.4.1: Test Pattern Controls
  53. Section 9.4.2: Capture Feature Selection Controls
  54. Section 9.4.3: Output Feature Selection Controls
  55. Section 9.4.4: Error Injection Controls
  56. Section 9.4.5: VBI Raw Capture Controls
  57. Section 9.5: Digital Video Controls
  58. Section 9.6: FM Radio Receiver Controls
  59. Section 9.7: FM Radio Modulator
  60. Section 10: Video, VBI and RDS Looping
  61. Section 10.1: Video and Sliced VBI looping
  62. Section 10.2: Radio & RDS Looping
  63. Section 11: Cropping, Composing, Scaling
  64. Section 12: Formats
  65. Section 13: Capture Overlay
  66. Section 14: Output Overlay
  67. Section 15: Some Future Improvements
  68. Section 1: Configuring the driver
  69. ---------------------------------
  70. By default the driver will create a single instance that has a video capture
  71. device with webcam, TV, S-Video and HDMI inputs, a video output device with
  72. S-Video and HDMI outputs, one vbi capture device, one vbi output device, one
  73. radio receiver device, one radio transmitter device and one SDR device.
  74. The number of instances, devices, video inputs and outputs and their types are
  75. all configurable using the following module options:
  76. n_devs: number of driver instances to create. By default set to 1. Up to 64
  77. instances can be created.
  78. node_types: which devices should each driver instance create. An array of
  79. hexadecimal values, one for each instance. The default is 0x1d3d.
  80. Each value is a bitmask with the following meaning:
  81. bit 0: Video Capture node
  82. bit 2-3: VBI Capture node: 0 = none, 1 = raw vbi, 2 = sliced vbi, 3 = both
  83. bit 4: Radio Receiver node
  84. bit 5: Software Defined Radio Receiver node
  85. bit 8: Video Output node
  86. bit 10-11: VBI Output node: 0 = none, 1 = raw vbi, 2 = sliced vbi, 3 = both
  87. bit 12: Radio Transmitter node
  88. bit 16: Framebuffer for testing overlays
  89. So to create four instances, the first two with just one video capture
  90. device, the second two with just one video output device you would pass
  91. these module options to vivid:
  92. n_devs=4 node_types=0x1,0x1,0x100,0x100
  93. num_inputs: the number of inputs, one for each instance. By default 4 inputs
  94. are created for each video capture device. At most 16 inputs can be created,
  95. and there must be at least one.
  96. input_types: the input types for each instance, the default is 0xe4. This defines
  97. what the type of each input is when the inputs are created for each driver
  98. instance. This is a hexadecimal value with up to 16 pairs of bits, each
  99. pair gives the type and bits 0-1 map to input 0, bits 2-3 map to input 1,
  100. 30-31 map to input 15. Each pair of bits has the following meaning:
  101. 00: this is a webcam input
  102. 01: this is a TV tuner input
  103. 10: this is an S-Video input
  104. 11: this is an HDMI input
  105. So to create a video capture device with 8 inputs where input 0 is a TV
  106. tuner, inputs 1-3 are S-Video inputs and inputs 4-7 are HDMI inputs you
  107. would use the following module options:
  108. num_inputs=8 input_types=0xffa9
  109. num_outputs: the number of outputs, one for each instance. By default 2 outputs
  110. are created for each video output device. At most 16 outputs can be
  111. created, and there must be at least one.
  112. output_types: the output types for each instance, the default is 0x02. This defines
  113. what the type of each output is when the outputs are created for each
  114. driver instance. This is a hexadecimal value with up to 16 bits, each bit
  115. gives the type and bit 0 maps to output 0, bit 1 maps to output 1, bit
  116. 15 maps to output 15. The meaning of each bit is as follows:
  117. 0: this is an S-Video output
  118. 1: this is an HDMI output
  119. So to create a video output device with 8 outputs where outputs 0-3 are
  120. S-Video outputs and outputs 4-7 are HDMI outputs you would use the
  121. following module options:
  122. num_outputs=8 output_types=0xf0
  123. vid_cap_nr: give the desired videoX start number for each video capture device.
  124. The default is -1 which will just take the first free number. This allows
  125. you to map capture video nodes to specific videoX device nodes. Example:
  126. n_devs=4 vid_cap_nr=2,4,6,8
  127. This will attempt to assign /dev/video2 for the video capture device of
  128. the first vivid instance, video4 for the next up to video8 for the last
  129. instance. If it can't succeed, then it will just take the next free
  130. number.
  131. vid_out_nr: give the desired videoX start number for each video output device.
  132. The default is -1 which will just take the first free number.
  133. vbi_cap_nr: give the desired vbiX start number for each vbi capture device.
  134. The default is -1 which will just take the first free number.
  135. vbi_out_nr: give the desired vbiX start number for each vbi output device.
  136. The default is -1 which will just take the first free number.
  137. radio_rx_nr: give the desired radioX start number for each radio receiver device.
  138. The default is -1 which will just take the first free number.
  139. radio_tx_nr: give the desired radioX start number for each radio transmitter
  140. device. The default is -1 which will just take the first free number.
  141. sdr_cap_nr: give the desired swradioX start number for each SDR capture device.
  142. The default is -1 which will just take the first free number.
  143. ccs_cap_mode: specify the allowed video capture crop/compose/scaling combination
  144. for each driver instance. Video capture devices can have any combination
  145. of cropping, composing and scaling capabilities and this will tell the
  146. vivid driver which of those is should emulate. By default the user can
  147. select this through controls.
  148. The value is either -1 (controlled by the user) or a set of three bits,
  149. each enabling (1) or disabling (0) one of the features:
  150. bit 0: Enable crop support. Cropping will take only part of the
  151. incoming picture.
  152. bit 1: Enable compose support. Composing will copy the incoming
  153. picture into a larger buffer.
  154. bit 2: Enable scaling support. Scaling can scale the incoming
  155. picture. The scaler of the vivid driver can enlarge up
  156. or down to four times the original size. The scaler is
  157. very simple and low-quality. Simplicity and speed were
  158. key, not quality.
  159. Note that this value is ignored by webcam inputs: those enumerate
  160. discrete framesizes and that is incompatible with cropping, composing
  161. or scaling.
  162. ccs_out_mode: specify the allowed video output crop/compose/scaling combination
  163. for each driver instance. Video output devices can have any combination
  164. of cropping, composing and scaling capabilities and this will tell the
  165. vivid driver which of those is should emulate. By default the user can
  166. select this through controls.
  167. The value is either -1 (controlled by the user) or a set of three bits,
  168. each enabling (1) or disabling (0) one of the features:
  169. bit 0: Enable crop support. Cropping will take only part of the
  170. outgoing buffer.
  171. bit 1: Enable compose support. Composing will copy the incoming
  172. buffer into a larger picture frame.
  173. bit 2: Enable scaling support. Scaling can scale the incoming
  174. buffer. The scaler of the vivid driver can enlarge up
  175. or down to four times the original size. The scaler is
  176. very simple and low-quality. Simplicity and speed were
  177. key, not quality.
  178. multiplanar: select whether each device instance supports multi-planar formats,
  179. and thus the V4L2 multi-planar API. By default device instances are
  180. single-planar.
  181. This module option can override that for each instance. Values are:
  182. 1: this is a single-planar instance.
  183. 2: this is a multi-planar instance.
  184. vivid_debug: enable driver debugging info
  185. no_error_inj: if set disable the error injecting controls. This option is
  186. needed in order to run a tool like v4l2-compliance. Tools like that
  187. exercise all controls including a control like 'Disconnect' which
  188. emulates a USB disconnect, making the device inaccessible and so
  189. all tests that v4l2-compliance is doing will fail afterwards.
  190. There may be other situations as well where you want to disable the
  191. error injection support of vivid. When this option is set, then the
  192. controls that select crop, compose and scale behavior are also
  193. removed. Unless overridden by ccs_cap_mode and/or ccs_out_mode the
  194. will default to enabling crop, compose and scaling.
  195. Taken together, all these module options allow you to precisely customize
  196. the driver behavior and test your application with all sorts of permutations.
  197. It is also very suitable to emulate hardware that is not yet available, e.g.
  198. when developing software for a new upcoming device.
  199. Section 2: Video Capture
  200. ------------------------
  201. This is probably the most frequently used feature. The video capture device
  202. can be configured by using the module options num_inputs, input_types and
  203. ccs_cap_mode (see section 1 for more detailed information), but by default
  204. four inputs are configured: a webcam, a TV tuner, an S-Video and an HDMI
  205. input, one input for each input type. Those are described in more detail
  206. below.
  207. Special attention has been given to the rate at which new frames become
  208. available. The jitter will be around 1 jiffie (that depends on the HZ
  209. configuration of your kernel, so usually 1/100, 1/250 or 1/1000 of a second),
  210. but the long-term behavior is exactly following the framerate. So a
  211. framerate of 59.94 Hz is really different from 60 Hz. If the framerate
  212. exceeds your kernel's HZ value, then you will get dropped frames, but the
  213. frame/field sequence counting will keep track of that so the sequence
  214. count will skip whenever frames are dropped.
  215. Section 2.1: Webcam Input
  216. -------------------------
  217. The webcam input supports three framesizes: 320x180, 640x360 and 1280x720. It
  218. supports frames per second settings of 10, 15, 25, 30, 50 and 60 fps. Which ones
  219. are available depends on the chosen framesize: the larger the framesize, the
  220. lower the maximum frames per second.
  221. The initially selected colorspace when you switch to the webcam input will be
  222. sRGB.
  223. Section 2.2: TV and S-Video Inputs
  224. ----------------------------------
  225. The only difference between the TV and S-Video input is that the TV has a
  226. tuner. Otherwise they behave identically.
  227. These inputs support audio inputs as well: one TV and one Line-In. They
  228. both support all TV standards. If the standard is queried, then the Vivid
  229. controls 'Standard Signal Mode' and 'Standard' determine what
  230. the result will be.
  231. These inputs support all combinations of the field setting. Special care has
  232. been taken to faithfully reproduce how fields are handled for the different
  233. TV standards. This is particularly noticable when generating a horizontally
  234. moving image so the temporal effect of using interlaced formats becomes clearly
  235. visible. For 50 Hz standards the top field is the oldest and the bottom field
  236. is the newest in time. For 60 Hz standards that is reversed: the bottom field
  237. is the oldest and the top field is the newest in time.
  238. When you start capturing in V4L2_FIELD_ALTERNATE mode the first buffer will
  239. contain the top field for 50 Hz standards and the bottom field for 60 Hz
  240. standards. This is what capture hardware does as well.
  241. Finally, for PAL/SECAM standards the first half of the top line contains noise.
  242. This simulates the Wide Screen Signal that is commonly placed there.
  243. The initially selected colorspace when you switch to the TV or S-Video input
  244. will be SMPTE-170M.
  245. The pixel aspect ratio will depend on the TV standard. The video aspect ratio
  246. can be selected through the 'Standard Aspect Ratio' Vivid control.
  247. Choices are '4x3', '16x9' which will give letterboxed widescreen video and
  248. '16x9 Anomorphic' which will give full screen squashed anamorphic widescreen
  249. video that will need to be scaled accordingly.
  250. The TV 'tuner' supports a frequency range of 44-958 MHz. Channels are available
  251. every 6 MHz, starting from 49.25 MHz. For each channel the generated image
  252. will be in color for the +/- 0.25 MHz around it, and in grayscale for
  253. +/- 1 MHz around the channel. Beyond that it is just noise. The VIDIOC_G_TUNER
  254. ioctl will return 100% signal strength for +/- 0.25 MHz and 50% for +/- 1 MHz.
  255. It will also return correct afc values to show whether the frequency is too
  256. low or too high.
  257. The audio subchannels that are returned are MONO for the +/- 1 MHz range around
  258. a valid channel frequency. When the frequency is within +/- 0.25 MHz of the
  259. channel it will return either MONO, STEREO, either MONO | SAP (for NTSC) or
  260. LANG1 | LANG2 (for others), or STEREO | SAP.
  261. Which one is returned depends on the chosen channel, each next valid channel
  262. will cycle through the possible audio subchannel combinations. This allows
  263. you to test the various combinations by just switching channels..
  264. Finally, for these inputs the v4l2_timecode struct is filled in in the
  265. dequeued v4l2_buffer struct.
  266. Section 2.3: HDMI Input
  267. -----------------------
  268. The HDMI inputs supports all CEA-861 and DMT timings, both progressive and
  269. interlaced, for pixelclock frequencies between 25 and 600 MHz. The field
  270. mode for interlaced formats is always V4L2_FIELD_ALTERNATE. For HDMI the
  271. field order is always top field first, and when you start capturing an
  272. interlaced format you will receive the top field first.
  273. The initially selected colorspace when you switch to the HDMI input or
  274. select an HDMI timing is based on the format resolution: for resolutions
  275. less than or equal to 720x576 the colorspace is set to SMPTE-170M, for
  276. others it is set to REC-709 (CEA-861 timings) or sRGB (VESA DMT timings).
  277. The pixel aspect ratio will depend on the HDMI timing: for 720x480 is it
  278. set as for the NTSC TV standard, for 720x576 it is set as for the PAL TV
  279. standard, and for all others a 1:1 pixel aspect ratio is returned.
  280. The video aspect ratio can be selected through the 'DV Timings Aspect Ratio'
  281. Vivid control. Choices are 'Source Width x Height' (just use the
  282. same ratio as the chosen format), '4x3' or '16x9', either of which can
  283. result in pillarboxed or letterboxed video.
  284. For HDMI inputs it is possible to set the EDID. By default a simple EDID
  285. is provided. You can only set the EDID for HDMI inputs. Internally, however,
  286. the EDID is shared between all HDMI inputs.
  287. No interpretation is done of the EDID data.
  288. Section 3: Video Output
  289. -----------------------
  290. The video output device can be configured by using the module options
  291. num_outputs, output_types and ccs_out_mode (see section 1 for more detailed
  292. information), but by default two outputs are configured: an S-Video and an
  293. HDMI input, one output for each output type. Those are described in more detail
  294. below.
  295. Like with video capture the framerate is also exact in the long term.
  296. Section 3.1: S-Video Output
  297. ---------------------------
  298. This output supports audio outputs as well: "Line-Out 1" and "Line-Out 2".
  299. The S-Video output supports all TV standards.
  300. This output supports all combinations of the field setting.
  301. The initially selected colorspace when you switch to the TV or S-Video input
  302. will be SMPTE-170M.
  303. Section 3.2: HDMI Output
  304. ------------------------
  305. The HDMI output supports all CEA-861 and DMT timings, both progressive and
  306. interlaced, for pixelclock frequencies between 25 and 600 MHz. The field
  307. mode for interlaced formats is always V4L2_FIELD_ALTERNATE.
  308. The initially selected colorspace when you switch to the HDMI output or
  309. select an HDMI timing is based on the format resolution: for resolutions
  310. less than or equal to 720x576 the colorspace is set to SMPTE-170M, for
  311. others it is set to REC-709 (CEA-861 timings) or sRGB (VESA DMT timings).
  312. The pixel aspect ratio will depend on the HDMI timing: for 720x480 is it
  313. set as for the NTSC TV standard, for 720x576 it is set as for the PAL TV
  314. standard, and for all others a 1:1 pixel aspect ratio is returned.
  315. An HDMI output has a valid EDID which can be obtained through VIDIOC_G_EDID.
  316. Section 4: VBI Capture
  317. ----------------------
  318. There are three types of VBI capture devices: those that only support raw
  319. (undecoded) VBI, those that only support sliced (decoded) VBI and those that
  320. support both. This is determined by the node_types module option. In all
  321. cases the driver will generate valid VBI data: for 60 Hz standards it will
  322. generate Closed Caption and XDS data. The closed caption stream will
  323. alternate between "Hello world!" and "Closed captions test" every second.
  324. The XDS stream will give the current time once a minute. For 50 Hz standards
  325. it will generate the Wide Screen Signal which is based on the actual Video
  326. Aspect Ratio control setting and teletext pages 100-159, one page per frame.
  327. The VBI device will only work for the S-Video and TV inputs, it will give
  328. back an error if the current input is a webcam or HDMI.
  329. Section 5: VBI Output
  330. ---------------------
  331. There are three types of VBI output devices: those that only support raw
  332. (undecoded) VBI, those that only support sliced (decoded) VBI and those that
  333. support both. This is determined by the node_types module option.
  334. The sliced VBI output supports the Wide Screen Signal and the teletext signal
  335. for 50 Hz standards and Closed Captioning + XDS for 60 Hz standards.
  336. The VBI device will only work for the S-Video output, it will give
  337. back an error if the current output is HDMI.
  338. Section 6: Radio Receiver
  339. -------------------------
  340. The radio receiver emulates an FM/AM/SW receiver. The FM band also supports RDS.
  341. The frequency ranges are:
  342. FM: 64 MHz - 108 MHz
  343. AM: 520 kHz - 1710 kHz
  344. SW: 2300 kHz - 26.1 MHz
  345. Valid channels are emulated every 1 MHz for FM and every 100 kHz for AM and SW.
  346. The signal strength decreases the further the frequency is from the valid
  347. frequency until it becomes 0% at +/- 50 kHz (FM) or 5 kHz (AM/SW) from the
  348. ideal frequency. The initial frequency when the driver is loaded is set to
  349. 95 MHz.
  350. The FM receiver supports RDS as well, both using 'Block I/O' and 'Controls'
  351. modes. In the 'Controls' mode the RDS information is stored in read-only
  352. controls. These controls are updated every time the frequency is changed,
  353. or when the tuner status is requested. The Block I/O method uses the read()
  354. interface to pass the RDS blocks on to the application for decoding.
  355. The RDS signal is 'detected' for +/- 12.5 kHz around the channel frequency,
  356. and the further the frequency is away from the valid frequency the more RDS
  357. errors are randomly introduced into the block I/O stream, up to 50% of all
  358. blocks if you are +/- 12.5 kHz from the channel frequency. All four errors
  359. can occur in equal proportions: blocks marked 'CORRECTED', blocks marked
  360. 'ERROR', blocks marked 'INVALID' and dropped blocks.
  361. The generated RDS stream contains all the standard fields contained in a
  362. 0B group, and also radio text and the current time.
  363. The receiver supports HW frequency seek, either in Bounded mode, Wrap Around
  364. mode or both, which is configurable with the "Radio HW Seek Mode" control.
  365. Section 7: Radio Transmitter
  366. ----------------------------
  367. The radio transmitter emulates an FM/AM/SW transmitter. The FM band also supports RDS.
  368. The frequency ranges are:
  369. FM: 64 MHz - 108 MHz
  370. AM: 520 kHz - 1710 kHz
  371. SW: 2300 kHz - 26.1 MHz
  372. The initial frequency when the driver is loaded is 95.5 MHz.
  373. The FM transmitter supports RDS as well, both using 'Block I/O' and 'Controls'
  374. modes. In the 'Controls' mode the transmitted RDS information is configured
  375. using controls, and in 'Block I/O' mode the blocks are passed to the driver
  376. using write().
  377. Section 8: Software Defined Radio Receiver
  378. ------------------------------------------
  379. The SDR receiver has three frequency bands for the ADC tuner:
  380. - 300 kHz
  381. - 900 kHz - 2800 kHz
  382. - 3200 kHz
  383. The RF tuner supports 50 MHz - 2000 MHz.
  384. The generated data contains the In-phase and Quadrature components of a
  385. 1 kHz tone that has an amplitude of sqrt(2).
  386. Section 9: Controls
  387. -------------------
  388. Different devices support different controls. The sections below will describe
  389. each control and which devices support them.
  390. Section 9.1: User Controls - Test Controls
  391. ------------------------------------------
  392. The Button, Boolean, Integer 32 Bits, Integer 64 Bits, Menu, String, Bitmask and
  393. Integer Menu are controls that represent all possible control types. The Menu
  394. control and the Integer Menu control both have 'holes' in their menu list,
  395. meaning that one or more menu items return EINVAL when VIDIOC_QUERYMENU is called.
  396. Both menu controls also have a non-zero minimum control value. These features
  397. allow you to check if your application can handle such things correctly.
  398. These controls are supported for every device type.
  399. Section 9.2: User Controls - Video Capture
  400. ------------------------------------------
  401. The following controls are specific to video capture.
  402. The Brightness, Contrast, Saturation and Hue controls actually work and are
  403. standard. There is one special feature with the Brightness control: each
  404. video input has its own brightness value, so changing input will restore
  405. the brightness for that input. In addition, each video input uses a different
  406. brightness range (minimum and maximum control values). Switching inputs will
  407. cause a control event to be sent with the V4L2_EVENT_CTRL_CH_RANGE flag set.
  408. This allows you to test controls that can change their range.
  409. The 'Gain, Automatic' and Gain controls can be used to test volatile controls:
  410. if 'Gain, Automatic' is set, then the Gain control is volatile and changes
  411. constantly. If 'Gain, Automatic' is cleared, then the Gain control is a normal
  412. control.
  413. The 'Horizontal Flip' and 'Vertical Flip' controls can be used to flip the
  414. image. These combine with the 'Sensor Flipped Horizontally/Vertically' Vivid
  415. controls.
  416. The 'Alpha Component' control can be used to set the alpha component for
  417. formats containing an alpha channel.
  418. Section 9.3: User Controls - Audio
  419. ----------------------------------
  420. The following controls are specific to video capture and output and radio
  421. receivers and transmitters.
  422. The 'Volume' and 'Mute' audio controls are typical for such devices to
  423. control the volume and mute the audio. They don't actually do anything in
  424. the vivid driver.
  425. Section 9.4: Vivid Controls
  426. ---------------------------
  427. These vivid custom controls control the image generation, error injection, etc.
  428. Section 9.4.1: Test Pattern Controls
  429. ------------------------------------
  430. The Test Pattern Controls are all specific to video capture.
  431. Test Pattern: selects which test pattern to use. Use the CSC Colorbar for
  432. testing colorspace conversions: the colors used in that test pattern
  433. map to valid colors in all colorspaces. The colorspace conversion
  434. is disabled for the other test patterns.
  435. OSD Text Mode: selects whether the text superimposed on the
  436. test pattern should be shown, and if so, whether only counters should
  437. be displayed or the full text.
  438. Horizontal Movement: selects whether the test pattern should
  439. move to the left or right and at what speed.
  440. Vertical Movement: does the same for the vertical direction.
  441. Show Border: show a two-pixel wide border at the edge of the actual image,
  442. excluding letter or pillarboxing.
  443. Show Square: show a square in the middle of the image. If the image is
  444. displayed with the correct pixel and image aspect ratio corrections,
  445. then the width and height of the square on the monitor should be
  446. the same.
  447. Insert SAV Code in Image: adds a SAV (Start of Active Video) code to the image.
  448. This can be used to check if such codes in the image are inadvertently
  449. interpreted instead of being ignored.
  450. Insert EAV Code in Image: does the same for the EAV (End of Active Video) code.
  451. Section 9.4.2: Capture Feature Selection Controls
  452. -------------------------------------------------
  453. These controls are all specific to video capture.
  454. Sensor Flipped Horizontally: the image is flipped horizontally and the
  455. V4L2_IN_ST_HFLIP input status flag is set. This emulates the case where
  456. a sensor is for example mounted upside down.
  457. Sensor Flipped Vertically: the image is flipped vertically and the
  458. V4L2_IN_ST_VFLIP input status flag is set. This emulates the case where
  459. a sensor is for example mounted upside down.
  460. Standard Aspect Ratio: selects if the image aspect ratio as used for the TV or
  461. S-Video input should be 4x3, 16x9 or anamorphic widescreen. This may
  462. introduce letterboxing.
  463. DV Timings Aspect Ratio: selects if the image aspect ratio as used for the HDMI
  464. input should be the same as the source width and height ratio, or if
  465. it should be 4x3 or 16x9. This may introduce letter or pillarboxing.
  466. Timestamp Source: selects when the timestamp for each buffer is taken.
  467. Colorspace: selects which colorspace should be used when generating the image.
  468. This only applies if the CSC Colorbar test pattern is selected,
  469. otherwise the test pattern will go through unconverted.
  470. This behavior is also what you want, since a 75% Colorbar
  471. should really have 75% signal intensity and should not be affected
  472. by colorspace conversions.
  473. Changing the colorspace will result in the V4L2_EVENT_SOURCE_CHANGE
  474. to be sent since it emulates a detected colorspace change.
  475. Transfer Function: selects which colorspace transfer function should be used when
  476. generating an image. This only applies if the CSC Colorbar test pattern is
  477. selected, otherwise the test pattern will go through unconverted.
  478. This behavior is also what you want, since a 75% Colorbar
  479. should really have 75% signal intensity and should not be affected
  480. by colorspace conversions.
  481. Changing the transfer function will result in the V4L2_EVENT_SOURCE_CHANGE
  482. to be sent since it emulates a detected colorspace change.
  483. Y'CbCr Encoding: selects which Y'CbCr encoding should be used when generating
  484. a Y'CbCr image. This only applies if the format is set to a Y'CbCr format
  485. as opposed to an RGB format.
  486. Changing the Y'CbCr encoding will result in the V4L2_EVENT_SOURCE_CHANGE
  487. to be sent since it emulates a detected colorspace change.
  488. Quantization: selects which quantization should be used for the RGB or Y'CbCr
  489. encoding when generating the test pattern.
  490. Changing the quantization will result in the V4L2_EVENT_SOURCE_CHANGE
  491. to be sent since it emulates a detected colorspace change.
  492. Limited RGB Range (16-235): selects if the RGB range of the HDMI source should
  493. be limited or full range. This combines with the Digital Video 'Rx RGB
  494. Quantization Range' control and can be used to test what happens if
  495. a source provides you with the wrong quantization range information.
  496. See the description of that control for more details.
  497. Apply Alpha To Red Only: apply the alpha channel as set by the 'Alpha Component'
  498. user control to the red color of the test pattern only.
  499. Enable Capture Cropping: enables crop support. This control is only present if
  500. the ccs_cap_mode module option is set to the default value of -1 and if
  501. the no_error_inj module option is set to 0 (the default).
  502. Enable Capture Composing: enables composing support. This control is only
  503. present if the ccs_cap_mode module option is set to the default value of
  504. -1 and if the no_error_inj module option is set to 0 (the default).
  505. Enable Capture Scaler: enables support for a scaler (maximum 4 times upscaling
  506. and downscaling). This control is only present if the ccs_cap_mode
  507. module option is set to the default value of -1 and if the no_error_inj
  508. module option is set to 0 (the default).
  509. Maximum EDID Blocks: determines how many EDID blocks the driver supports.
  510. Note that the vivid driver does not actually interpret new EDID
  511. data, it just stores it. It allows for up to 256 EDID blocks
  512. which is the maximum supported by the standard.
  513. Fill Percentage of Frame: can be used to draw only the top X percent
  514. of the image. Since each frame has to be drawn by the driver, this
  515. demands a lot of the CPU. For large resolutions this becomes
  516. problematic. By drawing only part of the image this CPU load can
  517. be reduced.
  518. Section 9.4.3: Output Feature Selection Controls
  519. ------------------------------------------------
  520. These controls are all specific to video output.
  521. Enable Output Cropping: enables crop support. This control is only present if
  522. the ccs_out_mode module option is set to the default value of -1 and if
  523. the no_error_inj module option is set to 0 (the default).
  524. Enable Output Composing: enables composing support. This control is only
  525. present if the ccs_out_mode module option is set to the default value of
  526. -1 and if the no_error_inj module option is set to 0 (the default).
  527. Enable Output Scaler: enables support for a scaler (maximum 4 times upscaling
  528. and downscaling). This control is only present if the ccs_out_mode
  529. module option is set to the default value of -1 and if the no_error_inj
  530. module option is set to 0 (the default).
  531. Section 9.4.4: Error Injection Controls
  532. ---------------------------------------
  533. The following two controls are only valid for video and vbi capture.
  534. Standard Signal Mode: selects the behavior of VIDIOC_QUERYSTD: what should
  535. it return?
  536. Changing this control will result in the V4L2_EVENT_SOURCE_CHANGE
  537. to be sent since it emulates a changed input condition (e.g. a cable
  538. was plugged in or out).
  539. Standard: selects the standard that VIDIOC_QUERYSTD should return if the
  540. previous control is set to "Selected Standard".
  541. Changing this control will result in the V4L2_EVENT_SOURCE_CHANGE
  542. to be sent since it emulates a changed input standard.
  543. The following two controls are only valid for video capture.
  544. DV Timings Signal Mode: selects the behavior of VIDIOC_QUERY_DV_TIMINGS: what
  545. should it return?
  546. Changing this control will result in the V4L2_EVENT_SOURCE_CHANGE
  547. to be sent since it emulates a changed input condition (e.g. a cable
  548. was plugged in or out).
  549. DV Timings: selects the timings the VIDIOC_QUERY_DV_TIMINGS should return
  550. if the previous control is set to "Selected DV Timings".
  551. Changing this control will result in the V4L2_EVENT_SOURCE_CHANGE
  552. to be sent since it emulates changed input timings.
  553. The following controls are only present if the no_error_inj module option
  554. is set to 0 (the default). These controls are valid for video and vbi
  555. capture and output streams and for the SDR capture device except for the
  556. Disconnect control which is valid for all devices.
  557. Wrap Sequence Number: test what happens when you wrap the sequence number in
  558. struct v4l2_buffer around.
  559. Wrap Timestamp: test what happens when you wrap the timestamp in struct
  560. v4l2_buffer around.
  561. Percentage of Dropped Buffers: sets the percentage of buffers that
  562. are never returned by the driver (i.e., they are dropped).
  563. Disconnect: emulates a USB disconnect. The device will act as if it has
  564. been disconnected. Only after all open filehandles to the device
  565. node have been closed will the device become 'connected' again.
  566. Inject V4L2_BUF_FLAG_ERROR: when pressed, the next frame returned by
  567. the driver will have the error flag set (i.e. the frame is marked
  568. corrupt).
  569. Inject VIDIOC_REQBUFS Error: when pressed, the next REQBUFS or CREATE_BUFS
  570. ioctl call will fail with an error. To be precise: the videobuf2
  571. queue_setup() op will return -EINVAL.
  572. Inject VIDIOC_QBUF Error: when pressed, the next VIDIOC_QBUF or
  573. VIDIOC_PREPARE_BUFFER ioctl call will fail with an error. To be
  574. precise: the videobuf2 buf_prepare() op will return -EINVAL.
  575. Inject VIDIOC_STREAMON Error: when pressed, the next VIDIOC_STREAMON ioctl
  576. call will fail with an error. To be precise: the videobuf2
  577. start_streaming() op will return -EINVAL.
  578. Inject Fatal Streaming Error: when pressed, the streaming core will be
  579. marked as having suffered a fatal error, the only way to recover
  580. from that is to stop streaming. To be precise: the videobuf2
  581. vb2_queue_error() function is called.
  582. Section 9.4.5: VBI Raw Capture Controls
  583. ---------------------------------------
  584. Interlaced VBI Format: if set, then the raw VBI data will be interlaced instead
  585. of providing it grouped by field.
  586. Section 9.5: Digital Video Controls
  587. -----------------------------------
  588. Rx RGB Quantization Range: sets the RGB quantization detection of the HDMI
  589. input. This combines with the Vivid 'Limited RGB Range (16-235)'
  590. control and can be used to test what happens if a source provides
  591. you with the wrong quantization range information. This can be tested
  592. by selecting an HDMI input, setting this control to Full or Limited
  593. range and selecting the opposite in the 'Limited RGB Range (16-235)'
  594. control. The effect is easy to see if the 'Gray Ramp' test pattern
  595. is selected.
  596. Tx RGB Quantization Range: sets the RGB quantization detection of the HDMI
  597. output. It is currently not used for anything in vivid, but most HDMI
  598. transmitters would typically have this control.
  599. Transmit Mode: sets the transmit mode of the HDMI output to HDMI or DVI-D. This
  600. affects the reported colorspace since DVI_D outputs will always use
  601. sRGB.
  602. Section 9.6: FM Radio Receiver Controls
  603. ---------------------------------------
  604. RDS Reception: set if the RDS receiver should be enabled.
  605. RDS Program Type:
  606. RDS PS Name:
  607. RDS Radio Text:
  608. RDS Traffic Announcement:
  609. RDS Traffic Program:
  610. RDS Music: these are all read-only controls. If RDS Rx I/O Mode is set to
  611. "Block I/O", then they are inactive as well. If RDS Rx I/O Mode is set
  612. to "Controls", then these controls report the received RDS data. Note
  613. that the vivid implementation of this is pretty basic: they are only
  614. updated when you set a new frequency or when you get the tuner status
  615. (VIDIOC_G_TUNER).
  616. Radio HW Seek Mode: can be one of "Bounded", "Wrap Around" or "Both". This
  617. determines if VIDIOC_S_HW_FREQ_SEEK will be bounded by the frequency
  618. range or wrap-around or if it is selectable by the user.
  619. Radio Programmable HW Seek: if set, then the user can provide the lower and
  620. upper bound of the HW Seek. Otherwise the frequency range boundaries
  621. will be used.
  622. Generate RBDS Instead of RDS: if set, then generate RBDS (the US variant of
  623. RDS) data instead of RDS (European-style RDS). This affects only the
  624. PICODE and PTY codes.
  625. RDS Rx I/O Mode: this can be "Block I/O" where the RDS blocks have to be read()
  626. by the application, or "Controls" where the RDS data is provided by
  627. the RDS controls mentioned above.
  628. Section 9.7: FM Radio Modulator Controls
  629. ----------------------------------------
  630. RDS Program ID:
  631. RDS Program Type:
  632. RDS PS Name:
  633. RDS Radio Text:
  634. RDS Stereo:
  635. RDS Artificial Head:
  636. RDS Compressed:
  637. RDS Dymanic PTY:
  638. RDS Traffic Announcement:
  639. RDS Traffic Program:
  640. RDS Music: these are all controls that set the RDS data that is transmitted by
  641. the FM modulator.
  642. RDS Tx I/O Mode: this can be "Block I/O" where the application has to use write()
  643. to pass the RDS blocks to the driver, or "Controls" where the RDS data is
  644. provided by the RDS controls mentioned above.
  645. Section 10: Video, VBI and RDS Looping
  646. --------------------------------------
  647. The vivid driver supports looping of video output to video input, VBI output
  648. to VBI input and RDS output to RDS input. For video/VBI looping this emulates
  649. as if a cable was hooked up between the output and input connector. So video
  650. and VBI looping is only supported between S-Video and HDMI inputs and outputs.
  651. VBI is only valid for S-Video as it makes no sense for HDMI.
  652. Since radio is wireless this looping always happens if the radio receiver
  653. frequency is close to the radio transmitter frequency. In that case the radio
  654. transmitter will 'override' the emulated radio stations.
  655. Looping is currently supported only between devices created by the same
  656. vivid driver instance.
  657. Section 10.1: Video and Sliced VBI looping
  658. ------------------------------------------
  659. The way to enable video/VBI looping is currently fairly crude. A 'Loop Video'
  660. control is available in the "Vivid" control class of the video
  661. capture and VBI capture devices. When checked the video looping will be enabled.
  662. Once enabled any video S-Video or HDMI input will show a static test pattern
  663. until the video output has started. At that time the video output will be
  664. looped to the video input provided that:
  665. - the input type matches the output type. So the HDMI input cannot receive
  666. video from the S-Video output.
  667. - the video resolution of the video input must match that of the video output.
  668. So it is not possible to loop a 50 Hz (720x576) S-Video output to a 60 Hz
  669. (720x480) S-Video input, or a 720p60 HDMI output to a 1080p30 input.
  670. - the pixel formats must be identical on both sides. Otherwise the driver would
  671. have to do pixel format conversion as well, and that's taking things too far.
  672. - the field settings must be identical on both sides. Same reason as above:
  673. requiring the driver to convert from one field format to another complicated
  674. matters too much. This also prohibits capturing with 'Field Top' or 'Field
  675. Bottom' when the output video is set to 'Field Alternate'. This combination,
  676. while legal, became too complicated to support. Both sides have to be 'Field
  677. Alternate' for this to work. Also note that for this specific case the
  678. sequence and field counting in struct v4l2_buffer on the capture side may not
  679. be 100% accurate.
  680. - field settings V4L2_FIELD_SEQ_TB/BT are not supported. While it is possible to
  681. implement this, it would mean a lot of work to get this right. Since these
  682. field values are rarely used the decision was made not to implement this for
  683. now.
  684. - on the input side the "Standard Signal Mode" for the S-Video input or the
  685. "DV Timings Signal Mode" for the HDMI input should be configured so that a
  686. valid signal is passed to the video input.
  687. The framerates do not have to match, although this might change in the future.
  688. By default you will see the OSD text superimposed on top of the looped video.
  689. This can be turned off by changing the "OSD Text Mode" control of the video
  690. capture device.
  691. For VBI looping to work all of the above must be valid and in addition the vbi
  692. output must be configured for sliced VBI. The VBI capture side can be configured
  693. for either raw or sliced VBI. Note that at the moment only CC/XDS (60 Hz formats)
  694. and WSS (50 Hz formats) VBI data is looped. Teletext VBI data is not looped.
  695. Section 10.2: Radio & RDS Looping
  696. ---------------------------------
  697. As mentioned in section 6 the radio receiver emulates stations are regular
  698. frequency intervals. Depending on the frequency of the radio receiver a
  699. signal strength value is calculated (this is returned by VIDIOC_G_TUNER).
  700. However, it will also look at the frequency set by the radio transmitter and
  701. if that results in a higher signal strength than the settings of the radio
  702. transmitter will be used as if it was a valid station. This also includes
  703. the RDS data (if any) that the transmitter 'transmits'. This is received
  704. faithfully on the receiver side. Note that when the driver is loaded the
  705. frequencies of the radio receiver and transmitter are not identical, so
  706. initially no looping takes place.
  707. Section 11: Cropping, Composing, Scaling
  708. ----------------------------------------
  709. This driver supports cropping, composing and scaling in any combination. Normally
  710. which features are supported can be selected through the Vivid controls,
  711. but it is also possible to hardcode it when the module is loaded through the
  712. ccs_cap_mode and ccs_out_mode module options. See section 1 on the details of
  713. these module options.
  714. This allows you to test your application for all these variations.
  715. Note that the webcam input never supports cropping, composing or scaling. That
  716. only applies to the TV/S-Video/HDMI inputs and outputs. The reason is that
  717. webcams, including this virtual implementation, normally use
  718. VIDIOC_ENUM_FRAMESIZES to list a set of discrete framesizes that it supports.
  719. And that does not combine with cropping, composing or scaling. This is
  720. primarily a limitation of the V4L2 API which is carefully reproduced here.
  721. The minimum and maximum resolutions that the scaler can achieve are 16x16 and
  722. (4096 * 4) x (2160 x 4), but it can only scale up or down by a factor of 4 or
  723. less. So for a source resolution of 1280x720 the minimum the scaler can do is
  724. 320x180 and the maximum is 5120x2880. You can play around with this using the
  725. qv4l2 test tool and you will see these dependencies.
  726. This driver also supports larger 'bytesperline' settings, something that
  727. VIDIOC_S_FMT allows but that few drivers implement.
  728. The scaler is a simple scaler that uses the Coarse Bresenham algorithm. It's
  729. designed for speed and simplicity, not quality.
  730. If the combination of crop, compose and scaling allows it, then it is possible
  731. to change crop and compose rectangles on the fly.
  732. Section 12: Formats
  733. -------------------
  734. The driver supports all the regular packed and planar 4:4:4, 4:2:2 and 4:2:0
  735. YUYV formats, 8, 16, 24 and 32 RGB packed formats and various multiplanar
  736. formats.
  737. The alpha component can be set through the 'Alpha Component' User control
  738. for those formats that support it. If the 'Apply Alpha To Red Only' control
  739. is set, then the alpha component is only used for the color red and set to
  740. 0 otherwise.
  741. The driver has to be configured to support the multiplanar formats. By default
  742. the driver instances are single-planar. This can be changed by setting the
  743. multiplanar module option, see section 1 for more details on that option.
  744. If the driver instance is using the multiplanar formats/API, then the first
  745. single planar format (YUYV) and the multiplanar NV16M and NV61M formats the
  746. will have a plane that has a non-zero data_offset of 128 bytes. It is rare for
  747. data_offset to be non-zero, so this is a useful feature for testing applications.
  748. Video output will also honor any data_offset that the application set.
  749. Section 13: Capture Overlay
  750. ---------------------------
  751. Note: capture overlay support is implemented primarily to test the existing
  752. V4L2 capture overlay API. In practice few if any GPUs support such overlays
  753. anymore, and neither are they generally needed anymore since modern hardware
  754. is so much more capable. By setting flag 0x10000 in the node_types module
  755. option the vivid driver will create a simple framebuffer device that can be
  756. used for testing this API. Whether this API should be used for new drivers is
  757. questionable.
  758. This driver has support for a destructive capture overlay with bitmap clipping
  759. and list clipping (up to 16 rectangles) capabilities. Overlays are not
  760. supported for multiplanar formats. It also honors the struct v4l2_window field
  761. setting: if it is set to FIELD_TOP or FIELD_BOTTOM and the capture setting is
  762. FIELD_ALTERNATE, then only the top or bottom fields will be copied to the overlay.
  763. The overlay only works if you are also capturing at that same time. This is a
  764. vivid limitation since it copies from a buffer to the overlay instead of
  765. filling the overlay directly. And if you are not capturing, then no buffers
  766. are available to fill.
  767. In addition, the pixelformat of the capture format and that of the framebuffer
  768. must be the same for the overlay to work. Otherwise VIDIOC_OVERLAY will return
  769. an error.
  770. In order to really see what it going on you will need to create two vivid
  771. instances: the first with a framebuffer enabled. You configure the capture
  772. overlay of the second instance to use the framebuffer of the first, then
  773. you start capturing in the second instance. For the first instance you setup
  774. the output overlay for the video output, turn on video looping and capture
  775. to see the blended framebuffer overlay that's being written to by the second
  776. instance. This setup would require the following commands:
  777. $ sudo modprobe vivid n_devs=2 node_types=0x10101,0x1
  778. $ v4l2-ctl -d1 --find-fb
  779. /dev/fb1 is the framebuffer associated with base address 0x12800000
  780. $ sudo v4l2-ctl -d2 --set-fbuf fb=1
  781. $ v4l2-ctl -d1 --set-fbuf fb=1
  782. $ v4l2-ctl -d0 --set-fmt-video=pixelformat='AR15'
  783. $ v4l2-ctl -d1 --set-fmt-video-out=pixelformat='AR15'
  784. $ v4l2-ctl -d2 --set-fmt-video=pixelformat='AR15'
  785. $ v4l2-ctl -d0 -i2
  786. $ v4l2-ctl -d2 -i2
  787. $ v4l2-ctl -d2 -c horizontal_movement=4
  788. $ v4l2-ctl -d1 --overlay=1
  789. $ v4l2-ctl -d1 -c loop_video=1
  790. $ v4l2-ctl -d2 --stream-mmap --overlay=1
  791. And from another console:
  792. $ v4l2-ctl -d1 --stream-out-mmap
  793. And yet another console:
  794. $ qv4l2
  795. and start streaming.
  796. As you can see, this is not for the faint of heart...
  797. Section 14: Output Overlay
  798. --------------------------
  799. Note: output overlays are primarily implemented in order to test the existing
  800. V4L2 output overlay API. Whether this API should be used for new drivers is
  801. questionable.
  802. This driver has support for an output overlay and is capable of:
  803. - bitmap clipping,
  804. - list clipping (up to 16 rectangles)
  805. - chromakey
  806. - source chromakey
  807. - global alpha
  808. - local alpha
  809. - local inverse alpha
  810. Output overlays are not supported for multiplanar formats. In addition, the
  811. pixelformat of the capture format and that of the framebuffer must be the
  812. same for the overlay to work. Otherwise VIDIOC_OVERLAY will return an error.
  813. Output overlays only work if the driver has been configured to create a
  814. framebuffer by setting flag 0x10000 in the node_types module option. The
  815. created framebuffer has a size of 720x576 and supports ARGB 1:5:5:5 and
  816. RGB 5:6:5.
  817. In order to see the effects of the various clipping, chromakeying or alpha
  818. processing capabilities you need to turn on video looping and see the results
  819. on the capture side. The use of the clipping, chromakeying or alpha processing
  820. capabilities will slow down the video loop considerably as a lot of checks have
  821. to be done per pixel.
  822. Section 15: Some Future Improvements
  823. ------------------------------------
  824. Just as a reminder and in no particular order:
  825. - Add a virtual alsa driver to test audio
  826. - Add virtual sub-devices and media controller support
  827. - Some support for testing compressed video
  828. - Add support to loop raw VBI output to raw VBI input
  829. - Add support to loop teletext sliced VBI output to VBI input
  830. - Fix sequence/field numbering when looping of video with alternate fields
  831. - Add support for V4L2_CID_BG_COLOR for video outputs
  832. - Add ARGB888 overlay support: better testing of the alpha channel
  833. - Add custom DV timings support
  834. - Add support for V4L2_DV_FL_REDUCED_FPS
  835. - Improve pixel aspect support in the tpg code by passing a real v4l2_fract
  836. - Use per-queue locks and/or per-device locks to improve throughput
  837. - Add support to loop from a specific output to a specific input across
  838. vivid instances
  839. - The SDR radio should use the same 'frequencies' for stations as the normal
  840. radio receiver, and give back noise if the frequency doesn't match up with
  841. a station frequency
  842. - Make a thread for the RDS generation, that would help in particular for the
  843. "Controls" RDS Rx I/O Mode as the read-only RDS controls could be updated
  844. in real-time.