vidioc-query-dv-timings.xml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. <refpurpose>Sense the DV preset received by the current
  9. input</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>struct v4l2_dv_timings *<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_QUERY_DV_TIMINGS</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. <note>
  47. <title>Experimental</title>
  48. <para>This is an <link linkend="experimental"> experimental </link>
  49. interface and may change in the future.</para>
  50. </note>
  51. <para>The hardware may be able to detect the current DV timings
  52. automatically, similar to sensing the video standard. To do so, applications
  53. call <constant>VIDIOC_QUERY_DV_TIMINGS</constant> with a pointer to a
  54. &v4l2-dv-timings;. Once the hardware detects the timings, it will fill in the
  55. timings structure.
  56. If the timings could not be detected because there was no signal, then
  57. <errorcode>ENOLINK</errorcode> is returned. If a signal was detected, but
  58. it was unstable and the receiver could not lock to the signal, then
  59. <errorcode>ENOLCK</errorcode> is returned. If the receiver could lock to the signal,
  60. but the format is unsupported (e.g. because the pixelclock is out of range
  61. of the hardware capabilities), then the driver fills in whatever timings it
  62. could find and returns <errorcode>ERANGE</errorcode>. In that case the application
  63. can call &VIDIOC-DV-TIMINGS-CAP; to compare the found timings with the hardware's
  64. capabilities in order to give more precise feedback to the user.
  65. </para>
  66. </refsect1>
  67. <refsect1>
  68. &return-value;
  69. <variablelist>
  70. <varlistentry>
  71. <term><errorcode>ENOLINK</errorcode></term>
  72. <listitem>
  73. <para>No timings could be detected because no signal was found.
  74. </para>
  75. </listitem>
  76. </varlistentry>
  77. <varlistentry>
  78. <term><errorcode>ENOLCK</errorcode></term>
  79. <listitem>
  80. <para>The signal was unstable and the hardware could not lock on to it.
  81. </para>
  82. </listitem>
  83. </varlistentry>
  84. <varlistentry>
  85. <term><errorcode>ERANGE</errorcode></term>
  86. <listitem>
  87. <para>Timings were found, but they are out of range of the hardware
  88. capabilities.
  89. </para>
  90. </listitem>
  91. </varlistentry>
  92. </variablelist>
  93. </refsect1>
  94. </refentry>