vidioc-querystd.xml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. If no signal was detected,
  52. then the driver will return V4L2_STD_UNKNOWN. When detection is not
  53. possible or fails, the set must contain all standards supported by the
  54. current video input or output.</para>
  55. </refsect1>
  56. <refsect1>
  57. &return-value;
  58. <variablelist>
  59. <varlistentry>
  60. <term><errorcode>ENODATA</errorcode></term>
  61. <listitem>
  62. <para>Standard video timings are not supported for this input or output.</para>
  63. </listitem>
  64. </varlistentry>
  65. </variablelist>
  66. </refsect1>
  67. </refentry>