vidioc-enum-dv-timings.xml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <refentry id="vidioc-enum-dv-timings">
  2. <refmeta>
  3. <refentrytitle>ioctl VIDIOC_ENUM_DV_TIMINGS</refentrytitle>
  4. &manvol;
  5. </refmeta>
  6. <refnamediv>
  7. <refname>VIDIOC_ENUM_DV_TIMINGS</refname>
  8. <refpurpose>Enumerate supported Digital Video timings</refpurpose>
  9. </refnamediv>
  10. <refsynopsisdiv>
  11. <funcsynopsis>
  12. <funcprototype>
  13. <funcdef>int <function>ioctl</function></funcdef>
  14. <paramdef>int <parameter>fd</parameter></paramdef>
  15. <paramdef>int <parameter>request</parameter></paramdef>
  16. <paramdef>struct v4l2_enum_dv_timings *<parameter>argp</parameter></paramdef>
  17. </funcprototype>
  18. </funcsynopsis>
  19. </refsynopsisdiv>
  20. <refsect1>
  21. <title>Arguments</title>
  22. <variablelist>
  23. <varlistentry>
  24. <term><parameter>fd</parameter></term>
  25. <listitem>
  26. <para>&fd;</para>
  27. </listitem>
  28. </varlistentry>
  29. <varlistentry>
  30. <term><parameter>request</parameter></term>
  31. <listitem>
  32. <para>VIDIOC_ENUM_DV_TIMINGS</para>
  33. </listitem>
  34. </varlistentry>
  35. <varlistentry>
  36. <term><parameter>argp</parameter></term>
  37. <listitem>
  38. <para></para>
  39. </listitem>
  40. </varlistentry>
  41. </variablelist>
  42. </refsect1>
  43. <refsect1>
  44. <title>Description</title>
  45. <note>
  46. <title>Experimental</title>
  47. <para>This is an <link linkend="experimental"> experimental </link>
  48. interface and may change in the future.</para>
  49. </note>
  50. <para>While some DV receivers or transmitters support a wide range of timings, others
  51. support only a limited number of timings. With this ioctl applications can enumerate a list
  52. of known supported timings. Call &VIDIOC-DV-TIMINGS-CAP; to check if it also supports other
  53. standards or even custom timings that are not in this list.</para>
  54. <para>To query the available timings, applications initialize the
  55. <structfield>index</structfield> field and zero the reserved array of &v4l2-enum-dv-timings;
  56. and call the <constant>VIDIOC_ENUM_DV_TIMINGS</constant> ioctl with a pointer to this
  57. structure. Drivers fill the rest of the structure or return an
  58. &EINVAL; when the index is out of bounds. To enumerate all supported DV timings,
  59. applications shall begin at index zero, incrementing by one until the
  60. driver returns <errorcode>EINVAL</errorcode>. Note that drivers may enumerate a
  61. different set of DV timings after switching the video input or
  62. output.</para>
  63. <table pgwide="1" frame="none" id="v4l2-enum-dv-timings">
  64. <title>struct <structname>v4l2_enum_dv_timings</structname></title>
  65. <tgroup cols="3">
  66. &cs-str;
  67. <tbody valign="top">
  68. <row>
  69. <entry>__u32</entry>
  70. <entry><structfield>index</structfield></entry>
  71. <entry>Number of the DV timings, set by the
  72. application.</entry>
  73. </row>
  74. <row>
  75. <entry>__u32</entry>
  76. <entry><structfield>reserved</structfield>[3]</entry>
  77. <entry>Reserved for future extensions. Drivers must set the array to zero.</entry>
  78. </row>
  79. <row>
  80. <entry>&v4l2-dv-timings;</entry>
  81. <entry><structfield>timings</structfield></entry>
  82. <entry>The timings.</entry>
  83. </row>
  84. </tbody>
  85. </tgroup>
  86. </table>
  87. </refsect1>
  88. <refsect1>
  89. &return-value;
  90. <variablelist>
  91. <varlistentry>
  92. <term><errorcode>EINVAL</errorcode></term>
  93. <listitem>
  94. <para>The &v4l2-enum-dv-timings; <structfield>index</structfield>
  95. is out of bounds.</para>
  96. </listitem>
  97. </varlistentry>
  98. <varlistentry>
  99. <term><errorcode>ENODATA</errorcode></term>
  100. <listitem>
  101. <para>Digital video presets are not supported for this input or output.</para>
  102. </listitem>
  103. </varlistentry>
  104. </variablelist>
  105. </refsect1>
  106. </refentry>
  107. <!--
  108. Local Variables:
  109. mode: sgml
  110. sgml-parent-document: "v4l2.sgml"
  111. indent-tabs-mode: nil
  112. End:
  113. -->