vidioc-g-dv-preset.xml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <refentry id="vidioc-g-dv-preset">
  2. <refmeta>
  3. <refentrytitle>ioctl VIDIOC_G_DV_PRESET, VIDIOC_S_DV_PRESET</refentrytitle>
  4. &manvol;
  5. </refmeta>
  6. <refnamediv>
  7. <refname>VIDIOC_G_DV_PRESET</refname>
  8. <refname>VIDIOC_S_DV_PRESET</refname>
  9. <refpurpose>Query or select the DV preset of the current input or output</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_G_DV_PRESET, VIDIOC_S_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>To query and select the current DV preset, applications
  47. use the <constant>VIDIOC_G_DV_PRESET</constant> and <constant>VIDIOC_S_DV_PRESET</constant>
  48. ioctls which take a pointer to a &v4l2-dv-preset; type as argument.
  49. Applications must zero the reserved array in &v4l2-dv-preset;.
  50. <constant>VIDIOC_G_DV_PRESET</constant> returns a dv preset in the field
  51. <structfield>preset</structfield> of &v4l2-dv-preset;.</para>
  52. <para><constant>VIDIOC_S_DV_PRESET</constant> accepts a pointer to a &v4l2-dv-preset;
  53. that has the preset value to be set. Applications must zero the reserved array in &v4l2-dv-preset;.
  54. If the preset is not supported, it returns an &EINVAL; </para>
  55. </refsect1>
  56. <refsect1>
  57. &return-value;
  58. <variablelist>
  59. <varlistentry>
  60. <term><errorcode>EINVAL</errorcode></term>
  61. <listitem>
  62. <para>This ioctl is not supported, or the
  63. <constant>VIDIOC_S_DV_PRESET</constant>,<constant>VIDIOC_S_DV_PRESET</constant> parameter was unsuitable.</para>
  64. </listitem>
  65. </varlistentry>
  66. <varlistentry>
  67. <term><errorcode>EBUSY</errorcode></term>
  68. <listitem>
  69. <para>The device is busy and therefore can not change the preset.</para>
  70. </listitem>
  71. </varlistentry>
  72. </variablelist>
  73. <table pgwide="1" frame="none" id="v4l2-dv-preset">
  74. <title>struct <structname>v4l2_dv_preset</structname></title>
  75. <tgroup cols="3">
  76. &cs-str;
  77. <tbody valign="top">
  78. <row>
  79. <entry>__u32</entry>
  80. <entry><structfield>preset</structfield></entry>
  81. <entry>Preset value to represent the digital video timings</entry>
  82. </row>
  83. <row>
  84. <entry>__u32</entry>
  85. <entry><structfield>reserved[4]</structfield></entry>
  86. <entry>Reserved fields for future use</entry>
  87. </row>
  88. </tbody>
  89. </tgroup>
  90. </table>
  91. </refsect1>
  92. </refentry>
  93. <!--
  94. Local Variables:
  95. mode: sgml
  96. sgml-parent-document: "v4l2.sgml"
  97. indent-tabs-mode: nil
  98. End:
  99. -->