vidioc-g-output.xml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <refentry id="vidioc-g-output">
  2. <refmeta>
  3. <refentrytitle>ioctl VIDIOC_G_OUTPUT, VIDIOC_S_OUTPUT</refentrytitle>
  4. &manvol;
  5. </refmeta>
  6. <refnamediv>
  7. <refname>VIDIOC_G_OUTPUT</refname>
  8. <refname>VIDIOC_S_OUTPUT</refname>
  9. <refpurpose>Query or select the current video output</refpurpose>
  10. </refnamediv>
  11. <refsynopsisdiv>
  12. <funcsynopsis>
  13. <funcprototype>
  14. <funcdef>int <function>ioctl</function></funcdef>
  15. <paramdef>int <parameter>fd</parameter></paramdef>
  16. <paramdef>int <parameter>request</parameter></paramdef>
  17. <paramdef>int *<parameter>argp</parameter></paramdef>
  18. </funcprototype>
  19. </funcsynopsis>
  20. </refsynopsisdiv>
  21. <refsect1>
  22. <title>Arguments</title>
  23. <variablelist>
  24. <varlistentry>
  25. <term><parameter>fd</parameter></term>
  26. <listitem>
  27. <para>&fd;</para>
  28. </listitem>
  29. </varlistentry>
  30. <varlistentry>
  31. <term><parameter>request</parameter></term>
  32. <listitem>
  33. <para>VIDIOC_G_OUTPUT, VIDIOC_S_OUTPUT</para>
  34. </listitem>
  35. </varlistentry>
  36. <varlistentry>
  37. <term><parameter>argp</parameter></term>
  38. <listitem>
  39. <para></para>
  40. </listitem>
  41. </varlistentry>
  42. </variablelist>
  43. </refsect1>
  44. <refsect1>
  45. <title>Description</title>
  46. <para>To query the current video output applications call the
  47. <constant>VIDIOC_G_OUTPUT</constant> ioctl with a pointer to an integer
  48. where the driver stores the number of the output, as in the
  49. &v4l2-output; <structfield>index</structfield> field. This ioctl
  50. will fail only when there are no video outputs, returning the
  51. &EINVAL;.</para>
  52. <para>To select a video output applications store the number of the
  53. desired output in an integer and call the
  54. <constant>VIDIOC_S_OUTPUT</constant> ioctl with a pointer to this integer.
  55. Side effects are possible. For example outputs may support different
  56. video standards, so the driver may implicitly switch the current
  57. standard.
  58. standard. Because of these possible side effects applications
  59. must select an output before querying or negotiating any other parameters.</para>
  60. <para>Information about video outputs is available using the
  61. &VIDIOC-ENUMOUTPUT; ioctl.</para>
  62. </refsect1>
  63. <refsect1>
  64. &return-value;
  65. <variablelist>
  66. <varlistentry>
  67. <term><errorcode>EINVAL</errorcode></term>
  68. <listitem>
  69. <para>The number of the video output is out of bounds, or
  70. there are no video outputs at all.</para>
  71. </listitem>
  72. </varlistentry>
  73. </variablelist>
  74. </refsect1>
  75. </refentry>