vidioc-query-dv-timings.xml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <refentry id="vidioc-query-dv-timings">
  2. <refmeta>
  3. <refentrytitle>ioctl VIDIOC_QUERY_DV_TIMINGS</refentrytitle>
  4. &manvol;
  5. </refmeta>
  6. <refnamediv>
  7. <refname>VIDIOC_QUERY_DV_TIMINGS</refname>
  8. <refname>VIDIOC_SUBDEV_QUERY_DV_TIMINGS</refname>
  9. <refpurpose>Sense the DV preset received by the current
  10. input</refpurpose>
  11. </refnamediv>
  12. <refsynopsisdiv>
  13. <funcsynopsis>
  14. <funcprototype>
  15. <funcdef>int <function>ioctl</function></funcdef>
  16. <paramdef>int <parameter>fd</parameter></paramdef>
  17. <paramdef>int <parameter>request</parameter></paramdef>
  18. <paramdef>struct v4l2_dv_timings *<parameter>argp</parameter></paramdef>
  19. </funcprototype>
  20. </funcsynopsis>
  21. </refsynopsisdiv>
  22. <refsect1>
  23. <title>Arguments</title>
  24. <variablelist>
  25. <varlistentry>
  26. <term><parameter>fd</parameter></term>
  27. <listitem>
  28. <para>&fd;</para>
  29. </listitem>
  30. </varlistentry>
  31. <varlistentry>
  32. <term><parameter>request</parameter></term>
  33. <listitem>
  34. <para>VIDIOC_QUERY_DV_TIMINGS, VIDIOC_SUBDEV_QUERY_DV_TIMINGS</para>
  35. </listitem>
  36. </varlistentry>
  37. <varlistentry>
  38. <term><parameter>argp</parameter></term>
  39. <listitem>
  40. <para></para>
  41. </listitem>
  42. </varlistentry>
  43. </variablelist>
  44. </refsect1>
  45. <refsect1>
  46. <title>Description</title>
  47. <note>
  48. <title>Experimental</title>
  49. <para>This is an <link linkend="experimental"> experimental </link>
  50. interface and may change in the future.</para>
  51. </note>
  52. <para>The hardware may be able to detect the current DV timings
  53. automatically, similar to sensing the video standard. To do so, applications
  54. call <constant>VIDIOC_QUERY_DV_TIMINGS</constant> with a pointer to a
  55. &v4l2-dv-timings;. Once the hardware detects the timings, it will fill in the
  56. timings structure.
  57. If the timings could not be detected because there was no signal, then
  58. <errorcode>ENOLINK</errorcode> is returned. If a signal was detected, but
  59. it was unstable and the receiver could not lock to the signal, then
  60. <errorcode>ENOLCK</errorcode> is returned. If the receiver could lock to the signal,
  61. but the format is unsupported (e.g. because the pixelclock is out of range
  62. of the hardware capabilities), then the driver fills in whatever timings it
  63. could find and returns <errorcode>ERANGE</errorcode>. In that case the application
  64. can call &VIDIOC-DV-TIMINGS-CAP; to compare the found timings with the hardware's
  65. capabilities in order to give more precise feedback to the user.
  66. </para>
  67. </refsect1>
  68. <refsect1>
  69. &return-value;
  70. <variablelist>
  71. <varlistentry>
  72. <term><errorcode>ENODATA</errorcode></term>
  73. <listitem>
  74. <para>Digital video timings are not supported for this input or output.</para>
  75. </listitem>
  76. </varlistentry>
  77. <varlistentry>
  78. <term><errorcode>ENOLINK</errorcode></term>
  79. <listitem>
  80. <para>No timings could be detected because no signal was found.
  81. </para>
  82. </listitem>
  83. </varlistentry>
  84. <varlistentry>
  85. <term><errorcode>ENOLCK</errorcode></term>
  86. <listitem>
  87. <para>The signal was unstable and the hardware could not lock on to it.
  88. </para>
  89. </listitem>
  90. </varlistentry>
  91. <varlistentry>
  92. <term><errorcode>ERANGE</errorcode></term>
  93. <listitem>
  94. <para>Timings were found, but they are out of range of the hardware
  95. capabilities.
  96. </para>
  97. </listitem>
  98. </varlistentry>
  99. </variablelist>
  100. </refsect1>
  101. </refentry>