vidioc-query-dv-preset.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <refentry id="vidioc-query-dv-preset">
  2. <refmeta>
  3. <refentrytitle>ioctl VIDIOC_QUERY_DV_PRESET</refentrytitle>
  4. &manvol;
  5. </refmeta>
  6. <refnamediv>
  7. <refname>VIDIOC_QUERY_DV_PRESET</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_preset *<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_PRESET</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>The hardware may be able to detect the current DV preset
  47. automatically, similar to sensing the video standard. To do so, applications
  48. call <constant> VIDIOC_QUERY_DV_PRESET</constant> with a pointer to a
  49. &v4l2-dv-preset; type. Once the hardware detects a preset, that preset is
  50. returned in the preset field of &v4l2-dv-preset;. If the preset could not be
  51. detected because there was no signal, or the signal was unreliable, or the
  52. signal did not map to a supported preset, then the value V4L2_DV_INVALID is
  53. returned.</para>
  54. </refsect1>
  55. <refsect1>
  56. &return-value;
  57. <variablelist>
  58. <varlistentry>
  59. <term><errorcode>EINVAL</errorcode></term>
  60. <listitem>
  61. <para>This ioctl is not supported.</para>
  62. </listitem>
  63. </varlistentry>
  64. <varlistentry>
  65. <term><errorcode>EBUSY</errorcode></term>
  66. <listitem>
  67. <para>The device is busy and therefore can not sense the preset</para>
  68. </listitem>
  69. </varlistentry>
  70. </variablelist>
  71. </refsect1>
  72. </refentry>
  73. <!--
  74. Local Variables:
  75. mode: sgml
  76. sgml-parent-document: "v4l2.sgml"
  77. indent-tabs-mode: nil
  78. End:
  79. -->