vidioc-querystd.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <refentry id="vidioc-querystd">
  2. <refmeta>
  3. <refentrytitle>ioctl VIDIOC_QUERYSTD</refentrytitle>
  4. &manvol;
  5. </refmeta>
  6. <refnamediv>
  7. <refname>VIDIOC_QUERYSTD</refname>
  8. <refpurpose>Sense the video standard 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>v4l2_std_id *<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_QUERYSTD</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 video
  47. standard automatically. To do so, applications call <constant>
  48. VIDIOC_QUERYSTD</constant> with a pointer to a &v4l2-std-id; type. The
  49. driver stores here a set of candidates, this can be a single flag or a
  50. set of supported standards if for example the hardware can only
  51. distinguish between 50 and 60 Hz systems. When detection is not
  52. possible or fails, the set must contain all standards supported by the
  53. current video input or output.</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. </variablelist>
  65. </refsect1>
  66. </refentry>
  67. <!--
  68. Local Variables:
  69. mode: sgml
  70. sgml-parent-document: "v4l2.sgml"
  71. indent-tabs-mode: nil
  72. End:
  73. -->