vidioc-g-std.xml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <refentry id="vidioc-g-std">
  2. <refmeta>
  3. <refentrytitle>ioctl VIDIOC_G_STD, VIDIOC_S_STD</refentrytitle>
  4. &manvol;
  5. </refmeta>
  6. <refnamediv>
  7. <refname>VIDIOC_G_STD</refname>
  8. <refname>VIDIOC_S_STD</refname>
  9. <refpurpose>Query or select the video standard of the current 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
  18. *<parameter>argp</parameter></paramdef>
  19. </funcprototype>
  20. </funcsynopsis>
  21. <funcsynopsis>
  22. <funcprototype>
  23. <funcdef>int <function>ioctl</function></funcdef>
  24. <paramdef>int <parameter>fd</parameter></paramdef>
  25. <paramdef>int <parameter>request</parameter></paramdef>
  26. <paramdef>const v4l2_std_id
  27. *<parameter>argp</parameter></paramdef>
  28. </funcprototype>
  29. </funcsynopsis>
  30. </refsynopsisdiv>
  31. <refsect1>
  32. <title>Arguments</title>
  33. <variablelist>
  34. <varlistentry>
  35. <term><parameter>fd</parameter></term>
  36. <listitem>
  37. <para>&fd;</para>
  38. </listitem>
  39. </varlistentry>
  40. <varlistentry>
  41. <term><parameter>request</parameter></term>
  42. <listitem>
  43. <para>VIDIOC_G_STD, VIDIOC_S_STD</para>
  44. </listitem>
  45. </varlistentry>
  46. <varlistentry>
  47. <term><parameter>argp</parameter></term>
  48. <listitem>
  49. <para></para>
  50. </listitem>
  51. </varlistentry>
  52. </variablelist>
  53. </refsect1>
  54. <refsect1>
  55. <title>Description</title>
  56. <para>To query and select the current video standard applications
  57. use the <constant>VIDIOC_G_STD</constant> and <constant>VIDIOC_S_STD</constant> ioctls which take a pointer to a
  58. &v4l2-std-id; type as argument. <constant>VIDIOC_G_STD</constant> can
  59. return a single flag or a set of flags as in &v4l2-standard; field
  60. <structfield>id</structfield>. The flags must be unambiguous such
  61. that they appear in only one enumerated <structname>v4l2_standard</structname> structure.</para>
  62. <para><constant>VIDIOC_S_STD</constant> accepts one or more
  63. flags, being a write-only ioctl it does not return the actual new standard as
  64. <constant>VIDIOC_G_STD</constant> does. When no flags are given or
  65. the current input does not support the requested standard the driver
  66. returns an &EINVAL;. When the standard set is ambiguous drivers may
  67. return <errorcode>EINVAL</errorcode> or choose any of the requested
  68. standards.</para>
  69. </refsect1>
  70. <refsect1>
  71. &return-value;
  72. <variablelist>
  73. <varlistentry>
  74. <term><errorcode>EINVAL</errorcode></term>
  75. <listitem>
  76. <para>This ioctl is not supported, or the
  77. <constant>VIDIOC_S_STD</constant> parameter was unsuitable.</para>
  78. </listitem>
  79. </varlistentry>
  80. </variablelist>
  81. </refsect1>
  82. </refentry>
  83. <!--
  84. Local Variables:
  85. mode: sgml
  86. sgml-parent-document: "v4l2.sgml"
  87. indent-tabs-mode: nil
  88. End:
  89. -->